/* ==========================================================================
   Clínica Vitae — Saúde Integral
   Azul-marinho, dourado champanhe, branco e azul-petróleo.
   Playfair Display (títulos) + Montserrat (texto).
   ========================================================================== */

/* Fontes hospedadas no próprio site (subconjunto latino, cobre todo o português) */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/playfair-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/playfair-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/montserrat-400-600.woff2') format('woff2');
}

:root {
  --navy: #0B1F3B;
  --navy-deep: #071429;
  --navy-2: #132B4D;
  --gold: #D4AF7C;
  --gold-hover: #E2C396;
  --gold-light: #E9D5B5;           /* texto pequeno dourado sobre azul-petróleo */
  --gold-ink: #86673A;             /* dourado escurecido: texto sobre fundo claro (4.8:1) */
  --gold-line: rgba(212, 175, 124, .5);
  --gold-faint: rgba(212, 175, 124, .18);
  --petrol: #1F5A6B;
  --white: #FFFFFF;
  --paper: #FAF7F2;
  --ink: #0B1F3B;
  --ink-2: #44536A;
  --line: rgba(11, 31, 59, .12);
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .76);
  --on-dark-3: rgba(255, 255, 255, .58);
  --line-dark: rgba(255, 255, 255, .14);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --sec: clamp(88px, 11vw, 168px);
  --topbar: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--topbar); scrollbar-gutter: stable; }
/* toque: sem zoom por dois toques (e sem a espera de 300 ms que ele causa); o zoom de
   pinça continua livre. Repetido nas áreas com rolagem própria, onde o valor não herda. */
