/* =========================================================================
   Ahid Odontologia - Landing Facetas e Lentes (V5)
   HTML + CSS vanilla, mobile-first (375px base). Breakpoints 640/768/900/1024/1440.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #32415D;
  --ink-2: #505975;
  --mist: #AFB7CF;
  --accent: #AE7D60;
  --accent-soft: #C99F85;
  --paper: #FAF8F5;
  --paper-2: #F1EDE7;
  --text: #2A3348;
  --muted: #5E6470;
  --line: #E3DED6;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1200px;
  --pad: 22px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  max-width: 100vw;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 940px; }
.wrap--tight  { max-width: 760px; }

@media (min-width: 768px) { :root { --pad: 40px; } }
@media (min-width: 1440px){ :root { --pad: 56px; } }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 380;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 110;
  letter-spacing: -.025em;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
}
.display em, .hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--mist); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { display: block; }

/* ---------- Section backgrounds / rhythm ---------- */
.section--dark   { background: var(--ink); color: var(--paper); }
.section--paper  { background: radial-gradient(125% 105% at 50% 40%, var(--paper) 40%, #F4EFE9 100%); }
.section--paper2 { background: radial-gradient(125% 110% at 50% 32%, var(--paper-2) 46%, #EAE3DA 100%); }

/* Dissolve entre seções dark/claras (ramp da borda inferior p/ a cor seguinte)
   Ordem atual: hero > thesis(dark) > cases(dark) > pillars(paper) > numbers(paper2)
   > digital(dark) > howto(paper2) > timeline(paper) > gallery(paper2) > about(paper)
   > invest(paper2) > faq(paper) > local(paper) > footer(ink) */
.cases, .pillars, .numbers, .digital, .local { position: relative; }
.cases::after, .pillars::after, .numbers::after,
.digital::after, .local::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 110px; z-index: 1; pointer-events: none;
}
.cases::after   { background: linear-gradient(to bottom, transparent, var(--paper)); }
.pillars::after { background: linear-gradient(to bottom, transparent, var(--paper-2)); }
.numbers::after { background: linear-gradient(to bottom, transparent, var(--ink)); }
.digital::after { background: linear-gradient(to bottom, transparent, var(--paper-2)); }
.local::after   { background: linear-gradient(to bottom, transparent, var(--ink)); }

/* ---------- Buttons (pill + fill-up) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: color .45s var(--ease-out), box-shadow .3s var(--ease);
}
.btn--pill {
  border-radius: 999px;
  padding: 18px 34px;
  min-height: 52px;
  background: var(--ink);
  color: var(--paper);
}
.btn--pill::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn--pill:hover::before,
.btn--pill:focus-visible::before { transform: translateY(0); }

.btn--sm { padding: 12px 22px; min-height: 44px; font-size: .9rem; }
.btn--lg { padding: 20px 40px; min-height: 58px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Botão sólido em seção dark: fundo paper, texto ink, fill-up accent */
.btn--ghost-light { background: var(--paper); color: var(--ink); }
.btn--ghost-light::before { background: var(--accent); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--paper); }

/* Botão secundário em seção dark: outline paper */
.btn--outline-light {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(250,248,245,.5);
}
.btn--outline-light::before { background: var(--accent); }
.btn--outline-light:hover, .btn--outline-light:focus-visible {
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px transparent;
}

.btn.is-loading, .btn:disabled { pointer-events: none; opacity: .68; cursor: default; }
.btn:disabled::before { display: none; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__logo { display: inline-flex; }
.nav__logo img { height: 24px; width: auto; }
.nav__links {
  display: none;
  margin-left: auto;
  gap: 30px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .95rem;
}
.nav__links a { color: var(--paper); text-decoration: none; opacity: .92; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { margin-left: auto; }

/* estado após scroll (classe adicionada pelo JS) */
.nav.is-scrolled {
  background: rgba(50, 65, 93, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* =========================================================================
   1. HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(38,49,74,.55) 0%, transparent 28%),
    linear-gradient(0deg, rgba(30,40,66,.97) 0%, rgba(30,40,66,.9) 26%, rgba(32,43,70,.62) 52%, rgba(38,49,74,.22) 76%, transparent 92%);
}
.hero__watermark {
  position: absolute; z-index: 2;
  right: -46px; bottom: 6%;
  width: 240px; height: auto;
  opacity: .07; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 3;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 120px var(--pad) max(34px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero__inner > * { max-width: 100%; }
.hero__inner .eyebrow, .hero__note, .hero__compliance {
  text-shadow: 0 1px 4px rgba(28, 38, 58, .75), 0 2px 18px rgba(28, 38, 58, .6);
}
.hero__inner .eyebrow { letter-spacing: .2em; }
.hero__title em { color: var(--accent-soft); }
.nav__cta { border: 1px solid rgba(250, 248, 245, .28); }

@media (max-width: 1023px) {
  .hero__actions { align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__note, .hero__compliance { text-align: center; }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 128;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-wrap: balance;
  color: #F4EADB;
  font-size: clamp(2.6rem, 11vw, 5rem);
  margin-top: 4px;
  text-shadow: 0 2px 30px rgba(28, 38, 58, .28);
}
.hero__sub {
  margin-top: 16px;
  max-width: 52ch;
  font-size: clamp(.98rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(250,248,245,.9);
}
.hero__actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero__note { font-size: .9rem; color: rgba(250,248,245,.78); }
.hero__compliance {
  margin-top: 18px;
  font-size: .75rem;
  letter-spacing: .01em;
  color: rgba(250,248,245,.72);
}

@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero__inner { padding-top: 0; padding-bottom: 0; }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(38,49,74,.82) 0%, rgba(38,49,74,.45) 42%, rgba(38,49,74,.08) 70%),
      linear-gradient(0deg, rgba(38,49,74,.55), transparent 45%);
  }
  .hero__title { font-size: clamp(4.4rem, 6vw, 6.4rem); max-width: 15ch; }
  .hero__sub { max-width: 46ch; }
  .hero__watermark { width: 360px; right: -30px; bottom: -24px; }
  .hero__media img { object-position: 62% 30%; }
  .hero__compliance { margin-top: 46px; }
}

/* =========================================================================
   2. TESE FORTE (dark)
   ========================================================================= */
.thesis { padding: clamp(84px, 15vw, 152px) 0; }
.thesis__title {
  color: var(--paper);
  margin-top: 18px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}
.thesis__body {
  margin-top: 26px;
  max-width: 58ch;
  color: rgba(250,248,245,.82);
  font-size: 1.06rem;
  line-height: 1.65;
}
.thesis__quotes { list-style: none; padding: 0; margin: 44px 0 0; }
.thesis__quotes li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.14rem, 3.2vw, 1.35rem);
  line-height: 1.4;
  color: var(--paper);
  padding: 22px 0;
  border-top: 1px solid rgba(175,183,207,.25);
}
.thesis__quotes li:last-child { border-bottom: 1px solid rgba(175,183,207,.25); }
.thesis__quotes li::before { content: "\201C"; color: var(--accent); margin-right: .08em; }
.thesis__quotes li::after  { content: "\201D"; color: var(--accent); }
.thesis__close {
  margin-top: 40px;
  max-width: 58ch;
  color: rgba(250,248,245,.82);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* =========================================================================
   3. PILARES (paper)
   ========================================================================= */
.pillars { padding: clamp(78px, 13vw, 142px) 0; }
.pillars__grid { display: grid; grid-template-columns: 1fr; }
.pillar { padding: 40px 0; border-top: 1px solid var(--line); }
.pillar:first-child { border-top: 0; padding-top: 8px; }
.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.pillar__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.pillar p { color: var(--muted); line-height: 1.65; }

@media (min-width: 768px) {
  .pillars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar { padding: 6px 44px; border-top: 0; border-left: 1px solid var(--line); min-width: 0; }
  .pillar:first-child { border-left: 0; padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
}

/* =========================================================================
   4. PLANEJAMENTO DIGITAL (dark, broken grid, foto full-bleed)
   ========================================================================= */
.digital { overflow: hidden; }
.digital__grid { display: flex; flex-direction: column; }
.digital__media { position: relative; }
.digital__photo { width: 100%; height: 58svh; object-fit: cover; object-position: center; }
.digital__thumb { display: none; }
.digital__text {
  position: relative; z-index: 3;
  padding: clamp(48px, 10vw, 82px) var(--pad);
}
.digital__text .display { color: var(--paper); }
.digital__body {
  margin-top: 24px;
  color: rgba(250,248,245,.82);
  line-height: 1.65;
}
.marker-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.marker-list li {
  position: relative;
  padding-left: 40px;
  color: rgba(250,248,245,.82);
  line-height: 1.5;
}
.marker-list li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 24px; height: 1.5px;
  background: var(--accent);
}
.digital__text .btn { margin-top: 30px; }

@media (min-width: 1024px) {
  .digital__grid {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    min-height: 660px;
  }
  .digital__media { height: 100%; min-height: 660px; }
  .digital__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
  .digital__thumb {
    display: block;
    position: absolute; right: -7%; bottom: 9%;
    width: 34%; max-width: 250px;
    aspect-ratio: 3/4; object-fit: cover;
    border: 6px solid var(--ink);
    z-index: 4;
  }
  .digital__text { padding: 84px clamp(44px, 5vw, 92px); max-width: 620px; }
}

/* =========================================================================
   3.5 A AHID EM NÚMEROS (paper-2)
   ========================================================================= */
.numbers { padding: clamp(56px, 9vw, 92px) 0 calc(clamp(56px, 9vw, 92px) + 100px); }
.numbers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.numbers__item { min-width: 0; text-align: center; }
.numbers__item + .numbers__item { border-left: 1px solid var(--line); }
.numbers__value {
  font-family: var(--font-display);
  font-weight: 320;
  font-variation-settings: "opsz" 110;
  font-feature-settings: "tnum";
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  font-size: clamp(2.9rem, 9vw, 5.4rem);
}
.numbers__plus, .numbers__suffix { color: var(--accent); }
.numbers__suffix { font-size: .42em; font-style: italic; letter-spacing: 0; }
.numbers__label { margin-top: 12px; color: var(--muted); font-size: clamp(.82rem, 2.2vw, .95rem); line-height: 1.5; padding: 0 8px; }

/* =========================================================================
   5. COMO FUNCIONA NA PRÁTICA (paper-2, full-bleed)
   ========================================================================= */
.howto { position: relative; }
.howto__bg { width: 100%; height: 56svh; object-fit: cover; object-position: 60% center; }
.howto__scrim { display: none; }
.howto__inner {
  padding-top: clamp(46px, 9vw, 74px);
  padding-bottom: clamp(64px, 10vw, 96px);
}
.howto__steps { list-style: none; padding: 0; margin: 34px 0 0; }
.howto__steps li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.howto__steps li:first-child { border-top: 0; }
.howto__num {
  flex: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--accent);
  min-width: 1.3em;
}
.howto__steps p { color: var(--text); line-height: 1.55; }
.howto__close {
  margin-top: 34px;
  color: var(--muted);
  line-height: 1.6;
}
.howto__close em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

@media (min-width: 1024px) {
  .howto { display: flex; align-items: center; min-height: 720px; }
  .howto__bg { position: absolute; inset: 0; height: 100%; }
  .howto__scrim {
    display: block;
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(250,248,245,.96) 0%, rgba(250,248,245,.9) 52%, rgba(250,248,245,.55) 72%, rgba(250,248,245,.12) 90%);
  }
  .howto__inner {
    position: relative; z-index: 2;
    max-width: 620px;
    padding: 80px clamp(44px, 5vw, 92px);
  }
}

/* =========================================================================
   6. TIMELINE (paper, scroll-driven)
   ========================================================================= */
.timeline { padding: clamp(78px, 13vw, 142px) 0; }
.timeline__track { position: relative; margin-top: clamp(40px, 6vw, 56px); }
.timeline__line {
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: rgba(174,125,96,.18);
}
.timeline__line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: var(--p, 0%);
  background: linear-gradient(var(--accent), var(--mist));
  transition: height 80ms linear;
}
.timeline__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 34px; }
.timeline__step { position: relative; padding-left: 44px; min-width: 0; }
.timeline__dot {
  position: absolute; left: 6px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline__card h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.timeline__card p { color: var(--muted); line-height: 1.6; }

@media (min-width: 900px) {
  .timeline__line { left: 50%; transform: translateX(-50%); }
  .timeline__steps { gap: 0; }
  .timeline__step { width: 50%; padding: 30px 0; }
  .timeline__step:nth-child(odd)  { padding-right: 56px; text-align: right; }
  .timeline__step:nth-child(even) { margin-left: 50%; padding-left: 56px; text-align: left; }
  .timeline__step:nth-child(odd) .timeline__dot  { left: auto; right: -6px; top: 36px; }
  .timeline__step:nth-child(even) .timeline__dot { left: -6px; top: 36px; }
}

/* =========================================================================
   6.5 ANTES E DEPOIS (dark, slider compare)
   ========================================================================= */
.cases { padding: clamp(84px, 14vw, 148px) 0; }
.cases .display { color: var(--paper); }
.cases .section-head__sub { color: rgba(250,248,245,.78); }
.cases__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); margin-top: clamp(36px, 6vw, 56px); }
.case { margin: 0; min-width: 0; }
.case figcaption {
  margin-top: 14px;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mist);
}
.cases__note { margin-top: clamp(28px, 5vw, 40px); font-size: .82rem; color: rgba(250,248,245,.6); max-width: 62ch; }

