/* ========================================
   REVITAFIO CLINIC — Design System
   ======================================== */

:root {
  /* Brand palette — extracted from manual / clinic photos */
  --navy-900: #07172E;       /* darkest, behind hero */
  --navy-800: #0B1F3F;       /* primary navy, wall color */
  --navy-700: #142B52;
  --navy-600: #1E3A6B;
  --navy-500: #2A4E8A;

  --gold-500: #C8A24A;       /* signature gold */
  --gold-400: #D9B868;
  --gold-300: #E8CE8E;
  --gold-200: #F0DDA8;

  --cream: #F6F0E4;
  --ivory: #FBF8F2;
  --paper: #FFFFFF;

  --ink-900: #0A0F1A;
  --ink-700: #2A2F3A;
  --ink-500: #5A6072;
  --ink-300: #A8AEBC;
  --ink-200: #D4D8E0;
  --ink-100: #ECEEF2;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-eyebrow: "Inter", system-ui, sans-serif;

  /* Spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px; --s11: 160px;

  --container: 1280px;
  --container-narrow: 980px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== TYPOGRAPHY ========== */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow--light { color: var(--gold-400); }
.eyebrow--ink { color: var(--ink-500); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-wrap: balance;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-wrap: balance;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--navy-900);
  text-wrap: balance;
}
.display-1 em, .display-2 em, .display-3 em {
  font-style: italic;
  color: var(--gold-500);
  font-weight: 500;
}

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-500);
  text-wrap: pretty;
}
.lede--light { color: rgba(246, 240, 228, 0.78); }

.body-lg { font-size: 18px; line-height: 1.65; }
.body-sm { font-size: 14px; line-height: 1.5; }

.on-dark { color: var(--cream); }
.on-dark .display-1, .on-dark .display-2, .on-dark .display-3 { color: var(--paper); }
.on-dark .display-1 em, .on-dark .display-2 em, .on-dark .display-3 em { color: var(--gold-400); }

/* Hero & page-hero are always dark — invert headline colors automatically */
.hero .display-1, .hero .display-2, .hero .display-3,
.page-hero .display-1, .page-hero .display-2, .page-hero .display-3 { color: var(--paper); }
.hero .display-1 em, .hero .display-2 em, .hero .display-3 em,
.page-hero .display-1 em, .page-hero .display-2 em, .page-hero .display-3 em { color: var(--gold-400); }

/* ========== LAYOUT ========== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--navy { background: var(--navy-800); color: var(--cream); }
.section--ink { background: var(--ink-900); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--ivory { background: var(--ivory); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
/* Two-column text blocks (no align-items assumption, used inline alongside custom gap/align-items) */
.grid-2-text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--s6); }
  .grid-2-text { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  background: linear-gradient(to bottom, rgba(7, 23, 46, 0.6), transparent);
}
.site-header.scrolled {
  background: rgba(7, 23, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 162, 74, 0.18);
}
.site-header.on-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  height: 40px;
}
.brand img { height: 100%; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s; }
.site-header.on-light .brand img { filter: none; }