html, body, a, button, input, label, select, textarea, dialog, .drawer__panel { touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
/* fotos abaixo da dobra: o main.js baixa depois da foto principal e elas surgem suavemente */
img[data-src], img.lz { opacity: 0; }
img.lz { transition: opacity .6s var(--ease-out); }
img.lz.is-loaded { opacity: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
/* seções que recebem foco ao navegar pelo menu não ganham contorno */
section[tabindex="-1"]:focus { outline: none; }
.on-light :focus-visible { outline-color: var(--navy); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-weight: 600; font-size: 14px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.display em { font-style: italic; }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .26em; text-transform: uppercase;
}
.eyebrow__n {
  display: inline-flex; align-items: center; gap: 14px;
  font: italic 400 15px/1 var(--serif); letter-spacing: 0;
}
.eyebrow__n::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .55; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn .icon { width: 17px; height: 17px; transition: transform .35s var(--ease-out); }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--line-light { border: 1px solid rgba(255, 255, 255, .42); color: var(--white); }
.btn--line-dark { border: 1px solid rgba(11, 31, 59, .32); color: var(--navy); }
/* efeitos de passar o mouse só onde existe mouse: no celular eles ficariam
   "presos" no botão depois do toque */
@media (hover: hover) {
  .btn:hover .icon--arrow { transform: translateX(4px); }
  .btn--gold:hover { background: var(--gold-hover); }
  .btn--navy:hover { background: var(--petrol); }
  .btn--line-light:hover { border-color: var(--gold); color: var(--gold); }
  .btn--line-dark:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 11.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 0; min-height: 44px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- ornamento de folhas ---------- */
.leaf { color: var(--gold); opacity: .55; pointer-events: none; }
.leaf path { vector-effect: non-scaling-stroke; }

/* ==========================================================================
   Animações de entrada (hero)
   ========================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* a foto entra só com movimento (sem esmaecer): aparece no primeiro quadro em que
   carrega, o que conta para as métricas de pintura, e desliza para o lugar */
@keyframes riseIn { from { transform: translateY(4vh) scale(1.03); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.a-fade-in { animation: fadeIn 1.2s ease-out both; }
/* entrada rápida: tudo assentado em ~1,3 s, sem atrasar a leitura */
.a-rise-in { animation: riseIn 1.2s var(--ease-out) .1s both; }
.a-fade-up { animation: fadeUp .8s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.a-line { transform-origin: left; animation: drawLine 1s var(--ease-io) .5s both; }

/* revelação ao rolar (ativada pelo main.js) */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Barra fixa (aparece depois da hero)
   ========================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 45;
  height: var(--topbar);
  background: rgba(7, 20, 41, .95);
  border-bottom: 1px solid var(--gold-faint);
  color: var(--white);
  transform: translateY(-101%);
  transition: transform .6s var(--ease-io);
}
.topbar.is-visible { transform: none; }
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.topbar__nav { display: none; }
.topbar__nav ul { display: flex; gap: clamp(18px, 2vw, 32px); }
.topbar__nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 13px; font-weight: 500; color: var(--on-dark-2); transition: color .3s;
}
.topbar__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.topbar__nav a:hover, .topbar__nav a[aria-current="true"] { color: var(--white); }
.topbar__nav a:hover::after, .topbar__nav a[aria-current="true"]::after { transform: scaleX(1); }
.topbar__cta { display: none; }

@media (min-width: 1080px) {
  .topbar__nav { display: block; }
  .topbar__cta { display: inline-flex; }
}
/* desfoque só no computador: no celular ele é refeito a cada quadro da rolagem */
@media (min-width: 1080px) and (hover: hover) {
  .topbar { background: rgba(7, 20, 41, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* logotipo (peças do arquivo oficial, sem alteração de proporção) */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__sym { height: 52px; width: auto; }
.brand__name { height: 38px; width: auto; }
.topbar .brand__sym { height: 40px; }
.topbar .brand__name { height: 29px; }

/* ==========================================================================
   Menu mobile (hambúrguer + gaveta)
   ========================================================================== */
.burger {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(12px, calc(var(--gutter) - 10px)); z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
}
.burger__bars { position: relative; width: 24px; height: 16px; }
.burger__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease-io), opacity .3s ease, top .5s var(--ease-io);
}
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { top: 7px; }
.burger__bars span:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(4, 12, 26, .55);
  opacity: 0; transition: opacity .5s ease;
  touch-action: none; /* arrastar no fundo escurecido não rola a página por trás */
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 84%; max-width: 400px;
  display: flex; flex-direction: column;
  padding: 88px 32px max(32px, calc(env(safe-area-inset-bottom) + 16px)); overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--navy-deep); color: var(--white);
  border-left: 1px solid var(--gold-faint);
  transform: translateX(100%);
  transition: transform .6s var(--ease-io);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__label {
  font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.drawer__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 40px; }
.drawer__nav a { display: block; padding: 6px 0; font: 400 32px/1.15 var(--serif); }
.drawer__contact { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 36px; }
.drawer__contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--on-dark-2); }
.drawer__nav a:active, .drawer__contact a:active { color: var(--gold); }
@media (hover: hover) { .drawer__nav a:hover, .drawer__contact a:hover { color: var(--gold); } }
.drawer__contact .icon { width: 17px; height: 17px; color: var(--gold); }
.drawer__cta { margin-top: auto; width: 100%; }

/* itens da gaveta entram em sequência */
.drawer [data-stagger] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: 0ms;
}
.drawer.is-open [data-stagger] { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }

@media (min-width: 1080px) {
  .burger, .drawer { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  /* svh (e não dvh): no tablet, a altura não muda quando a barra do navegador some ao rolar */
  height: 100vh; height: 100svh; min-height: 680px;
  overflow: hidden;
  background: var(--navy); color: var(--white);
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(46% 58% at 76% 40%, rgba(212, 175, 124, .12), transparent 70%),
    radial-gradient(70% 55% at 0% 110%, rgba(31, 90, 107, .45), transparent 70%);
}

.hero__head {
  position: absolute; inset: 0 0 auto; z-index: 30;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px var(--gutter) 0;
}
.hero__nav { display: none; }
.hero__meta, .hero__col { font-size: 13px; line-height: 1.5; }
.hero__meta { color: var(--gold); }
.hero__meta { padding-top: 3px; }
.hero__col { display: flex; flex-direction: column; }
.hero__col a { display: inline-block; padding: 3px 0; color: var(--on-dark-2); transition: color .3s; }
.hero__col a:hover { color: var(--gold); }

@media (min-width: 1080px) {
  .hero__nav { display: flex; align-items: flex-start; gap: clamp(36px, 4.4vw, 80px); padding-top: 6px; }
  /* o letreiro nunca passa por baixo dos links do menu, mesmo em telas baixas */
  .hero__marquee { top: max(14vh, 150px) !important; }
}

/* nome gigante em movimento — atrás do retrato */
.hero__marquee {
  position: absolute; inset-inline: 0; top: 14vh; z-index: 10;
  overflow: hidden; pointer-events: none;
}
.marquee {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--serif); font-weight: 400;
  font-size: min(26vh, 19vw); line-height: 1; letter-spacing: -.02em;
  color: #F3EEE6;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
/* fora da tela, o letreiro para (economiza bateria e processamento) */
.hero.is-away .marquee { animation-play-state: paused; }
.marquee span { padding-right: .3em; }
.marquee i { font-style: italic; }
.marquee b { font-weight: 400; color: var(--gold); }

/* retrato em destaque: moldura de arco suave que desce até o fim da dobra.
   A foto vem sem filtro nem sobreposição, para manter as cores naturais. */
.hero__portrait {
  position: absolute; z-index: 20;
  right: clamp(24px, 7vw, 140px); top: max(15vh, 150px); bottom: 0;
  width: min(40vw, calc((100vh - max(15vh, 150px)) * .74));
  margin: 0;
}
.hero__portrait::before {
  content: ''; position: absolute; inset: -16px -16px 0; z-index: 1;
  border: 1px solid var(--gold-line); border-bottom: 0;
  border-radius: 36% 36% 0 0 / 26% 26% 0 0; pointer-events: none;
}
.hero__ring {
  position: absolute; z-index: -1; left: 50%; top: -10%;
  width: 124%; aspect-ratio: 1; transform: translateX(-50%);
  border: 1px solid rgba(212, 175, 124, .3); border-radius: 50%;
}
.hero__arch {
  position: relative; width: 100%; height: 100%;
  border-radius: 36% 36% 0 0 / 26% 26% 0 0; overflow: hidden;
  background: #E9E2D9; /* tom da parede da foto, enquanto ela carrega */
}
.hero__arch picture { display: contents; }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 0; }
.hero__caption {
  position: absolute; z-index: 2; left: -44px; bottom: clamp(88px, 15vh, 150px);
  display: grid; gap: 3px; padding: 14px 20px 14px 18px;
  background: rgba(7, 20, 41, .9); color: var(--on-dark-2);
  border: 1px solid var(--gold-faint); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  font-size: 12px; line-height: 1.45;
}
.hero__caption strong { font: italic 400 17px/1.25 var(--serif); color: var(--white); }
/* com o menu em colunas no topo, o círculo cruzaria os links */
@media (min-width: 1080px) { .hero__ring { display: none; } }
/* notebook pequeno / tablet deitado: retrato mais estreito e legenda por dentro da foto */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .hero__portrait { width: min(36vw, calc((100vh - max(15vh, 150px)) * .74)); }
  .hero__caption { left: 16px; }
}