.compare {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  aspect-ratio: 3 / 2;
  background: #202A45;
}
.compare img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__pane--after { position: absolute; inset: 0; }
.compare__clip {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
  transition: clip-path .4s var(--ease);
  will-change: clip-path;
}
.compare.is-dragging .compare__clip { transition: none; }
.compare__label {
  position: absolute; top: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(30,40,66,.55); backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: var(--accent-soft);
  transition: left .4s var(--ease);
}
.compare.is-dragging .compare__handle { transition: none; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.compare__handle span::before {
  content: "\2194";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink); font-size: 1.1rem; font-weight: 600;
}

@media (min-width: 900px) {
  .cases__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   7. GALERIA EDITORIAL (paper-2)
   ========================================================================= */
.gallery { padding: clamp(78px, 13vw, 142px) 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 14px;
  margin-top: clamp(36px, 5vw, 52px);
}
.gallery__item { transition: transform .5s var(--ease-out); min-width: 0; }
.gallery__frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
}
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gallery__item:hover { transform: translateY(-4px); }
.gallery__item:hover .gallery__frame img { transform: scale(1.04); }
.gallery figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.gallery__label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}
.gallery__desc { font-size: .9rem; color: var(--muted); line-height: 1.5; }

@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .gallery__item:nth-child(even) { margin-top: 32px; }
}

