/* ============================================================
   DRA. ELISA COELHO — Dermatologia
   Direção: editorial escuro + bronze. "O consultório de quem ensina."
   Motivo gráfico: o hexágono do logotipo (célula, colágeno, estrutura).
   Tipografia: Newsreader (display) + Schibsted Grotesk (corpo)
   Sem dependências. Mobile first.
   ============================================================ */

:root {
  /* Base */
  --porcelana:    #F6F1EC;
  --porcelana-2:  #EFE7E0;
  --tinta:        #1A1210;
  --tinta-2:      #241917;
  --creme:        #EDE3DA;

  /* Acentos — derivados dos hexágonos taupe do logotipo */
  --bronze:       #8A6A52;
  --bronze-texto: #7D5E47;   /* variante para texto pequeno em fundo claro — 4.9:1 */
  --bronze-vivo:  #C69B75;
  --bronze-tint:  #E4D5C6;
  --rosa:         #A96D6A;

  /* Texto */
  --suave:        #6B5A52;
  --suave-claro:  rgba(237, 227, 218, .62);

  /* Linhas */
  --linha:        rgba(26, 18, 16, .13);
  --linha-forte:  rgba(26, 18, 16, .22);
  --linha-clara:  rgba(237, 227, 218, .15);

  /* Tipografia */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --corpo:   "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Métrica */
  --container: 1240px;
  --estreito:  920px;
  --header-h:  92px;
  --header-h-min: 66px;
  --raio: 2px;

  /* Curvas */
  --saida:  cubic-bezier(.22, .8, .3, 1);
  --suave-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */

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

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

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

body {
  font-family: var(--corpo);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  color: var(--tinta);
  background: var(--porcelana);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
/* <picture> sai do fluxo de layout — o <img> vira filho direto do container */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--bronze-tint); color: var(--tinta); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
  border-radius: var(--raio);
}

.oculto-visual {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.pular {
  position: fixed;
  left: 1.5rem; top: -5rem;
  z-index: 200;
  background: var(--tinta);
  color: var(--creme);
  padding: .8rem 1.4rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: top .25s var(--saida);
}
.pular:focus { top: 1.5rem; }

/* ---------- Grão ---------- */

.grao {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  z-index: 900;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Progresso de leitura ---------- */

.progresso {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  z-index: 120;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--bronze), var(--bronze-vivo));
  pointer-events: none;
}

/* ---------- Utilitários de layout ---------- */

.wrap {
  width: min(var(--container), 100% - 2.75rem);
  margin-inline: auto;
}
.wrap-estreito { width: min(var(--estreito), 100% - 2.75rem); margin-inline: auto; }

.bloco { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.bloco--tint  { background: var(--porcelana-2); }
.bloco--escuro {
  background: var(--tinta);
  color: var(--creme);
}
.bloco--escuro h1, .bloco--escuro h2, .bloco--escuro h3 { color: var(--creme); }

/* Textura hexagonal para seções escuras */
.hexbg::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='118' viewBox='0 0 68 118'%3E%3Cpath d='M34 1 66 19v37L34 74 2 56V19z' fill='none' stroke='%23C69B75' stroke-opacity='.09'/%3E%3Cpath d='M34 60 66 78v37l-32 18L2 115V78z' fill='none' stroke='%23C69B75' stroke-opacity='.09'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(80% 60% at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(80% 60% at 70% 20%, #000, transparent 75%);
}
.hexbg > * { position: relative; }

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -.018em;
  color: var(--tinta);
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 6.6vw, 4.9rem); }
h2 { font-size: clamp(2.2rem, 5.1vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.72rem); line-height: 1.16; }

em, .italico {
  font-style: italic;
  font-variation-settings: "opsz" 40;
}

p { text-wrap: pretty; }

.chapeu {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--corpo);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze-texto);
}
.chapeu::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.bloco--escuro .chapeu { color: var(--bronze-vivo); }

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.68;
  color: var(--suave);
  font-weight: 400;
  max-width: 44ch;
}
.bloco--escuro .lead { color: var(--suave-claro); }

