/* =========================================================================
   FACES NATURAIS — One Page
   Sistema de design: Método Natural (Dr. Vinícius Resende)
   Paleta: neutros quentes (Marfim · Creme · Areia · Taupe · Cinza · Grafite · Ébano)
   Tipografia: General Sans (Fontshare) — pesos 400 e 600
   ========================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Cartela da marca */
  --marfim:  #EBEBE2;
  --creme:   #E4DED2;
  --areia:   #C9C1B2;
  --taupe:   #ADA598;
  --cinza:   #847E76;
  --grafite: #5E5850;
  --ebano:   #322D28;
  --destaque: #F2C14E;   /* único acento cromático da marca — hoje sem uso na página */

  /* Papéis */
  --bg:            var(--marfim);
  --bg-elev:       var(--creme);
  --surface:       #F3F2EC;
  --surface-hover: #DDD6C8;
  --border:        rgba(50, 45, 40, .13);
  --border-strong: rgba(50, 45, 40, .30);

  --text:       var(--ebano);
  --text-muted: var(--grafite);
  --text-dim:   #68625A;   /* Cinza quente escurecido p/ passar AA em texto pequeno */

  --accent:       var(--ebano);
  --accent-ink:   var(--marfim);
  --accent-hover: #211D19;

  /* Tipografia */
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;

  --fs-hero:  clamp(2.3rem, 4.4vw, 3.9rem);
  --fs-h2:    clamp(1.9rem, 4.2vw, 3.35rem);
  --fs-h3:    clamp(1.15rem, 1.7vw, 1.4rem);
  --fs-body:  1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  --lh-tight: 1.06;
  --lh-body:  1.6;
  --ls-tight: -.032em;
  --ls-label: .16em;

  /* Espaço */
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Forma */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Superfícies que se invertem em .section--dark */
  --glow:        rgba(201, 193, 178, .5);
  --ghost-hover: rgba(50, 45, 40, .06);
  --slot-line:   var(--taupe);
  --slot-fill-a: rgba(201, 193, 178, .18);
  --slot-fill-b: rgba(173, 165, 152, .16);

  --header-h: 64px;

  --shadow: 0 24px 60px rgba(50, 45, 40, .16);
  --shadow-sm: 0 2px 14px rgba(50, 45, 40, .07);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ebano);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--ebano); color: var(--marfim); }

/* ---------- 3. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-elev); }

/* Seção em Ébano: inverte os papéis dos tokens só dentro do bloco.
   Os componentes internos (botões, cards, bordas) não recebem nenhuma
   classe extra — eles se invertem sozinhos a partir das variáveis. */
.section--dark,
.footer--dark {
  background: var(--ebano);
  color: var(--marfim);

  --bg:            var(--ebano);
  --bg-elev:       #3C3630;
  --surface:       #3C3630;
  --surface-hover: #47403A;
  --border:        rgba(235, 235, 226, .14);
  --border-strong: rgba(235, 235, 226, .32);

  --text:       var(--marfim);
  --text-muted: #C9C3B9;
  --text-dim:   #A79F94;
  --taupe:      #6E675E;

  --accent:       var(--marfim);
  --accent-ink:   var(--ebano);
  --accent-hover: #D9D9CF;

  --glow:        rgba(235, 235, 226, .07);
  --ghost-hover: rgba(235, 235, 226, .08);
  --slot-line:   #6E675E;
  --slot-fill-a: rgba(235, 235, 226, .035);
  --slot-fill-b: rgba(235, 235, 226, .035);

  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .28);
}
.section--dark ::selection,
.footer--dark ::selection { background: var(--marfim); color: var(--ebano); }
.section--dark :focus-visible,
.footer--dark :focus-visible { outline-color: var(--marfim); }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. CABEÇALHO ---------- */
/* Barra de marca — derivada da faixa: fundo --bg-elev, filete --border,
   itens no registro de label. Sem menu: só marca + ação. */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* ---------- LOGO ----------
   A arte é branca com canal alpha, feita para fundo escuro. Em vez de inverter
   (o que produziria preto puro, proibido pelo sistema), o alpha vira máscara e
   a tinta corrente pinta o wordmark: Ébano no claro, Marfim no escuro, sem
   nenhuma regra extra por seção. Se o navegador não suportar máscara, aparece
   o wordmark em texto — mesmo peso, mesmo tracking. */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.wordmark__art { display: none; }

