/* Hero C · Uso, ajuste e retirada — Dra. Luana Menezes */

:root {
  /* cor: noite verde-folha, brasa de madeira-mel, creme */
  --c-noite-0: #12170f;
  --c-noite-1: #1c2416;
  --c-noite-2: #2c3520;
  --c-folha: #756f3d;
  --c-mel: #a4753d;
  --c-mel-claro: #d9a866;
  --c-mel-luz: #f3dcae;
  --c-creme: #f1e9d8;
  --c-creme-2: rgb(241 233 216 / 0.74);
  --c-creme-3: rgb(241 233 216 / 0.52);
  --c-fio: rgb(241 233 216 / 0.14);
  --c-tinta: #17130a;

  /* tipografia */
  --c-fonte-titulo: "Epilogue", "Helvetica Neue", Arial, sans-serif;
  --c-fonte-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --c-t-titulo: clamp(2.5rem, 3.9vw, 4.5rem);
  --c-t-apoio: clamp(1rem, 0.55vw + 0.72rem, 1.16rem);
  --c-t-mono: 0.72rem;

  /* espaço e medidas da cena */
  --c-margem: clamp(20px, 4.6vw, 76px);
  --c-tampo: clamp(96px, 14svh, 132px);
  --c-fig-h: clamp(340px, 58svh, 680px);
  --c-fig-w: calc(var(--c-fig-h) * 0.9908);
  --c-fig-dir: clamp(96px, 26vw - 92px, 440px);
  --c-raio: 12px;
  --c-suave: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-noite-0);
  color: var(--c-creme);
  font-family: var(--c-fonte-titulo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }

/* ---------- palco geral ---------- */
.c-hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--c-noite-0);
}

/* malha: manchas grandes que respiram */
.c-fundo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.c-fundo i { position: absolute; border-radius: 50%; will-change: transform; }
.c-fundo i:nth-child(1) {
  width: 95vmax; height: 95vmax; left: -34vmax; top: -52vmax;
  background: radial-gradient(closest-side in oklab, #2f3a22 0%, rgb(44 53 32 / 0.55) 45%, rgb(44 53 32 / 0) 100%);
  animation: c-respira-a 34s ease-in-out infinite alternate;
}
.c-fundo i:nth-child(2) {
  width: 80vmax; height: 80vmax; right: -30vmax; top: -30vmax;
  background: radial-gradient(closest-side in oklab, #262f1b 0%, rgb(28 36 22 / 0.6) 50%, rgb(28 36 22 / 0) 100%);
  animation: c-respira-b 27s ease-in-out infinite alternate;
}
.c-fundo i:nth-child(3) {
  width: 70vmax; height: 46vmax; left: -18vmax; bottom: -26vmax;
  background: radial-gradient(closest-side in oklab, rgb(117 111 61 / 0.20) 0%, rgb(117 111 61 / 0) 100%);
  animation: c-respira-b 38s ease-in-out infinite alternate-reverse;
}
.c-fundo i:nth-child(4) {
  width: 60vmax; height: 60vmax; right: -8vmax; bottom: -34vmax;
  background: radial-gradient(closest-side in oklab, rgb(164 117 61 / 0.20) 0%, rgb(164 117 61 / 0.06) 55%, rgb(164 117 61 / 0) 100%);
  animation: c-respira-a 23s ease-in-out infinite alternate-reverse;
}
@keyframes c-respira-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); } }
@keyframes c-respira-b { from { transform: translate3d(0, 0, 0) scale(1.06); } to { transform: translate3d(-3vmax, 2vmax, 0) scale(0.96); } }