.corpo-texto { color: var(--suave); line-height: 1.75; }
.bloco--escuro .corpo-texto { color: var(--suave-claro); }

.cabeca { max-width: 46rem; }
.cabeca h2 { margin-top: 1.5rem; }
.cabeca .lead { margin-top: 1.4rem; }

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--tinta);
  --btn-fg: var(--creme);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1.05rem 2rem;
  font-family: var(--corpo);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--saida), border-color .35s var(--saida);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bronze-vivo);
  transform: translateY(101%);
  transition: transform .45s var(--saida);
}
.btn:hover { color: var(--tinta); border-color: var(--bronze-vivo); }
.btn:hover::before { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn--linha {
  --btn-bg: transparent;
  --btn-fg: var(--tinta);
  border-color: var(--linha-forte);
}
.btn--linha:hover { color: var(--tinta); }

.btn--claro {
  --btn-bg: var(--creme);
  --btn-fg: var(--tinta);
}

/* Link com filete que cresce */
.link-filete {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--bronze-texto);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s var(--saida);
}
.link-filete:hover { background-size: 100% 1px; }
.bloco--escuro .link-filete { color: var(--bronze-vivo); }

/* ---------- Header ---------- */

.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .45s var(--saida), background-color .45s var(--saida),
              border-color .45s var(--saida), backdrop-filter .45s var(--saida);
  border-bottom: 1px solid transparent;
}
.topo.encolhido {
  height: var(--header-h-min);
  background: rgba(246, 241, 236, .82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--linha);
}

.topo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--container), 100% - 2.75rem);
  margin-inline: auto;
}

.marca img {
  height: 46px;
  width: auto;
  transition: height .45s var(--saida);
}
.topo.encolhido .marca img { height: 36px; }

/* Até o desktop, o header carrega só marca + menu */
.topo .btn { display: none; }

.nav-desk { display: none; }

.nav-desk ul {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-desk a {
  display: block;
  padding: .55rem .95rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--tinta);
  position: relative;
}
.nav-desk a::after {
  content: "";
  position: absolute;
  left: .95rem; right: .95rem; bottom: .28rem;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--saida);
}
.nav-desk a:hover::after { transform: scaleX(1); }

.topo .btn { padding: .8rem 1.5rem; font-size: .82rem; }

/* Botão do menu mobile */
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tinta);
  padding: .55rem .2rem;
}
.menu-btn-traco {
  position: relative;
  width: 22px; height: 9px;
}
.menu-btn-traco::before,
.menu-btn-traco::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--saida), width .4s var(--saida);
}
.menu-btn-traco::before { top: 0; }
.menu-btn-traco::after  { bottom: 0; width: 62%; }
.menu-btn[aria-expanded="true"] .menu-btn-traco::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-traco::after  { transform: translateY(-3.5px) rotate(-45deg); width: 100%; }

/* Painel mobile */
.menu-painel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--tinta);
  color: var(--creme);
  display: grid;
  align-content: center;
  padding: 6rem 2rem 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--saida);
  visibility: hidden;
}
.menu-painel.aberto { clip-path: inset(0 0 0 0); visibility: visible; }

.menu-painel ul { display: grid; gap: .3rem; }
/* stagger do menu e da headline por posição, em vez de style inline
   (permite um CSP sem 'unsafe-inline' em style-src) */