.hero__content {
  position: absolute; z-index: 30;
  left: var(--gutter); bottom: calc(7rem + clamp(28px, 5vh, 56px));
  max-width: min(760px, 54vw);
}
.hero__eyebrow { color: var(--gold); }
.hero__title {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, min(4vw, 6.6vh), 64px);
  line-height: 1.04; letter-spacing: -.015em;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { margin-top: 20px; max-width: 46ch; color: var(--on-dark-2); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; }
.hero__ctas { margin-top: clamp(24px, 4vh, 36px); display: flex; flex-wrap: wrap; gap: 12px; }

.hero__rule {
  position: absolute; z-index: 10;
  left: var(--gutter); right: var(--gutter); bottom: 7rem;
  height: 1px; background: var(--gold); opacity: .75;
}
.hero__foot {
  position: absolute; z-index: 30; inset: auto 0 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 var(--gutter) 26px;
  font-size: 12.5px; line-height: 1.6; color: var(--on-dark-3);
}

@media (max-height: 760px) and (min-width: 900px) {
  .hero__marquee { top: 12vh; }
  .marquee { font-size: min(23vh, 19vw); }
  .hero__lead { display: none; }
}

/* hero no celular e tablet: composição própria, em fluxo */
@media (max-width: 899.98px) {
  .hero {
    height: auto; min-height: 100svh;
    display: flex; flex-direction: column;
    padding: 96px var(--gutter) 0;
  }
  .hero__head { padding-top: 18px; }
  .brand__sym { height: 44px; }
  .brand__name { height: 32px; }
  .hero__marquee { top: clamp(104px, 15svh, 150px); }
  .marquee { font-size: clamp(92px, 16svh, 170px); }
  .hero__portrait {
    position: relative; right: auto; top: auto; bottom: auto;
    width: min(74vw, 400px); aspect-ratio: .74;
    align-self: flex-end; margin-top: clamp(40px, 7svh, 84px); margin-right: 4px;
  }
  .hero__caption { left: -52px; bottom: 18px; padding: 11px 16px 11px 14px; font-size: 11.5px; }
  .hero__caption strong { font-size: 15.5px; }
  .hero__content { position: relative; left: auto; bottom: auto; max-width: 620px; margin-top: 40px; }
  .hero__title { font-size: clamp(34px, 8.6vw, 54px); }
  .hero__rule { position: relative; left: auto; right: auto; bottom: auto; margin-top: 48px; }
  .hero__foot { position: relative; padding: 18px 0 26px; }
}
@media (max-width: 520px) {
  .hero__ctas .btn { width: 100%; }
  .hero__foot { font-size: 12px; }
}

/* ==========================================================================
   Seções
   ========================================================================== */
/* clip (e não hidden) corta os ornamentos sem virar área de rolagem: assim os
   títulos laterais "grudentos" (position: sticky) funcionam no computador */
.sec { position: relative; padding-block: var(--sec); overflow: hidden; overflow: clip; }
/* seções abaixo da dobra só são montadas quando chegam perto da tela:
   o primeiro carregamento no celular fica bem mais leve (âncoras testadas) */