.nav {
  display: flex; align-items: center; gap: var(--s6);
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.site-header.on-light .nav a { color: var(--ink-700); }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover { color: var(--gold-400); }
.site-header.on-light .nav a:hover { color: var(--gold-500); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--gold-500);
  color: var(--navy-900) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.header-cta:hover { background: var(--gold-400); transform: translateY(-1px); }
.header-cta::after { display: none !important; }

.menu-toggle { display: none; }
@media (max-width: 940px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--navy-800);
    padding: var(--s6) var(--s5);
    gap: var(--s4);
    border-top: 1px solid rgba(200, 162, 74, 0.15);
  }
  .nav.open a { color: var(--cream); font-size: 18px; }
  .menu-toggle {
    display: block; width: 32px; height: 32px;
    color: var(--cream);
  }
  .site-header.on-light .menu-toggle { color: var(--navy-800); }
  .header-cta { display: none; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px rgba(200,162,74,0.5);
}
.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 32px -10px rgba(200,162,74,0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 240, 228, 0.35);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-ghost--dark {
  color: var(--navy-800);
  border: 1px solid var(--ink-200);
}
.btn-ghost--dark:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-arrow::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow,
.btn-arrow:hover::after { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-500);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 0.2s var(--ease);
}
.text-link:hover { gap: 14px; color: var(--gold-400); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  color: var(--cream);
  overflow: hidden;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(11, 31, 63, 0.6), rgba(7, 23, 46, 0.92) 70%),
    linear-gradient(to right, rgba(7, 23, 46, 0.92) 0%, rgba(7, 23, 46, 0.55) 60%, rgba(7, 23, 46, 0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px;
}
.hero .display-1 { margin: 18px 0 24px; }
.hero .lede { max-width: 640px; margin-bottom: 40px; }
.hero-ctas {
  display: flex; gap: var(--s4); flex-wrap: wrap;
  align-items: center;
}
.hero-ctas .text-link { color: var(--gold-300); margin-left: 8px; }

/* Hero proof bar */
.proof-bar {
  position: relative; z-index: 2;
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid rgba(200, 162, 74, 0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.proof-bar-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: rgba(246, 240, 228, 0.78);
  line-height: 1.4;
}
.proof-bar-item svg {
  flex-shrink: 0;
  color: var(--gold-500);
  margin-top: 2px;
}
@media (max-width: 720px) {
  .proof-bar { grid-template-columns: 1fr 1fr; }
}

/* Hero side card (clinic image) */
.hero-side {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 38%; max-width: 540px;
  z-index: 1;
  display: flex; align-items: center;
}
.hero-side-frame {
  position: relative;
  width: 100%; height: 70%;
  border-left: 1px solid rgba(200, 162, 74, 0.25);
  padding-left: 32px;
  display: flex; align-items: center;
}
.hero-side-frame::before {
  content: "";
  position: absolute; left: -1px; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-500), transparent);
}
@media (max-width: 1100px) { .hero-side { display: none; } }

/* ========== SECTION HEADERS ========== */
.section-head { text-align: center; margin-bottom: var(--s8); }
.section-head--left { text-align: left; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head .display-2 { margin-bottom: 20px; }
.section-head .lede { max-width: 720px; margin: 0 auto; }
.section-head--left .lede { margin: 0; }

/* Decorative gold rule */
.gold-rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--gold-500);
  margin: 0 0 24px;
}
.gold-rule.center { margin: 0 auto 24px; }

/* ========== CARDS ========== */
.pillar-card {
  background: var(--paper);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-100);
  position: relative;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--gold-300); box-shadow: 0 20px 50px -20px rgba(11, 31, 63, 0.15); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy-900);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.pillar-card p { color: var(--ink-500); font-size: 16px; line-height: 1.6; }

/* Dark variant */
.pillar-card--dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 162, 74, 0.18);
}
.pillar-card--dark h3 { color: var(--paper); }
.pillar-card--dark p { color: rgba(246, 240, 228, 0.7); }
.pillar-card--dark .icon-circle { background: var(--gold-500); color: var(--navy-900); }
.pillar-card--dark:hover { border-color: var(--gold-400); background: rgba(255,255,255,0.06); }

/* Stat block */
.stat {
  text-align: center;
  padding: 32px 16px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  color: var(--gold-400);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 14px;
  color: rgba(246, 240, 228, 0.7);
  line-height: 1.4;
  max-width: 220px;
  margin: 0 auto;
}

/* Before / After card */
.ba-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.ba-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -25px rgba(11, 31, 63, 0.25); }
.ba-images {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
  aspect-ratio: 2 / 1.2;
  background: linear-gradient(135deg, #1a2940, #2a3d5e);
}
.ba-images::after {
  content: ""; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(200, 162, 74, 0.6);
}
.ba-half {
  position: relative;
  display: grid; place-items: end center;
  color: rgba(246,240,228, 0.6);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 12px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.ba-half--before {
  background-color: #2a2018;
}
.ba-half--after {
  background-color: #0e1f3f;
}
.ba-half-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,0,0, 0.5);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-300);
  border-radius: 2px;
}
.ba-meta {
  padding: 22px 24px;
}
.ba-meta-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ba-meta-row .dot { width: 3px; height: 3px; background: var(--gold-500); border-radius: 50%; }
.ba-meta h4 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
}
.ba-quote {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-500);
  line-height: 1.5;
}