.menu-painel li:nth-child(1) { --i: 0; }
.menu-painel li:nth-child(2) { --i: 1; }
.menu-painel li:nth-child(3) { --i: 2; }
.menu-painel li:nth-child(4) { --i: 3; }
.menu-painel li:nth-child(5) { --i: 4; }
.menu-painel li {
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--saida), transform .5s var(--saida);
  transition-delay: calc(var(--i) * .05s);
}
.menu-painel.aberto li { opacity: 1; transform: none; }
.menu-painel a {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.28;
  color: var(--creme);
  border-bottom: 1px solid var(--linha-clara);
  padding-block: .35rem;
  transition: color .3s var(--saida), padding-left .4s var(--saida);
}
.menu-painel a:hover { color: var(--bronze-vivo); padding-left: .6rem; }
.menu-painel .btn { margin-top: 2rem; justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(58rem 34rem at 78% 8%, rgba(198, 155, 117, .18), transparent 62%),
    radial-gradient(44rem 30rem at 4% 52%, rgba(169, 109, 106, .09), transparent 58%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
}

/* Máscara de revelação por linha */
.linha-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.linha-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--saida);
  transition-delay: calc(var(--l, 0) * .09s + .12s);
}
.carregado .linha-mask > span { transform: none; }
.linha-mask:nth-of-type(1) > span { --l: 0; }
.linha-mask:nth-of-type(2) > span { --l: 1; }
.linha-mask:nth-of-type(3) > span { --l: 2; }
.linha-mask:nth-of-type(4) > span { --l: 3; }

.hero h1 { margin-top: 1.75rem; }
.hero h1 em { color: var(--bronze); }

.hero-lead {
  margin-top: 1.9rem;
  max-width: 40ch;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2.4rem;
}

/* Assinatura de credenciais do hero */
.hero-cred {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linha);
  display: grid;
  gap: 1.15rem;
}
.hero-cred li {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  font-size: .87rem;
  color: var(--suave);
}
.hero-cred .hex {
  flex-shrink: 0;
  width: 9px; height: 10px;
  background: var(--bronze);
  opacity: .75;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transform: translateY(-1px);
}
.hero-cred strong {
  font-weight: 600;
  color: var(--tinta);
}

/* Visual do hero */
.hero-visual {
  position: relative;
  order: -1;
}

.moldura {
  position: relative;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--porcelana-2);
  box-shadow: 0 40px 90px -42px rgba(26, 18, 16, .55);
}
.moldura img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Correção de cor: mata o LED amarelo-esverdeado e puxa para bronze */
  filter: saturate(.7) sepia(.14) hue-rotate(-5deg) contrast(1.05) brightness(1.04);
  transform: scale(1.06);
  will-change: transform;
}
/* Duotone quente + vinheta */
.moldura::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(198, 155, 117, .12), rgba(26, 18, 16, .18));
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 60px 14px rgba(26, 18, 16, .16);
}

.hero-foto {
  aspect-ratio: 4 / 5;
  max-width: 30rem;
  margin-inline: auto;
}
.hero-foto img { object-position: center; }


/* Hexágono decorativo que gira */
.hex-deco {
  position: absolute;
  z-index: -1;
  color: var(--bronze);
  opacity: .3;
  pointer-events: none;
}
.hex-deco--hero {
  top: -3.5rem; right: -4rem;
  width: clamp(12rem, 26vw, 21rem);
  animation: girar 64s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */

.faixa {
  border-block: 1px solid var(--linha);
  padding-block: 1.15rem;
  overflow: hidden;
  display: flex;
  gap: 0;
  white-space: nowrap;
  background: var(--porcelana);
}
.faixa-trilho {
  display: flex;
  flex-shrink: 0;
  animation: correr 46s linear infinite;
  animation-play-state: running;
}
.faixa span {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--bronze);
  padding-inline: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 2.8rem;
}
.faixa span::after {
  content: "";
  width: 7px; height: 8px;
  background: currentColor;
  opacity: .5;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
@keyframes correr { to { transform: translateX(-100%); } }

/* ---------- Credenciais institucionais ---------- */

.cred {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--porcelana);
}

.cred-grid {
  display: grid;
  gap: 2.4rem;
  margin-top: 2.6rem;
}

.cred-item {
  display: grid;
  gap: .9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linha);
}
.cred-item img {
  height: 58px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) contrast(1.15) sepia(.45) hue-rotate(-12deg) saturate(1.3);
  opacity: .72;
  transition: filter .5s var(--saida), opacity .5s var(--saida);
}
.cred-item:hover img { filter: none; opacity: 1; }
.cred-item p {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--suave);
  max-width: 26ch;
}
.cred-item strong {
  display: block;
  font-weight: 600;
  color: var(--tinta);
  margin-bottom: .18rem;
  letter-spacing: .01em;
}