.c-grao {
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 0.96  0 0 0 0 0.88  0 0 0 1.1 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* a curva */
.c-brilho, .c-curva { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.c-brilho { z-index: 2; filter: blur(16px); mix-blend-mode: screen; opacity: 0.9; }
.c-curva { z-index: 2; }

/* ---------- navegação ---------- */
.c-nav {
  position: absolute; z-index: 8; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(16px, 2.6svh, 26px) var(--c-margem);
}
.c-marca {
  margin-right: auto;
  font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em;
  text-decoration: none; padding: 12px 0;
}
.c-nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.c-nav-links a {
  font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--c-creme-2);
  padding: 12px 2px; transition: color 0.3s;
}
.c-nav-links a:hover, .c-nav-links a:focus-visible { color: var(--c-creme); }
.c-nav-wa {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid rgb(217 168 102 / 0.5); border-radius: var(--c-raio);
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--c-mel-luz);
  background: rgb(18 23 15 / 0.35); backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.c-nav-wa:hover, .c-nav-wa:focus-visible { background: rgb(217 168 102 / 0.14); border-color: var(--c-mel-claro); color: var(--c-creme); }
.c-nav-menu { display: none; }

/* ---------- texto ---------- */
.c-texto {
  position: absolute; z-index: 6;
  left: var(--c-margem); top: clamp(108px, 17.5svh, 190px);
  max-width: min(46vw, 680px);
}
.c-registro {
  margin: 0 0 clamp(18px, 2.8svh, 28px);
  font-family: var(--c-fonte-mono); font-size: var(--c-t-mono); font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-mel-claro);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.9em;
}
.c-registro .c-oficio { display: inline-flex; align-items: center; gap: 0.9em; color: var(--c-creme-2); }
.c-registro i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.c-titulo {
  margin: 0; width: fit-content;
  font-weight: 500; font-size: var(--c-t-titulo); line-height: 1.04; letter-spacing: -0.032em;
  text-wrap: balance;
}
.c-titulo span { display: block; white-space: nowrap; }
.c-titulo em {
  font-style: normal; font-weight: 600;
  background: linear-gradient(100deg in oklab, #e9c48d 0%, var(--c-mel-luz) 45%, #d9a866 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.12em; /* descendentes dentro do recorte */
}
.c-apoio {
  margin: clamp(18px, 3svh, 30px) 0 0; max-width: 26em;
  font-size: var(--c-t-apoio); line-height: 1.58; font-weight: 400; color: var(--c-creme-2);
}
.c-acoes { margin-top: clamp(22px, 3.6svh, 36px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.c-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 56px; padding: 0 26px;
  border-radius: var(--c-raio);
  background: linear-gradient(180deg in oklab, #e6bb7d 0%, #cf9d59 100%);
  color: var(--c-tinta); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 240 210 / 0.55) inset, 0 14px 34px -14px rgb(217 168 102 / 0.6);
  transition: transform 0.35s var(--c-suave), box-shadow 0.35s var(--c-suave), filter 0.35s;
}
.c-botao:hover, .c-botao:focus-visible { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 1px 0 rgb(255 240 210 / 0.6) inset, 0 20px 40px -14px rgb(217 168 102 / 0.75); }
.c-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px;
  font-size: 0.98rem; font-weight: 500; color: var(--c-creme); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 100% 1px no-repeat;
  background-size: calc(100% - 22px) 1px;
  transition: color 0.3s;
}
.c-link span { color: var(--c-mel-claro); transition: transform 0.35s var(--c-suave); }
.c-link:hover, .c-link:focus-visible { color: var(--c-mel-luz); }
.c-link:hover span { transform: translateY(3px); }
:focus-visible { outline: 2px solid var(--c-mel-luz); outline-offset: 4px; border-radius: 4px; }

/* ---------- ela ---------- */
.c-palco {
  position: absolute;
  right: var(--c-fig-dir);
  bottom: calc(var(--c-tampo) - var(--c-fig-h) * 0.059);
  width: var(--c-fig-w); height: var(--c-fig-h);
}
.c-brasa {
  position: absolute; z-index: 1;
  left: -38%; right: -38%; top: -30%; bottom: -6%;
  border-radius: 50%;
  background:
    radial-gradient(42% 40% at 50% 46% in oklab, rgb(217 168 102 / 0.34) 0%, rgb(217 168 102 / 0) 100%),
    radial-gradient(closest-side in oklab, rgb(164 117 61 / 0.50) 0%, rgb(134 99 58 / 0.24) 46%, rgb(134 99 58 / 0) 100%);
  animation: c-brasa 19s ease-in-out infinite alternate;
}
@keyframes c-brasa { from { transform: scale(0.96); opacity: 0.82; } to { transform: scale(1.05); opacity: 1; } }
.c-figura { position: absolute; z-index: 3; inset: 0; margin: 0; }
.c-figura::before { /* sombra dos braços no tampo */
  content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: -1.5%; height: 13%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(8 8 4 / 0.7) 0%, rgb(8 8 4 / 0) 100%);
}
.c-figura img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / 0.5) 7%, #000 17%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / 0.5) 7%, #000 17%, #000 90%, transparent 100%);
}
.c-contorno { mix-blend-mode: screen; animation: c-contorno 19s ease-in-out infinite alternate; }
@keyframes c-contorno { from { opacity: 0.7; } to { opacity: 1; } }