@supports ((mask-image: url(x)) or (-webkit-mask-image: url(x))) {
  .wordmark__txt {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .wordmark__art {
    display: block;
    height: var(--logo-h, 24px);
    aspect-ratio: 787 / 89;
    background-color: currentColor;
    -webkit-mask: url("logo-faces-naturais.webp") no-repeat center / contain;
    mask: url("logo-faces-naturais.webp") no-repeat center / contain;
  }
}

/* ---------- 5. TIPOGRAFIA ---------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.lead strong { color: var(--text); font-weight: 600; }
.lead em { font-style: italic; color: var(--text); }

/* Registro de label (12px, 600, uppercase, +0.16em). Sem uso hoje — as
   headlines não levam mais rótulo em cima — mas fica disponível. */
.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.stack > * + * { margin-top: 1.25rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- 6. BOTÕES ---------- */
.btn {
  --btn-py: 1.0625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: var(--btn-py) 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s;
  line-height: 1.15;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--ghost-hover); border-color: currentColor; }

.btn--block { width: 100%; }
@media (min-width: 641px) {
  .btn--nowrap > span:not(.btn-arrow) { white-space: nowrap; }
}
.btn--sm { --btn-py: .75rem; padding-inline: 1.25rem; font-size: .875rem; }

.btn-arrow { font-size: 1.05em; line-height: 1; transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }
.btn--ghost:hover .btn-arrow { transform: translateY(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color .25s, gap .25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .65rem; }

.cta-note {
  font-size: var(--fs-small);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cta-note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--taupe);
  flex: none;
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #141210;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3.5rem, 8vw, 7rem);

  /* tokens invertidos sobre o fundo escuro */
  --bg:            #141210;
  --surface:       #17140F;
  --text:          var(--marfim);
  --text-muted:    #C9C3B9;
  --text-dim:      #A79F94;
  --border:        rgba(235, 235, 226, .16);
  --border-strong: rgba(235, 235, 226, .32);
  --accent:        var(--marfim);
  --accent-ink:    var(--ebano);
  --accent-hover:  #D9D9CF;
  --taupe:         #6E675E;
  --glow:          rgba(235, 235, 226, .07);
  --ghost-hover:   rgba(235, 235, 226, .08);
  --slot-line:     #6E675E;
  --slot-fill-a:   rgba(235, 235, 226, .035);
  --slot-fill-b:   rgba(235, 235, 226, .035);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .28);
  color: var(--marfim);
}
.hero ::selection { background: var(--marfim); color: var(--ebano); }
.hero :focus-visible { outline-color: var(--marfim); }

/* Lavagem de luz no canto superior esquerdo — nunca centralizada. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 75% at 12% 0%, var(--glow), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__body { max-width: 46rem; }
.hero__brand { display: inline-flex; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero__brand .wordmark { color: var(--marfim); font-size: .875rem; --logo-h: 33px; }

.hero h1 { margin-block: 1.5rem 1.5rem; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}
/* Foto do hero: 4:5 recortado, borda-filete e o mesmo raio dos painéis. */
.hero__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero__data {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
}
.hero__data b { color: var(--text); font-weight: 600; }

/* ---------- 8. SLOT DE FOTO ----------
   Espaço reservado para imagem. Troque a <div class="slot"> por uma <img>. */
.slot {
  position: relative;
  display: grid;
  place-content: center;
  gap: .5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed var(--slot-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--slot-fill-a), var(--slot-fill-a)),
    repeating-linear-gradient(45deg, transparent 0 12px, var(--slot-fill-b) 12px 24px);
  color: var(--text-dim);
  overflow: hidden;
}
.slot__tag {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.slot__name {
  font-size: .8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-dim);
  word-break: break-all;
  max-width: 32ch;
  margin-inline: auto;
}
.slot__ratio { font-size: .8125rem; color: var(--text-dim); }
.slot--hero { aspect-ratio: 4 / 5; }
.slot--wide { aspect-ratio: 16 / 10; }
.slot--portrait { aspect-ratio: 3 / 4; }
.slot--square { aspect-ratio: 1; }
.slot--sm { padding: 1.25rem .875rem; border-radius: var(--r-md); }
.slot--sm .slot__name { font-size: .6875rem; }