/* ---------- A doutora ---------- */

.doutora { overflow: hidden; }

.doutora-grid {
  display: grid;
  gap: clamp(2.75rem, 6vw, 5rem);
  align-items: start;
}

.doutora-foto {
  aspect-ratio: 4 / 5;
  max-width: 24rem;
  position: relative;
}
/* Sobre fundo escuro a foto entra como imagem de arquivo, quase monocromática,
   em vez de competir com o texto. Ao trocar pelo retrato da doutora,
   suavizar o grayscale para algo em torno de .35. */
.doutora-foto img {
  object-position: center;
  filter: grayscale(.82) sepia(.5) hue-rotate(-12deg) saturate(1.5)
          contrast(1.12) brightness(.82);
}
.doutora-foto::after {
  background: linear-gradient(165deg, rgba(198, 155, 117, .3), rgba(26, 18, 16, .5));
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 80px 22px rgba(26, 18, 16, .5);
}

/* Legenda de foto estilo revista */
.legenda {
  margin-top: 1rem;
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--suave-claro);
  display: flex;
  gap: .7rem;
  align-items: baseline;
}
.legenda::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 1px;
  background: var(--bronze-vivo);
  transform: translateY(-4px);
}

.doutora h2 { margin-top: 1.5rem; }
.doutora h2 em { color: var(--bronze-vivo); }

.doutora-texto {
  margin-top: 1.7rem;
  display: grid;
  gap: 1.15rem;
  max-width: 46ch;
}

/* Citação editorial */
.citacao {
  margin-top: 2.6rem;
  padding: 2rem 0 2rem 2rem;
  border-left: 1px solid var(--bronze-vivo);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.32rem, 2.6vw, 1.85rem);
  line-height: 1.34;
  color: var(--creme);
  max-width: 30ch;
}

/* Dossiê de formação */
.dossie {
  margin-top: 2.8rem;
  border-top: 1px solid var(--linha-clara);
}
.dossie li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .35rem 1.2rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--linha-clara);
}
.dossie dt, .dossie-rotulo {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-vivo);
  white-space: nowrap;
}
.dossie dd, .dossie-valor {
  font-size: .96rem;
  color: var(--creme);
  line-height: 1.5;
}
.dossie dd small,
.dossie-valor small {
  display: block;
  margin-top: .28rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--suave-claro);
}

/* ---------- Números ---------- */

.numeros {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--linha-clara);
}

.numeros-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.numero {
  display: grid;
  gap: .55rem;
}
.numero b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 5rem);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--bronze-vivo);
  font-variant-numeric: lining-nums tabular-nums;
}
.numero span {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--suave-claro);
  max-width: 22ch;
}
.numero-rotulo {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--creme);
  margin-bottom: .1rem;
}

/* ---------- Especialidades (sticky) ---------- */

.esp-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.esp-fixo { position: relative; }

.esp-lista { display: grid; gap: 1.25rem; }

.esp-card {
  position: relative;
  padding: clamp(1.9rem, 3.4vw, 2.8rem);
  background: var(--porcelana);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  transition: border-color .5s var(--saida), transform .5s var(--saida);
}
.esp-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .7s var(--saida);
}
.esp-card:hover { border-color: var(--linha-forte); }
.esp-card:hover::before { transform: scaleX(1); }

.esp-card-num {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.4rem);
  right: clamp(1.5rem, 3vw, 2.4rem);
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--bronze);
  opacity: .17;
  font-variant-numeric: lining-nums;
}

.esp-card h3 { max-width: 22ch; }
.esp-card > p {
  margin-top: 1rem;
  color: var(--suave);
  font-size: .97rem;
  line-height: 1.7;
  max-width: 46ch;
}