/* =========================================================================
   8. SOBRE A AHID (broken grid)
   ========================================================================= */
.about { padding: clamp(78px, 13vw, 142px) 0; }
.about__grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.about__media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.about__text p { color: var(--text); line-height: 1.7; margin-top: 18px; }
.about__text p:first-of-type { margin-top: 24px; }
.signature { margin-top: 34px; }
.signature__rule { display: block; width: 52px; height: 2px; background: var(--accent); margin-bottom: 16px; }
.signature__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}
.signature__role { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); margin-top: 4px; }

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 42% 1fr; align-items: start; }
  .about__media { margin-top: 64px; }
  .about__text {
    position: relative; z-index: 2;
    margin-left: -48px;
    background: var(--paper);
    padding: 48px 0 48px 48px;
  }
}

/* =========================================================================
   9. INVESTIMENTO (paper-2)
   ========================================================================= */
.invest { padding: clamp(84px, 14vw, 150px) 0; }
.invest__inner { text-align: center; }
.invest__body { margin: 24px auto 0; max-width: 60ch; color: var(--text); line-height: 1.7; }
.invest .btn { margin-top: 34px; }

/* =========================================================================
   10. FAQ (paper)
   ========================================================================= */
.faq { padding: clamp(78px, 13vw, 142px) 0; }
.faq__list { margin-top: clamp(32px, 5vw, 48px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute; right: 2px; top: 31px;
  width: 16px; height: 2px;
  background: var(--accent);
  transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details[open] summary::after  { transform: rotate(-45deg); }
.faq__answer { padding-right: 48px; }
.faq__answer p { color: var(--muted); line-height: 1.65; padding-bottom: 24px; }
.faq details[open] .faq__answer { animation: faqIn .35s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   11. CTA FINAL (dark)
   ========================================================================= */
.finale { padding: clamp(84px, 15vw, 152px) 0; }
.finale__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 34px; }
.finale__media { width: 220px; flex: none; }
.finale__media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--accent); }
.finale__text { width: 100%; }
.finale__title { color: var(--paper); font-size: clamp(2.6rem, 7vw, 4.4rem); }
.finale__sub { margin: 22px auto 0; max-width: 54ch; color: rgba(250,248,245,.82); line-height: 1.65; }
.finale .btn { margin-top: 32px; }

