/* ==========================================================================
   GENZ Clínica — design system
   Paleta: lâmina histológica (hematoxilina / eosina). Zero radius, zero sombra
   decorativa: hierarquia por linha de 1px, contraste de fundo e espaço.
   ========================================================================== */

:root {
  --ground: #FBF8FA;
  --surface: #FFFFFF;
  --sunk: #F5F0F7;
  --ink: #211A2A;
  --ink-2: #4E4459;
  --muted: #6C6177; /* AA: 5.51:1 no --ground, 5.17:1 no --sunk. Carrega CRM/RQE — não clarear. */
  --rule: #E6DEE8;
  --rule-strong: #D2C6D8;
  --violet: #5D3A87;
  --violet-deep: #48296E;
  --violet-soft: #F1EAF7;
  --violet-light: #B295DA;
  --eosin: #B0546F;
  --eosin-soft: #FBEDF1;
  --eosin-light: #E094A9;
  --night: #1A1220;
  --night-2: #241A2E;
  --night-rule: rgba(255, 255, 255, .12);
  --night-ink: #F2ECF4;
  --night-ink-2: #C4B9CC;
  --night-muted: #9A8FA6;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-circ: cubic-bezier(.075, .82, .165, 1);
  --ease-in-out-circ: cubic-bezier(.785, .135, .15, .86);

  --container: 1440px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --nav-h: 4.5rem;
}

/* ---------- base ---------- */
html {
  font-size: clamp(16px, .35vw + 13px, 19px);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--eosin); outline-offset: 3px; }
::selection { background: var(--violet-soft); color: var(--violet-deep); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1rem;
  font-family: var(--font-mono); font-size: .75rem;
}
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--sunk { background: var(--sunk); }
.section--night { background: var(--night); color: var(--night-ink); }

/* ---------- type ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--night .mono { color: var(--night-muted); }

.eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--eosin); flex: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.028em; }
.h-lg { font-size: clamp(2.05rem, 4vw, 3.4rem); }
.h-display em { font-style: italic; font-weight: 400; color: var(--violet); }
.section--night .h-display em { color: var(--violet-light); }

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 48ch;
  margin-top: 1.25rem;
}
.section--night .lede { color: var(--night-ink-2); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--wide { max-width: 72ch; }

/* ---------- buttons (camada -bg absoluta animada, nunca o botão em si) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  border: 1px solid var(--violet);
  color: var(--violet);
  font: 600 .76rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--violet);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out-circ);
}
.btn > *:not(.btn__bg) { position: relative; z-index: 1; }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.btn:hover .btn__bg, .btn:focus-visible .btn__bg { transform: none; }
.btn:hover, .btn:focus-visible { color: #fff; }

.btn--primary { background: var(--violet); color: #fff; }
.btn--primary .btn__bg { background: var(--violet-deep); }

.btn--light { border-color: rgba(255, 255, 255, .35); color: var(--night-ink); }
.btn--light .btn__bg { background: var(--night-ink); }
.btn--light:hover, .btn--light:focus-visible { color: var(--night); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
.nav.is-scrolled {
  background: rgba(251, 248, 250, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--rule);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__mark {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
  letter-spacing: .06em; color: var(--ink);
}
.brand__mark b { font-weight: 500; color: var(--eosin); }
.brand__mark--light { color: var(--night-ink); }
.brand__sub {
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-top: .35rem;
}

.nav__links { display: flex; gap: 2rem; }
.nav__link {
  position: relative;
  font: 500 .72rem/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); padding: .5rem 0;
  transition: color .2s, letter-spacing .6s var(--ease-out-circ);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--eosin); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out-circ);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink); letter-spacing: .18em; }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__cta { min-height: 2.75rem; padding: 0 1.2rem; }

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; align-items: center;
}
.nav__burger span {
  display: block; width: 24px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease-out-circ), opacity .2s;
}
.nav__burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--night); color: var(--night-ink);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .7s var(--ease-in-out-circ), visibility 0s .7s;
}
.menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__link {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.15;
  padding: .35rem 0; border-bottom: 1px solid var(--night-rule);
  transition: color .2s, padding-left .5s var(--ease-out-circ);
}
.menu__link:hover { color: var(--violet-light); padding-left: .5rem; }
.menu__foot { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .menu.is-open ~ * .nav { background: transparent; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + 2.5rem);
  overflow: hidden;
}
.hero__grid {
  flex: 1;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vh, 3.5rem);
}
.hero__eyebrow { margin-bottom: 1.75rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: block; }
.hero__lede { margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.specimen {
  position: relative;
  width: 100%; max-width: 520px; margin-left: auto;
  aspect-ratio: 4 / 5;
}
.specimen__inner {
  position: absolute; inset: 0;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 40px 70px -50px rgba(33, 26, 42, .45);
}
.specimen__glass { position: absolute; inset: 1rem 1rem 3.75rem; overflow: hidden; background: var(--violet-soft); }
.specimen__glass img { width: 100%; height: 100%; object-fit: cover; display: block; }
.specimen__label {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: .75rem; border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.specimen__brand {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: .06em; color: var(--ink); line-height: 1;
}
.specimen__brand b { font-weight: 500; color: var(--eosin); }

.hero__proof {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.proof {
  padding: 1.25rem 1.5rem 1.35rem 0;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: .25rem;
}
.proof:not(:first-child) { padding-left: 1.5rem; }
.proof:last-child { border-right: 0; }
.proof a { display: flex; flex-direction: column; gap: .25rem; }
.proof strong { font-weight: 600; font-size: .95rem; letter-spacing: -.005em; }
.proof span { font-size: .85rem; color: var(--ink-2); line-height: 1.45; }
.proof a:hover strong { color: var(--violet); }

.ticker {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  overflow: hidden; padding: .8rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; padding-right: 3rem; }
.ticker__group span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; gap: 3rem; margin-right: 3rem;
}
.ticker__group span::after { content: ""; width: 4px; height: 4px; background: var(--eosin); border-radius: 50%; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .specimen { max-width: 100%; aspect-ratio: 4 / 3; margin-left: 0; }
  .hero__proof { grid-template-columns: 1fr 1fr; }
  .proof:nth-child(2) { border-right: 0; }
  .proof:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .proof:nth-child(3) { padding-left: 0; }
}
@media (max-width: 480px) {
  .hero__proof { grid-template-columns: 1fr; }
  .proof { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .proof:last-child { border-bottom: 0; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- placeholders de foto (trocar por <img src="…webp">) ---------- */
