/* ==========================================================================
   Dr. Filipi Viana · Biomédico esteta
   Conceito: linhas de marcação. O site é "marcado" como um rosto antes da
   aplicação: linhas-guia e pontos aparecem primeiro, o conteúdo preenche depois.
   ========================================================================== */

:root {
  --porcelana: #ECEEEA;
  --porcelana-2: #E1E5E0;
  --branco: #F7F8F6;
  --grafite: #1E2422;
  --musgo: #3D4A43;
  --musgo-claro: #5E6B63;
  --rosa: #B26F78;
  --rosa-claro: #D9A6AC;
  --linha: #9AA59E;
  --linha-suave: rgba(30, 36, 34, .14);

  --f-display: "Italiana", "Didot", "Bodoni 72", serif;
  --f-texto: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* escala tipográfica (razão ~1.333) */
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.6rem);
  --t-3xl: clamp(2.9rem, 1.6rem + 5.6vw, 6.4rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--porcelana);
  color: var(--grafite);
  font-family: var(--f-texto);
  font-weight: 300;
  font-size: var(--t-m);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
::selection { background: var(--rosa-claro); color: var(--grafite); }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--grafite); color: var(--branco); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Vídeos: sempre mudos, sem controles visíveis */
video { pointer-events: none; object-fit: cover; }
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }

/* --------------------------------------------------------------------------
   Botões e links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 400 var(--t-s)/1 var(--f-texto);
  letter-spacing: .04em;
  text-decoration: none;
  padding: 1.05rem 1.6rem;
  border-radius: 999px;
  background: var(--grafite); color: var(--branco);
  border: 1px solid var(--grafite);
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn:hover { background: var(--musgo); border-color: var(--musgo); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--grafite); }
.btn--ghost:hover { background: var(--grafite); color: var(--branco); }
.btn--light { background: var(--porcelana); color: var(--grafite); border-color: var(--porcelana); }
.btn--light:hover { background: var(--rosa-claro); border-color: var(--rosa-claro); }
.btn--sm { padding: .75rem 1.15rem; font-size: var(--t-xs); }

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s, transform .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(236, 238, 234, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--linha-suave);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: grid; grid-template-columns: auto; text-decoration: none; line-height: 1; }
.brand-dr { font-size: .62rem; letter-spacing: .2em; font-weight: 400; margin-bottom: .2rem; }
.brand-name { font-weight: 300; font-size: 1.28rem; letter-spacing: .32em; white-space: nowrap; }
.brand-sub { font-size: .56rem; letter-spacing: .5em; color: var(--musgo-claro); margin-top: .35rem; text-transform: uppercase; }

.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: var(--t-s); font-weight: 400; position: relative; padding: .35rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--rosa); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.header-cta { flex: none; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer;
  font: 400 var(--t-s) var(--f-texto); color: var(--grafite); align-items: center; gap: .6rem;
}
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; position: relative; transition: transform .3s; }
.nav-toggle span::after { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 1px; background: currentColor; transition: transform .3s, width .3s; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { width: 26px; transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; gap: 0; padding: 2rem var(--gutter);
    background: var(--porcelana);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s .55s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease); }
  .nav a { font-family: var(--f-display); font-size: 2.6rem; padding: .7rem 0; border-bottom: 1px solid var(--linha-suave); }
  .nav a::after { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); width: 8px; height: 8px; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateY(-50%) scale(1); }
  .nav .nav-whats { margin-top: 2rem; font-family: var(--f-texto); font-size: var(--t-m); border: 0; padding: 1.1rem 1.6rem; justify-content: center; color: var(--branco); }
  .nav .nav-whats::after { display: none; }
}
@media (min-width: 961px) { .nav .nav-whats { display: none; } }

/* --------------------------------------------------------------------------
   Linha de construção (traço contínuo que acompanha o scroll)
   -------------------------------------------------------------------------- */
main { position: relative; }
.trace {
  position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * .45); width: 1px;
  pointer-events: none; z-index: 2;
}
.trace::before { content: ""; position: absolute; inset: 0; background: var(--linha-suave); }
.trace-fill {
  position: absolute; inset: 0; background: var(--rosa);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.trace-dot {
  position: absolute; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--porcelana); border: 1px solid var(--linha);
  transition: background .4s, border-color .4s, transform .4s var(--ease-out);
}
.trace-dot.is-on { background: var(--rosa); border-color: var(--rosa); transform: scale(1.25); }
.on-dark .trace-dot, .trace-dot.on-dark { background: var(--grafite); }
@media (max-width: 720px) { .trace { display: none; } }

