/* Hero D aprovado (14/11/2026) — classes do hero são globais: as seções usam prefixo próprio.
   Hipótese D · "Chique é perguntar" — Clínica Catani */
:root {
  /* paleta tirada da foto da Dra. Maria Clara (madeira, jaleco, pele, modelo) */
  --creme: #f6efe6;      /* jaleco / mesa */
  --mesa: #ebe2d4;
  --mel: #c08a5c;        /* lâmina de madeira */
  --madeira: #926440;
  --pele: #e3b39a;       /* rosé da pele */
  --magenta: #d1466b;    /* modelo de útero / acento */
  --vinho: #4a1626;      /* contraste */
  --vinho-2: #6b2236;
  --ouro-rose: #a8714f;  /* ramo do logo */
  --tinta: #3a1220;

  --f-titulo: "Belanosima", "Asap", system-ui, sans-serif;
  --f-texto: "Asap", system-ui, sans-serif;

  --t-titulo: clamp(2.75rem, 1.1rem + 4.6vw, 6rem);
  --t-etiqueta: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem);
  --t-corpo: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
  --t-mini: 0.875rem;

  --esp-lateral: clamp(1.25rem, 4vw, 4.5rem);
  --nav-h: 76px;
  --raio: 18px;
  --sombra-dura: 5px 5px 0 var(--vinho);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: var(--t-corpo);
  line-height: 1.5;
  color: var(--tinta);
  background: var(--creme);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- navegação ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--esp-lateral);
}
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--vinho); }
.marca-ramo { width: 34px; height: 30px; color: var(--ouro-rose); flex: none; }
.marca-texto { display: flex; flex-direction: column; line-height: 1; }
.marca-nome { font-family: var(--f-titulo); font-weight: 700; font-size: 1.7rem; letter-spacing: .01em; }
.marca-sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .3rem; color: var(--vinho-2); font-weight: 500; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--vinho); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-texto); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border-radius: 999px; padding: .95rem 1.6rem;
  border: 2px solid var(--vinho); line-height: 1.1;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn .ico { width: 1.25em; height: 1.25em; flex: none; }
.btn-principal, .btn-wpp { background: var(--vinho); color: var(--creme); box-shadow: 4px 4px 0 var(--magenta); }
.btn-principal:hover, .btn-wpp:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--magenta); }
.btn-secundario { background: rgb(246 239 230 / .7); color: var(--vinho); }
.btn-secundario:hover { background: var(--creme); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--vinho); }
.btn:focus-visible, .ticker-prox:focus-visible, .nav-links a:focus-visible, .marca:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.nav-cta { padding: .7rem 1.2rem; font-size: .98rem; box-shadow: 3px 3px 0 var(--magenta); }
.nav-cta-curto { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1.5rem) var(--esp-lateral) 0;
  display: flex; flex-direction: column;
  overflow: clip;
}

/* gradiente em malha: manchas radiais sem filtro, interpoladas em oklab */
.malha { position: absolute; inset: 0; z-index: -2; background: var(--creme); overflow: hidden; }
.mancha { position: absolute; border-radius: 50%; will-change: transform; animation: deriva 30s ease-in-out infinite alternate; }
.m1 { width: 78vmax; height: 78vmax; right: -24vmax; top: -30vmax; background: radial-gradient(closest-side in oklab, rgb(192 138 92 / .78), rgb(192 138 92 / 0)); animation-duration: 34s; }
.m2 { width: 60vmax; height: 60vmax; right: -6vmax; bottom: -34vmax; background: radial-gradient(closest-side in oklab, rgb(227 179 154 / .9), rgb(227 179 154 / 0)); animation-duration: 27s; animation-delay: -8s; }
.m3 { width: 46vmax; height: 46vmax; left: -16vmax; bottom: -22vmax; background: radial-gradient(closest-side in oklab, rgb(209 70 107 / .22), rgb(209 70 107 / 0)); animation-duration: 38s; animation-delay: -15s; }
.m4 { width: 70vmax; height: 70vmax; left: -22vmax; top: -34vmax; background: radial-gradient(closest-side in oklab, rgb(250 246 240 / 1), rgb(250 246 240 / 0)); animation-duration: 31s; animation-delay: -4s; }
.m5 { width: 34vmax; height: 34vmax; right: 18vw; top: 30vh; background: radial-gradient(closest-side in oklab, rgb(146 100 64 / .32), rgb(146 100 64 / 0)); animation-duration: 24s; animation-delay: -11s; }
@keyframes deriva {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3vmax, 2vmax, 0) scale(1.06); }
  100% { transform: translate3d(-2vmax, 3.5vmax, 0) scale(.96); }
}
.hero.fora .mancha { animation-play-state: paused; }
.grao {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 4vw, 5rem); align-items: center;
  max-width: 1440px; width: 100%; margin: 0 auto;
}