.reveal { position: relative; overflow: hidden; background: var(--sunk); }
.reveal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.reveal .curtain { display: none; position: absolute; inset: 0; z-index: 2; background: var(--violet); }
.reveal .curtain--eosin { background: var(--eosin); }
.js .reveal .curtain { display: block; }
.ph-cap {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 1;
  background: rgba(251, 248, 250, .88); padding: .4rem .6rem; font-size: .62rem;
}

/* ---------- corpo clínico ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem);
}
.doc { display: flex; flex-direction: column; gap: .55rem; }
.doc__photo { aspect-ratio: 4 / 5; margin-bottom: .6rem; }
.doc__photo img { transition: transform 1.4s var(--ease-out-circ); }
.doc:hover .doc__photo img { transform: scale(1.04); }
.doc__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.2; }
.doc__spec { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.doc__reg { margin-top: .15rem; }
.doc__link {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: .6rem;
  font: 600 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet);
}
.doc__link svg { width: 1rem; height: 1rem; transition: transform .45s var(--ease-out-circ); }
.doc__link:hover svg { transform: translateX(5px); }

@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr 1fr; } }

/* Abaixo de 560px o card de 2 colunas fica com ~160px e espreme nome + RQE + link.
   Vira ficha horizontal: foto à esquerda, dados à direita — mais legível e mais curta. */
@media (max-width: 560px) {
  .team__grid {
    grid-template-columns: 1fr; gap: 0;
    border-top: 1px solid var(--rule-strong);
  }
  .doc {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas: "photo name" "photo spec" "photo reg" "photo link";
    align-content: start;
    gap: .3rem 1.1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--rule-strong);
  }
  .doc__photo { grid-area: photo; aspect-ratio: 3 / 4; margin-bottom: 0; align-self: start; }
  .doc__name { grid-area: name; font-size: 1.16rem; }
  .doc__spec { grid-area: spec; font-size: .85rem; }
  .doc__reg { grid-area: reg; margin-top: .2rem; }
  .doc__link { grid-area: link; margin-top: .5rem; font-size: .66rem; letter-spacing: .08em; }
  .doc__photo .ph-cap { display: none; } /* não cabe em 104px — some junto com o placeholder */
}