/* ---------- 9. CABEÇALHO DE SEÇÃO ---------- */
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  justify-items: center;
}
/* Manchete longa: mais medida para o texto quebrar em 3 linhas em vez de 5.
   O tamanho da fonte não muda — quem cede é a largura. */
.section__head--wide { max-width: 58rem; }

/* ---------- 10. PILARES (grade dividida pelo próprio gap) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pillar {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  gap: .625rem;
  align-content: start;
}
.section--alt .pillar { background: var(--bg-elev); }
.pillar__num {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pillar h3 { font-size: 1.0625rem; letter-spacing: -.012em; line-height: 1.3; }
.pillar p { font-size: var(--fs-small); color: var(--text-muted); max-width: 30ch; }

/* ---------- 11. PAINEL / MANIFESTO ---------- */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  background:
    radial-gradient(120% 100% at 0% 0%, var(--glow), transparent 62%),
    var(--surface);
}
.panel h2 { font-size: clamp(1.75rem, 2.9vw, 2.5rem); }
.panel h2 em { font-style: italic; }
.panel__copy {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 52ch;
  color: var(--text-muted);
}
.panel__copy strong { color: var(--text); font-weight: 600; }

#depoimentos .panel { text-align: center; }
#depoimentos .panel__copy { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---------- 12. TRATAMENTOS ---------- */
/* Seis procedimentos: 1 coluna no celular, 2 no tablet e 3 no desktop. */
.trats {
  --trat-gap: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--trat-gap);
}
@media (min-width: 641px) {
  .trats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .trats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tratamentos > .container { max-width: 1240px; }
}
.trat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;          /* a imagem sangra até a borda e segue o raio */
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
}

/* Faixa de imagem no topo do card, acima do título.
   Para trocar a proporção, mexa só no aspect-ratio. */