main > .sec, .footer { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
/* ...e depois da abertura o main.js monta todas, uma por vez, em tempo ocioso */
main > .sec.is-rendered, .footer.is-rendered { content-visibility: visible; }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--white { background: var(--white); color: var(--ink); }
.sec--navy { background: var(--navy); color: var(--white); }
.sec--deep { background: var(--navy-deep); color: var(--white); }
.sec--petrol { background: var(--petrol); color: var(--white); }

.sec--paper .eyebrow, .sec--white .eyebrow { color: var(--gold-ink); }
.sec--navy .eyebrow, .sec--deep .eyebrow { color: var(--gold); }
.sec--petrol .eyebrow { color: var(--gold-light); }
.sec--paper .display em, .sec--white .display em { color: var(--gold-ink); }
.sec--navy .display em, .sec--deep .display em { color: var(--gold); }
.sec--petrol .display em { color: var(--gold-light); }
.sec--paper .lead, .sec--white .lead { color: var(--ink-2); }
.sec--navy .lead, .sec--deep .lead, .sec--petrol .lead { color: var(--on-dark-2); }

.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- 01 · A clínica ---------- */
.about__head { grid-column: 1 / -1; display: grid; gap: 28px; }
.about__title { max-width: 13ch; }
.about__text { display: grid; gap: 18px; max-width: 520px; }
.about__text p:not(.lead) { color: var(--ink-2); }
.about__photo { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.about__photo img { width: 100%; aspect-ratio: 720 / 330; object-fit: cover; border-radius: 2px; }
.about__photo figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.about__photo::before {
  content: ''; position: absolute; left: -14px; top: -14px; width: 42%; height: 60%;
  border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); opacity: .8; pointer-events: none;
}
.diffs { margin-top: clamp(56px, 7vw, 96px); display: grid; border-top: 1px solid var(--line); }
.diffs li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.diffs .icon { width: 26px; height: 26px; color: var(--gold-ink); margin-top: 3px; }
.diffs h3 { font: 600 15px/1.35 var(--sans); }
.diffs p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.about__sign {
  grid-column: 1 / -1; margin-top: clamp(64px, 8vw, 120px);
  display: flex; align-items: center; justify-content: center; gap: 28px;
  font: italic 400 clamp(24px, 2.6vw, 34px)/1.3 var(--serif); text-align: center; color: var(--navy);
}
.about__sign .leaf { width: 120px; height: 60px; color: var(--gold-ink); flex: none; }
.about__sign .leaf--flip { transform: scaleX(-1); }

@media (min-width: 900px) {
  .about__head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: clamp(24px, 4vw, 64px); }
  .about__head .eyebrow { grid-column: 1 / -1; }
  .about__photo { grid-column: 1 / span 7; }
  .diffs { grid-column: 9 / -1; }
}
@media (max-width: 899.98px) {
  .about__photo, .diffs { grid-column: 1 / -1; }
  .about__sign .leaf { display: none; }
}

/* ---------- 02 · O padrão ---------- */
.standard { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
.standard__video { position: relative; justify-self: center; width: min(100%, 380px); }
.standard__frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 999px 999px 4px 4px; background: var(--navy-2);
}
.standard__frame video { width: 100%; height: 100%; object-fit: cover; }
.standard__video::before {
  content: ''; position: absolute; inset: -14px -14px 24px; border: 1px solid var(--gold-line); border-bottom: 0;
  border-radius: 999px 999px 0 0; pointer-events: none;
}
.vplay {
  position: absolute; inset: 0; isolation: isolate; display: grid; place-items: center; align-content: end; gap: 14px;
  padding-bottom: 18%;
  color: var(--white); text-align: center;
}
.vplay::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7, 20, 41, .78), rgba(7, 20, 41, 0) 55%);
}
.vplay__poster { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.vplay__btn {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 0 0 10px rgba(212, 175, 124, .18);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (hover: hover) { .vplay:hover .vplay__btn { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(212, 175, 124, .14); } }
.vplay:active .vplay__btn { transform: scale(.95); }
.vplay__btn .icon { width: 26px; height: 26px; margin-left: 4px; }
.vplay__txt { font-size: 13px; letter-spacing: .04em; color: var(--on-dark-2); }
.standard__video figcaption { margin-top: 16px; text-align: center; font-size: 13px; color: var(--on-dark-3); }

.quote p { margin-top: 28px; font: italic 400 clamp(30px, 3.4vw, 50px)/1.18 var(--serif); text-wrap: balance; }
.quote p em { color: var(--gold); }
.quote footer { margin-top: 20px; display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .08em; color: var(--on-dark-2); }
.quote footer::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.principles { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-dark); }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.principles span { font: italic 400 20px/1.4 var(--serif); color: var(--gold); }
.principles p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--on-dark); }

.triad { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-2); }
.triad i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

@media (min-width: 900px) {
  .standard { grid-template-columns: 5fr 7fr; }
}