/* ---------- especialidades (lista editorial) ---------- */
.spec-list { border-top: 1px solid var(--rule-strong); }
.spec {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 2rem; align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule-strong);
  transition: padding .55s var(--ease-out-circ);
}
.spec__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--surface);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease-out-circ);
}
.spec > *:not(.spec__bg) { position: relative; z-index: 1; }
.spec:hover, .spec:focus-visible { padding-left: 1.5rem; padding-right: 1.5rem; }
.spec:hover .spec__bg, .spec:focus-visible .spec__bg { transform: none; }
.spec__name { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.012em; line-height: 1.2; }
.spec__desc { color: var(--ink-2); font-size: .94rem; line-height: 1.5; max-width: 54ch; }
.spec__arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center; color: var(--ink);
  transition: background .3s, border-color .3s, color .3s, transform .5s var(--ease-out-circ);
}
.spec__arrow svg { width: 1.1rem; height: 1.1rem; }
.spec:hover .spec__arrow { background: var(--violet); border-color: var(--violet); color: #fff; transform: rotate(-45deg); }

@media (max-width: 800px) {
  .spec { grid-template-columns: 1fr auto; gap: .5rem 1.25rem; }
  .spec__name { grid-column: 1; }
  .spec__desc { grid-column: 1; }
  .spec__arrow { grid-column: 2; grid-row: 1 / span 2; }
  .spec:hover { padding-left: .75rem; padding-right: .75rem; }
}

/* ---------- laboratório (sticky, scroll-driven) ---------- */
.lab { padding-block: 0; }
.lab__pin { padding-block: var(--section); }
.lab__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.lab-steps { margin-top: 2.5rem; border-top: 1px solid var(--night-rule); }
.step {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--night-rule);
  opacity: .38; transition: opacity .5s;
}
.step.is-active { opacity: 1; }
.step__n { color: var(--eosin-light); padding-top: .35rem; }
.step__t { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }
.step__p { color: var(--night-ink-2); font-size: .93rem; line-height: 1.55; margin-top: .3rem; max-width: 42ch; }

/* Palco: no desktop as 4 fotos se sobrepõem e trocam por classe.
   No mobile vira grade 2×2, todas visíveis — mesmas imagens, zero duplicação. */
.lab__stage {
  position: relative;
  width: 100%; max-width: 520px; margin-left: auto;
  aspect-ratio: 4 / 5;
}
.frame {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--night-rule);
  opacity: 0; transform: scale(1.03);
  transition: opacity .6s var(--ease-out-quart), transform 1.4s var(--ease-out-quart);
}
.frame.is-active { opacity: 1; transform: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.04); }
/* As fotos de laboratório puxam para o ciano e brigam com o violeta/rosa da marca.
   `color` mantém a luminância e troca só matiz+saturação: unifica sem chapar. */
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--violet); opacity: .34; mix-blend-mode: color;
}
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: baseline; gap: .8rem;
  padding: 2.5rem 1.2rem 1.1rem;
  background: linear-gradient(to bottom, transparent, rgba(20, 14, 26, .9) 55%);
  color: var(--night-ink);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
}
.frame figcaption .mono { color: var(--eosin-light); }

.lab__timeline { position: absolute; top: 0; bottom: 0; right: -1.75rem; width: 1px; background: var(--night-rule); }
.lab__timeline span { position: absolute; inset: 0; background: var(--eosin-light); transform: scaleY(0); transform-origin: top; }

@media (min-width: 900px) {
  .lab { height: 380vh; }
  .lab__pin {
    position: sticky; top: 0;
    height: 100vh; padding-block: 0;
    display: flex; align-items: center; overflow: hidden;
  }
  .lab__stage { max-height: 78vh; }
}

@media (max-width: 899px) {
  .lab__grid { grid-template-columns: 1fr; }
  .step { opacity: 1; }
  .lab__stage {
    position: static; max-width: 100%; aspect-ratio: auto; margin: 2rem 0 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
  }
  /* relative, não static: a legenda é absolute e precisa deste contexto */
  .frame {
    position: relative; aspect-ratio: 1; opacity: 1; transform: none;
  }
  .frame figcaption { font-size: .95rem; padding: 2rem .8rem .7rem; gap: .5rem; }
  .lab__timeline { display: none; }
}
@media (max-width: 400px) {
  /* Coluna única: 4 quadrados de 335px alongam demais a página. */
  .lab__stage { grid-template-columns: 1fr; }
  .frame { aspect-ratio: 16 / 10; }
}

/* Sem GSAP ou com reduced-motion o sticky esconderia 3 das 4 fotos.
   Nesses casos a seção vira fluxo normal com as 4 em grade. */
.no-anim .lab { height: auto; }
.no-anim .lab__pin { position: static; height: auto; padding-block: var(--section); }
.no-anim .lab__stage {
  position: static; max-width: 100%; aspect-ratio: auto; margin: 2rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
}
.no-anim .frame { position: relative; aspect-ratio: 1; opacity: 1; transform: none; }
.no-anim .step { opacity: 1; }
.no-anim .lab__timeline { display: none; }