/* --------------------------------------------------------------------------
   Sistema de "construção" no scroll
   Só ativa com JS (.js no <html>) e sem preferência por menos movimento.
   -------------------------------------------------------------------------- */

/* Linhas que se desenham */
.rule { height: 1px; background: var(--linha-suave); transform-origin: left; }
.on-dark .rule { background: rgba(236, 238, 234, .18); }

/* Molduras: marcas de corte aparecem, depois a imagem se revela */
.frame { position: relative; }
.frame-media { overflow: hidden; position: relative; height: 100%; }
.frame-media img, .frame-media video { width: 100%; height: 100%; object-fit: cover; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 1;
  border-color: var(--rosa); border-style: solid;
}
.frame::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.frame::after { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }

.js .build .rule, .js .rule.build { transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .build.is-built .rule, .js .rule.build.is-built { transform: scaleX(1); }

.js .frame.build::before, .js .frame.build::after { opacity: 0; transform: scale(.4); transition: opacity .4s, transform .6s var(--ease-out); }
.js .frame.build .frame-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) .35s; }
.js .frame.build .frame-media > * { transform: scale(1.12); transition: transform 1.8s var(--ease-out) .35s; }
.js .frame.build.is-built::before, .js .frame.build.is-built::after { opacity: 1; transform: none; }
.js .frame.build.is-built .frame-media { clip-path: inset(0 0 0 0); }
.js .frame.build.is-built .frame-media > * { transform: none; }

/* Texto: cada linha sobe por trás de uma máscara */
.js .lines.build > * { clip-path: inset(0 0 100% 0); transform: translateY(.6em); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.js .lines.build > *:nth-child(2) { transition-delay: .08s; }
.js .lines.build > *:nth-child(3) { transition-delay: .16s; }
.js .lines.build > *:nth-child(4) { transition-delay: .24s; }
.js .lines.build > *:nth-child(5) { transition-delay: .32s; }
.js .lines.build > *:nth-child(n+6) { transition-delay: .4s; }
.js .lines.build.is-built > * { clip-path: inset(-.3em 0 -.3em 0); transform: none; }

/* Pontos de marcação */
.mark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); flex: none; }
.js .build .mark { transform: scale(0); transition: transform .5s var(--ease-out); transition-delay: calc(.5s + var(--i, 0) * 90ms); }
.js .build.is-built .mark { transform: scale(1); }