/* ---------- 03 · Especialidades ---------- */
.svc { display: grid; gap: clamp(40px, 5vw, 72px); }
.svc__intro { display: grid; gap: 22px; align-content: start; }
.svc__intro .btn { justify-self: start; margin-top: 8px; }
.svc__list { border-top: 1px solid var(--line); counter-reset: svc; }
.svc-row {
  position: relative;
  display: grid; grid-template-columns: 40px 1fr; gap: 6px 18px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease-out);
}
.svc-row::before {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold-ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.svc-row:focus-within::before { transform: scaleX(1); }
@media (hover: hover) { .svc-row:hover::before { transform: scaleX(1); } }
.svc-row__icon { width: 30px; height: 30px; color: var(--gold-ink); margin-top: 6px; }
.svc-row__num { font: italic 400 14px/1 var(--serif); color: var(--gold-ink); }
.svc-row__title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.svc-row h3 { font: 400 clamp(26px, 2.3vw, 34px)/1.15 var(--serif); transition: transform .5s var(--ease-out); }
@media (hover: hover) { .svc-row:hover h3 { transform: translateX(6px); } }
.svc-row--static h3 { font-size: 20px; }
.svc-row__cat { margin-top: 8px; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.svc-row__desc { margin-top: 8px; max-width: 58ch; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.svc-row__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 6px; }
.svc-row__actions .link-arrow { color: var(--navy); }
.svc-row__actions .link-arrow--quiet { color: var(--ink-2); font-weight: 500; }
@media (hover: hover) { .svc-row__actions .link-arrow--quiet:hover { color: var(--navy); } }

@media (min-width: 900px) {
  .svc { grid-template-columns: 4fr 8fr; align-items: start; }
  .svc__intro { position: sticky; top: calc(var(--topbar) + 40px); }
  .svc-row { grid-template-columns: 56px 1fr auto; padding: 30px 12px 30px 0; }
  .svc-row__actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; margin: 0; }
}

/* ---------- 04 · Estética do sorriso ---------- */
.aesth { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; }
.aesth__body { display: grid; gap: 26px; align-content: start; }
.aesth__body .btn { justify-self: start; }
.words { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 8px 0 6px; }
.words li {
  padding-bottom: 8px; border-bottom: 1px solid var(--gold);
  font: 400 12.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--white);
}
.words-note { font-size: 13px; color: var(--on-dark-3); margin-top: -12px; }

.compare { position: relative; }
.compare__stage {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 640 / 250; background: var(--navy-2);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  /* arrastar na horizontal move o corte; na vertical, a página rola normalmente */
  touch-action: pan-y; cursor: ew-resize;
}
.compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--white);
  transform: translateX(-.5px); pointer-events: none;
}
.compare__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF7C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1px solid var(--gold);
}
.compare__tag {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(7, 20, 41, .72); color: var(--white);
  font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; pointer-events: none;
}
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }
/* o controle deslizante fica para o teclado e leitores de tela; o dedo e o mouse
   são tratados pelo main.js em toda a foto (no iPhone, um range invisível só
   responderia se o toque acertasse exatamente o botão dele) */
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none;
}
.compare__stage.is-dragging .compare__handle::after { transform: translate(-50%, -50%) scale(1.08); }
.compare__handle::after { transition: transform .25s var(--ease-out); }
.compare__range:focus-visible + .compare__focus { opacity: 1; }
.compare__focus { position: absolute; inset: 0; outline: 2px solid var(--gold); outline-offset: 3px; opacity: 0; pointer-events: none; }
.compare figcaption { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--on-dark-3); max-width: 60ch; }
.compare__ornament { position: absolute; right: -40px; top: -86px; width: 220px; height: 110px; }

@media (min-width: 900px) {
  .aesth { grid-template-columns: 5fr 7fr; }
}

/* ---------- 05 · Consultas e processo ---------- */
.consult__head { display: grid; gap: 24px; }
.journey { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 36px; position: relative; }
.journey li { position: relative; padding-top: 30px; }
.journey li::before {
  content: ''; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-light); box-shadow: 0 0 0 6px rgba(233, 213, 181, .16);
}
.journey__n { font: italic 400 15px/1 var(--serif); color: var(--gold-light); }
.journey h3 { margin-top: 12px; font: 400 26px/1.2 var(--serif); }
.journey p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--on-dark-2); max-width: 34ch; }
.consult__info {
  margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .2);
  display: grid; gap: 36px;
}
.consult__info h3 { font: 600 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.consult__info ul, .consult__info p { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--on-dark-2); }
.consult__info li { position: relative; padding-left: 18px; }
.consult__info li + li { margin-top: 8px; }
.consult__info li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--gold-light); }
.consult__cta { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }

@media (min-width: 900px) {
  .consult__head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: clamp(24px, 4vw, 64px); }
  .consult__head .eyebrow { grid-column: 1 / -1; }
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
  .journey::before {
    content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, var(--gold-light), rgba(233, 213, 181, .15));
  }
  .consult__info { grid-template-columns: 1fr 1fr 1fr; }
  .consult__cta { justify-content: flex-end; }
}