/* ---------- a casa ---------- */
.casa__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2.5rem; }
.fact { padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); }
.fact svg { width: 1.4rem; height: 1.4rem; color: var(--violet); margin-bottom: .9rem; }
.fact h3 { font: 600 .95rem/1.3 var(--font-body); letter-spacing: -.005em; }
.fact p { color: var(--ink-2); font-size: .9rem; line-height: 1.5; margin-top: .35rem; }
.casa__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.casa__photos figure { aspect-ratio: 3 / 4; }
.casa__photos img { filter: saturate(.7); } /* harmoniza o stock frio com a paleta */
.casa__photos figure:first-child { margin-top: 3.5rem; }

@media (max-width: 900px) {
  .casa__grid { grid-template-columns: 1fr; }
  .casa__photos figure:first-child { margin-top: 2rem; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- dúvidas ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__grid .section__head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.3rem 0;
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet); }
.faq__icon { position: relative; width: 1.5rem; height: 1.5rem; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--violet);
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 100%; height: 1px; }
.faq__icon::after { width: 1px; height: 100%; transition: transform .45s var(--ease-out-circ); }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__body { padding: 0 0 1.5rem; color: var(--ink-2); max-width: 60ch; line-height: 1.6; }
.faq__body strong { color: var(--ink); font-weight: 600; }
.faq details[open] .faq__body { animation: faq-in .5s var(--ease-out-quart); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .section__head { position: static; margin-bottom: 1.5rem; }
}

/* ---------- contato ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2.5rem; }
.contact__list > div { padding-top: 1rem; border-top: 1px solid var(--rule-strong); }
.contact__list dt { margin-bottom: .4rem; }
.contact__list dd { font-size: 1rem; line-height: 1.5; }
.contact__list a { border-bottom: 1px solid var(--rule-strong); transition: border-color .2s, color .2s; }
.contact__list a:hover { color: var(--violet); border-color: var(--violet); }
.contact__actions { margin-top: 2.25rem; }
.contact__map { aspect-ratio: 4 / 3; border: 1px solid var(--rule-strong); background: var(--sunk); overflow: hidden; }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05) opacity(.92); }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact__list { grid-template-columns: 1fr; } .contact__actions .btn { width: 100%; justify-content: center; } }

/* ---------- footer ---------- */
.footer { padding: 3.5rem 0 1.75rem; font-size: .9rem; color: var(--night-ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { display: flex; flex-direction: column; gap: .6rem; }
.footer__name { color: var(--night-ink); font-weight: 500; margin-top: .5rem; }
.footer__tag { font-family: var(--font-display); font-style: italic; color: var(--night-muted); }
.footer__h { margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: .55rem; line-height: 1.5; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--night-ink); }
.footer__legal {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--night-rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .66rem;
}
.footer__legal a:hover { color: var(--night-ink); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: flex; align-items: center; gap: .6rem;
  height: 3.5rem; padding: 0 1.3rem 0 1.1rem;
  background: var(--violet); color: #fff; border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(93, 58, 135, .65);
  transform: translateY(160%);
  transition: transform .6s var(--ease-out-circ), background .2s;
}
.fab.is-visible { transform: none; }
.fab:hover { background: var(--violet-deep); }
.fab svg { width: 1.25rem; height: 1.25rem; }
.fab span { font: 600 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 600px) {
  .fab { width: 3.5rem; padding: 0; justify-content: center; }
  .fab span { display: none; }
}

/* ---------- estados iniciais de animação (só com JS) ---------- */
.js [data-reveal] { opacity: 0; }
.js .hero__title .line > span { transform: translateY(110%); }
.js .hero__eyebrow, .js .hero__lede, .js .hero__actions, .js .specimen, .js .proof, .js .nav { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .js [data-reveal],
  .js .hero__eyebrow, .js .hero__lede, .js .hero__actions, .js .specimen, .js .proof, .js .nav { opacity: 1; }
  .js .hero__title .line > span { transform: none; }
  .js .reveal .curtain { display: none; }
  .doc__photo img, .btn__bg, .spec__bg, .spec, .spec__arrow, .nav__link, .menu, .frame { transition-duration: .01ms !important; }

  .lab { height: auto; }
  .lab__pin { position: static; height: auto; padding-block: var(--section); }
  .lab__stage {
    position: static; max-width: 100%; aspect-ratio: auto; margin: 2rem 0 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
  }
  .frame { position: relative; aspect-ratio: 1; opacity: 1; transform: none; }
  .step { opacity: 1; }
  .lab__timeline { display: none; }
}