.esp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.6rem;
}
.esp-tags li {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--bronze-texto);
  border: 1px solid var(--linha-forte);
  border-radius: 999px;
  padding: .38rem .9rem;
}

/* Card em destaque — o eixo estético dela */
.esp-card--foco {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--creme);
}
.esp-card--foco h3 { color: var(--creme); }
.esp-card--foco > p { color: var(--suave-claro); }
.esp-card--foco .esp-card-num { color: var(--bronze-vivo); opacity: .3; }
.esp-card--foco .esp-tags li { color: var(--bronze-vivo); border-color: var(--linha-clara); }
.esp-card--foco::before { background: var(--bronze-vivo); }

/* ---------- Procedimentos ---------- */

.proc { background: var(--porcelana-2); }

.proc-topo {
  display: grid;
  gap: 1.8rem;
  align-items: end;
}

.proc-destaques {
  display: grid;
  gap: 1.1rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.destaque {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--tinta);
  isolation: isolate;
}
.destaque-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.destaque-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.6) sepia(.2) contrast(1.06) brightness(.95);
  transform: scale(1.02);
  transition: transform 1.1s var(--saida), filter .6s var(--saida);
}
.destaque::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(178deg, rgba(26, 18, 16, 0) 34%, rgba(26, 18, 16, .82) 92%);
}
.destaque:hover .destaque-img img { transform: scale(1.07); filter: saturate(.78) sepia(.06) contrast(1.04); }

.destaque-txt {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.4rem 1.5rem 1.5rem;
  color: var(--creme);
}
.destaque-txt h3 {
  font-size: 1.32rem;
  color: var(--creme);
  line-height: 1.14;
}
.destaque-txt p {
  margin-top: .45rem;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(237, 227, 218, .74);
  max-width: 30ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--saida), transform .5s var(--saida);
}
.destaque:hover .destaque-txt p,
.destaque:focus-visible .destaque-txt p { opacity: 1; transform: none; }

/* Índice tipográfico */
.indice {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--linha-forte);
}
.indice-cabeca {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--linha);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--suave);
}

.indice-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.1rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--linha);
  transition: padding-left .55s var(--saida);
}
.indice-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--porcelana);
  transition: width .55s var(--saida);
  z-index: -1;
}
.indice-item:hover { padding-left: 1.2rem; }
.indice-item:hover::before { width: 100%; }

.indice-num {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--bronze);
  font-variant-numeric: lining-nums tabular-nums;
  opacity: .72;
}
.indice-nome {
  font-family: var(--display);
  font-size: clamp(1.18rem, 2.5vw, 1.62rem);
  line-height: 1.2;
  color: var(--tinta);
  transition: color .4s var(--saida);
}
.indice-item:hover .indice-nome { color: var(--bronze); }
.indice-frente {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--suave);
  opacity: .85;
  white-space: nowrap;
}

/* Miniatura que segue o cursor */
.espia {
  position: fixed;
  top: 0; left: 0;
  z-index: 95;
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: var(--raio);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.9);
  transition: opacity .4s var(--saida), transform .5s var(--saida);
  box-shadow: 0 30px 60px -24px rgba(26, 18, 16, .6);
}
.espia.ativa { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.espia img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.62) sepia(.18) contrast(1.06);
}

.proc-rodape {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.proc-rodape p { color: var(--suave); font-size: .95rem; max-width: 40ch; }

/* ---------- A clínica (faixa full-bleed) ---------- */

.clinica {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--tinta);
  min-height: clamp(30rem, 78vh, 44rem);
  display: grid;
  align-items: center;
}

.clinica-fundo {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}
.clinica-fundo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.4) sepia(.3) hue-rotate(-10deg) contrast(1.18) brightness(.58);
  will-change: transform;
}
.clinica::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(26, 18, 16, .93) 0%, rgba(26, 18, 16, .74) 46%, rgba(26, 18, 16, .38) 100%),
    linear-gradient(0deg, rgba(198, 155, 117, .1), transparent 60%);
  pointer-events: none;
}

