/* Pesquisadores da Bíblia — design tokens da fundação (design-tokens-foundation.yaml)
   Paleta canônica validada pelo manual da marca oficial (Amarelo Limão, 2024).
   Tipografia: substitutas gratuitas aprovadas das oficiais comerciais —
   Baloo 2 ≈ Gingo Kids (títulos) · Montserrat ≈ Proxima Nova (texto).
   Decisão registrada em marketing/brand/DESIGN.md v1.0 (cliente não possui licenças). */

:root {
  --amarelo: #ECB524;
  --vermelho: #E64339;
  --teal: #009CAF;
  --navy: #002E56;
  --teal-cenario: #2DBFB4;
  --tint: #E2F1F4; /* GELO — fundo claro oficial do manual da marca */
  --branco: #FFFFFF;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0, 46, 86, 0.14);
  --shadow-forte: 0 10px 28px rgba(0, 46, 86, 0.2);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--branco);
}

h1, h2, h3, .btn { font-family: 'Baloo 2', sans-serif; }

h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.2; font-weight: 700; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin-bottom: 1rem; }

a { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }

.secao-tint { background: var(--tint); }

/* ── Botões ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  min-height: 44px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-forte); }
.btn-primario { background: var(--amarelo); color: var(--navy); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--branco); border: 2px solid var(--branco); }
.btn-ghost-teal { background: transparent; color: var(--teal); border: 2px solid var(--teal); }

/* ── Header ── */
.site-header {
  background: var(--branco);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 46, 86, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
/* TRAVA DE LOGO: altura fixa, largura automática, respiro garantido pelo padding */
.logo-link img { height: 56px; width: auto; }
.logo-link { padding: 8px; display: inline-block; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
}

.site-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; }
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .btn { padding: 10px 18px; font-size: .9rem; }

/* ── Hero ── */
.hero {
  background: var(--teal-cenario);
  color: var(--branco);
  padding: 64px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero p.sub { font-size: 1.15rem; margin: 18px 0 26px; }
.hero .acoes { display: flex; gap: 14px; flex-wrap: wrap; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow-forte); }

.hero-interno {
  background: var(--teal-cenario);
  color: var(--branco);
  padding: 48px 0;
}

/* ── Cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h3 { margin-bottom: .5rem; }
.card .badge {
  display: inline-block;
  background: var(--vermelho);
  color: var(--branco);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card .badge-destaque { background: var(--teal); }

.card .avatar-fundadora {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 0 0 16px;
  border: 3px solid var(--tint);
  box-shadow: var(--shadow);
}

.card .card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 16px 0 0;
}

.card .capa-apostila {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.passos { counter-reset: passo; }
.passo { position: relative; padding-left: 64px; margin-bottom: 22px; }
.passo::before {
  counter-increment: passo;
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--navy);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FAQ ── */
details {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 18px 22px;
}
details summary {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details p { margin: 12px 0 0; }

/* ── Artigos do blog ── */
.artigo { max-width: 760px; margin: 0 auto; }
.artigo h2 { margin-top: 36px; }
.artigo h3 { margin-top: 24px; margin-bottom: .5rem; }
.artigo ul, .artigo ol { margin: 0 0 1rem 22px; }
.artigo li { margin-bottom: 6px; }
.artigo table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.artigo th {
  background: var(--navy);
  color: var(--branco);
  text-align: left;
  padding: 10px 12px;
  font-family: 'Baloo 2', sans-serif;
}
.artigo td { border: 1px solid rgba(0, 46, 86, 0.18); padding: 9px 12px; }
.artigo tbody tr:nth-child(even) td { background: var(--tint); }
.artigo .meta-artigo { font-size: .9rem; opacity: .85; margin-bottom: 24px; }

/* ── Agenda editorial (blog) ── */
.agenda {
  list-style: none;
  max-width: 620px;
  margin: 24px auto;
  text-align: left;
}
.agenda li {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.agenda-mes {
  flex-shrink: 0;
  min-width: 92px;
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--branco);
}
.agenda li:nth-child(3n+1) .agenda-mes { background: var(--amarelo); color: var(--navy); }
.agenda li:nth-child(3n+2) .agenda-mes { background: var(--teal); color: var(--branco); }
.agenda li:nth-child(3n) .agenda-mes { background: var(--vermelho); color: var(--branco); }

/* ── Vídeos verticais (formato Reels 9:16) ── */
.video-vertical {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  box-shadow: var(--shadow-forte);
  background: var(--navy);
  display: block;
  object-fit: cover;
}
.hero .video-vertical { max-width: 300px; margin: 0 auto; }
.grid-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: center;
  margin-top: 24px;
}
.grid-videos-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.grid-videos-1 { grid-template-columns: minmax(0, 340px); }
.grid-videos figure { margin: 0; text-align: center; }
.grid-videos figcaption { margin-top: 10px; font-size: .9rem; font-weight: 500; }
@media (max-width: 900px) {
  .grid-videos, .grid-videos-2 { grid-template-columns: minmax(0, 340px); justify-content: center; }
}

/* ── Preço (cards de produto) ── */
.preco { font-size: 1.05rem; margin-bottom: 4px; }
.preco s { opacity: .55; }
.preco strong {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.6rem;
  color: var(--vermelho);
}
.preco-condicao { font-size: .9rem; margin-bottom: 16px; }