/* selo do reel */
.selo-reel {
  display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1.4rem;
  padding: .35rem 1rem .35rem .35rem; border-radius: 999px;
  background: rgb(246 239 230 / .78); border: 1.5px solid rgb(74 22 38 / .25);
  font-size: .93rem; line-height: 1.3; color: var(--vinho-2); max-width: 34rem;
}
.selo-reel b { color: var(--vinho); font-weight: 600; }
.selo-rostos { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; flex: none; border: 2px solid var(--magenta); background: var(--mesa); }

/* título */
.titulo {
  font-family: var(--f-titulo); font-weight: 700;
  font-size: var(--t-titulo); line-height: .98; letter-spacing: -.01em;
  color: var(--vinho); margin: 0 0 clamp(1.4rem, 2.6vw, 2.2rem);
  max-width: 11.5em; text-wrap: balance;
}
.titulo .w { display: inline-block; }
.grifado { position: relative; display: inline-block; white-space: nowrap; }
.grifo {
  position: absolute; left: -2%; width: 104%; bottom: -.2em; height: .3em;
  fill: var(--magenta); z-index: -1; overflow: visible;
}

/* letreiro de etiquetas (falas do reel) */
.ticker { margin-bottom: clamp(1.2rem, 2.4vw, 1.9rem); max-width: 44rem; }
.ticker-topo { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.ticker-rotulo { font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; color: var(--vinho); }
.ticker-conta { font-size: var(--t-mini); font-weight: 600; color: var(--vinho-2); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ticker-prox {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--vinho);
  background: var(--creme); color: var(--vinho); display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 2px 2px 0 var(--vinho); transition: transform .2s;
}
.ticker-prox svg { width: 18px; height: 18px; }
.ticker-prox:hover { transform: translate(-1px, -1px) rotate(-8deg); }
.etiquetas { list-style: none; margin: 0; padding: 6px 10px 12px 4px; display: grid; }
.etiqueta {
  grid-area: 1 / 1; align-self: start; justify-self: start;
  font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-etiqueta); line-height: 1.12;
  padding: .55em .85em .6em; border-radius: 14px; border: 2px solid var(--vinho);
  box-shadow: var(--sombra-dura); max-width: 100%;
  transform: rotate(var(--r, -2deg)); transform-origin: 20% 60%;
  visibility: hidden; opacity: 0;
}
.etiqueta.ativa { visibility: visible; opacity: 1; }
.e1 { --r: -2.5deg; background: var(--creme); color: var(--vinho); }
.e2 { --r: 1.8deg; background: var(--magenta); color: #fff; }
.e3 { --r: -1.5deg; background: var(--mel); color: var(--vinho); }
.e4 { --r: 2deg; background: var(--vinho); color: var(--creme); box-shadow: 5px 5px 0 var(--magenta); }
.e5 { --r: -1.2deg; background: var(--pele); color: var(--vinho); }

.apoio { margin: 0 0 1.5rem; max-width: 32rem; color: var(--tinta); }
.acoes { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }

/* retrato em balão de fala */
.retrato { position: relative; margin: 0; justify-self: center; width: min(100%, 610px, calc((100svh - 235px) * .846)); }
.balao-caixa { position: relative; }
.balao, .balao-sombra { aspect-ratio: 1185 / 1400; clip-path: url(#d-balao); }
.balao { position: relative; z-index: 1; }
.balao img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.balao-sombra {
  position: absolute; inset: 0 auto auto 0; width: 100%; z-index: 0;
  transform: translate(18px, 18px);
  background: linear-gradient(150deg in oklab, var(--magenta), var(--vinho) 70%);
}
.cracha {
  position: absolute; z-index: 3; top: 7%; right: -1.6rem;
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--creme); color: var(--vinho);
  border: 2px solid var(--vinho); border-radius: 12px; box-shadow: 4px 4px 0 var(--vinho);
  padding: .55rem .85rem; transform: rotate(3deg);
}
.cracha-nome { font-family: var(--f-titulo); font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.cracha-reg { font-size: var(--t-mini); font-weight: 500; letter-spacing: .02em; }
.prova {
  position: absolute; z-index: 3; right: -2.4rem; bottom: 14%;
  width: min(290px, 56%); margin: 0;
  background: #fffaf3; color: var(--tinta);
  border-radius: 6px 6px 22px 6px; padding: 1rem 1.1rem .9rem;
  box-shadow: 0 1px 0 rgb(74 22 38 / .1), 0 14px 30px -12px rgb(74 22 38 / .45);
  transform: rotate(-3deg);
}
.prova p { margin: 0 0 .45rem; font-family: var(--f-titulo); font-weight: 600; font-size: 1.22rem; line-height: 1.18; color: var(--vinho); }
.prova mark { background: linear-gradient(transparent 58%, rgb(209 70 107 / .45) 58%, rgb(209 70 107 / .45) 92%, transparent 92%); color: inherit; padding: 0 .05em; }
.prova footer { font-size: var(--t-mini); color: var(--vinho-2); font-weight: 500; }

/* registros */
.registros {
  list-style: none; margin: clamp(1.4rem, 3vh, 2.4rem) auto 0; padding: 1rem 0 1.3rem;
  max-width: 1440px; width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem 1.5rem;
  border-top: 1.5px solid rgb(74 22 38 / .22);
  font-size: var(--t-mini); line-height: 1.35; color: var(--vinho-2);
}
.registros b { display: block; color: var(--vinho); font-weight: 600; font-size: .95rem; }

/* ---------- entrada (só com JS e com GSAP) ---------- */
.js.gsap-ok .hero .titulo .w, .js.gsap-ok .hero .selo-reel, .js.gsap-ok .hero .ticker, .js.gsap-ok .hero .apoio, .js.gsap-ok .hero .acoes,
.js.gsap-ok .hero .balao, .js.gsap-ok .hero .cracha, .js.gsap-ok .hero .prova, .js.gsap-ok .hero .registros, .js.gsap-ok .nav { visibility: hidden; }

/* ---------- telas de notebook baixas ---------- */
@media (min-width: 821px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--nav-h) + .4rem); }
  .selo-reel { margin-bottom: .8rem; font-size: .85rem; }
  .selo-rostos { width: 44px; height: 44px; }
  .titulo { font-size: min(var(--t-titulo), 10.2svh); margin-bottom: 1.3rem; }
  .ticker { margin-bottom: 1rem; }
  .ticker-topo { margin-bottom: .45rem; }
  .etiqueta { font-size: min(var(--t-etiqueta), 1.3rem); }
  .apoio { margin-bottom: 1rem; }
  .registros { margin-top: 1.2rem; padding: .8rem 0 1rem; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .registros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prova { right: -1rem; bottom: 9%; width: min(270px, 50%); }
  .prova p { font-size: 1.1rem; }
  .cracha { right: -.6rem; }
}

/* ---------- celular ---------- */
@media (max-width: 380px) {
  .marca-sub { letter-spacing: .08em; }
  .nav-cta { padding: .55rem .85rem; }
}
@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav { gap: 1rem; }
  .marca-nome { font-size: 1.45rem; }
  .marca-sub { font-size: .56rem; letter-spacing: .14em; white-space: nowrap; }
  .marca-ramo { width: 28px; height: 25px; }
  .nav-cta-longo { display: none; }
  .nav-cta-curto { display: inline; }
  .nav-cta { padding: .6rem 1rem; }
  .hero { padding-top: calc(var(--nav-h) + .4rem); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
  .retrato { display: contents; }
  .balao-caixa { order: -2; width: min(calc(100% - 14px), 460px); }
  .balao, .balao-sombra { aspect-ratio: 1185 / 1290; }
  .texto { display: contents; }
  .texto > * { justify-self: start; }
  .titulo { order: 1; font-size: min(10.5vw, 3.5rem); margin-bottom: 1.1rem; }
  .apoio { order: 2; }
  .acoes { order: 3; justify-self: stretch; }
  .selo-reel { order: 5; margin: 2.4rem 0 1.1rem; }
  .ticker { order: 6; margin-bottom: 0; }
  .etiqueta { font-size: 1.12rem; }
  .balao-sombra { transform: translate(12px, 12px); }
  .cracha { order: -1; position: relative; top: auto; right: auto; margin: .35rem 0 1.4rem 2px; width: fit-content; padding: .4rem .75rem; transform: rotate(-1.5deg); }
  .cracha-nome { font-size: 1rem; }
  .prova { order: 4; justify-self: stretch; position: relative; right: auto; bottom: auto; width: auto; margin: 1.8rem 6px 0 0; padding: .9rem 1rem .85rem; transform: rotate(-1.2deg); }
  .prova p { font-size: 1.02rem; }
  .prova footer { font-size: .8125rem; }
  .titulo { max-width: none; }
  .selo-reel { font-size: .875rem; }
  .selo-rostos { width: 46px; height: 46px; }
  .acoes .btn { flex: 1 1 100%; }
  .registros { grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: 1.8rem; }
}

/* ---------- tablet em pé: a fala da paciente ao lado do balão ---------- */
@media (min-width: 600px) and (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 2rem; }
  .texto > *, .cracha { grid-column: 1 / -1; }
  .balao-caixa { grid-column: 1; grid-row: 1; width: calc(100% - 14px); }
  .prova { grid-column: 2; grid-row: 1; align-self: end; justify-self: stretch; margin: 0 0 5rem; transform: rotate(-3deg); }
  .acoes { justify-self: start; }
  .acoes .btn { flex: 0 1 auto; }
  .ticker { justify-self: stretch; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .mancha { animation: none; }
  .btn, .ticker-prox, .nav-links a::after { transition: none; }
}
