/* ==========================================================================
   GIA Health · base.css
   Tokens, reset, tipografia, header (ilha), footer, botões e movimento.
   Compartilhado por todas as páginas. Breakpoints: 640 / 768 / 1024 / 1180 / 1280.
   ========================================================================== */

:root {
  --noite: #120b0e;
  --coral: #f25e62;
  --luz: #ffd4b7;
  --t1: #222222;
  --t2: #666666;
  --t3: #8b9097;
  --t4: #a1a6ad;
  --linha: #e6e8eb;
  --off: #fafafb;
  --mauve: #a89ca1;
  --mauve2: #6b5a61;
  --rosa: #d9ced1;
  --erro: #d94a4f;
  --borda-escura: rgba(255, 255, 255, 0.14);

  --inter: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --geist: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--t1);
  font-family: var(--geist); font-size: 15px; line-height: 24px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--luz); }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
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; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--coral); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 500; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Ícones (Material Symbols Outlined) -------------------------------------- */
.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr; flex: none;
  -webkit-font-smoothing: antialiased; user-select: none;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Escala tipográfica ------------------------------------------------------- */
.t-display {
  font-family: var(--inter); font-weight: 400; color: #fff;
  font-size: 34px; line-height: 40px; letter-spacing: -0.045em;
}
.t-h2 {
  font-family: var(--inter); font-weight: 400; color: var(--t1);
  font-size: 32px; line-height: 40px; letter-spacing: -0.04em;
}
.t-h3 {
  font-family: var(--inter); font-weight: 400; color: var(--t1);
  font-size: 26px; line-height: 34px; letter-spacing: -0.035em;
}
.t-h4 {
  font-family: var(--inter); font-weight: 400; color: var(--t1);
  font-size: 20px; line-height: 28px; letter-spacing: -0.03em;
}
.t-lead { font-family: var(--geist); color: var(--t2); font-size: 16px; line-height: 26px; letter-spacing: -0.03em; }
.t-body { font-family: var(--geist); color: var(--t2); font-size: 15px; line-height: 24px; letter-spacing: -0.02em; }
.t-link { font-family: var(--geist); font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.02em; }
.t-label {
  font-family: var(--geist); font-weight: 500; text-transform: uppercase;
  font-size: 12px; line-height: 16px; letter-spacing: -0.01em;
}
.t-meta { font-family: var(--geist); font-size: 13px; line-height: 20px; letter-spacing: -0.015em; }

@media (min-width: 768px) {
  .t-display { font-size: 48px; line-height: 56px; }
  .t-h2 { font-size: 40px; line-height: 48px; }
  .t-h3 { font-size: 32px; line-height: 40px; }
  .t-lead { font-size: 18px; line-height: 28px; }
}
@media (min-width: 1024px) {
  .t-display { font-size: 56px; line-height: 64px; }
  .t-h2 { font-size: 48px; line-height: 56px; }
}

.c-coral { color: var(--coral); }
.c-t1 { color: var(--t1); }
.c-t2 { color: var(--t2); }
.c-t3 { color: var(--t3); }
.c-mauve { color: var(--mauve); }
.c-mauve2 { color: var(--mauve2); }

/* Layout ------------------------------------------------------------------ */
.conteudo { width: 100%; max-width: 1136px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .conteudo { padding-inline: 40px; max-width: 1216px; } }
@media (min-width: 1280px) { .conteudo { padding-inline: 0; max-width: 1136px; } }

.secao { padding-block: 96px; }
@media (min-width: 768px) { .secao { padding-block: 128px; } }
@media (min-width: 1280px) { .secao { padding-block: 160px; } }
.bg-off { background: var(--off); }
.bg-white { background: #fff; }

.hat { display: flex; align-items: center; gap: 10px; }
.hat::before { content: ""; display: block; width: 6px; height: 6px; flex: none; background: var(--coral); }

/* Topo de seção: a linha se desenha da esquerda */
.topo-secao {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px;
}
.topo-secao::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--linha); transform-origin: left; transition: transform 1.4s var(--ease);
}
.js .topo-secao:not(.is-in)::after { transform: scaleX(0); }

/* Botões ------------------------------------------------------------------ */
.btn-coral {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 40px; padding-inline: 20px; border-radius: 999px;
  background: var(--coral); color: #fff;
  font-family: var(--geist); font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: -0.015em;
  transition: opacity .2s;
}
.btn-coral:hover { opacity: .9; }

.btn-pilula {
  display: inline-flex; align-items: center; gap: 14px; height: 50px;
  padding: 5px 5px 5px 22px; border-radius: 999px;
  border: 1px solid var(--borda-escura); background: rgba(255, 255, 255, .06); color: #fff;
  transition: background-color .3s var(--ease);
}
.btn-pilula:hover { background: rgba(255, 255, 255, .1); }
.btn-pilula__seta {
  width: 38px; height: 38px; border-radius: 999px; background: var(--coral); color: #fff;
  display: grid; place-items: center; transition: transform .35s var(--ease);
}
.btn-pilula:hover .btn-pilula__seta { transform: rotate(45deg); }