/* ── Utilidades ── */
.centro { text-align: center; }
.destaque-garantia {
  background: var(--tint);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.canais { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CTA final ── */
.cta-final {
  background: var(--navy);
  color: var(--branco);
  text-align: center;
  padding: 64px 20px;
}
.cta-final h2 { color: var(--branco); }
.cta-final .btn { margin-top: 18px; }

/* ── Rodapé ── */
.site-footer {
  background: var(--tint);
  padding: 40px 0 24px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.site-footer img { height: 48px; width: auto; }
.site-footer ul { list-style: none; margin-top: 10px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-legal {
  text-align: center;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 46, 86, 0.15);
  color: var(--navy);
}

/* ── Botão flutuante do WhatsApp ──
   #25D366 é a cor OFICIAL do WhatsApp (marca de terceiro), restrita a este
   widget — não entra na paleta do site. Registrado no brand gate. */
.whatsapp-flutuante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 46, 86, 0.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-flutuante:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0, 46, 86, 0.35); }
.whatsapp-flutuante svg { width: 32px; height: 32px; fill: #FFFFFF; }
@media (max-width: 640px) {
  .whatsapp-flutuante { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-flutuante svg { width: 28px; height: 28px; }
}

/* ── Acessibilidade ── */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.aberta { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; }
  .logo-link img { height: 44px; }
  .hero { padding: 44px 0; }
  section { padding: 40px 0; }
}

/* ══════════════════════════════════════════════════════════════
   MODO ALEGRE — direção do cliente (2026-08-25)
   Navbar multicolorida imitando a sequência do logo ("Bíblia":
   amarelo, teal, vermelho, navy, vermelho, amarelo) + cor nas
   seções, cards e detalhes. Derivados escuros para TEXTO pequeno
   sobre fundo claro (acessibilidade AA): amarelo/teal/vermelho.
   ══════════════════════════════════════════════════════════════ */
:root {
  --amarelo-texto: #A87908;
  --teal-texto: #007A89;
  --vermelho-texto: #C62E24;
}

/* Navbar: cada nome numa cor do logo; hover vira pílula preenchida */
.site-nav a {
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.site-nav a:hover { transform: translateY(-1px); }
.site-nav li:nth-child(1) > a { color: var(--amarelo-texto); }
.site-nav li:nth-child(2) > a { color: var(--teal-texto); }
.site-nav li:nth-child(3) > a { color: var(--vermelho-texto); }
.site-nav li:nth-child(4) > a { color: var(--navy); }
.site-nav li:nth-child(5) > a { color: var(--vermelho-texto); }
.site-nav li:nth-child(6) > a { color: var(--amarelo-texto); }
.site-nav li:nth-child(1) > a:hover, .site-nav li:nth-child(1) > a[aria-current="page"] { background: var(--amarelo); color: var(--navy); }
.site-nav li:nth-child(2) > a:hover, .site-nav li:nth-child(2) > a[aria-current="page"] { background: var(--teal); color: var(--branco); }
.site-nav li:nth-child(3) > a:hover, .site-nav li:nth-child(3) > a[aria-current="page"] { background: var(--vermelho); color: var(--branco); }
.site-nav li:nth-child(4) > a:hover, .site-nav li:nth-child(4) > a[aria-current="page"] { background: var(--navy); color: var(--branco); }
.site-nav li:nth-child(5) > a:hover, .site-nav li:nth-child(5) > a[aria-current="page"] { background: var(--vermelho); color: var(--branco); }
.site-nav li:nth-child(6) > a:hover, .site-nav li:nth-child(6) > a[aria-current="page"] { background: var(--amarelo); color: var(--navy); }

/* Faixa multicolorida assinatura (sequência do logo) */
.site-header::after,
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--amarelo) 0 25%, var(--teal) 25% 50%,
    var(--vermelho) 50% 75%, var(--navy) 75% 100%);
}

/* Sublinhado multicolorido nos títulos de seção */
main h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg,
    var(--amarelo) 0 25%, var(--teal) 25% 50%,
    var(--vermelho) 50% 75%, var(--navy) 75% 100%);
}
main h2.centro::after, .cta-final h2::after { margin-left: auto; margin-right: auto; }

/* Cards com topo colorido em rodízio */
.grid-3 .card, .grid-2 .card, section > .container > .card { border-top: 6px solid var(--teal); }
.grid-3 .card:nth-child(3n+1) { border-top-color: var(--amarelo); }
.grid-3 .card:nth-child(3n+2) { border-top-color: var(--teal); }
.grid-3 .card:nth-child(3n)   { border-top-color: var(--vermelho); }
.grid-2 .card:nth-child(2n+1) { border-top-color: var(--amarelo); }
.grid-2 .card:nth-child(2n)   { border-top-color: var(--vermelho); }
.card { transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-forte); }

/* Números dos passos em rodízio de cores */
.passo:nth-child(3n+1)::before { background: var(--amarelo); color: var(--navy); }
.passo:nth-child(3n+2)::before { background: var(--teal); color: var(--branco); }
.passo:nth-child(3n)::before   { background: var(--vermelho); color: var(--branco); }

/* FAQ com borda colorida em rodízio */
details { border-left: 6px solid var(--teal); }
details:nth-of-type(3n+1) { border-left-color: var(--amarelo); }
details:nth-of-type(3n+2) { border-left-color: var(--teal); }
details:nth-of-type(3n)   { border-left-color: var(--vermelho); }

/* Stickers dos personagens (recortes circulares da arte original) */
.sticker {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  filter: drop-shadow(0 5px 12px rgba(0, 46, 86, 0.2));
}
.card .sticker { margin-left: auto; margin-right: auto; }
.sticker-flutuante { width: 150px; height: 150px; margin: 0 auto 16px; }

/* Hero levemente brincalhão */
.hero img { transform: rotate(-1.5deg); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

@media (max-width: 640px) {
  .site-nav a { display: inline-block; }
  .sticker { width: 80px; height: 80px; }
}

/* CTA da navbar mantém texto navy no hover (corrige herança do hover genérico) */
.site-nav .btn-primario:hover { color: var(--navy); background: var(--amarelo); }
