/* Hero C · Borboleta — Dra. Adriana Scalia */
:root {
  --c-papel: #fdf1ea;
  --c-pessego: #f7ded7;
  --c-rose: #f3c3c3;
  --c-lilas: #c899ad;
  --c-ameixa: #3d2238;
  --c-malva: #8e4468;      /* ameixa → lilás, escuro o bastante para texto */
  --c-coral: #e8835e;      /* só na borboleta e no hover do botão */
  --c-texto-2: #5e4157;

  --c-titulo: 'Eczar', 'Georgia', serif;
  --c-corpo: 'Anek Latin', system-ui, sans-serif;

  --c-margem: clamp(22px, 6vw, 112px);
  --c-H: max(660px, 100svh);
  --c-fig-h: calc(var(--c-H) * 1.06);
  --c-fig-top: clamp(64px, 9vh, 96px);
  --c-fig-right: 0px;
  --c-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--c-papel);
  color: var(--c-ameixa);
  font-family: var(--c-corpo);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.c-hero {
  position: relative;
  height: var(--c-H);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(58% 64% at 74% 26% in oklch, rgb(243 195 195 / .7), rgb(243 195 195 / 0)),
    radial-gradient(52% 58% at 8% 92% in oklch, rgb(247 222 215 / .95), rgb(247 222 215 / 0)),
    radial-gradient(46% 52% at 98% 96% in oklch, rgb(200 153 173 / .42), rgb(200 153 173 / 0)),
    radial-gradient(62% 54% at 26% 8% in oklch, rgb(255 248 242 / 1), rgb(255 248 242 / 0)),
    var(--c-papel);
}

/* ---------- malha que respira ---------- */
.c-malha { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.c-malha i {
  position: absolute; display: block; border-radius: 50%;
  will-change: transform;
}
.c-malha i:nth-child(1) {
  width: 70vmax; height: 62vmax; left: 38%; top: -22%;
  background: radial-gradient(closest-side in oklch, rgb(247 205 196 / .75), rgb(247 205 196 / 0));
  animation: c-deriva-a 34s ease-in-out infinite alternate;
}
.c-malha i:nth-child(2) {
  width: 56vmax; height: 50vmax; left: 62%; top: 34%;
  background: radial-gradient(closest-side in oklch, rgb(208 165 186 / .5), rgb(208 165 186 / 0));
  animation: c-deriva-b 28s ease-in-out infinite alternate;
}
.c-malha i:nth-child(3) {
  width: 60vmax; height: 52vmax; left: -22%; top: 40%;
  background: radial-gradient(closest-side in oklch, rgb(250 222 206 / .9), rgb(250 222 206 / 0));
  animation: c-deriva-c 38s ease-in-out infinite alternate;
}
.c-malha i:nth-child(4) {
  /* textura de papel de aquarela (grão grosso, quase invisível) */
  inset: 0; width: auto; height: auto; border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='4' seed='9'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='1.6'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .1;
}
@keyframes c-deriva-a { to { transform: translate(-6%, 7%) scale(1.08); } }
@keyframes c-deriva-b { to { transform: translate(-9%, -6%) scale(.94); } }
@keyframes c-deriva-c { to { transform: translate(8%, -5%) scale(1.1); } }

.c-grao {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .13 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .09;
  mix-blend-mode: multiply;
}

/* ---------- topo ---------- */
.c-topo {
  position: absolute; z-index: 5; inset: 0 0 auto 0;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(16px, 3.2vh, 30px) var(--c-margem);
}
.c-marca { display: flex; align-items: center; gap: 12px; color: var(--c-ameixa); text-decoration: none; margin-right: auto; }
.c-marca-icone { width: 44px; height: 44px; flex: none; }
.c-marca b { display: block; font-family: var(--c-titulo); font-weight: 700; font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; }
.c-marca small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-texto-2); margin-top: 5px; font-stretch: 112%; }
.c-nav { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.c-nav a, .c-insta {
  color: var(--c-ameixa); text-decoration: none;
  font-size: .98rem; font-weight: 450; letter-spacing: .02em;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.c-nav a:hover { border-color: currentColor; }
.c-insta { display: inline-flex; align-items: center; gap: 8px; }
.c-insta svg { width: 22px; height: 22px; }
.c-insta:hover { color: var(--c-malva); }
.c-insta span { font-size: .92rem; }

/* ---------- figura ---------- */
.c-figura {
  position: absolute; z-index: 1;
  top: var(--c-fig-top); bottom: 0; right: var(--c-fig-right);
  width: calc(var(--c-fig-h) * .7507);
}
.c-retrato {
  position: absolute; inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
}
.c-retrato img { display: block; width: 100%; height: auto; }
.c-mancha {
  position: absolute; z-index: -1;
  width: 118%; left: -6%; top: -7%;
  transform-origin: 55% 40%;
  animation: c-mancha-respira 26s ease-in-out infinite alternate;
}
@keyframes c-mancha-respira { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.04) rotate(2.5deg); } }