@media (min-width: 900px) {
  .finale__inner { flex-direction: row-reverse; align-items: center; justify-content: center; gap: 64px; text-align: left; }
  .finale__media { width: 280px; flex: none; }
  .finale__text { width: auto; max-width: 600px; }
  .finale__sub { margin-left: 0; }
}

/* =========================================================================
   12. LOCALIZAÇÃO (paper)
   ========================================================================= */
.local { padding: clamp(72px, 12vw, 130px) 0; }
.local__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.local__data { margin-top: 28px; }
.local__row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.local__row:first-child { border-top: 0; }
.local__row dt {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.local__row dd { color: var(--text); line-height: 1.5; min-width: 0; }
.local__row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.local__map {
  aspect-ratio: 4/3;
  background: var(--paper-2);
  border-radius: 8px;
  overflow: hidden;
}
.local__map iframe { display: block; }

@media (min-width: 900px) {
  .local__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

/* =========================================================================
   FOOTER (dark)
   ========================================================================= */
.footer { padding: clamp(48px, 8vw, 72px) 0; }
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__logo img { height: 26px; width: auto; }
.footer__meta p { font-size: .82rem; color: rgba(250,248,245,.65); line-height: 1.6; }
.footer__credential { color: rgba(250,248,245,.82) !important; }
.footer__info { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(175,183,207,.18); }
.footer__info p { font-size: .78rem; }
.footer__links { margin-top: 14px; display: flex; gap: 10px; font-size: .82rem; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(175,183,207,.4); }
.footer__links span { color: rgba(250,248,245,.4); }
.footer__legal { margin-top: 14px; }
.footer a { color: var(--mist); text-decoration: none; }
.footer a:hover { color: var(--accent-soft); }

@media (min-width: 900px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer__meta { text-align: right; max-width: 62ch; }
  .footer__links { justify-content: flex-end; }
}

/* Páginas legais (política de privacidade / termos) */
.legal { padding: 140px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-bottom: 10px; }
.legal .legal__updated { color: var(--muted); font-size: .85rem; margin-bottom: 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 450; font-size: 1.5rem; color: var(--ink); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* =========================================================================
   MODAL (form qualificador)
   ========================================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(38,49,74,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative; z-index: 2;
  width: 100%; max-width: 480px;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 12px;
  padding: 36px clamp(22px, 5vw, 38px);
  box-shadow: 0 30px 80px rgba(30,40,60,.35);
}
.modal[aria-hidden="false"] .modal__dialog { animation: modalIn .4s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--paper-2); color: var(--ink); }

.modal__title { color: var(--ink); font-size: clamp(1.7rem, 5vw, 2.1rem); margin: 8px 0 6px; }
.modal__sub { color: var(--muted); font-size: .95rem; line-height: 1.55; margin-bottom: 24px; }
.modal .eyebrow { margin-bottom: 10px; }

/* form fields */
.field { border: 0; padding: 0; margin: 0 0 18px; }
.field label, .field legend {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.field--q legend { line-height: 1.4; margin-bottom: 12px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #A9AAB2; }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(174,125,96,.15);
}
.field input.is-invalid {
  border-color: #B23A3A;
  box-shadow: 0 0 0 3px rgba(178,58,58,.14);
}
.field--q.is-invalid legend { color: #B23A3A; }
.field--q.is-invalid .pill-opt span { border-color: rgba(178,58,58,.45); }
.lead-form__error { color: #B23A3A; font-size: .85rem; line-height: 1.4; margin: 10px 0 0; }

/* intl-tel-input */
.iti { display: block; width: 100%; }
.field .iti input { width: 100%; }

/* radio pills */
.pills { display: grid; gap: 10px; }
.pills--2, .pills--3 { grid-template-columns: 1fr; }
.pill-opt { position: relative; }
.pill-opt input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; margin: 0;
}
.pill-opt span {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.pill-opt input:checked + span {
  border-color: var(--accent);
  background: rgba(174,125,96,.08);
  color: var(--ink);
  font-weight: 500;
}
.pill-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(174,125,96,.18); }

@media (min-width: 420px) {
  .pills--2 { grid-template-columns: 1fr 1fr; }
}

#lead-submit { margin-top: 8px; }
.modal__legal { margin-top: 14px; text-align: center; font-size: .72rem; color: var(--muted); }

/* success step */
.success { text-align: center; padding: 22px 0 8px; }
.success__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(174,125,96,.12); color: var(--accent);
  margin-bottom: 18px;
}
.success h2 { color: var(--ink); font-size: clamp(1.6rem, 4.6vw, 2rem); margin-bottom: 8px; }
#success-msg { margin-top: 4px; color: var(--text); font-size: 1.05rem; line-height: 1.6; max-width: 34ch; margin-inline: auto; }

/* =========================================================================
   REVEAL
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .gallery__item:hover { transform: none; }
  .gallery__item:hover .gallery__frame img { transform: none; }
  .btn--pill::before, .btn--ghost-light::before, .btn--outline-light::before { display: none; }
  .timeline__line::after { transition: none; }
}