/* Two-column bullet list (Para Quem) */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin-top: var(--s5);
}
.checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}
.checklist--light li { color: var(--cream); }
.check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: grid; place-items: center;
  margin-top: 2px;
}
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }

/* Dual CTA bifurcation */
.dual-cta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--navy-800);
  border: 1px solid rgba(200,162,74, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.dual-cta > div {
  padding: clamp(40px, 5vw, 64px);
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}
.dual-cta > div:first-child {
  border-right: 1px solid rgba(200,162,74, 0.15);
  background: var(--navy-700);
}
.dual-cta > div:last-child {
  background: linear-gradient(135deg, rgba(200,162,74,0.1), rgba(200,162,74,0.02));
}
.dual-cta .eyebrow { margin-bottom: 12px; }
.dual-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  color: var(--paper);
  line-height: 1.15;
  margin-bottom: 18px;
  text-wrap: balance;
}
.dual-cta p { color: rgba(246,240,228,0.7); margin-bottom: 28px; }
@media (max-width: 880px) {
  .dual-cta { grid-template-columns: 1fr; }
  .dual-cta > div:first-child { border-right: none; border-bottom: 1px solid rgba(200,162,74, 0.15); }
}

/* ========== TESTIMONIAL ========== */
.testimonial {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  padding: 36px 32px;
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 90px;
  color: var(--gold-300);
  position: absolute;
  top: 0; left: 18px;
  line-height: 0.8;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy-900);
  margin-bottom: 24px;
  padding-top: 24px;
}
.testimonial cite {
  display: flex; align-items: center; gap: 12px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.testimonial cite::before {
  content: ""; width: 24px; height: 1px; background: var(--gold-500);
}

/* ========== UNIDADES ========== */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 880px) { .unit-grid { grid-template-columns: 1fr; } }
.unit-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.unit-card:hover { border-color: var(--gold-300); box-shadow: 0 20px 50px -30px rgba(11,31,63,0.35); transform: translateY(-3px); }
.unit-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.unit-card-top h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-900); }
.unit-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-500); }
.unit-rating strong { color: var(--navy-900); font-weight: 700; }
.unit-rating .stars { color: var(--gold-500); letter-spacing: 1px; }
.unit-badge {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--navy-700);
}
.unit-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-700); line-height: 1.45; }
.unit-row svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-500); }
.unit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.unit-actions .btn { padding: 12px 18px; font-size: 13px; min-width: 0; }

/* ========== COMPARISON TABLE ========== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s6);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px -20px rgba(11,31,63,0.15);
}
.compare-table th, .compare-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--ink-100);
  font-size: 15px;
}
.compare-table thead th {
  background: var(--navy-800);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.compare-table thead th:last-child {
  background: var(--gold-500);
  color: var(--navy-900);
  position: relative;
}
.compare-table thead th:last-child::after {
  content: "★";
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--navy-900); font-size: 14px;
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--navy-800);
  width: 28%;
}
.compare-table td:last-child {
  background: rgba(200, 162, 74, 0.05);
  font-weight: 500;
  color: var(--navy-900);
}
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ========== PROCESS STEPS ========== */
.steps {
  display: grid; gap: 0;
  border-top: 1px solid var(--ink-100);
}
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold-500);
  font-weight: 400;
  line-height: 1;
}
.step-row h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.step-row p { color: var(--ink-500); max-width: 620px; }
@media (max-width: 680px) {
  .step-row { grid-template-columns: 1fr; gap: 8px; }
  .step-num { font-size: 32px; }
}

/* Numbered grid steps (Franquia: como funciona) */
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.num-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,162,74,0.18);
  padding: 32px 24px;
  border-radius: 4px;
  position: relative;
}
.num-card .step-tag {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.num-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.2;
}
.num-card p { font-size: 14px; color: rgba(246,240,228,0.7); line-height: 1.55; }
@media (max-width: 880px) { .num-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .num-grid { grid-template-columns: 1fr; } }

