/* components.css — TRANZIT Component Styles */

/* ===== UTILITIES ===== */
.container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-default);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-3) var(--space-8); }
.btn-xl { padding: var(--space-4) var(--space-10); font-size: var(--text-base); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-md); color: var(--color-text-inverse); }

.btn-gold {
  background: var(--color-gold);
  color: #1a1f36;
}
.btn-gold:hover { background: var(--color-gold-hover); box-shadow: var(--shadow-md); color: #1a1f36; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header__logo {
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo svg { display: block; }

.header__nav {
  display: none;
  gap: var(--space-1);
}
@media (min-width: 1024px) {
  .header__nav { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-link:hover { color: var(--color-text); background: var(--color-surface-offset); }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle-btn {
  padding: var(--space-2);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle-btn:hover { color: var(--color-text); background: var(--color-surface-offset); }

.header__cta {
  display: none;
}
@media (min-width: 768px) {
  .header__cta { display: inline-flex; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.mobile-menu.active {
  display: block;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}
.mobile-nav-link:hover { background: var(--color-surface-offset); }
.mobile-nav-cta {
  margin-top: var(--space-4);
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,31,54,0.93) 0%, rgba(26,31,54,0.78) 40%, rgba(26,31,54,0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6) var(--space-16);
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gold-light);
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.25);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.03em;
}
.hero__badge svg { stroke: var(--color-gold-light); }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.hero__title-accent {
  color: var(--color-gold-light);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ===== SECTIONS ===== */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--alt {
  background: var(--color-surface);
}
.section--dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme="dark"] .section--dark {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-3);
}
.section__label--light {
  color: var(--color-gold-light);
}
[data-theme="dark"] .section__label--light {
  color: var(--color-gold);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.section--dark .section__title {
  color: #fff;
}
[data-theme="dark"] .section--dark .section__title {
  color: var(--color-text);
}
.section__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.step {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-highlight);
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}
.step__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-highlight);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--color-gold);
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover { box-shadow: var(--shadow-md); }

.service-card--featured {
  border-color: var(--color-gold);
  background: var(--color-bg);
}
.service-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  right: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #1a1f36;
  background: var(--color-gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-highlight);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.service-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-card__features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.product-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card__img img {
  transform: scale(1.05);
}
.product-card__content {
  padding: var(--space-4);
}
.product-card__content h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.product-card__content p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== SHIPPING ===== */
.shipping-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .shipping-grid { grid-template-columns: repeat(2, 1fr); }
}

.shipping-card {
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.shipping-card--featured {
  border-color: var(--color-gold);
}
.shipping-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.shipping-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  right: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #1a1f36;
  background: var(--color-gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.shipping-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.shipping-card__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.shipping-card__time {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
}
.shipping-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.shipping-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.shipping-card__features li svg { flex-shrink: 0; }
.shipping-card__note {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.shipping-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-8);
  max-width: none;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--transition-interactive);
}
.faq-item.active {
  border-color: var(--color-gold);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.faq-item__question:hover { background: var(--color-surface-offset); }

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--color-gold);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
}
.faq-item__answer p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.testimonial__stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.testimonial__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-gold-highlight);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}
.testimonial__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial__location {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===== CONTACT ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 768px) {
  .contact-content { grid-template-columns: 1fr 1fr; }
}

.contact-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .contact-title {
  color: var(--color-text);
}
.contact-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  max-width: 420px;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
[data-theme="dark"] .contact-desc {
  color: var(--color-text-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.contact-link:hover { color: var(--color-gold-light); }
[data-theme="dark"] .contact-link {
  color: var(--color-text-muted);
}
[data-theme="dark"] .contact-link:hover { color: var(--color-gold); }

.contact-cta {
  text-align: center;
  padding: var(--space-10);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
}
[data-theme="dark"] .contact-cta {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
.contact-cta__sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-3);
}
[data-theme="dark"] .contact-cta__sub {
  color: var(--color-text-faint);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer__brand svg {
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__links a:hover { color: var(--color-gold); }

.footer__social {
  display: flex;
  gap: var(--space-3);
}
.footer__social a {
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.footer__social a:hover { color: var(--color-gold); background: var(--color-surface-offset); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.footer__bottom p, .footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__attribution {
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__attribution:hover { color: var(--color-text-muted); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 40;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float:active { transform: scale(1); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fade-in.visible {
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
  }
  .hero__title {
    font-size: clamp(1.75rem, 1rem + 4vw, 2.5rem);
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-cta {
    padding: var(--space-6);
  }
}

/* Active states for mobile */
@media (hover: none) {
  .btn:active { transform: scale(0.98); }
  .product-card:active { transform: scale(0.99); }
  .nav-link:active { background: var(--color-surface-offset); }
}