/* Itens de lista entram em sequência */
.js .stagger.build > * { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + .2s); }
.js .stagger.build.is-built > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .build, .js .build *, .js .build::before, .js .build::after { transition: none !important; }
  .js .build .rule, .js .rule.build { transform: none !important; }
  .js .frame.build .frame-media { clip-path: none !important; }
  .js .frame.build .frame-media > * { transform: none !important; }
  .js .lines.build > * { clip-path: none !important; transform: none !important; }
  .js .stagger.build > * { opacity: 1 !important; transform: none !important; }
  .js .build .mark { transform: none !important; }
  .js .frame.build::before, .js .frame.build::after { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Seções base
   -------------------------------------------------------------------------- */
.section { padding: clamp(5rem, 11vw, 10rem) 0; position: relative; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.on-dark { background: var(--grafite); color: var(--porcelana); }
.on-dark .muted { color: #AEB8B1; }
.on-alt { background: var(--porcelana-2); }
.muted { color: var(--musgo-claro); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { max-width: 44ch; margin: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

.note { font-size: var(--t-xs); color: var(--musgo-claro); font-style: italic; }
.on-dark .note { color: #AEB8B1; }

/* --------------------------------------------------------------------------
   Hero (início)
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 2rem) 0 3rem; display: flex; align-items: center; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }

.hero-title { font-size: var(--t-3xl); line-height: .98; max-width: 11ch; }
.hero-title span { display: block; }
.hero-lead { margin: 2rem 0 2.5rem; max-width: 40ch; font-size: var(--t-l); line-height: 1.5; color: var(--musgo); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; }
.hero-meta { display: flex; gap: 1.2rem 2.4rem; flex-wrap: wrap; margin-top: 3.5rem; font-size: var(--t-xs); color: var(--musgo-claro); }
.hero-meta div { display: flex; align-items: center; gap: .55rem; }

/* Moldura do vídeo com os terços faciais */
.face { position: relative; aspect-ratio: 9 / 15; max-height: calc(100svh - var(--header-h) - 5rem); justify-self: end; width: 100%; max-width: 440px; }
.face .frame-media { border-radius: 220px 220px 4px 4px; background: var(--porcelana-2); }
.thirds { position: absolute; inset: 0; pointer-events: none; }
.third {
  position: absolute; right: -2.5rem; height: 1px; width: calc(100% + 60vw);
  background: var(--rosa); opacity: .55; transform-origin: right;
}
.third:nth-child(1) { top: 33.33%; }
.third:nth-child(2) { top: 66.66%; }
.third-label {
  position: absolute; right: 1.1rem; transform: translateY(-140%);
  font-size: var(--t-xs); font-style: italic; color: var(--branco); white-space: nowrap;
  text-shadow: 0 1px 8px rgba(30, 36, 34, .6);
}
.midline { position: absolute; left: 50%; top: -2rem; bottom: -2rem; width: 1px; background: rgba(247, 248, 246, .55); transform-origin: top; }
.face-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--rosa); left: 50%; }
.face-dot:nth-of-type(7) { top: 33.33%; }
.face-dot:nth-of-type(8) { top: 66.66%; }

/* Sequência de abertura (o único momento orquestrado no carregamento) */
.js .hero .third { transform: scaleX(0); animation: draw-x 1.4s var(--ease) forwards; }
.js .hero .third:nth-child(2) { animation-delay: .2s; }
.js .hero .midline { transform: scaleY(0); animation: draw-y 1.4s var(--ease) .5s forwards; }
.js .hero .face-dot { transform: scale(0); animation: pop .6s var(--ease-out) 1.3s forwards; }
.js .hero .face-dot:nth-of-type(8) { animation-delay: 1.45s; }
.js .hero .third-label { opacity: 0; animation: fade .8s ease 1.5s forwards; }
.js .hero .face .frame-media { clip-path: inset(100% 0 0 0 round 220px 220px 4px 4px); animation: unveil 1.6s var(--ease) .9s forwards; }
.js .hero .hero-title span { clip-path: inset(0 0 100% 0); transform: translateY(.4em); animation: rise 1.1s var(--ease) forwards; }
.js .hero .hero-title span:nth-child(1) { animation-delay: .25s; }
.js .hero .hero-title span:nth-child(2) { animation-delay: .38s; }
.js .hero .hero-title span:nth-child(3) { animation-delay: .51s; }
.js .hero .hero-fade { opacity: 0; animation: fade 1s ease 1.1s forwards; }

@keyframes draw-x { to { transform: scaleX(1); } }
@keyframes draw-y { to { transform: scaleY(1); } }
@keyframes pop { to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { clip-path: inset(-.3em 0 -.3em 0); transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 220px 220px 4px 4px); } }

@media (prefers-reduced-motion: reduce) {
  .js .hero *, .js .hero .face .frame-media { animation: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .js .hero .third { opacity: .55 !important; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero .wrap { grid-template-columns: 1fr; }
  .face { justify-self: start; max-width: min(78vw, 400px); max-height: none; margin-top: 1rem; }
  .third { width: calc(100% + 2.5rem); }
}

/* --------------------------------------------------------------------------
   Manifesto: palavras se acendem conforme o scroll
   -------------------------------------------------------------------------- */
.statement { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1.15; max-width: 22ch; margin: 0; }
.statement .w { color: rgba(30, 36, 34, .16); transition: color .3s; }
.statement .w.is-lit { color: var(--grafite); }
.no-js .statement .w, .reduce .statement .w { color: var(--grafite); }
.statement-wrap { display: grid; grid-template-columns: 1fr minmax(0, 3fr); gap: 2rem; }
.statement-side { padding-top: .8rem; font-size: var(--t-s); color: var(--musgo-claro); display: flex; gap: .7rem; align-items: flex-start; }
.statement-side .mark { margin-top: .5rem; }
@media (max-width: 820px) { .statement-wrap { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Lista de procedimentos (linhas, não cartões)
   -------------------------------------------------------------------------- */
.proc-list { list-style: none; margin: 0; padding: 0; }
.proc-item { position: relative; }
.proc-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 1rem 3rem; align-items: baseline;
  padding: 1.9rem 0; text-decoration: none;
}
.proc-row h3 { font-size: var(--t-xl); transition: transform .5s var(--ease-out); }
.proc-row p { margin: 0; max-width: 48ch; color: var(--musgo); }
.on-dark .proc-row p { color: #BFC8C2; }
.proc-row .go { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .4; transition: opacity .3s, background .3s, color .3s; }
.proc-row .go svg { width: 16px; height: 16px; }
a.proc-row:hover h3 { transform: translateX(.6rem); }
a.proc-row:hover .go { opacity: 1; background: var(--rosa); border-color: var(--rosa); color: var(--branco); }
@media (max-width: 720px) {
  .proc-row { grid-template-columns: 1fr auto; }
  .proc-row p { grid-column: 1 / -1; grid-row: 2; }
}

/* --------------------------------------------------------------------------
   Resultados
   -------------------------------------------------------------------------- */
.results { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.result { margin: 0; }
.result figcaption { display: flex; gap: .7rem; align-items: baseline; justify-content: space-between; margin-top: 1.1rem; font-size: var(--t-s); }
.result figcaption strong { font-family: var(--f-display); font-weight: 400; font-size: var(--t-l); }
.result-a { grid-column: 1 / span 7; }
.result-b { grid-column: 8 / span 5; align-self: end; }
.result-c { grid-column: 2 / span 4; }
.result-d { grid-column: 7 / span 5; margin-top: 5rem; }
.result .frame-media { background: var(--porcelana-2); }
.result-a .frame-media { aspect-ratio: 1080 / 864; }
.result-b .frame-media { aspect-ratio: 921 / 785; }
.result-c .frame-media { aspect-ratio: 4 / 5; }
.result-d .frame-media { aspect-ratio: 3 / 4; }
@media (max-width: 820px) {
  .results { grid-template-columns: 1fr; }
  .result-a, .result-b, .result-c, .result-d { grid-column: auto; margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Vídeos (faixa de reels)
   -------------------------------------------------------------------------- */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.reel .frame-media { aspect-ratio: 9 / 16; background: var(--musgo); border-radius: 3px; }
.reel:nth-child(2) { margin-top: 4rem; }
.reel:nth-child(3) { margin-top: 8rem; }
.on-dark .frame::before, .on-dark .frame::after { border-color: var(--rosa-claro); }
@media (max-width: 720px) {
  .reels { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-left: 10px; padding-top: 10px; }
  .reel { scroll-snap-align: start; margin-top: 0 !important; }
}

/* --------------------------------------------------------------------------
   Sobre (bloco)
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about .frame-media { aspect-ratio: 1; }
.about h2 { font-size: var(--t-2xl); margin-bottom: 1.6rem; }
.about-text p { max-width: 50ch; }
.facts { list-style: none; padding: 0; margin: 2.2rem 0 2.5rem; }
.facts li { display: grid; grid-template-columns: 12ch 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--linha-suave); font-size: var(--t-s); }
.facts li:last-child { border-bottom: 1px solid var(--linha-suave); }
.facts span:first-child { color: var(--musgo-claro); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Etapas (sequência real: avaliação → retorno)
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.2rem; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -.9rem; left: 0; font-family: var(--f-display); font-size: 1.6rem; background: inherit; padding-right: .8rem; line-height: 1; }
.step .rule { position: absolute; top: 0; left: 0; right: -2rem; }
.step h3 { font-size: var(--t-l); margin-bottom: .6rem; font-family: var(--f-texto); font-weight: 400; }
.step p { font-size: var(--t-s); color: var(--musgo); margin: 0; }
.on-dark .step p { color: #BFC8C2; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Localização
   -------------------------------------------------------------------------- */
.place { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.place h2 { font-size: var(--t-2xl); margin-bottom: 1.6rem; }
.place address { font-style: normal; font-size: var(--t-l); line-height: 1.5; margin-bottom: 2rem; }
.map .frame-media { min-height: 420px; background: var(--porcelana-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.85) contrast(1.05); display: block; }
@media (max-width: 820px) { .place { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.cta { text-align: left; overflow: hidden; }
.cta h2 { font-size: var(--t-3xl); max-width: 14ch; line-height: 1; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2.5rem; }
.cta p { max-width: 38ch; margin-bottom: 1.6rem; }
.cta .rule { margin: 3rem 0; }

/* --------------------------------------------------------------------------
   Cabeçalho de páginas internas
   -------------------------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)) 0 clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: var(--t-3xl); max-width: 14ch; }
.page-hero .lead { font-size: var(--t-l); line-height: 1.5; max-width: 46ch; color: var(--musgo); margin: 1.8rem 0 0; }
.crumb { font-size: var(--t-xs); color: var(--musgo-claro); margin-bottom: 1.6rem; display: flex; gap: .6rem; align-items: center; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* Procedimentos detalhados */
.proc-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5rem) 0; position: relative; scroll-margin-top: calc(var(--header-h) + 1rem); }
.proc-detail > .rule { position: absolute; top: 0; left: 0; right: 0; }
.proc-detail h2 { font-size: var(--t-2xl); }
.proc-detail .body p { max-width: 58ch; }
.proc-detail dl { display: grid; grid-template-columns: 14ch 1fr; gap: .7rem 1.5rem; margin: 2rem 0 0; font-size: var(--t-s); }
.proc-detail dt { color: var(--musgo-claro); }
.proc-detail dd { margin: 0; }
.proc-detail .frame { margin-top: 2rem; max-width: 520px; }
.proc-detail .frame-media { aspect-ratio: 5 / 4; }
@media (max-width: 820px) { .proc-detail { grid-template-columns: 1fr; } .proc-detail dl { grid-template-columns: 1fr; gap: .2rem; } .proc-detail dd { margin-bottom: .8rem; } }

.proc-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.proc-index a { text-decoration: none; font-size: var(--t-s); padding: .55rem 1rem; border: 1px solid var(--linha-suave); border-radius: 999px; transition: border-color .25s, background .25s; }
.proc-index a:hover { border-color: var(--grafite); background: var(--branco); }

/* Sobre: bloco grande de imagem */
.portrait { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait .frame-media { aspect-ratio: 1; }
.portrait-text h2 { font-size: var(--t-xl); margin: 0 0 1.2rem; }
.portrait-text p { max-width: 52ch; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.values li { position: relative; padding-top: 1.8rem; }
.values .rule { position: absolute; top: 0; left: 0; right: 0; }
.values h3 { font-size: var(--t-xl); margin: 0 0 .8rem; display: flex; align-items: center; gap: .7rem; }
.values p { color: var(--musgo); font-size: var(--t-s); }
.on-dark .values p { color: #BFC8C2; }
@media (max-width: 820px) { .portrait, .values { grid-template-columns: 1fr; } }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); }
.channels { list-style: none; padding: 0; margin: 0; }
.channels li { border-top: 1px solid var(--linha-suave); }
.channels li:last-child { border-bottom: 1px solid var(--linha-suave); }
.channels a, .channels div { display: grid; grid-template-columns: 10ch 1fr auto; gap: 1rem; align-items: baseline; padding: 1.4rem 0; text-decoration: none; }
.channels .k { font-size: var(--t-xs); color: var(--musgo-claro); }
.channels .v { font-family: var(--f-display); font-size: var(--t-l); }
.channels a:hover .v { color: var(--rosa); }
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--t-s); font-weight: 400; }
.field input, .field select, .field textarea {
  font: 300 var(--t-m) var(--f-texto); color: var(--grafite);
  background: transparent; border: 0; border-bottom: 1px solid var(--linha); border-radius: 0;
  padding: .7rem 0; transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231E2422'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right .2rem center no-repeat; padding-right: 1.5rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rosa); box-shadow: 0 1px 0 var(--rosa); }
.field .hint { font-size: var(--t-xs); color: var(--musgo-claro); }
.form-error { color: #8E3B45; font-size: var(--t-s); min-height: 1.4em; margin: 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .channels a, .channels div { grid-template-columns: 1fr auto; } .channels .k { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer { background: var(--grafite); color: var(--porcelana); padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; position: relative; z-index: 3; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; }
.site-footer .brand-sub { color: #AEB8B1; }
.footer-tag { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.15; margin: 2rem 0 0; max-width: 16ch; }
.footer-col h3 { font-family: var(--f-texto); font-size: var(--t-xs); font-weight: 400; color: #AEB8B1; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--t-s); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--rosa-claro); }
.footer-col address { font-style: normal; font-size: var(--t-s); line-height: 1.6; }
.footer-word {
  font-family: var(--f-texto); font-weight: 300; letter-spacing: .3em; line-height: 1;
  font-size: clamp(2.2rem, 9.6vw, 9rem); white-space: nowrap; margin: clamp(3rem, 7vw, 6rem) 0 1.5rem;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 238, 234, .4); overflow: hidden;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); color: #AEB8B1; padding-top: 1.5rem; border-top: 1px solid rgba(236, 238, 234, .14); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.whats-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grafite); color: var(--branco);
  box-shadow: 0 10px 30px -10px rgba(30, 36, 34, .5);
  transform: scale(0); transition: transform .5s var(--ease-out), background .25s;
}
.whats-float.is-visible { transform: scale(1); }
.whats-float:hover { background: var(--rosa); }
.whats-float svg { width: 26px; height: 26px; }
.no-js .whats-float { transform: scale(1); }