/* legendas das fases */
.c-fases { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.c-fase {
  position: absolute;
  font-family: var(--c-titulo); font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1;
  padding: 9px 14px 8px 30px;
  border-radius: 999px;
  color: var(--c-texto-2);
  background: rgb(253 241 234 / .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgb(61 34 56 / .08);
  transition: color .8s var(--c-ease), background-color .8s var(--c-ease), box-shadow .8s var(--c-ease);
  white-space: nowrap;
}
.c-fase::before {
  content: ""; position: absolute; left: 12px; top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f7b48f, var(--c-coral) 70%);
  opacity: .3; transform: scale(.7);
  transition: opacity .8s var(--c-ease), transform .8s var(--c-ease);
}
.c-fase.on { color: var(--c-ameixa); background: rgb(250 226 222 / .86); box-shadow: 0 0 0 1px rgb(142 68 104 / .22), 0 8px 24px -10px rgb(142 68 104 / .45); }
.c-fase.on::before { opacity: 1; transform: scale(1); }
.c-fase:nth-child(1) { left: 2%; top: 12%; }
.c-fase:nth-child(2) { left: 76%; top: 8%; }
.c-fase:nth-child(3) { left: 82%; top: 27%; }
.c-fase:nth-child(4) { left: 1%; top: 49%; }

/* ---------- texto ---------- */
.c-texto {
  position: absolute; z-index: 2;
  left: var(--c-margem);
  top: 50%; transform: translateY(-44%);
  width: min(calc(100% - var(--c-fig-h) * .7507 - var(--c-fig-right) - var(--c-margem) - 24px), 640px);
}
.c-sobre {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  font-size: .95rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  font-stretch: 110%;
  color: var(--c-texto-2);
}
.c-titulo {
  margin: 0;
  font-family: var(--c-titulo); font-weight: 700;
  font-size: clamp(2.5rem, min(4.9vw, 9vh), 5.6rem);
  line-height: .98; letter-spacing: -.022em;
  color: var(--c-ameixa);
  text-wrap: balance;
}
.c-titulo > span { display: block; }
.c-tom {
  font-weight: 500;
  background: linear-gradient(100deg in oklch, var(--c-ameixa) 0%, var(--c-malva) 70%, #a2557a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.c-pouso { display: inline-block; }
.c-nq { white-space: nowrap; }
.c-apoio {
  margin: clamp(16px, 2.8vh, 28px) 0 0;
  font-size: clamp(1.08rem, 1.3vw, 1.3rem); line-height: 1.5; font-weight: 400;
  color: var(--c-texto-2);
  max-width: 30em;
}
.c-acao { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: clamp(20px, 3.4vh, 34px); }
.c-botao {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px 16px 22px;
  border-radius: 999px;
  background: var(--c-ameixa); color: #fff7f2;
  font-size: 1.06rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 14px 30px -16px rgb(61 34 56 / .8);
  transition: background-color .35s var(--c-ease), transform .35s var(--c-ease), box-shadow .35s var(--c-ease);
}
.c-botao svg { width: 22px; height: 22px; flex: none; }
.c-botao:hover, .c-botao:focus-visible { background: var(--c-coral); color: #2b1426; transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgb(232 131 94 / .9); }
.c-botao:focus-visible { outline: 2px solid var(--c-ameixa); outline-offset: 3px; }
.c-registro { margin: 0; font-size: .92rem; letter-spacing: .06em; color: var(--c-texto-2); font-stretch: 108%; line-height: 1.35; }
.c-registro b { display: block; font-family: var(--c-titulo); font-weight: 500; font-size: 1.08rem; letter-spacing: 0; color: var(--c-ameixa); font-stretch: 100%; }

.c-prova {
  margin: clamp(22px, 4vh, 40px) 0 0;
  padding-left: 18px;
  border-left: 2px solid rgb(142 68 104 / .35);
  max-width: 30em;
}
.c-nota { margin: 0 0 8px; font-size: .98rem; color: var(--c-texto-2); }
.c-nota b { color: var(--c-ameixa); font-weight: 650; }
.c-estrelas { color: #c96f52; letter-spacing: .08em; }
.c-prova blockquote {
  margin: 0;
  font-family: var(--c-titulo); font-weight: 500;
  font-size: clamp(1.08rem, 1.3vw, 1.24rem); line-height: 1.4;
  color: var(--c-ameixa);
}
.c-prova figcaption { margin-top: 6px; font-size: .92rem; color: var(--c-texto-2); }

/* ---------- camadas da borboleta ---------- */
.c-palco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.c-voando .c-palco { opacity: 1; }
.c-reserva { position: absolute; z-index: 4; pointer-events: none; display: none; }
.c-estatico .c-reserva { display: block; }

/* ---------- entrada (só com JS) ---------- */
.js .entra { opacity: 0; animation: c-sobe 1.1s var(--c-ease) var(--d, 0s) forwards; }
.js .c-titulo .entra { animation-name: c-sobe-titulo; }
.js .c-retrato img { opacity: 0; animation: c-revela 1.6s var(--c-ease) .1s forwards; }
.js .c-mancha { opacity: 0; animation: c-mancha-entra 2.2s var(--c-ease) forwards, c-mancha-respira 26s ease-in-out 2.2s infinite alternate; }
.js .c-fase { opacity: 0; animation: c-surge .9s var(--c-ease) calc(1.1s + var(--i) * .14s) forwards; }
@keyframes c-sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes c-sobe-titulo { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(.3em); } to { opacity: 1; clip-path: inset(0 0 -20% 0); transform: none; } }
@keyframes c-revela { from { opacity: 0; filter: blur(8px) saturate(.6); } to { opacity: 1; filter: none; } }
@keyframes c-mancha-entra { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes c-surge { to { opacity: 1; } }

/* ---------- notebook / tablet deitado ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  :root { --c-fig-h: calc(var(--c-H) * 1.0); --c-fig-right: -11vw; }
  .c-nav { display: none; }
  .c-fase:nth-child(2) { left: 60%; top: 4%; }
  .c-fase:nth-child(3) { left: 63%; top: 37%; }
  .c-titulo { font-size: clamp(2.4rem, min(4.9vw, 8.6vh), 4.6rem); }
  .c-fase:nth-child(4) { left: 3%; top: 52%; }
}

/* ---------- celular e tablet em pé ---------- */
@media (max-width: 900px) {
  :root { --c-margem: clamp(20px, 5.6vw, 48px); }
  .c-hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 40px; }
  .c-topo { position: relative; padding: 16px var(--c-margem) 6px; }
  .c-nav { display: none; }
  .c-insta span { display: none; }
  .c-insta { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: rgb(253 241 234 / .7); box-shadow: 0 0 0 1px rgb(61 34 56 / .12); }
  .c-marca-icone { width: 38px; height: 38px; }
  .c-marca b { font-size: 1.16rem; }
  .c-marca small { font-size: .68rem; }

  .c-figura {
    --m-h: clamp(300px, 47svh, 560px);
    position: relative; top: auto; right: auto; bottom: auto;
    width: 100%; height: var(--m-h);
    margin-top: -4px;
  }
  .c-retrato {
    --fade: 90px;
    left: 50%; right: auto; width: calc(var(--m-h) / .8 * .7507);
    transform: translateX(-47%);
  }
  .c-mancha { width: min(118%, calc(var(--m-h) * 1.1)); left: 50%; top: -6%; translate: -50% 0; }
  .c-fase { font-size: .95rem; padding: 7px 11px 6px 25px; }
  .c-fase::before { left: 10px; width: 8px; height: 8px; margin-top: -4px; }
  .c-fase:nth-child(1) { left: 3%; top: 14%; }
  .c-fase:nth-child(2) { left: auto; right: 3%; top: 8%; }
  .c-fase:nth-child(3) { left: auto; right: 2%; top: 40%; }
  .c-fase:nth-child(4) { left: 2%; top: 47%; }

  .c-texto { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 0 var(--c-margem); margin-top: 4px; max-width: 680px; }
  .c-sobre { font-size: .8rem; letter-spacing: .1em; margin-bottom: 10px; }
  .c-titulo { font-size: clamp(2.1rem, 9.5vw, 4.2rem); line-height: 1; }
  .c-apoio { font-size: 1.12rem; margin-top: 14px; }
  .c-acao { margin-top: 20px; }
  .c-botao { width: 100%; justify-content: center; padding: 17px 20px 16px; }
  .c-registro { width: 100%; text-align: center; }
  .c-prova { margin-top: 26px; }
}
@media (max-width: 900px) and (min-width: 600px) {
  .c-figura { --m-h: clamp(420px, 50svh, 600px); }
  .c-texto { margin-left: auto; margin-right: auto; }
  .c-botao { width: auto; }
  .c-registro { width: auto; text-align: left; }
  .c-fase:nth-child(1) { left: 12%; }
  .c-fase:nth-child(2) { right: 12%; }
  .c-fase:nth-child(3) { right: 10%; }
  .c-fase:nth-child(4) { left: 10%; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .entra, .js .c-retrato img, .js .c-mancha, .js .c-fase { opacity: 1; }
}