.clinica-conteudo {
  position: relative;
  z-index: 2;
  padding-block: clamp(4.5rem, 10vw, 7rem);
  color: var(--creme);
}
.clinica-conteudo h2 { color: var(--creme); margin-top: 1.5rem; max-width: 16ch; }
.clinica-conteudo h2 em { color: var(--bronze-vivo); }
.clinica-conteudo .lead { margin-top: 1.5rem; color: rgba(237, 227, 218, .78); }

.clinica-marcas {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.2rem;
}
.clinica-marcas li {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--bronze-vivo);
  border: 1px solid var(--linha-clara);
  border-radius: 999px;
  padding: .42rem 1rem;
  backdrop-filter: blur(6px);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.faq-lista { border-top: 1px solid var(--linha); }

.faq-item { border-bottom: 1px solid var(--linha); }

.faq-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  padding-block: 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.1vw, 1.34rem);
  line-height: 1.28;
  color: var(--tinta);
  transition: color .4s var(--saida);
}
.faq-btn:hover { color: var(--bronze); }

.faq-sinal {
  position: relative;
  flex-shrink: 0;
  width: 15px; height: 15px;
}
.faq-sinal::before,
.faq-sinal::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--bronze);
  transition: transform .45s var(--saida);
}
.faq-sinal::after { transform: rotate(90deg); }
.faq-btn[aria-expanded="true"] .faq-sinal::after { transform: rotate(0deg); }

.faq-resposta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--saida);
}
.faq-resposta > div { overflow: hidden; }
.faq-item.aberto .faq-resposta { grid-template-rows: 1fr; }
.faq-resposta p {
  padding-bottom: 1.6rem;
  padding-right: clamp(0rem, 6vw, 4rem);
  color: var(--suave);
  font-size: .97rem;
  line-height: 1.72;
  max-width: 62ch;
}

/* ---------- Convite / agendamento ---------- */

.convite { overflow: hidden; }

.convite-grid {
  display: grid;
  gap: clamp(2.75rem, 6vw, 5rem);
  align-items: start;
}

.convite h2 { margin-top: 1.5rem; max-width: 14ch; }
.convite h2 em { color: var(--bronze-vivo); }
.convite .lead { margin-top: 1.5rem; }
.convite .btn { margin-top: 2.4rem; }

.convite-nota {
  margin-top: 1.5rem;
  font-size: .84rem;
  color: var(--suave-claro);
  max-width: 34ch;
}

/* Ficha de contato */
.ficha {
  border-top: 1px solid var(--linha-clara);
}
.ficha div {
  display: grid;
  gap: .3rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--linha-clara);
}
.ficha dt {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-vivo);
}
.ficha dd {
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.34;
  color: var(--creme);
}
.ficha dd a { transition: color .3s var(--saida); }
.ficha dd a:hover { color: var(--bronze-vivo); }
.ficha dd small {
  display: block;
  font-family: var(--corpo);
  font-size: .8rem;
  color: var(--suave-claro);
  margin-top: .25rem;
}

/* ---------- Rodapé ---------- */

.rodape {
  background: #140D0B;
  color: rgba(237, 227, 218, .58);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem;
  font-size: .88rem;
}

.rodape-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(237, 227, 218, .1);
}

.rodape-logo {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}
.rodape-marca p {
  margin-top: 1rem;
  max-width: 30ch;
  line-height: 1.62;
}

.rodape-col h4 {
  font-family: var(--corpo);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-vivo);
  margin-bottom: 1.1rem;
}
.rodape-col li + li { margin-top: .58rem; }
.rodape-col a { transition: color .3s var(--saida); }
.rodape-col a:hover { color: var(--creme); }

.rodape-legal {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  font-size: .76rem;
  line-height: 1.65;
  color: rgba(237, 227, 218, .38);
}
.rodape-legal a { text-decoration: underline; text-underline-offset: 3px; }
.rodape-legal a:hover { color: var(--creme); }