/* o tampo: faixa real da mesa dela, iluminada só perto das mãos */
.c-tampo {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: var(--c-tampo);
  --c-luz-x: calc(var(--c-fig-dir) + var(--c-fig-w) / 2);
  background:
    linear-gradient(to bottom, rgb(18 23 15 / 0) 0%, rgb(18 23 15 / 0.35) 55%, var(--c-noite-0) 100%),
    url("../img/c-tampo.webp") center top / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 62vw 260% at right var(--c-luz-x) top 0, #000 0%, rgb(0 0 0 / 0.72) 34%, rgb(0 0 0 / 0.2) 70%, rgb(0 0 0 / 0.05) 100%);
          mask-image: radial-gradient(ellipse 62vw 260% at right var(--c-luz-x) top 0, #000 0%, rgb(0 0 0 / 0.72) 34%, rgb(0 0 0 / 0.2) 70%, rgb(0 0 0 / 0.05) 100%);
}
.c-hero::after { /* a aresta do tampo, que é também a linha de base da curva */
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--c-tampo); height: 1px;
  --c-luz-x: calc(var(--c-fig-dir) + var(--c-fig-w) / 2);
  background: radial-gradient(ellipse 56vw 100% at right var(--c-luz-x) top 0 in oklab, rgb(243 220 174 / 0.55) 0%, rgb(217 168 102 / 0.26) 45%, rgb(241 233 216 / 0.1) 100%);
}

/* ---------- rótulos da curva ---------- */
.c-trechos { position: absolute; inset: 0; z-index: 5; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.c-trechos li {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-family: var(--c-fonte-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--c-creme);
  text-shadow: 0 0 14px rgb(18 23 15 / 0.9), 0 0 3px rgb(18 23 15 / 0.9);
  opacity: 0; transition: opacity 0.9s ease 0.1s;
}
.c-trechos li.c-visivel { opacity: 1; }
.c-trechos span { margin-right: 0.8em; color: var(--c-mel-claro); font-weight: 300; font-size: 0.86em; }

.c-legenda {
  position: absolute; z-index: 6; margin: 0;
  left: var(--c-margem); bottom: clamp(22px, 3.8svh, 38px);
  max-width: 30rem;
  font-family: var(--c-fonte-mono); font-size: var(--c-t-mono); line-height: 1.75; font-weight: 300; letter-spacing: 0.01em;
  color: var(--c-creme-2);
}
.c-legenda q { quotes: "“" "”"; }
.c-legenda span { display: block; margin-top: 0.35em; color: var(--c-mel-claro); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.92em; font-weight: 400; }

/* ---------- prova ---------- */
.c-prova {
  position: absolute; z-index: 6; margin: 0;
  right: var(--c-margem); top: clamp(104px, 15.5svh, 168px);
  width: clamp(200px, 20vw, 300px);
  padding-left: 18px; border-left: 1px solid rgb(217 168 102 / 0.55);
}
.c-prova blockquote { margin: 0; font-size: clamp(0.92rem, 0.4vw + 0.74rem, 1.06rem); line-height: 1.5; font-weight: 400; color: var(--c-creme); text-wrap: pretty; }
.c-prova figcaption { margin-top: 12px; font-family: var(--c-fonte-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-mel-claro); }

/* ---------- entrada ---------- */
@keyframes c-sobe { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes c-surge { from { opacity: 0; } to { opacity: 1; } }
@keyframes c-chega { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); } to { opacity: 1; transform: none; } }
.c-nav { animation: c-surge 0.9s ease both; }
.c-registro { animation: c-sobe 0.9s var(--c-suave) 0.05s both; }
.c-titulo span:nth-child(1) { animation: c-sobe 1s var(--c-suave) 0.14s both; }
.c-titulo span:nth-child(2) { animation: c-sobe 1s var(--c-suave) 0.26s both; }
.c-apoio { animation: c-sobe 1s var(--c-suave) 0.4s both; }
.c-acoes > * { animation: c-sobe 1s var(--c-suave) 0.52s both; }
.c-acoes > *:nth-child(2) { animation-delay: 0.6s; }
.c-figura { animation: c-chega 1.5s var(--c-suave) 0.3s both; transform-origin: 50% 94%; }
.c-palco .c-brasa { animation: c-surge 2.4s ease 0.2s both, c-brasa 19s ease-in-out 2.6s infinite alternate; }
.c-tampo { animation: c-surge 1.8s ease 0.3s both; }
.c-prova { animation: c-sobe 1.1s var(--c-suave) 2.5s both; }
.c-legenda { animation: c-sobe 1.1s var(--c-suave) 2.9s both; }

/* ---------- telas de mesa menores ---------- */
@media (max-width: 1180px) and (min-width: 821px) {
  :root { --c-t-titulo: clamp(2.3rem, 4.1vw, 3rem); --c-fig-dir: clamp(56px, 9vw, 110px); }
  .c-texto { max-width: 47vw; }
  .c-apoio { max-width: 24em; }
  .c-prova { width: clamp(180px, 19vw, 220px); top: clamp(92px, 13svh, 120px); padding-left: 14px; }
  .c-legenda { max-width: 23rem; }
}

