/* ==========================================================================
   MH Clínica Odontológica — site
   Direção: editorial, grafite + champagne + off-white. Poucos elementos,
   fotografia, tipografia e espaço negativo.
   ========================================================================== */

:root {
  --graphite: #2a2826;
  --charcoal: #2b2a27;
  --ink: #232220;
  --champagne: #c49a52;
  --champagne-soft: #e2c58f;
  --gold-ink: #7f5f26;          /* dourado escurecido p/ texto pequeno em fundo claro (contraste AA) */
  --offwhite: #faf6ef;
  --sand: #f3ebdd;
  --paper: #ffffff;
  --white: #ffffff;
  --muted: #67635b;
  --muted-dark: #aaa499;
  --line: rgba(35, 34, 32, .14);
  --line-dark: rgba(245, 242, 236, .14);

  --logo: "Cormorant Garamond", "Times New Roman", serif; /* só a marca MH */
  --display: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; /* títulos */
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 88px;
  --section: clamp(96px, 12vw, 176px);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd, address { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--champagne); color: var(--graphite); }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--graphite); color: var(--offwhite); padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 16px; }

/* Tipografia ------------------------------------------------------------ */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow--light { color: var(--champagne); }

.h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.1; letter-spacing: -.022em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .final__title em { font-style: normal; font-weight: 500; color: var(--gold-ink); }

/* Links e botões ---------------------------------------------------------- */
.link { position: relative; display: inline-block; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--champagne); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link--quiet { font-size: 15px; font-weight: 500; }
.link--quiet::after { transform: scaleX(1); background: var(--line); }
.link--quiet:hover::after { background: var(--champagne); }

