/* ==========================================================================
   Nerva Vita — CSS base (design system)
   --------------------------------------------------------------------------
   Um arquivo só, pra TODAS as páginas. Tokens extraídos do site atual
   (WordPress/Elementor) em 29/07/2026 — as páginas novas têm que sair iguais
   por fora, mas sem Elementor por dentro.

   Regra de ouro: nada aqui pode apontar pra fora do projeto.
   ========================================================================== */

/* ---------- Fonte (local, latin + latin-ext, arquivo variável) ---------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_shared/font/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_shared/font/roboto-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Cores do site atual */
  --tinta: #171f2b;        /* títulos / header escuro */
  --tinta-2: #233147;      /* barra secundária do header */
  --texto: #333;           /* texto corrido */
  --verde: #447f61;        /* barra do topo + CTA */
  --verde-forte: #386b51;  /* hover do CTA */
  --cinza: #a2a2a2;        /* botão de recusa */
  --cinza-2: #8f8f8f;
  --linha: #e3e6ea;
  --fundo: #fff;

  /* Bloco de ofertas (navy + dourado) — vem da página de vendas */
  --navy: #1a2747;
  --navy-2: #20305a;
  --navy-3: #243b75;
  --ouro: #c9b37a;
  --creme: #f5ede0;

  /* Medidas */
  --col: 652px;            /* largura da coluna de leitura do advertorial */
  --col-larga: 1180px;     /* largura das seções de oferta / grids */
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Layout ---------- */
.col        { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
.col-larga  { max-width: var(--col-larga); margin: 0 auto; padding: 0 20px; }
.secao      { padding: 40px 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  color: var(--tinta);
  font-weight: 800;
  letter-spacing: .7px;
  margin: 1.4em 0 .5em;
}
h1 { font-size: clamp(28px, 6.2vw, 40px); line-height: 1.2; }
h2 { font-size: clamp(24px, 5.4vw, 36px); line-height: 1.22; }
h3 { font-size: clamp(20px, 4.4vw, 26px); line-height: 1.3; }
p  { margin: 0 0 1.1em; }
strong { font-weight: 700; }

/* Linha fina de credibilidade (autor / data / leitura) */
.meta { font-size: 15px; color: #6b7280; line-height: 1.5; }

/* ---------- Cabeçalho ---------- */
.topo { background: var(--verde); color: #fff; }
.topo .col-larga { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.topo img { width: 156px; }
.topo .trilha { font-size: 15px; color: #fff; }

.barra-escura { background: var(--tinta); color: #fff; }
.barra-escura .col-larga { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

/* Menu de navegação (páginas institucionais) */
.menu { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.menu a { text-decoration: none; font-weight: 500; color: var(--tinta); }
.menu a:hover { text-decoration: underline; }

/* `.esconder` = botão de upsell que só aparece depois de X segundos de vídeo.
   Quem mostra é o script da própria página, ouvindo o player VTurb. */
.esconder { display: none; }

/* Migalha "Home > Blog > Bem estar" */
.trilha { font-size: 15px; color: #6b7280; }
.trilha strong { font-weight: 700; }

/* ---------- Botões ---------- */
.btn {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 24px auto;
  padding: 15px 20px;
  border: 0;
  border-radius: 7px;
  background: var(--verde);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--verde-forte); }
.btn--recusar {
  background: var(--cinza);
  font-size: 20px;
  font-weight: 500;
  max-width: 340px;
}
.btn--recusar:hover { background: var(--cinza-2); }

/* Botão que pulsa (usado nas ofertas) */
@media (prefers-reduced-motion: no-preference) {
  .btn--pulsa { animation: pulsa 1.7s infinite; }
}
@keyframes pulsa {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* ---------- Imagens do texto ---------- */
figure { margin: 28px 0; }
figcaption { font-size: 15px; color: #6b7280; text-align: center; margin-top: 8px; }
.img-larga  { width: 100%; max-width: 652px; margin-inline: auto; }
.img-media  { width: 100%; max-width: 400px; margin-inline: auto; }
.avatar     { width: 100%; max-width: 400px; margin-inline: auto; border-radius: 200px; }

/* ---------- Bloco de ofertas (navy + dourado) ---------- */
.ofertas { background: var(--navy); padding: 64px 20px; }
.ofertas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; max-width: var(--col-larga); margin: 0 auto; }
.oferta {
  position: relative; display: flex; flex-direction: column;
  background: var(--navy-2); border: 1px solid rgba(201,179,122,.25);
  border-radius: 10px; padding: 36px 26px 30px; text-align: center; color: var(--creme);
}
.oferta--destaque { background: var(--navy-3); border-color: var(--ouro); box-shadow: 0 12px 36px rgba(0,0,0,.35); transform: translateY(-8px); }
.oferta__flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ouro); color: var(--navy); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; padding: 6px 16px; border-radius: 4px; text-transform: uppercase;
}
.oferta h3 { color: var(--creme); font-size: 26px; font-weight: 600; letter-spacing: .04em; margin: 0 0 6px; }
.oferta__marca { font-size: 11px; letter-spacing: .22em; color: var(--ouro); text-transform: uppercase; margin-bottom: 22px; }
.oferta__pote { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.oferta__pote img { max-height: 130px; width: auto; }
.oferta__preco { font-size: clamp(30px, 7vw, 44px); font-weight: 800; color: #fff; line-height: 1.1; }
.oferta__de { text-decoration: line-through; opacity: .65; font-size: 16px; }
.oferta__obs { font-size: 13px; opacity: .8; margin-top: 10px; }
.oferta .btn { background: var(--ouro); color: var(--navy); margin-top: auto; }
.oferta .btn:hover { background: #d8c48f; }

/* ---------- Vídeo do YouTube: capa clicável ----------
   O player só é criado no clique (ver /_shared/js/tracking.js). Iframe direto
   baixa ~950 KB por vídeo, mesmo abaixo da dobra. Não troque por <iframe>. */
.yt-capa { position: relative; max-width: 400px; margin: 22px auto; cursor: pointer; border-radius: 10px; overflow: hidden; background: #000; }
.yt-capa img { width: 100%; display: block; }
.yt-capa button {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  border: 0; border-radius: 12px; background: rgba(0,0,0,.72); cursor: pointer;
}
.yt-capa button::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff;
}
.yt-capa:hover button { background: #c00; }
.yt-capa iframe { width: 100%; aspect-ratio: 9/16; display: block; border: 0; }
.yt-capa--paisagem iframe { aspect-ratio: 16/9; }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); margin-top: 48px; padding: 28px 0 40px; text-align: center; font-size: 15px; color: #6b7280; }
.rodape a { color: #6b7280; text-decoration: underline; }
.rodape nav { margin-bottom: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Utilidades ---------- */
.centro { text-align: center; }

/* Título que existe pro leitor de tela e pro Google, mas não aparece.
   Usado nas páginas de conversão, onde um <h1> visível mudaria o desenho. */
.so-leitor {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.aviso  { background: #fdf3d4; border-left: 4px solid #e0b400; padding: 14px 18px; margin: 24px 0; font-size: 17px; }
.aviso--vermelho { background: #c0392b; border: 0; color: #fff; font-weight: 700; text-align: center; }

/* `.oculto` = quem mostra é o player VTurb (configurado no painel).
   NÃO esconda por CSS aqui além disto, e não mexa no nome da classe. */
.oculto { display: none; }
.oculto.is-visible { display: block; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .ofertas-grid { grid-template-columns: 1fr; gap: 34px; }
  .oferta--destaque { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .secao { padding: 28px 0; }
  .topo .col-larga, .barra-escura .col-larga { flex-direction: column; align-items: flex-start; gap: 8px; }
}