/* ---------- 06 · A doutora ---------- */
.doctor { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
/* 22px a menos: a moldura dourada deslocada cabe inteira na tela do celular */
.doctor__photo { position: relative; width: min(100% - 22px, 480px); justify-self: center; }
.doctor__photo::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); pointer-events: none;
}
.doctor__photo img { position: relative; width: 100%; aspect-ratio: 600 / 900; object-fit: cover; object-position: 50% 20%; }
.doctor__photo figcaption {
  position: absolute; left: 0; bottom: 0; transform: translateY(50%);
  padding: 10px 16px; background: var(--navy); color: var(--white);
  font: 600 10.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.doctor__body { display: grid; gap: 22px; align-content: start; }
.doctor__role { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: -8px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 10px; }
.facts li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); color: var(--navy); }
.facts span { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.doctor__cro { font-size: 13px; color: var(--ink-2); }
.doctor__cro .pending { color: var(--gold-ink); }
.doctor__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.doctor__cta .link-arrow { color: var(--navy); }

@media (min-width: 900px) {
  .doctor { grid-template-columns: 5fr 7fr; }
}
@media (max-width: 899.98px) {
  .doctor__photo { justify-self: start; } /* foto + moldura, juntas, ficam centralizadas */
}

/* ---------- 07 · Agendamento ---------- */
.booking { display: grid; gap: clamp(44px, 5vw, 80px); align-items: start; }
.booking__intro { display: grid; gap: 24px; align-content: start; }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid var(--gold-line); border-radius: 12px;
  font-size: 14.5px; line-height: 1.6; color: var(--white);
}
.notice .icon { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.booking__direct { font-size: 14.5px; color: var(--on-dark-2); }
.booking__direct a { color: var(--gold); border-bottom: 1px solid currentColor; }
.booking__leaf { width: 220px; height: 110px; margin-top: 12px; }

.bform {
  position: relative;
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.bform__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.bform__count { font: 600 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-align: right; }

/* indicador de progresso: 3 pontos + pílula dourada que cresce (mola) */
.stepper { position: relative; display: flex; align-items: center; gap: 24px; height: 8px; margin-left: 8px; }
.stepper__dot { position: relative; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: rgba(11, 31, 59, .18); transition: background-color .4s ease; }
.stepper__pill {
  position: absolute; left: -8px; top: -8px; height: 24px; width: 24px; border-radius: 999px;
  background: var(--gold);
  transition: width .6s var(--spring);
}
.bform[data-step="2"] .stepper__pill { width: 56px; }
.bform[data-step="3"] .stepper__pill, .bform[data-step="done"] .stepper__pill { width: 88px; }
.bform[data-step="1"] .stepper__dot:nth-of-type(1),
.bform[data-step="2"] .stepper__dot:nth-of-type(-n+2),
.bform[data-step="3"] .stepper__dot,
.bform[data-step="done"] .stepper__dot { background: var(--navy); }

.bstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.bstep.is-entering { animation: fadeUp .5s var(--ease-out) both; }
.bstep__title { padding: 0; font: 400 clamp(26px, 2.4vw, 32px)/1.15 var(--serif); color: var(--navy); margin-bottom: 8px; }
.bstep__sub { font-size: 14.5px; color: var(--ink-2); margin-bottom: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(11, 31, 59, .2); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.chip span::before {
  content: ''; width: 0; height: 14px; overflow: hidden; transition: width .3s var(--ease-out);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF7C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") left center / 14px no-repeat;
}
@media (hover: hover) { .chip:hover span { border-color: var(--navy); } }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:checked + span::before { width: 14px; }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }

.subfield { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.subfield legend, .field label { display: block; padding: 0; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field + .field { margin-top: 22px; }
.field input, .field textarea {
  width: 100%; min-width: 0; min-height: 52px; padding: 14px 16px;
  /* 16px: abaixo disso o iPhone dá zoom sozinho ao tocar no campo */
  font: 400 16px/1.4 var(--sans); color: var(--navy);
  background: var(--paper); border: 1px solid rgba(11, 31, 59, .18); border-radius: 12px;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
/* data e hora no iPhone: sem o visual cinza do sistema, alinhadas à esquerda como os outros campos */
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; }
.field input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field textarea { resize: vertical; min-height: 96px; }
@media (hover: hover) { .field input:hover, .field textarea:hover { border-color: rgba(11, 31, 59, .4); } }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(212, 175, 124, .55); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A3392E; }
.field-row { display: grid; gap: 22px; }
.field-row .field + .field { margin-top: 0; }
.hint { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.field-error { margin-top: 8px; display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 500; color: #A3392E; }
.field-error .icon { width: 16px; height: 16px; }

.summary { margin-top: 26px; padding: 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.summary__title { font: 600 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
.summary dl { display: grid; gap: 10px; }
.summary dl > div { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: baseline; font-size: 14.5px; }
.summary dt { color: var(--ink-2); }
.summary dd { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.summary__edit { font-size: 12.5px; font-weight: 600; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

/* navegação do formulário: "Voltar" nasce do nada e "Continuar" encolhe */
.stepnav { display: flex; align-items: stretch; margin-top: 32px; }
.stepnav__back {
  flex: none; overflow: hidden; white-space: nowrap;
  width: 0; margin-right: 0; padding: 0; opacity: 0; transform: scale(.8);
  min-height: 54px; border-radius: 999px;
  background: #EFF1F4; color: var(--navy); font-size: 14px; font-weight: 600;
  transition: width .55s var(--spring), margin .55s var(--spring), opacity .2s ease, transform .55s var(--spring), background-color .25s ease;
}
@media (hover: hover) { .stepnav__back:hover { background: #E3E7EC; } }
.bform:not([data-step="1"]) .stepnav__back { width: 104px; margin-right: 6px; opacity: 1; transform: none; }
.stepnav__next {
  flex: 1; min-height: 54px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy); color: var(--white); font-size: 14.5px; font-weight: 600;
  transition: background-color .3s ease;
}
@media (hover: hover) { .stepnav__next:hover { background: var(--petrol); } }
.stepnav__next:active, .stepnav__back:active { transform: scale(.98); }
.stepnav__next:disabled { cursor: progress; background: var(--petrol); }
.stepnav__check { display: none; width: 18px; height: 18px; }
.bform[data-step="3"] .stepnav__check { display: block; animation: pop .5s var(--spring) both; }
.stepnav__spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.stepnav__next.is-loading .stepnav__spin { display: block; }
.stepnav__next.is-loading .stepnav__check { display: none; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.bform__legal { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); text-align: center; }
.bform__legal button { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }

.bform__done { text-align: center; padding: 12px 0 4px; }
.bform__done .icon { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--gold-ink); }
.bform__done h3 { font: 400 30px/1.15 var(--serif); color: var(--navy); }
.bform__done p { margin: 14px auto 0; max-width: 40ch; color: var(--ink-2); font-size: 15px; }
.bform__done .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bform__alert { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #FBEDEB; color: #7E2A21; font-size: 14px; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .booking { grid-template-columns: 5fr 7fr; }
}
/* o texto ao lado do formulário acompanha a rolagem só quando cabe inteiro na tela */
@media (min-width: 900px) and (min-height: 820px) {
  .booking__intro { position: sticky; top: calc(var(--topbar) + 40px); }
}

/* ---------- 08 · Localização ---------- */
.loc { display: grid; gap: clamp(44px, 5vw, 80px); align-items: center; }
.loc__body { display: grid; gap: 24px; align-content: start; }
.loc__list { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.loc__list > div { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.loc__list .icon { width: 22px; height: 22px; color: var(--gold-ink); grid-row: span 2; margin-top: 2px; }
.loc__list dt { font: 600 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.loc__list dd { font-size: 16px; color: var(--navy); line-height: 1.55; }
.loc__list dd a { border-bottom: 1px solid var(--gold); }
.loc__list .pending { color: var(--ink-2); font-size: 15px; }
.loc__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.map { position: relative; aspect-ratio: 4 / 3; min-height: 340px; border-radius: 4px; overflow: hidden; background: var(--navy); color: var(--white); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 32px; text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 56px),
    linear-gradient(115deg, transparent 46%, rgba(212, 175, 124, .14) 46% 47.5%, transparent 47.5%),
    linear-gradient(20deg, transparent 58%, rgba(255, 255, 255, .06) 58% 60%, transparent 60%),
    var(--navy);
}
.map__pin { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.map__pin::before, .map__pin::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-line); }
.map__pin::after { inset: -22px; border-color: var(--gold-faint); }
.map__pin .icon { width: 34px; height: 34px; color: var(--gold); }
.map__addr { font: 400 22px/1.3 var(--serif); }
.map__note { font-size: 12.5px; color: var(--on-dark-3); max-width: 36ch; }
.map [data-load-map]:disabled { cursor: progress; opacity: .75; }

@media (min-width: 900px) {
  .loc { grid-template-columns: 5fr 7fr; }
}

/* ---------- 09 · Perguntas frequentes ---------- */
.faq { display: grid; gap: clamp(40px, 5vw, 72px); }
.faq__head { display: grid; gap: 22px; align-content: start; }
.faq__head p:not(.eyebrow) { color: var(--ink-2); }
.faq__head a { color: var(--navy); border-bottom: 1px solid var(--gold-ink); font-weight: 500; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; text-align: left;
  font: 400 clamp(19px, 1.7vw, 23px)/1.35 var(--serif); color: var(--navy);
}
.qa__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(11, 31, 59, .22); transition: background-color .3s ease, border-color .3s ease; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .4s var(--ease-out), background-color .3s ease; }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (hover: hover) { .qa__q:hover .qa__icon { border-color: var(--navy); } }
.qa__q[aria-expanded="true"] .qa__icon { background: var(--navy); border-color: var(--navy); }
.qa__q[aria-expanded="true"] .qa__icon::before, .qa__q[aria-expanded="true"] .qa__icon::after { background: var(--white); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
/* fechado = fora da leitura de tela e do Tab, sem quebrar a animação de abrir */
.qa__panel > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.qa.is-open .qa__panel > div { visibility: visible; transition-delay: 0s; }
.qa__panel p { padding: 0 60px 26px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }

@media (min-width: 900px) {
  .faq { grid-template-columns: 4fr 8fr; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--topbar) + 40px); }
}

/* ---------- 10 · Contato (fechamento) ---------- */
.closing__quote { margin-top: 30px; max-width: 22ch; font: italic 400 clamp(34px, 4.6vw, 66px)/1.1 var(--serif); text-wrap: balance; }
.closing__quote em { color: var(--gold); }
.closing__quote footer { margin-top: 24px; display: flex; align-items: center; gap: 14px; font: 400 13px/1 var(--sans); letter-spacing: .08em; color: var(--on-dark-2); }
.closing__quote footer::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.contacts { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-dark); }
.contact {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-dark);
  transition: padding .5s var(--ease-out);
}
.contact__k { font: 600 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.contact__v { grid-column: 1; font: 400 clamp(24px, 3vw, 40px)/1.15 var(--serif); overflow-wrap: anywhere; }
.contact .icon { grid-column: 2; grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--gold); transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .contact:hover { padding-left: 12px; }
  .contact:hover .icon { transform: translate(4px, -4px); }
}
.contacts__more { margin-top: 22px; font-size: 14px; line-height: 1.9; color: var(--on-dark-3); }
.contacts__more a { display: inline-block; padding: 4px 0; color: var(--on-dark-2); border-bottom: 1px solid var(--gold-line); transition: color .3s; }
@media (hover: hover) { .contacts__more a:hover { color: var(--gold); } }
.closing__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- rodapé ---------- */
.footer { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--on-dark-2); padding: 88px 0 0; border-top: 1px solid var(--gold-faint); }
.footer__grid { display: grid; gap: 44px; }
.footer__brand img { width: 220px; height: auto; aspect-ratio: 440 / 328; }
.footer__brand p { margin-top: 18px; max-width: 30ch; font: italic 400 18px/1.45 var(--serif); color: var(--white); }
.footer h2 { font: 600 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer ul { display: grid; gap: 4px; }
.footer li a, .footer address a { display: inline-block; padding: 5px 0; font-size: 14.5px; transition: color .3s; }
@media (hover: hover) { .footer li a:hover, .footer address a:hover { color: var(--gold); } }
.footer address { font-style: normal; font-size: 14.5px; line-height: 1.7; display: grid; gap: 10px; }
.footer .pending { color: var(--on-dark-3); }
.footer__legal {
  margin-top: 72px; padding-block: 26px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: 12.5px; color: var(--on-dark-3);
}
.footer__legal button { text-decoration: underline; text-underline-offset: 3px; color: var(--on-dark-2); }
.footer__ig { display: grid; }
/* marca d'água decorativa: pseudo-elemento, fica fora da leitura de tela */
.footer::after {
  content: 'Vitae'; display: block;
  font: italic 400 clamp(120px, 24vw, 380px)/.8 var(--serif); letter-spacing: -.03em;
  color: rgba(212, 175, 124, .07); text-align: center; white-space: nowrap;
  margin-bottom: -.12em; user-select: none; pointer-events: none;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 35;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .55), 0 0 0 6px rgba(212, 175, 124, .14);
  transition: transform .5s var(--ease-out), opacity .5s ease, background-color .3s ease;
}
.wa-float svg { width: 27px; height: 27px; }
@media (hover: hover) { .wa-float:hover { transform: translateY(-3px); background: var(--petrol); } }
.wa-float:active { transform: scale(.94); }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: transform .5s var(--ease-out), opacity .5s ease, visibility 0s linear .5s; }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--white); color: var(--navy); font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease-out);
}
.wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) { .wa-float:hover .wa-float__tip { opacity: 1; transform: translate(0, -50%); } }
@media (max-width: 520px) { .wa-float { width: 54px; height: 54px; } .wa-float__tip { display: none; } }

/* ---------- política de privacidade ---------- */
.privacy {
  width: min(92vw, 560px); max-height: 86vh; padding: 0; border: 0; border-radius: 20px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
}
.privacy::backdrop { background: rgba(7, 20, 41, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.privacy__in { padding: clamp(26px, 4vw, 40px); display: grid; gap: 14px; }
.privacy h2 { font: 400 30px/1.15 var(--serif); color: var(--navy); }
.privacy p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.privacy .pending { padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px dashed var(--gold-ink); font-size: 13.5px; }
.privacy .btn { justify-self: start; margin-top: 8px; }

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