.btn {
  --bg: var(--graphite); --fg: var(--offwhite);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--dark:hover { --bg: #000; }
.btn--gold { --bg: var(--champagne); --fg: var(--graphite); }
.btn--gold:hover { --bg: var(--champagne-soft); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: rgba(35, 34, 32, .3); }
.btn--line:hover { border-color: var(--graphite); background: var(--graphite); color: var(--offwhite); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* Barra de progresso ----------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--champagne); transform-origin: left; transform: scaleX(0); }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s;
}
.header__inner {
  max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 40px;
  transition: height .5s var(--ease);
}
.header.is-scrolled {
  background: rgba(245, 242, 236, .86);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .header__inner { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  font-family: var(--logo); font-weight: 500; font-size: 34px; line-height: 1; letter-spacing: -.02em;
  padding-right: 12px; border-right: 1px solid var(--champagne);
}
.brand__name { font-size: 10px; line-height: 1.35; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav ul { display: flex; gap: 34px; }
.nav a { font-size: 14px; font-weight: 500; }
.header__wa, .menu-toggle { display: none; }

/* Menu mobile */
.menu-toggle { width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span { background: var(--offwhite); }
.menu-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--graphite); color: var(--offwhite);
  padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu__list li { border-bottom: 1px solid var(--line-dark); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(28px, 7.5vw, 38px); line-height: 1.15; letter-spacing: -.02em;
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s;
}
.menu__list span { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--champagne); }
.menu-open .menu__list a { transform: none; opacity: 1; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__foot { display: grid; gap: 20px; }
.menu__foot .btn { width: 100%; }
.menu__foot p { color: var(--muted-dark); font-size: 14px; }
.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .brand { color: var(--offwhite); }
.menu-open .brand__name { color: var(--muted-dark); }
.menu-open .header__wa { color: var(--offwhite); border-color: var(--line-dark); }
body.menu-open { overflow: hidden; }

/* Hero -------------------------------------------------------------------- */
/* Foto de atendimento em fundo escuro: texto no lado escuro (esquerda), atendimento à direita */
.hero {
  --h1: clamp(2.4rem, 4.8vw, 4.9rem);
  position: relative; overflow: hidden; isolation: isolate;
  background: #0b0c10; color: var(--offwhite);
  min-height: min(100svh, 980px); display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(72px, 9vw, 128px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; transform: scale(1.06); will-change: transform; }
.hero__bg::before { /* sombra no alto para o menu claro continuar legível sobre o jaleco */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 1;
  background: linear-gradient(to bottom, rgba(11, 12, 16, .8), rgba(11, 12, 16, 0));
}
.hero__inner { position: relative; }
.hero__eyebrow { color: var(--champagne-soft); }
.hero__title {
  font-family: var(--display); font-weight: 500; font-size: var(--h1);
  line-height: 1.06; letter-spacing: -.028em; margin-bottom: clamp(32px, 3.6vw, 48px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__title em { color: var(--champagne-soft); }

.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.hero__aside { grid-column: 1 / span 5; max-width: 460px; }

/* Logo em destaque, no formato da antiga foto do topo (arco no canto superior esquerdo) */
.hero__logo {
  grid-column: 7 / -1; aspect-ratio: 16 / 7; border-radius: 220px 4px 4px 4px;
  display: grid; place-items: center; padding: 24px 32px 24px 64px;
  background: var(--offwhite); border: 1px solid rgba(196, 154, 82, .45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.hero__lead { font-size: 17px; line-height: 1.7; color: #c9c4ba; max-width: 40ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 32px; }
.hero .link--quiet { color: var(--offwhite); }
.hero .link--quiet::after { background: rgba(245, 242, 236, .35); }
.hero .link--quiet:hover::after { background: var(--champagne-soft); }
.hero__place {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  font-size: 13px; font-weight: 500; letter-spacing: .06em; color: #aaa59b;
  display: flex; align-items: center; gap: 10px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }

.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* Hero: entrada (só com JS e sem reduced-motion) */
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.js .hero__eyebrow, .js .hero__aside { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero__aside { transition-delay: .45s; }
.js .hero__bg { opacity: 0; transition: opacity 1.6s var(--ease); }
.js .hero__logo { clip-path: inset(0 0 0 100% round 220px 4px 4px 4px); transition: clip-path 1.5s var(--ease-out) .35s; }
.is-loaded .hero__logo { clip-path: inset(0 0 0 0 round 220px 4px 4px 4px); }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__eyebrow, .is-loaded .hero__aside { opacity: 1; transform: none; }
.is-loaded .hero__bg { opacity: 1; }

/* Cabeçalho claro enquanto está sobre a foto escura */
.header:not(.is-scrolled) .brand,
.header:not(.is-scrolled) .nav a { color: var(--offwhite); }
.header:not(.is-scrolled) .brand__name { color: #b9b4aa; }
.header:not(.is-scrolled) .menu-toggle span { background: var(--offwhite); }
.header:not(.is-scrolled) .header__wa { color: var(--offwhite); border-color: var(--line-dark); }

/* Marquee ----------------------------------------------------------------- */
.marquee { background: var(--graphite); color: var(--champagne-soft); overflow: hidden; border-block: 1px solid rgba(184, 155, 99, .2); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.2vw, 16px); letter-spacing: .2em; text-transform: uppercase;
  padding: 22px 0; white-space: nowrap;
}
.marquee i { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); margin-inline: clamp(28px, 3.4vw, 52px); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tratamentos ------------------------------------------------------------- */
.treat { background: var(--paper); }
.treat__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.treat__head .h2 { max-width: 13ch; }
.treat__intro { color: var(--muted); max-width: 36ch; justify-self: end; }

.tlist { border-top: 1px solid var(--line); }
.tlist li { border-bottom: 1px solid var(--line); }
.trow {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1fr) 52px; gap: 24px;
  padding: 30px 12px; transition: padding .6s var(--ease), background-color .6s var(--ease);
}
.trow::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.trow__num { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--muted); opacity: .45; transform: translateX(-6px); transition: all .6s var(--ease); }
.trow__title { font-family: var(--display); font-weight: 500; letter-spacing: -.022em; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.01em; transition: transform .6s var(--ease); }
.trow__desc { display: block; color: var(--muted); max-width: 40ch; }
.trow__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.trow__more > span {
  overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink);
  opacity: 0; transition: opacity .5s var(--ease);
}
.trow__arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .5s var(--ease), border-color .5s var(--ease);
}
.trow__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; transition: transform .5s var(--ease), stroke .5s; }

@media (hover: hover) {
  .trow:hover, .trow:focus-visible { padding-block: 44px; background: var(--offwhite); }
  .trow:hover::before, .trow:focus-visible::before { transform: scaleX(1); }
  .trow:hover .trow__num, .trow:focus-visible .trow__num { opacity: 1; color: var(--gold-ink); transform: none; }
  .trow:hover .trow__title, .trow:focus-visible .trow__title { transform: translateX(10px); }
  .trow:hover .trow__more, .trow:focus-visible .trow__more { grid-template-rows: 1fr; }
  .trow:hover .trow__more > span, .trow:focus-visible .trow__more > span { opacity: 1; padding-top: 12px; }
  .trow:hover .trow__arrow, .trow:focus-visible .trow__arrow { background: var(--graphite); border-color: var(--graphite); }
  .trow:hover .trow__arrow svg, .trow:focus-visible .trow__arrow svg { stroke: var(--offwhite); transform: translateX(3px); }
}
.trow:focus-visible { outline-offset: -2px; }

/* Destaque próteses ------------------------------------------------------- */
/* Seção preta para dar força ao destaque de próteses */
.protese { background: #0f0f10; color: var(--offwhite); padding-block: var(--section); }
.protese .eyebrow { color: var(--champagne-soft); }
.protese .h2 em { color: var(--champagne-soft); }
.protese__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.protese__media { grid-column: 1 / span 5; }
.protese__sticky { position: sticky; top: calc(50vh - min(36vh, 300px)); }
/* Foto da prótese recortada em formato de dente superior (coroa embaixo, raízes em cima) */
.protese__frame { position: relative; width: fit-content; margin-inline: auto; }
.frame--tooth {
  aspect-ratio: 420 / 498; height: min(72vh, 600px); max-width: 100%;
  clip-path: url(#tooth-clip); background: #eff1f4; /* mesmo tom do fundo da foto */
}
/* Foto horizontal encaixada na coroa do dente; as raízes ficam no tom do fundo e a foto some suavemente para cima */
.frame--tooth img {
  position: absolute; left: 50%; top: 31%; width: auto; height: 80%; max-width: none; object-fit: fill;
  transform: translateX(-50%); transform-origin: 50% 60%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  filter: contrast(1.03) saturate(.95); transition: transform 1.4s var(--ease);
}
.protese__frame:hover .frame--tooth img { transform: translateX(-50%) scale(1.04); }
.tooth-outline {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: translate(-16px, -14px);
  overflow: visible; pointer-events: none; z-index: -1;
}
.tooth-outline path { fill: none; stroke: var(--champagne); stroke-width: 1.5; opacity: 1; vector-effect: non-scaling-stroke; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.protese__counter { display: flex; align-items: center; gap: 10px; margin-top: 36px; font-size: 13px; letter-spacing: .14em; color: var(--muted-dark); }
.protese__cur { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: 0; color: var(--offwhite); min-width: 1.4em; }
.protese__bar { flex: 1; height: 1px; background: var(--line-dark); margin-left: 14px; position: relative; overflow: hidden; }
.protese__bar span { position: absolute; inset: 0; background: var(--champagne); transform-origin: left; transform: scaleX(.25); transition: transform .8s var(--ease); }

.protese__content { grid-column: 7 / -1; }
.protese__intro { padding-bottom: clamp(40px, 8vh, 96px); }
.protese__intro > p:not(.eyebrow) { color: #cfc7b9; font-size: 17px; max-width: 46ch; margin: 28px 0 36px; }
.psteps { border-top: 1px solid var(--line-dark); }
.pstep {
  min-height: 52vh; display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px; border-bottom: 1px solid var(--line-dark);
  opacity: .28; transition: opacity .8s var(--ease);
}
.pstep.is-active { opacity: 1; }
.pstep__num { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--champagne-soft); }
.pstep h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.022em; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; margin: 14px 0 18px; }
.pstep p { color: #bdb4a5; max-width: 42ch; font-size: 17px; }

/* Resultados -------------------------------------------------------------- */
/* Resultados em marrom, logo após a seção preta de próteses */
.results { background: #3a2f22; color: var(--offwhite); box-shadow: inset 0 1px 0 rgba(226, 197, 143, .16); }
.results .eyebrow { color: var(--champagne-soft); }
.results .h2 em { color: var(--champagne-soft); }
.results figcaption { color: #bdb4a5; }
.results figcaption span { color: var(--champagne-soft); }
.results__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px;
  grid-template-areas:
    "head head head head head head intro intro intro intro intro intro"
    "cases cases cases cases cases cases cases cases cases cases cases cases";
  align-items: end; row-gap: clamp(48px, 6vw, 80px);
}
.results__cases { grid-area: cases; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.results__intro { grid-area: intro; }
.results__intro .results__text { margin-top: 0; }
.results__head { grid-area: head; }
.results__head .h2 { max-width: 11ch; }
.results__text { color: #cfc7b9; font-size: 17px; margin-top: 24px; max-width: 38ch; }
.results__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(226, 197, 143, .2); font-size: 13px; color: #a89f90; max-width: 42ch; }
figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
figcaption span { color: var(--gold-ink); font-weight: 600; letter-spacing: .14em; margin-right: 10px; }

@media (hover: hover) {
  .frame img { transition: transform 1.2s var(--ease); }
}


/* Como funciona ----------------------------------------------------------- */
.process { background: var(--offwhite); }
.process__head { max-width: 760px; margin-bottom: clamp(56px, 7vw, 104px); }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 56px; }
.process__steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--champagne);
  transform-origin: left; transform: scaleX(var(--line-scale, 1)); transition: transform 1.6s var(--ease-out);
}
.process__steps li { position: relative; }
.process__steps li::before {
  content: ""; position: absolute; top: -60px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--offwhite); border: 1px solid var(--champagne);
}
.process__num { display: block; font-family: var(--display); font-weight: 400; letter-spacing: -.03em; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; color: var(--champagne); margin-bottom: 20px; }
.process__steps h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: 24px; line-height: 1.1; margin-bottom: 12px; }
.process__steps p { color: var(--muted); max-width: 32ch; }

.js .process__steps { --line-scale: 0; }
.js .process__steps .process__num,
.js .process__steps h3,
.js .process__steps p { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .process__steps.is-in { --line-scale: 1; }
.js .process__steps.is-in .process__num,
.js .process__steps.is-in h3,
.js .process__steps.is-in p { opacity: 1; transform: none; }
.js .process__steps.is-in li:nth-child(1) * { transition-delay: .3s; }
.js .process__steps.is-in li:nth-child(2) * { transition-delay: .7s; }
.js .process__steps.is-in li:nth-child(3) * { transition-delay: 1.1s; }

/* A clínica --------------------------------------------------------------- */
.clinic { background: var(--graphite); color: var(--offwhite); }
.clinic__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.clinic__media { grid-column: 1 / span 5; }
.clinic__content { grid-column: 7 / -1; }
.clinic .h2 em { color: var(--champagne); }
.clinic__text { margin-top: 36px; display: grid; gap: 18px; color: #cfc9be; font-size: 17px; max-width: 48ch; }
.clinic__facts { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.clinic__facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.clinic__facts dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); padding-top: 3px; }
.clinic__facts dd { color: #e5e0d6; }
.clinic__sign {
  display: flex; align-items: center; gap: 28px; margin-top: clamp(80px, 10vw, 140px);
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.6vw, 20px); color: var(--champagne-soft);
}
.clinic__sign i { flex: 1; height: 1px; background: rgba(184, 155, 99, .4); }

/* Depoimentos (estrutura oculta até existir conteúdo real) */
.voices { background: var(--paper); }
.voices__list { display: grid; gap: 64px; margin-top: 64px; }
.voice p { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; max-width: 30ch; }
.voice footer { margin-top: 20px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Localização ------------------------------------------------------------- */
.location { background: var(--paper); }
.location__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.location__info { grid-column: 1 / span 5; }
.location__info address { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.location__phone { margin-top: 28px; font-size: 14px; color: var(--muted); }
.location__phone a { color: var(--ink); font-weight: 600; margin-left: 8px; }
.location__map { grid-column: 7 / -1; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; background: var(--sand); }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) sepia(.12) contrast(.95); transition: filter .8s var(--ease); }
.location__map:hover iframe { filter: grayscale(.2); }

/* CTA final --------------------------------------------------------------- */
.final { background: var(--graphite); color: var(--offwhite); padding-block: clamp(112px, 14vw, 200px); position: relative; overflow: hidden; }
.final::before { /* arco champagne discreto */
  content: ""; position: absolute; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(184, 155, 99, .18); right: -18vw; top: -30%;
}
.final__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.final__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.3rem, 4.6vw, 4.5rem); line-height: 1.08; letter-spacing: -.026em; text-wrap: balance; }
.final__title em { color: var(--champagne); }
.final__side p:first-child { color: #cfc9be; font-size: 17px; margin-bottom: 32px; max-width: 34ch; }
.final__address { margin-top: 28px; font-size: 13px; letter-spacing: .06em; color: var(--muted-dark); }

/* Footer ------------------------------------------------------------------ */
.footer { background: #171614; color: var(--muted-dark); padding: 80px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: flex; align-items: flex-start; gap: 16px; color: var(--offwhite); }
.footer__brand p { color: var(--muted-dark); line-height: 1.5; padding-top: 4px; }
.footer__nav { display: grid; gap: 10px; justify-items: start; }
.footer__nav a, .footer__contact a { color: #e5e0d6; }
.footer__contact { display: grid; gap: 12px; align-content: start; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 72px; font-size: 12px; }

/* WhatsApp flutuante ------------------------------------------------------ */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--graphite); color: var(--offwhite); font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(20, 20, 18, .22);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .4s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #000; }
.fab svg, .header__wa svg { width: 22px; height: 22px; fill: none; stroke: var(--champagne); stroke-width: 1.5; }
.fab svg .fill, .header__wa svg .fill { fill: var(--champagne); stroke: none; }
.menu-open .fab { opacity: 0; pointer-events: none; }

/* Reveal genérico --------------------------------------------------------- */
.js [data-reveal]:not([data-reveal="line"]) { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal="image"] { transform: none; clip-path: inset(12% 0 0 0); transition: opacity 1.2s var(--ease), clip-path 1.4s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1099px) {
  .nav ul { gap: 24px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav, .header__cta { display: none; }
  .header__wa {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); transition: border-color .4s, color .4s;
  }
  .menu-toggle { display: block; margin-right: -8px; }
  .header__inner { gap: 8px; }
  .header.is-scrolled .header__inner { height: 64px; }

  /* Tablet/celular: foto no topo (recorte no atendimento), texto abaixo sobre o escuro */
  .hero { display: block; min-height: 0; padding-top: 0; }
  /* Recorte só do atendimento (a metade esquerda da foto é fundo preto) */
  .hero__bg { position: relative; inset: auto; height: min(108vw, 560px); }
  .hero__bg img { position: absolute; right: 0; top: -14vw; width: auto; height: 150vw; max-width: none; object-fit: fill; transform: none; }
  .hero__bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(11, 12, 16, 0), #0b0c10); }
  .hero__inner { margin-top: -72px; }
  .hero__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .hero__aside, .hero__logo { grid-column: 1 / -1; }
  .hero__logo { aspect-ratio: auto; min-height: 200px; border-radius: 120px 4px 4px 4px; padding: 32px 24px 32px 48px; }
  .js .hero__logo, .is-loaded .hero__logo { clip-path: none; }
  .hero__bg::before { height: 150px; background: linear-gradient(to bottom, rgba(11, 12, 16, .92), rgba(11, 12, 16, 0)); }
  .header:not(.is-scrolled) .header__wa { background: rgba(11, 12, 16, .45); }
  .hero__place { margin-top: 32px; }

  .treat__head { grid-template-columns: 1fr; gap: 20px; }
  .treat__intro { justify-self: start; }

  .protese__grid { display: block; }
  .protese__sticky { position: static; max-width: 460px; margin-inline: auto; }
  .protese__frame { width: min(100% - 16px, 400px); }
  .frame--tooth { width: 100%; height: auto; }
  .protese__counter { display: none; }
  .protese__content { margin-top: 72px; }
  .protese__intro { padding-bottom: 48px; }
  .pstep { min-height: 0; opacity: 1; padding-block: 36px; }

  .results__grid { grid-template-columns: 1fr; row-gap: 40px; grid-template-areas: "head" "intro" "cases"; }
  .results__cases { grid-template-columns: 1fr 1fr; }
  .results__intro { margin-top: -16px; }

  .process__steps { grid-template-columns: 1fr; gap: 48px; padding-top: 0; padding-left: 40px; }
  .process__steps::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--line-scale, 1)); }
  .process__steps li::before { top: 8px; left: -40px; }
  .process__num { font-size: 3rem; margin-bottom: 12px; }

  .clinic__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .clinic__media, .clinic__content { grid-column: 1 / -1; }

  .location__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .location__info, .location__map { grid-column: 1 / -1; }

  .final__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { --h1: clamp(2.1rem, 8.8vw, 2.9rem); }
  .hero__bg img { top: -8vw; height: 175vw; }
  .hero__title { line-height: 1.02; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .14em; }
  .hero__title .line { display: inline; overflow: visible; }
  .hero__title .line > span { display: inline; }
  .js .hero__title .line > span { transform: none; }
  .js .hero__title { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .is-loaded .hero__title { opacity: 1; transform: none; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link--quiet { align-self: flex-start; }

  .brand__mark { font-size: 30px; }

  .trow { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "num arrow" "title arrow" "body body"; gap: 6px 16px; padding: 26px 0; }
  .trow__num { grid-area: num; opacity: 1; transform: none; color: var(--gold-ink); }
  .trow__title { grid-area: title; font-size: 1.7rem; }
  .trow__body { grid-area: body; margin-top: 8px; }
  .trow__arrow { grid-area: arrow; width: 44px; height: 44px; align-self: center; }
  .trow__more { display: none; }

  .pstep h3 { font-size: 1.9rem; }


  .clinic__facts div { grid-template-columns: 1fr; gap: 4px; }
  .clinic__sign { flex-wrap: wrap; gap: 12px 20px; }
  .clinic__sign i { flex-basis: 100%; order: 1; }
  .clinic__sign span:last-child { order: 2; }

  .location__actions { flex-direction: column; }
  .location__actions .btn { width: 100%; }
  .location__map { aspect-ratio: 1; }

  .final__side .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }

  .fab { right: 16px; bottom: 16px; height: 56px; width: 56px; padding: 0; justify-content: center; }
  .fab svg { width: 26px; height: 26px; }
}

/* Movimento reduzido ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__title, .js .hero__title .line > span, .js .hero__eyebrow, .js .hero__aside,
  .js .hero__bg, .js .hero__logo, .js .process__steps * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .process__steps { --line-scale: 1; }
  .frame img { transform: none !important; }
  .pstep { opacity: 1; }
}

/* ==========================================================================
   Ajuste de tom (v2): clínica acessível, público de bairro.
   Menos contraste "luxo", mais claro e acolhedor; WhatsApp em verde
   reconhecível; preço de entrada visível.
   ========================================================================== */
.btn--wa { --bg: #1d8049; --fg: #ffffff; }
.btn--wa:hover { --bg: #166a3b; }
.fab { background: #1d8049; }
.fab:hover { background: #166a3b; }
.fab svg { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
/* Botão flutuante só com o ícone de dente (abre o WhatsApp) */
.fab { width: 60px; height: 60px; padding: 0; justify-content: center; }
.fab svg { width: 28px; height: 28px; }
.fab:hover svg { transform: scale(1.08); }
.fab svg { transition: transform .4s var(--ease); }

/* Faixa de especialidades em dourado claro, texto escuro */
.marquee { background: var(--champagne); color: var(--graphite); border-color: transparent; }
.marquee i { background: var(--graphite); opacity: .5; }

/* A clínica passa a ser seção clara */
.clinic { background: var(--sand); color: var(--ink); }
.clinic .h2 em { color: var(--gold-ink); }
.clinic__text { color: var(--muted); }
.clinic__facts { border-color: var(--line); }
.clinic__facts div { border-color: var(--line); }
.clinic__facts dt { color: var(--gold-ink); }
.clinic__facts dd { color: var(--ink); }
/* Marca MH em tamanho grande */
.logo-lockup { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 28px); color: var(--ink); }
.logo-lockup__mark {
  font-family: var(--logo); font-weight: 500; font-size: clamp(64px, 7.6vw, 120px); line-height: .9; letter-spacing: -.02em;
  padding-right: clamp(16px, 2.2vw, 28px); border-right: 2px solid var(--champagne);
}
.logo-lockup__name { font-size: clamp(11px, 1.1vw, 15px); line-height: 1.45; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.clinic__sign { color: var(--gold-ink); }
.clinic__sign i { background: rgba(127, 95, 38, .35); }

/* CTA final mais quente */
.final { background: #3a2f22; }
.final::before { border-color: rgba(226, 197, 143, .22); }
.final__side p:first-child { color: #e6dccb; }
.final__address { color: #c9bca6; }

/* Convite para perguntar o valor (sem anunciar preço — art. 44 do Código de Ética Odontológica) */
.trow__price { display: inline; color: var(--gold-ink); font-weight: 600; white-space: nowrap; }



.location__hours { margin-top: 8px; font-size: 14px; color: var(--muted); }
.footer__contact a { justify-self: start; }

/* Nota de valores (sem anunciar preço — art. 44 do Código de Ética Odontológica) */
.value-note {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; max-width: 540px; margin: -4px 0 36px; padding: 24px 0;
  border-top: 1px solid rgba(226, 197, 143, .3); border-bottom: 1px solid rgba(226, 197, 143, .3);
}
.value-note__kicker { padding-top: 7px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne-soft); }
.value-note { color: inherit; transition: border-color .4s var(--ease); }
.value-note:hover { border-color: rgba(226, 197, 143, .6); }
.value-note__title { display: block; font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.15; color: var(--offwhite); }
.value-note__text { display: block; margin: 10px 0 0; font-size: 15px; color: #bdb4a5; max-width: 42ch; }
@media (max-width: 640px) { .value-note { grid-template-columns: 1fr; gap: 10px; } }

/* Casos de resultado: o botão "aplica" o tratamento e uma linha de luz revela o resultado */
.smile {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #2a221a;
  box-shadow: 0 0 0 1px rgba(226, 197, 143, .22);
}
.smile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03) saturate(.95); }
.smile__img--result { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1); }
.smile.is-result .smile__img--result { clip-path: inset(0 0 0 0); }
.smile__sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; z-index: 2; opacity: 0; pointer-events: none;
  background: #fff; box-shadow: 0 0 18px 6px rgba(255, 244, 214, .55), 0 0 60px 18px rgba(226, 197, 143, .25);
}
.smile.is-running .smile__sweep { animation: smile-sweep 1.6s cubic-bezier(.65, 0, .35, 1) forwards; }
.smile.is-running.is-back .smile__sweep { animation-name: smile-sweep-back; }
@keyframes smile-sweep { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes smile-sweep-back { 0% { left: 100%; opacity: 1; } 92% { opacity: 1; } 100% { left: 0; opacity: 0; } }

.smile__btn {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .35s var(--ease), background .35s, opacity .35s;
}
.smile__btn:hover { transform: translateX(-50%) translateY(-2px); background: #fff; }
.smile__btn:disabled { opacity: .7; cursor: default; }
.smile__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: #1d8049; stroke-width: 1.6; stroke-linejoin: round; }
.smile__spark { fill: var(--champagne); stroke: none; transform-origin: 19.5px 3.5px; }
.smile__btn:not(:disabled):hover .smile__spark { animation: smile-spark 1s var(--ease) infinite; }
@keyframes smile-spark { 50% { transform: scale(1.5) rotate(45deg); } }
.smile.is-result .smile__btn { background: rgba(20, 16, 12, .72); color: #fff; }
.smile.is-result .smile__icon { stroke: var(--champagne-soft); }

.results__case figcaption { margin-top: 18px; font-size: 13px; }
@media (max-width: 640px) {
  .results__cases { grid-template-columns: 1fr; }
  .smile__btn { font-size: 14px; padding: 11px 18px 11px 14px; }
}

.value-note__more { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 600; color: var(--champagne-soft); white-space: nowrap; }
.value-note__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .45s var(--ease); }
.value-note:hover .value-note__more svg { transform: translateX(4px); }

/* Foto da fachada na seção O consultório */
.clinic__photo .frame { aspect-ratio: 4 / 3; border-radius: 4px; box-shadow: 0 24px 60px rgba(60, 45, 20, .16); }
.clinic__photo img { transition: transform 1.2s var(--ease); }
.clinic__photo:hover img { transform: scale(1.03); }
.clinic__photo figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
.clinic__photo figcaption span { color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; margin-right: 8px; }

/* Responsável técnica (seção O consultório) */
.doctor {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line);
}
.doctor__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 4px 4px; background: #0d0d0d; box-shadow: 0 24px 60px rgba(60, 45, 20, .18); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor__name { font-family: var(--display); font-weight: 500; letter-spacing: -.022em; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; color: var(--ink); }
.doctor__role { margin: 12px 0 32px; font-size: 16px; color: var(--muted); }
@media (max-width: 640px) {
  .doctor { grid-template-columns: 1fr; justify-items: start; }
  .doctor__photo { width: min(100%, 280px); }
  .doctor .btn { width: 100%; }
}