.link-seta { display: inline-flex; align-items: center; gap: 8px; }
.link-seta .ms { font-size: 16px; transition: transform .3s var(--ease); }
.link-seta:hover .ms { transform: translateX(4px); }

/* ==========================================================================
   Header · ilha (barra arredondada). Na Home, fecha ao chegar no CTA.
   ========================================================================== */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
  pointer-events: none;
}
.barra {
  pointer-events: auto; width: 100%; max-width: 1280px;
  border: 1px solid var(--borda-escura); border-radius: 28px;
  background: rgba(18, 11, 14, .9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: max-width .8s var(--ease), background-color .4s var(--ease);
}
.barra__linha {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 8px 0 20px;
}
.barra__esq, .barra__dir { display: flex; align-items: center; }
.marca { display: flex; flex: none; align-items: center; gap: 10px; color: #fff; }
.marca img { width: 25px; height: 23px; }
.marca span { white-space: nowrap; font-family: var(--geist); font-weight: 600; font-size: 16px; line-height: 20px; }

.barra-meio {
  display: none; overflow: hidden; white-space: nowrap;
  transition: max-width .8s var(--ease), opacity .35s var(--ease), margin .8s var(--ease);
}
.barra-meio-esq { align-items: center; gap: 40px; max-width: 680px; margin-left: 56px; }
.barra-meio-dir { max-width: 120px; margin-right: 28px; }
.barra-link {
  position: relative; font-family: var(--geist); font-size: 14px; line-height: 22px; letter-spacing: -0.015em;
  color: #fff; transition: color .25s;
}
.barra-link:hover { color: var(--luz); }
.barra-link.is-ativo { color: var(--luz); }

.barra .btn-coral { display: none; }
.botao-menu {
  margin-left: 8px; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--borda-escura); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.botao-menu .ms { font-size: 22px; }

.menu-mobile { border-top: 1px solid var(--borda-escura); }
.menu-mobile ul { display: flex; flex-direction: column; padding: 12px 20px; }
.menu-mobile li + li a { border-top: 1px solid rgba(255, 255, 255, .08); }
.menu-mobile a {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
  font-family: var(--geist); font-size: 16px; line-height: 24px; letter-spacing: -0.02em; color: #fff;
}
.menu-mobile a .ms { font-size: 18px; color: var(--mauve); }
.menu-mobile__cta { padding: 0 20px 20px; }
.menu-mobile__cta a {
  display: flex; height: 44px; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--coral); color: #fff; font-weight: 500; font-size: 14px; letter-spacing: -0.015em;
}

@media (min-width: 640px) {
  .barra .btn-coral { display: inline-flex; }
}
@media (min-width: 1024px) {
  .barra { border-radius: 999px; }
  .barra__linha { height: 72px; padding: 0 12px 0 32px; }
  .barra .btn-coral { height: 48px; padding-inline: 24px; }
}
@media (min-width: 1180px) {
  .barra-meio-esq { display: flex; }
  .barra-meio-dir { display: block; }
  .botao-menu, .menu-mobile { display: none !important; }
  .topo.compacta .barra { max-width: 440px; }
}
.topo.compacta .barra-meio { max-width: 0; opacity: 0; margin-left: 0; margin-right: 0; }

/* ==========================================================================
   Footer · mapa. Sem links de navegação por enquanto: itens são texto.
   ========================================================================== */
.rodape { position: relative; isolation: isolate; overflow: hidden; background: var(--noite); }
.rodape__palco { position: relative; height: 460px; }
.rodape__mapa {
  position: absolute; left: 50%; top: 40px; width: 420px; transform: translateX(-50%);
}
.rodape__mapa img { width: 100%; height: auto; }
.rodape__veu {
  position: absolute; left: 50%; top: 10px; width: 700px; height: 400px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(18,11,14,.9) 0%, rgba(18,11,14,.49) 45%, rgba(18,11,14,.3) 80%, rgba(18,11,14,0) 100%);
  pointer-events: none;
}
.rodape__slogan {
  position: absolute; left: 20px; right: 20px; top: 120px; margin-inline: auto; max-width: 820px;
  text-align: center; font-family: var(--inter); font-weight: 400; color: #fff;
  font-size: 28px; line-height: 34px; letter-spacing: -0.04em;
}
.rodape__caixa {
  position: relative; overflow: hidden; margin: 0 16px;
  border: 1px solid var(--borda-escura); border-bottom: 0; background: var(--noite);
}
.rodape__topo {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 48px;
  padding: 48px 24px 180px;
}
.rodape__marca-col { display: flex; max-width: 380px; flex-direction: column; gap: 40px; }
.rodape__marca-col > div { display: flex; flex-direction: column; gap: 20px; }
.rodape__logo { display: flex; align-items: center; gap: 10px; }
.rodape__logo img { width: 41px; height: 38px; }
.rodape__logo span { font-family: var(--geist); font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: -0.02em; color: #fff; }
.rodape__tag { font-size: 14px; line-height: 22px; letter-spacing: -0.015em; color: var(--mauve); }
.rodape__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.rodape__col { display: flex; flex-direction: column; gap: 14px; }
.rodape__col li { font-size: 14px; line-height: 22px; letter-spacing: -0.015em; color: var(--rosa); }
.rodape__col ul { display: flex; flex-direction: column; gap: 14px; }
/* Links do footer: texto clareia, linha coral se desenha e a seta entra deslizando */
.rodape__link { display: inline-flex; align-items: center; gap: 4px; transition: color .3s var(--ease); }
.rodape__link > span:first-child {
  background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.rodape__link .ms {
  font-size: 14px; color: var(--coral); opacity: 0; transform: translate(-6px, 4px);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.rodape__link:hover, .rodape__link:focus-visible { color: #fff; }
.rodape__link:hover > span:first-child, .rodape__link:focus-visible > span:first-child { background-size: 100% 1px; }
.rodape__link:hover .ms, .rodape__link:focus-visible .ms { opacity: 1; transform: none; }
@media (hover: none) { .rodape__link .ms { opacity: .6; transform: none; } }
.rodape__health {
  position: absolute; left: 50%; bottom: -0.32em; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--inter); font-weight: 600; line-height: 1; letter-spacing: -0.055em; font-size: 34vw;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.07) 45%, rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (min-width: 768px) {
  .rodape__palco { height: 540px; }
  .rodape__mapa { width: 759px; }
  .rodape__veu { width: 980px; height: 560px; }
  .rodape__slogan { top: 175px; font-size: 40px; line-height: 48px; }
  .rodape__caixa { margin-inline: 40px; min-height: 560px; }
  .rodape__topo { padding: 96px 72px 260px; }
  .rodape__health { font-size: 30vw; }
}
@media (min-width: 1024px) {
  .rodape__slogan { font-size: 48px; line-height: 56px; }
  .rodape__topo { flex-direction: row; justify-content: space-between; }
  .rodape__cols { display: flex; gap: 72px; }
}
@media (min-width: 1280px) {
  .rodape__caixa { margin-inline: auto; max-width: 1280px; }
  .rodape__health { font-size: 372px; }
}

/* Pulso "ao vivo" (mapa, espectro, órbita) */
@keyframes ping { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
.ping { position: absolute; border-radius: 999px; transform: translate(-50%, -50%); pointer-events: none; }
.ping::before, .ping::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%;
  border-radius: inherit; border: 1px solid var(--coral); transform: translate(-50%, -50%);
  animation: ping 2.8s var(--ease) infinite;
}
.ping::after { animation-delay: 1.4s; }
.ponto {
  position: absolute; width: 6px; height: 6px; border-radius: 999px; background: var(--coral);
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Movimento (CSS + JS vanilla). Só ativa com a classe .js no <html>.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* Títulos palavra por palavra, subindo de uma máscara */
.js [data-split] .w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .w { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.js [data-split].is-in .w { transform: none; }

/* Destaque que se preenche de coral */
.preenche {
  color: transparent;
  background: linear-gradient(90deg, var(--coral) 0 50%, var(--t1) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-position 1.6s var(--ease) .35s;
}
.is-in .preenche, .preenche.is-in { background-position: 0 0; }

/* Hover editorial: sobe 3px */
.levanta { transition: transform .35s var(--ease); }
.levanta:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > *, .js [data-split] .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .preenche { background-position: 0 0; }
  .js .topo-secao::after { transform: none !important; }
}

/* Aviso de cookies (Figma 09 · Cookies) ----------------------------------- */
/* Aceitar e Recusar com o mesmo destaque visual (exigência de consentimento livre) */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; background: #fff; border: 1px solid var(--linha); border-radius: 12px;
  box-shadow: 0 16px 20px rgba(34, 34, 34, .12);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie__texto { font-size: 14px; line-height: 22px; letter-spacing: -0.015em; color: var(--t2); }
.cookie__texto a { color: var(--t1); text-decoration: underline; text-underline-offset: 2px; transition: text-decoration-color .2s; }
.cookie__texto a:hover { text-decoration-color: var(--coral); }
.cookie__status { margin-top: -8px; font-size: 13px; line-height: 18px; color: var(--t3); }
.cookie__acoes { display: flex; gap: 8px; }
.cookie__btn {
  flex: 1 0 0; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border: 1px solid var(--linha); border-radius: 8px; background: #fff;
  font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: -0.015em; color: var(--t1); white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.cookie__btn:hover { border-color: var(--t1); }

@media (min-width: 640px) {
  .cookie { left: 24px; bottom: 24px; right: auto; width: 400px; }
  .cookie__btn { flex: none; min-width: 104px; }
}