/* ---------- WhatsApp flutuante ---------- */

.zap {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 96;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.35rem;
  background: var(--tinta);
  color: var(--creme);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 20px 44px -18px rgba(26, 18, 16, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .5s var(--saida), transform .5s var(--saida),
              visibility .5s, background-color .4s var(--saida), color .4s var(--saida);
}
.zap.visivel { opacity: 1; visibility: visible; transform: none; }
.zap:hover { background: var(--bronze-vivo); color: var(--tinta); }
.zap-txt { display: none; }

/* ---------- Revelação na rolagem ---------- */

.rev {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--saida), transform .95s var(--saida);
  transition-delay: var(--stagger, 0s);
}
.rev.dentro { opacity: 1; transform: none; }

/* Divisor hexagonal que se desenha */
.divisor {
  display: grid;
  place-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.divisor svg { width: 34px; height: 38px; overflow: visible; }
.divisor path {
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1.6s var(--saida);
}
.divisor.dentro path { stroke-dashoffset: 0; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */

@media (min-width: 600px) {
  .cred-grid    { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2.75rem; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); gap: 2.75rem; }
  .proc-destaques { grid-template-columns: repeat(2, 1fr); }
  .zap-txt { display: inline; }
}

@media (min-width: 860px) {
  .indice-item { grid-template-columns: 3.6rem 1fr auto; }
  .rodape-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
  .rodape-legal { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

@media (min-width: 980px) {
  :root { --header-h: 104px; --header-h-min: 72px; }

  .menu-btn, .menu-painel { display: none; }
  .nav-desk { display: block; }
  .topo .btn { display: inline-flex; }
  .marca img { height: 56px; }
  .topo.encolhido .marca img { height: 40px; }

  .hero-grid {
    grid-template-columns: 1.06fr .94fr;
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
  }
  .hero-visual { order: 0; }
  .hero-foto { margin-inline: auto 0; max-width: 26rem; }

  .cred-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }

  .doutora-grid { grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 5vw, 5rem); }
  .doutora-foto { position: sticky; top: calc(var(--header-h-min) + 2.5rem); }

  .numeros-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .esp-grid { grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 5vw, 5rem); }
  .esp-fixo {
    position: sticky;
    top: calc(var(--header-h-min) + 3.5rem);
  }
  .esp-lista { gap: 1.5rem; }
  .esp-card { min-height: 21rem; display: flex; flex-direction: column; justify-content: center; }

  .proc-topo { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .proc-destaques { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

  .faq-grid { grid-template-columns: .8fr 1.2fr; }
  .faq .cabeca { position: sticky; top: calc(var(--header-h-min) + 3.5rem); }

  .convite-grid { grid-template-columns: 1.08fr .92fr; }

  .clinica-conteudo .wrap > * { max-width: 42rem; }
}

@media (min-width: 1240px) {
  .hero-foto { max-width: 29rem; }
  .doutora-foto { max-width: 30rem; }
}

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .rev { opacity: 1; transform: none; }
  .linha-mask > span { transform: none; }
  .divisor path { stroke-dashoffset: 0; }
  .faixa-trilho { animation: none; }
  .hex-deco--hero { animation: none; }
  .destaque-txt p { opacity: 1; transform: none; }
  .espia { display: none; }
  .zap { opacity: 1; visibility: visible; transform: none; }
  .moldura img { transform: none; }
  .clinica-fundo { inset: 0; }
}

/* Sem JS: nada fica invisível */
.sem-js .rev { opacity: 1; transform: none; }
.sem-js .linha-mask > span { transform: none; }
.sem-js .zap { opacity: 1; visibility: visible; transform: none; }
.sem-js .destaque-txt p { opacity: 1; transform: none; }

/* Sem hover disponível (touch): a descrição do destaque fica sempre visível */
@media (hover: none) {
  .destaque-txt p { opacity: 1; transform: none; }
  .indice-item:hover { padding-left: 0; }
}

.cabeca-acao { margin-top: 1.8rem; }