/* ---------- celular ---------- */
@media (max-width: 820px) {
  :root {
    --c-t-titulo: clamp(1.86rem, 8.5vw, 2.6rem);
    --c-t-apoio: 1rem;
    --c-t-mono: 0.875rem;
    --c-margem: 20px;
    --c-fig-w: min(100vw, 460px);
    --c-fig-h: calc(var(--c-fig-w) * 1.0093);
    --c-tampo: 64px;
  }
  .c-hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 34px; }
  .c-texto, .c-acoes { display: contents; }

  .c-nav { position: relative; order: 0; padding: 10px var(--c-margem) 6px; gap: 8px; }
  .c-marca { font-size: 1.02rem; }
  .c-nav-wa { width: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .c-nav-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .c-nav-wa svg { width: 21px; height: 21px; }
  .c-nav-menu {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--c-creme); cursor: pointer;
  }
  .c-nav-menu span { width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--c-suave); }
  .c-nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .c-nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .c-nav-links {
    position: absolute; z-index: 2; left: var(--c-margem); right: var(--c-margem); top: calc(100% + 2px);
    flex-direction: column; gap: 0; padding: 6px 18px;
    background: #182013; border: 1px solid var(--c-fio); border-radius: var(--c-raio);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.3s, transform 0.3s var(--c-suave), visibility 0.3s;
  }
  .c-nav-links.c-aberto { opacity: 1; visibility: visible; transform: none; }
  .c-nav-links a { display: flex; align-items: center; min-height: 50px; font-size: 1rem; color: var(--c-creme); }
  .c-nav-links li + li { border-top: 1px solid var(--c-fio); }

  .c-registro, .c-titulo, .c-apoio, .c-botao, .c-link, .c-legenda, .c-prova {
    position: relative; z-index: 6; margin-left: var(--c-margem); margin-right: var(--c-margem);
  }
  .c-registro { order: 1; margin-top: 12px; margin-bottom: 12px; letter-spacing: 0.02em; }
  .c-registro .c-oficio { display: none; }
  .c-titulo { order: 2; line-height: 1.07; }
  .c-apoio { order: 3; margin-top: 14px; max-width: none; line-height: 1.5; }
  .c-botao { order: 4; margin-top: 20px; min-height: 56px; }

  .c-palco {
    position: relative; order: 5; right: auto; bottom: auto;
    align-self: center; flex: none;
    margin-top: 84px; /* respiro acima da cabeça: é onde a curva passa */
  }
  .c-brasa { left: -20%; right: -20%; top: -26%; bottom: 0; }
  .c-tampo {
    position: relative; order: 6; left: auto; right: auto; bottom: auto; flex: none;
    margin-top: calc(var(--c-fig-h) * -0.059);
    --c-luz-x: 50vw;
    -webkit-mask-image: radial-gradient(ellipse 90vw 240% at 50% 0, #000 0%, rgb(0 0 0 / 0.7) 45%, rgb(0 0 0 / 0.2) 100%);
            mask-image: radial-gradient(ellipse 90vw 240% at 50% 0, #000 0%, rgb(0 0 0 / 0.7) 45%, rgb(0 0 0 / 0.2) 100%);
  }
  .c-tampo::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: radial-gradient(ellipse 60vw 100% at 50% 0 in oklab, rgb(243 220 174 / 0.55) 0%, rgb(217 168 102 / 0.2) 60%, rgb(241 233 216 / 0.08) 100%);
  }
  .c-hero::after { display: none; }

  .c-legenda { order: 7; left: auto; bottom: auto; margin-top: 6px; max-width: none; line-height: 1.65; }
  .c-prova { order: 8; right: auto; top: auto; width: auto; margin-top: 28px; padding-left: 16px; }
  .c-prova blockquote { font-size: 1.06rem; }
  .c-prova figcaption { font-size: 0.875rem; letter-spacing: 0.03em; }
  .c-link { order: 9; align-self: flex-start; margin-top: 18px; font-size: 1rem; }

  .c-trechos li { font-size: 0.875rem; letter-spacing: 0.03em; }
  .c-trechos span { margin-right: 0.55em; }
  .c-brilho { filter: blur(11px); }
  .c-titulo { width: auto; }

  .c-prova, .c-legenda { animation-delay: 0.9s; }
}

@media (max-width: 460px) {
  .c-figura img { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- quem pediu menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .c-trechos li { opacity: 1; }
}
