/* ─── Tavix Shared Styles ─── */
/* Used across all pages: landing, blog, legal, about, compare */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Darks */
  --dark-base: #0E0E0E;
  --dark-card: #1A1818;
  --dark-soft: #252222;

  /* Warms */
  --ivory: #FFFAF2;
  --ivory-deep: #F5EDE4;
  --white: #FFFFFF;

  /* Tavix accent — coral family */
  --coral: #CC4744;
  --coral-light: #E06560;
  --coral-glow: rgba(204,71,68,0.35);
  --coral-soft: rgba(204,71,68,0.12);

  /* Supporting */
  --plum: #713661;
  --green: #2D6A4F;
  --whatsapp: #25D366;
  --text-dark: #FFFFFF;
  --text-dark-secondary: rgba(255,255,255,0.7);
  --text-dark-muted: rgba(255,255,255,0.4);
  --text-light: #333638;
  --text-light-secondary: #6B6462;
  --text-light-muted: #9C9490;

  /* Type */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  /* Radius */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--dark-base);
  color: var(--text-dark);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: inherit; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14,14,14,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  animation: fadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.625rem;
  color: var(--coral);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: var(--coral);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--coral-light);
  box-shadow: 0 4px 16px var(--coral-glow);
}

/* ─── Footer ─── */
.site-footer {
  padding: 60px 24px 32px;
  background: var(--dark-base);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ─── Entrance animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-d1 { animation-delay: 0.15s; }
.reveal-d2 { animation-delay: 0.35s; }
.reveal-d3 { animation-delay: 0.5s; }
.reveal-d4 { animation-delay: 0.65s; }
.reveal-d5 { animation-delay: 0.8s; }
.reveal-d6 { animation-delay: 1s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CTA (shared) ─── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  background: var(--coral);
  border: none;
  padding: 18px 38px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 24px var(--coral-glow);
  text-decoration: none;
}

.cta-button:hover {
  background: var(--coral-light);
  box-shadow: 0 6px 32px rgba(204,71,68,0.5);
  transform: translateY(-2px);
}

.cta-button .arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(4px);
}

.cta-meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  letter-spacing: 0.02em;
}

.cta-meta .green {
  color: var(--whatsapp);
  font-weight: 500;
}

.cta-meta .bold {
  color: var(--white);
  font-weight: 500;
}

/* ─── Utilities ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Hamburger Button (mobile only) ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  z-index: 110;
}

.nav-hamburger-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background 0.2s ease;
}

.nav-hamburger-icon::before,
.nav-hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-hamburger-icon::before { top: -6px; }
.nav-hamburger-icon::after { top: 6px; }

.nav-hamburger.open .nav-hamburger-icon { background: transparent; }
.nav-hamburger.open .nav-hamburger-icon::before { top: 0; transform: rotate(45deg); }
.nav-hamburger.open .nav-hamburger-icon::after { top: 0; transform: rotate(-45deg); }

/* ─── Mobile Menu Panel ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 90px 28px 40px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark-secondary);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-link:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu-link:hover { color: var(--white); }

.mobile-menu-link .mm-arrow {
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu-link:hover .mm-arrow {
  transform: translateX(4px);
  color: var(--coral);
}

.mobile-menu-section {
  margin-top: 24px;
}

.mobile-menu-section-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 4px;
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--coral);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  margin-top: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px var(--coral-glow);
}

.mobile-menu-cta:hover { background: var(--coral-light); }

.mobile-menu-meta {
  text-align: center;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
}

.mobile-menu-meta .bold { color: var(--white); font-weight: 500; }
.mobile-menu-meta .green { color: var(--whatsapp); font-weight: 500; }

/* ─── Desktop responsive ─── */
@media (min-width: 768px) {
  nav { padding: 18px 48px; }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-links a.nav-link-desktop {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .nav-links .nav-cta {
    font-size: 0.75rem;
    padding: 8px 16px;
  }

  .nav-links {
    gap: 14px;
  }
}