.trat__media {
  /* 4:3 acompanha as fotos desta unidade e preserva rosto, mãos e marcações. */
  aspect-ratio: 4 / 3;
  background: #17140F;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trat__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.trat:hover .trat__media > img { transform: scale(1.04); }
/* O placeholder fica sobre fundo escuro: reescreve os tokens do slot para
   o nome do arquivo continuar legível enquanto a foto não entra. */
.trat__media .slot {
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 1rem;
  --slot-fill-a: rgba(235, 235, 226, .05);
  --slot-fill-b: rgba(235, 235, 226, .05);
}
.trat__media .slot .slot__name { color: #A79F94; }

.trat__body {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1rem;
  align-content: start;
}
.trat[hidden] { display: none; }

/* Na grade de 4 o respiro interno cede, senão sobra pouca medida para o texto.
   Precisa vir depois da regra base do card para vencer por ordem. */
@media (min-width: 1025px) {
  .trat__body { padding: clamp(1.5rem, 1.9vw, 1.75rem); }
}
.trat__tag {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.trat h3 { text-wrap: balance; }
.trat p { font-size: var(--fs-small); color: var(--text-muted); max-width: 52ch; }
.trat p strong { color: var(--text); font-weight: 600; }
.trat .trat__tagline {
  color: var(--text);
  line-height: 1.45;
  margin-top: -.25rem;
}

.trats__foot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  text-wrap: pretty;
  /* 76ch para o parágrafo fechar em 2 linhas. Fica acima do teto de 62ch que
     o sistema usa para corpo de texto — aceitável porque são só 2 linhas
     centralizadas, não um bloco denso. A quebra para 3 linhas volta em 70ch. */
  max-width: 76ch;
  margin-inline: auto;
}
.trats__foot p { color: var(--text-muted); }
.trats__foot p strong { color: var(--text); font-weight: 600; }

/* ---------- O DIFERENCIAL ----------
   Dois containers lado a lado: foto à esquerda, texto à direita.
   A foto é 9:16 (antes/depois de celular) — alta demais para a coluna, então
   a moldura recorta em 3:4 e o cover mantém os dois rostos no centro. */
.diferencial {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.diferencial__media {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: start;
}
.diferencial__foto {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* 16px: raio de mídia. Menor que os 26px do painel, para a foto ler como
     conteúdo dentro do card e não como um segundo card. */
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.diferencial__texto { display: grid; gap: 0; align-content: center; }
/* O selo reusa .case__tag; como <figcaption> precisa do posicionamento aqui. */
.diferencial__media .case__tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
}

@media (max-width: 1024px) {
  .diferencial { grid-template-columns: 1fr; }
  .diferencial__media { max-width: 380px; justify-self: center; }
}

/* ---------- 13. MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: 1.375rem;
  overflow: hidden;
  display: flex;
  user-select: none;
}
.marquee__track {
  display: flex;
  flex: none;
  gap: 3.5rem;
  padding-right: 3.5rem;
}
.marquee.is-ready .marquee__track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}
.marquee__item b { color: var(--text); font-weight: 600; }
.marquee__item::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--taupe);
  margin-left: 2.75rem;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- 14. DEPOIMENTOS EM VÍDEO ----------
   Sem uso hoje: o bloco de depoimentos em vídeo saiu da página a pedido.
   Mantido porque volta pronto se a clínica gravar os depoimentos. */
.videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.75rem, 1.6vw, 1.25rem);
}
@media (min-width: 641px) { .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.video-card { display: grid; gap: .875rem; }
.video-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #17140F;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .25s;
}
.video-card__media:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.video-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.video-card__media:hover > img { transform: scale(1.04); }
.video-card__media > iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card__media .slot { height: 100%; border-radius: 0; border: 0; }

.video-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(235, 235, 226, .94);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background-color .25s;
}
.video-card__play::before {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 15px solid var(--ebano);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.video-card__media:hover .video-card__play { transform: scale(1.08); background: #FFF; }
.video-card__cap { font-size: var(--fs-small); color: var(--text-muted); }
.video-card__cap b { color: var(--text); font-weight: 600; display: block; }

/* ---------- 15. CARROSSEL DA UNIDADE ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.carousel__track {
  display: flex;
  flex: none;
  gap: 1rem;
  padding-right: 1rem;
  will-change: transform;
}
.carousel.is-ready .carousel__track { animation: carousel 70s linear infinite; }
.carousel:hover .carousel__track { animation-play-state: paused; }
@keyframes carousel { to { transform: translateX(-100%); } }

.results-carousel.is-ready .carousel__track { animation-duration: 100s; }
.results-carousel .carousel__track { gap: clamp(.75rem, 1.5vw, 1.25rem); padding-right: clamp(.75rem, 1.5vw, 1.25rem); }
.results-carousel .carousel__item { height: clamp(300px, 34vw, 500px); }

.carousel__item {
  flex: none;
  height: clamp(300px, 38vw, 460px);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.carousel__item img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.carousel__item .slot {
  height: 100%;
  width: clamp(225px, 28vw, 345px);
  border: 0;
  border-radius: 0;
}
.case__tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(243, 242, 236, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .375rem .75rem;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ebano);
  font-weight: 600;
}

/* ---------- 16. ENDEREÇO DA UNIDADE ---------- */
.local {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Fachada: proporção nativa, sem recorte — a placa não pode ser cortada. */
.local__foto {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.facts { display: grid; gap: 0; margin-top: 2rem; }
.fact {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 8rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.125rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
}
.fact:last-child { border-bottom: 1px solid var(--border); }
.fact__num {
  font-size: var(--fs-label);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-label);
}
.fact__label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
}
.fact__value { color: var(--text); font-weight: 500; }
.fact__value a { border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.fact__value a:hover { border-color: currentColor; }

.local__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* Lista das outras unidades */
.other-units {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: baseline;
}
.other-units__label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.other-units a {
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  transition: border-color .25s;
}
.other-units a:hover { border-color: currentColor; }
.other-units[hidden] { display: none; }

/* ---------- 17. FAQ ---------- */
.faq {
  max-width: 52rem;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.375rem 2.5rem 1.375rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.4;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--text-muted); }
.faq__num {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  flex: none;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 1.75rem;
  width: 14px; height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.faq__item summary::before {
  content: "";
  position: absolute;
  right: .5rem;
  top: 1.75rem;
  width: 14px; height: 2px;
  background: var(--text);
  transform: rotate(90deg);
  transition: transform .3s var(--ease), opacity .3s;
}
.faq__item[open] summary::before { transform: rotate(0deg); opacity: 0; }
.faq__resposta {
  padding: 0 2.5rem 1.5rem 3.25rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 62ch;
}
.faq__resposta p + p { margin-top: .75rem; }

/* ---------- 18. CTA FINAL ---------- */
.final {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  align-items: center;
}
.section--dark .final { background: transparent; }
.final__body {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  align-content: center;
  justify-items: start;
}
.final h2 { max-width: 16ch; }
.final .lead { margin-block: 1.5rem 2.25rem; }
.final__actions { display: grid; gap: 1rem; justify-items: start; }
/* A metade da arte é foto da unidade: preenche a altura do card, sem sobra.
   (No sistema original era arte sem corte; foto pede cover.) */
.final__media { position: relative; align-self: stretch; display: flex; min-height: 320px; }
.final__media img { width: 100%; height: 100%; object-fit: cover; align-self: stretch; }
.final__media .slot { width: 100%; border-radius: 0; border-width: 0 0 0 1px; }

/* ---------- 19. RODAPÉ ---------- */
.footer { padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}
.footer__col { display: grid; gap: .625rem; align-content: start; }
.footer__col h3 {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.footer__col p, .footer__col a { font-size: var(--fs-small); color: var(--text-muted); }
.footer__col a:hover { color: var(--text); }
.footer__copy {
  font-size: .8125rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

/* ---------- 20. WHATSAPP FLUTUANTE ----------
   Sem verde: o botão usa a mesma tinta de ação da página (Ébano), porque o
   sistema não admite um segundo acento cromático. */
.wa {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 105;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.125rem;
  border-radius: var(--r-pill);
  background: var(--ebano);
  color: var(--marfim);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 2px 14px rgba(50, 45, 40, .07), 0 10px 30px rgba(50, 45, 40, .18);
  transition: transform .35s var(--ease), background-color .25s;
}
.wa:hover { transform: translateY(-2px); background: #211D19; }
.wa svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
@media (max-width: 640px) {
  .wa { padding: .875rem; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- 21. MODAL / FORMULÁRIO ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(50, 45, 40, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; visibility: visible; }

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(50, 45, 40, .3);
  transform: translateY(18px) scale(.985);
  transition: transform .35s var(--ease);
  margin-block: auto;
}
.modal.is-open .modal__panel { transform: none; }

.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--surface-hover); color: var(--text); }

.modal__head { margin-bottom: 1.75rem; padding-right: 2.5rem; }
.modal__head h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.modal__head p { color: var(--text-muted); font-size: var(--fs-small); margin-top: .75rem; }

.form { display: grid; gap: 1.125rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: .875rem 1rem;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s, background-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ebano);
  background: #FFFDF8;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2368625A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select { border-color: #B4372F; }
.field__error {
  font-size: .8125rem;
  color: #9E2F28;
  display: none;
  letter-spacing: 0;
  text-transform: none;
}
.field[data-invalid="true"] .field__error { display: block; }

.form__footer { display: grid; gap: .875rem; margin-top: .5rem; }
.form__note {
  font-size: .8125rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ---------- 22. REVEAL ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 23. RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .hero__grid,
  .split,
  .local,
  .final { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  /* No hero a ordem se inverte de propósito: manchete e CTA primeiro, para o
     botão continuar na primeira dobra do celular. A foto entra logo abaixo. */
  .hero__media { order: 0; max-width: 420px; margin-inline: auto; width: 100%; margin-top: 2.5rem; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .final__media { min-height: 300px; order: -1; }
  .final__media .slot { border-width: 0 0 1px 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }

  .results-carousel .carousel__item { height: 360px; }

  .hero .container { text-align: center; }
  .hero__body { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__data { justify-content: center; text-align: center; }
  .hero__brand { margin-bottom: 1rem; }
  .hero h1 { margin-block: 1rem 1.125rem; }
  .hero__cta { margin-top: 1.75rem; }
  .hero__data { margin-top: 1.5rem; padding-top: 1.25rem; }

  .btn { font-size: .875rem; padding-inline: 1.25rem; }
  .hero__cta .btn,
  .trats__foot .btn,
  .local__actions .btn { width: 100%; }

  /* o cabeçalho é a exceção: compacta em vez de esticar */
  .header__inner .btn {
    width: auto;
    font-size: .75rem;
    padding: .625rem .875rem;
    white-space: nowrap;
  }
  .header__inner .wordmark { font-size: .6875rem; letter-spacing: .12em; --logo-h: 18px; }
  .hero__brand .wordmark { --logo-h: 26px; }

  .fact { grid-template-columns: 2rem 1fr; }
  .fact__value { grid-column: 2; }

  .faq__item summary { padding-right: 2rem; gap: .75rem; }
  .faq__resposta { padding-left: 2.5rem; padding-right: 0; }

  .final__actions { justify-items: stretch; }
}