/* ========== FAQ ========== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--ink-100);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-500); }
.faq-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-200);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 16px;
  display: grid; place-items: center;
  color: var(--gold-500);
  transition: all 0.3s var(--ease);
}
.faq-item.open .faq-toggle { background: var(--gold-500); color: var(--paper); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.3s var(--ease);
  color: var(--ink-500);
  font-size: 16px;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 28px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-900);
  color: rgba(246,240,228, 0.7);
  padding: var(--s8) 0 var(--s5);
  border-top: 1px solid rgba(200,162,74, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: var(--s7);
  padding-bottom: var(--s7);
  border-bottom: 1px solid rgba(246,240,228, 0.08);
}
.footer-grid h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.footer-grid p, .footer-grid li { font-size: 14px; line-height: 1.7; }
.footer-grid ul { list-style: none; }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand { max-width: 320px; }
.footer-brand img { width: 100%; max-width: 260px; height: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(200,162,74, 0.3);
  display: grid; place-items: center;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer-bottom {
  padding-top: var(--s5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: rgba(246,240,228, 0.45);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========== WHATSAPP FAB ========== */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.45);
  transition: all 0.25s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.6); }
.wa-fab svg { width: 24px; height: 24px; }
@media (max-width: 540px) {
  .wa-fab span { display: none; }
  .wa-fab { padding: 14px; }
}

/* ========== ANIMATIONS / INTERSECTION ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ========== UTILITY ========== */
.image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 30px 80px -30px rgba(7,23,46,0.55);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame::after {
  content: "";
  position: absolute; left: 16px; right: 16px; top: 16px; bottom: 16px;
  border: 1px solid rgba(200,162,74,0.35);
  pointer-events: none;
}

/* Pages routing */
.page { display: none; }
.page.active { display: block; }

/* Form */
.form {
  display: grid; gap: 16px;
  max-width: 560px;
}
.form input, .form select, .form textarea {
  font: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,162,74,0.2);
  color: var(--paper);
  padding: 16px 18px;
  border-radius: 2px;
  outline: none;
  transition: border 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(246,240,228,0.4); }
.form select option { color: #0b1f3f; background: #f6f0e4; }
.form select:invalid { color: rgba(246,240,228,0.4); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-500); background: rgba(255,255,255,0.06); }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form .row-2 { grid-template-columns: 1fr; } }

/* Page-top header offset for ink/cream sections post-hero */
.page-hero {
  padding: 180px 0 80px;
  background: var(--navy-900);
  position: relative;
  color: var(--cream);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(200,162,74,0.08), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold-400); }

/* Decorative gold dot pattern */
.dot-pattern {
  position: absolute;
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, rgba(200,162,74,0.3) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.6;
}


/* ==========================================
   ACCESSIBILITY · PERFORMANCE · POLISH
   ========================================== */

/* Skip link — appears on tab focus */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--paper); outline-offset: 2px; }

/* Visible focus rings for keyboard users */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Respect users' motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Mobile refinements */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 64px; min-height: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  .hero-ctas .text-link { margin-left: 0; justify-content: center; }
  .hero .lede { margin-bottom: 32px; }
  .proof-bar { margin-top: var(--s6); gap: 16px; }
  .btn { padding: 16px 22px; font-size: 13px; }
  .display-1 { font-size: clamp(34px, 9vw, 48px); }
  .display-2 { font-size: clamp(28px, 7vw, 38px); }
}

@media (max-width: 540px) {
  .container, .container-narrow { padding: 0 18px; }
  .pillar-card { padding: 28px 22px; }
  .ba-meta { padding: 18px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 8px; }
}

/* Tap targets meet 44px guideline */
@media (pointer: coarse) {
  .nav a, .footer-grid a, .text-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Image fade-in on load (no layout shift since width/height are set) */
img { background-color: rgba(11, 31, 63, 0.04); }

/* Print styles */
@media print {
  .site-header, .wa-fab, .menu-toggle, .footer-social { display: none !important; }
  .page { display: block !important; page-break-after: always; }
  .hero, .page-hero { min-height: auto; padding: 40px 0; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: inherit; text-decoration: underline; }
}
