/* Hero D · Fio de rosé — Dra. Lia Mariana */
:root {
  /* paleta: cartão dela (nude, pêssego, rosé) + jaleco (vinho) */
  --nude: #f3e3da;
  --nude-claro: #faf1eb;
  --pessego: #efc9b6;
  --rose: #d18f77;
  --rose-ouro: #b8735f;
  --cobre: #9a5644;
  --vinho: #5a1830;
  --vinho-noite: #3a0f1f;
  --tinta: #3b1a22;
  --tinta-suave: #6d4148;

  --f-titulo: "Trirong", "Times New Roman", serif;
  --f-display: "Kalnia", "Trirong", serif; /* só o título do hero e títulos grandes */
  --f-script: "Imperial Script", cursive;
  --f-texto: "Sarabun", system-ui, sans-serif;

  --margem: clamp(20px, 4.4vw, 72px);
  --nav-h: 76px;
  --ciclo: 32s;
  --esmaece: radial-gradient(ellipse 70% 95% at 30% 30%, #000 56%, transparent 100%);
  --grao: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .1  0 0 0 0 .1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nude);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* granulado único, fixo */
body::after {
  content: "";
  position: fixed; inset: 0;
  background: var(--grao);
  opacity: .05;
  pointer-events: none;
  z-index: 50;
}
a { color: inherit; }
p, h1, figure, blockquote { margin: 0; }

/* ---------- navegação ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--margem);
}
.marca {
  display: inline-flex; align-items: baseline; gap: .28em;
  text-decoration: none; color: var(--rose-ouro);
}
.marca-dra { font-family: var(--f-titulo); font-weight: 300; font-size: 17px; color: var(--tinta-suave); }
.marca-lia {
  font-family: var(--f-script); font-size: 40px; line-height: .6;
  background: linear-gradient(100deg in oklch, #a9604d, #e3ad96 45%, #b4705c 70%, #e9bba6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .08em; transform: translateY(5px);
}
.marca-sobrenome {
  font-family: var(--f-titulo); font-weight: 400; font-size: 13px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--rose-ouro);
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav-links a {
  font-size: 15px; letter-spacing: .04em; text-decoration: none; color: var(--tinta-suave);
  transition: color .3s;
}
.nav-links a:hover { color: var(--vinho); }
.nav-links .nav-zap {
  padding: 9px 18px; border-radius: 99px;
  border: 1px solid color-mix(in oklch, var(--rose-ouro) 55%, transparent);
  color: var(--vinho);
  background: color-mix(in oklab, var(--nude-claro) 50%, transparent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  overflow: clip;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: center;
}

/* malha: manchas radiais grandes e lentas */
.malha {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 30% 40% in oklch, #f6e2d6, transparent 70%),
    radial-gradient(70% 80% at 85% 85% in oklch, #f0d3c4, transparent 70%),
    linear-gradient(170deg in oklab, var(--nude-claro), var(--nude) 55%, #ecd3c6);
}
.malha i {
  position: absolute; border-radius: 50%;
  will-change: transform;
  animation: deriva var(--ciclo) ease-in-out infinite alternate;
}
/* luz rosé atrás dela e do fio (o reflexo do metal tingindo a luz) */
.malha .m1 {
  width: 78vmax; height: 78vmax; left: 8%; top: -18%;
  background: radial-gradient(closest-side in oklch, color-mix(in oklch, var(--pessego) 85%, white) , color-mix(in oklch, var(--pessego) 0%, transparent));
}
.malha .m2 {
  width: 62vmax; height: 62vmax; left: 20%; top: 30%;
  background: radial-gradient(closest-side in oklch, color-mix(in oklch, var(--rose) 55%, transparent), transparent);
  animation-duration: 38s; animation-delay: -9s;
}
.malha .m3 {
  width: 54vmax; height: 54vmax; right: -16%; top: -22%;
  background: radial-gradient(closest-side in oklch, #fbf3ee, transparent);
  animation-duration: 27s; animation-delay: -4s;
}
.malha .m4 {
  width: 46vmax; height: 46vmax; left: -14%; bottom: -26%;
  background: radial-gradient(closest-side in oklch, color-mix(in oklch, #c77a8a 34%, transparent), transparent);
  animation-duration: 35s; animation-delay: -15s;
}
@keyframes deriva {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3vw, -2vh, 0) scale(1.06); }
  100% { transform: translate3d(-2vw, 3vh, 0) scale(.97); }
}

/* palco: fio 3D + retrato */
.palco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.retrato {
  position: absolute; bottom: 0;
  left: -1.5vw;
  height: min(96svh, 125vw);
  width: auto;
  max-width: none;
  /* a foto termina no ombro: a borda direita se dissolve na luz */
  -webkit-mask-image: var(--esmaece);
          mask-image: var(--esmaece);
  filter: drop-shadow(0 30px 60px rgb(90 24 48 / .14));
}
.retrato-halo {
  position: absolute; left: 4vw; bottom: 8svh;
  width: 40vw; height: 72svh; border-radius: 50%;
  background: radial-gradient(closest-side in oklch, #fff3ec, color-mix(in oklch, #fff3ec 0%, transparent));
  opacity: .75;
}
/* o fio passa atrás dela: a silhueta inteira do recorte (sem o esmaecido) apaga o fio */
.fio-camada {
  position: absolute; inset: 0;
  --sil-h: min(96svh, 125vw);
  --sil-pos: left -1.5vw bottom 0;
  --sil-tam: calc(var(--sil-h) * .5625) var(--sil-h);
  /* tudo, menos (silhueta × o mesmo esmaecido do retrato) */
  -webkit-mask-image: linear-gradient(#000, #000), url("../img/d-recorte-bracos-cruzados.webp"), var(--esmaece);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, var(--sil-pos), var(--sil-pos);
  -webkit-mask-size: 100% 100%, var(--sil-tam), var(--sil-tam);
  -webkit-mask-composite: source-out, source-in;
  mask-image: linear-gradient(#000, #000), url("../img/d-recorte-bracos-cruzados.webp"), var(--esmaece);
  mask-repeat: no-repeat;
  mask-position: 0 0, var(--sil-pos), var(--sil-pos);
  mask-size: 100% 100%, var(--sil-tam), var(--sil-tam);
  mask-composite: subtract, intersect;
}
.fio {
  position: absolute;
  left: 17vw; top: calc(var(--nav-h) * .5);
  height: calc(100% - var(--nav-h) * .5);
  aspect-ratio: 5 / 6;
}
.fio-cena, .fio-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.fio-poster { opacity: 0; transition: opacity .8s; }
.sem-gl .fio-poster { opacity: 1; }
.fio-cena { opacity: 0; transition: opacity .6s; }
.gl-pronto .fio-cena { opacity: 1; }

/* texto */
.texto {
  grid-column: 2;
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + 2vh) var(--margem) 6vh 0;
  max-width: 780px;
}
.sobre {
  font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--rose-ouro); font-weight: 500;
  margin-bottom: 22px;
}
.sobre span { margin: 0 .5em; opacity: .6; }
.titulo {
  font-family: var(--f-display);
  font-size: clamp(42px, 4.7vw, 78px);
  line-height: 1;
  letter-spacing: -.012em;
  color: var(--vinho-noite);
  font-kerning: normal;
}
.titulo .linha { display: block; }
/* "Cuidado, saúde": didone de moda, pesada, com os terminais em gota da Kalnia */
.titulo .linha:first-child { font-weight: 640; font-variation-settings: "wdth" 108; }
/* "e autoestima.": a mesma família fina, em metal rosé com o brilho do fio correndo */
.titulo .linha + .linha {
  padding-left: .9em; white-space: nowrap;
  font-weight: 230; font-variation-settings: "wdth" 100;
  letter-spacing: .005em;
  background: linear-gradient(100deg in oklab, #7e3d2e 0%, #a9604d 22%, #c98a72 38%, #f1c9b5 47%, #b46f5a 56%, #8e4a39 78%, #a75e4b 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .12em; margin-bottom: -.12em;
  animation: metal 11s ease-in-out 2.2s infinite;
}
@keyframes metal { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
.proposito {
  font-family: var(--f-script);
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.1;
  margin: 6px 0 0 1.4em;
  background: linear-gradient(95deg in oklch, #9f5543, #d99a82 40%, #a75e4b 68%, #c98670);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .05em .15em .2em 0;
}
.assinatura {
  margin-top: clamp(22px, 3.4vh, 38px);
  padding-top: 20px;
  border-top: 1px solid color-mix(in oklch, var(--rose-ouro) 40%, transparent);
  max-width: 34em;
}
.nome {
  font-family: var(--f-titulo); font-weight: 400; font-size: 22px; color: var(--vinho-noite);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.nome small {
  font-family: var(--f-texto); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinta-suave); border: 1px dashed color-mix(in oklch, var(--rose-ouro) 60%, transparent);
  padding: 1px 8px; border-radius: 4px;
}
.apoio { margin-top: 6px; color: var(--tinta-suave); font-size: 18px; }

.acoes { margin-top: clamp(22px, 3.4vh, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.botao {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 30px 17px 32px;
  border-radius: 999px;
  background: linear-gradient(120deg in oklch, var(--vinho), #6e1f3b 60%, var(--vinho-noite));
  color: #fbeee6; text-decoration: none;
  font-size: 18px; font-weight: 500; letter-spacing: .02em;
  box-shadow: 0 0 0 1px color-mix(in oklch, #e3a58d 70%, transparent) inset, 0 14px 34px -12px rgb(90 24 48 / .55);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.botao::before { /* brilho de metal que corre */
  content: ""; position: absolute; inset: -2px; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgb(255 222 205 / .32), transparent);
  transform: skewX(-18deg);
  animation: brilho 7s ease-in-out 3s infinite;
}
.botao svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; position: relative; }
.botao span { position: relative; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #e8b19b inset, 0 20px 40px -14px rgb(90 24 48 / .6); }
.botao:focus-visible, .nav a:focus-visible { outline: 2px solid var(--rose-ouro); outline-offset: 4px; }
@keyframes brilho { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.zap-num { font-size: 15px; color: var(--tinta-suave); letter-spacing: .02em; }

.prova {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline;
  max-width: 34em;
}
.nota { grid-column: 1 / -1; font-size: 15px; color: var(--tinta-suave); }
.nota strong { color: var(--vinho-noite); font-weight: 600; }
.estrelas { color: var(--rose-ouro); letter-spacing: .12em; }
.prova blockquote {
  grid-column: 1 / -1;
  font-family: var(--f-titulo); font-style: italic; font-weight: 300;
  font-size: 18px; color: var(--tinta-suave); line-height: 1.45;
}
.prova blockquote em { font-style: italic; font-weight: 400; color: var(--vinho); font-size: 1.3em; }
.prova figcaption { grid-column: 1 / -1; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-ouro); }

/* ---------- entrada (só com JS) ---------- */
.js [data-rev] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform 1.3s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.js .pronto [data-rev] { opacity: 1; transform: none; }
.js .proposito[data-rev] { transform: none; clip-path: inset(0 100% 0 0); transition: opacity .2s var(--d), clip-path 2.2s cubic-bezier(.45,.05,.25,1) var(--d); }
.js .pronto .proposito[data-rev] { clip-path: inset(0 -10% -20% -5%); }
.js .retrato { opacity: 0; transform: translateY(24px); transition: opacity 1.4s ease, transform 1.8s cubic-bezier(.2,.7,.2,1); }
.js .pronto .retrato { opacity: 1; transform: none; }

/* ---------- telas médias (notebook pequeno / tablet deitado) ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .fio { left: 17vw; top: auto; bottom: 4%; height: 72%; }
  .titulo { font-size: clamp(40px, 4.6vw, 72px); }
  .proposito { font-size: clamp(30px, 3.2vw, 50px); }
}

/* ---------- tablet em pé e celular ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 64px; --palco-h: max(360px, min(54svh, 130vw)); }
  .hero { display: block; min-height: 0; }
  .palco { position: relative; inset: auto; height: var(--palco-h); }
  .retrato {
    left: auto; right: -6vw; bottom: 0;
    height: 100%;
    -webkit-mask-image: var(--esmaece), linear-gradient(to top, transparent 0, #000 24%);
            mask-image: var(--esmaece), linear-gradient(to top, transparent 0, #000 24%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero { --esmaece: radial-gradient(ellipse 74% 78% at 66% 30%, #000 58%, transparent 100%); }
  .fio-camada { --sil-h: var(--palco-h); --sil-pos: right -6vw bottom 0; }
  .retrato-halo { left: auto; right: -10vw; width: 90vw; height: 90%; bottom: 0; }
  .fio {
    left: -8vw; top: calc(var(--nav-h) - 14px); height: auto; width: min(68vw, calc(var(--palco-h) * .7));
    transform: scaleX(-1);
  }
  .texto { padding: 0 var(--margem) 44px; margin-top: -6svh; max-width: 620px; }
  .sobre { margin-bottom: 14px; font-size: 11.5px; letter-spacing: .18em; white-space: nowrap; }
  .assinatura { margin-top: 18px; padding-top: 14px; }
  .acoes { margin-top: 20px; }
  .titulo { font-size: clamp(36px, 10.4vw, 64px); }
  .proposito { font-size: clamp(30px, 8.6vw, 50px); margin-left: .8em; }
  .nav-links a:not(.nav-zap) { display: none; }
  .marca-lia { font-size: 36px; }
}
@media (min-width: 600px) and (max-width: 860px) {
  :root { --palco-h: min(62svh, 130vw); }
  .fio { left: 12vw; }
}
@media (max-width: 380px) {
  .sobre { font-size: 11px; letter-spacing: .12em; }
  .botao { padding: 16px 24px; }
}

/* ---------- movimento reduzido: reset geral ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .malha i { animation: none !important; }
  .botao::before { display: none; }
}
