/* ═══════════════════════════════════════════════════════
   SITE.CSS — Header, Landing, Municípios, Rodapé
   (novo módulo — complementa style.css, mesma paleta/tokens)
═══════════════════════════════════════════════════════ */

/* ───────────────────────────────────────
   SITE HEADER (igual em todas as páginas)
─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(254,246,240,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,107,128,0.14);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(201,107,128,0.18);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--ink-60);
  letter-spacing: 0.03em;
}
.brand-partner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1.3rem;
  border-left: 1px solid rgba(201,107,128,0.2);
}
.partner-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.partner-name {
  font-size: 0.76rem;
  color: var(--ink-60);
  font-weight: 600;
  white-space: nowrap;
}
.apoio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--blush);
  border: 1px solid rgba(201,107,128,0.2);
  color: var(--rose);
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.apoio-toggle:hover { background: var(--rose-pale); }
.apoio-toggle svg {
  width: 10px; height: 10px;
  transition: transform 0.3s var(--ease-out-expo);
}
.apoio-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.apoio-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease-out-expo), opacity 0.3s, padding 0.4s var(--ease-out-expo);
}
.apoio-panel.open {
  max-height: 200px;
  opacity: 1;
  padding: 0.2rem 2rem 1.1rem;
}
.apoio-panel-title {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rose);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.apoio-panel ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.apoio-panel li {
  font-size: 0.82rem;
  color: var(--ink-60);
  position: relative;
  padding-left: 0.9rem;
}
.apoio-panel li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rose-light);
}

/* ───────────────────────────────────────
   LANDING HERO
─────────────────────────────────────── */
.landing-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
}
.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(212,184,208,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 100%, rgba(201,107,128,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(232,160,173,0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream), var(--parchment));
}
.landing-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.landing-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.landing-eyebrow-line { width: 28px; height: 1.5px; background: var(--rose-pale); }
.landing-eyebrow-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose);
  font-weight: 700;
}
.landing-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 1.3rem;
}
.landing-title em { color: var(--rose); font-style: italic; font-weight: 400; }
.landing-subtitle {
  font-size: 1.02rem;
  color: var(--ink-60);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 2.4rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background 0.25s;
  text-decoration: none;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(135deg, #9a3050, var(--rose));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(154,48,80,0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(154,48,80,0.36); }
.btn-secondary {
  background: var(--white);
  color: var(--rose);
  border: 1.5px solid var(--rose-pale);
}
.btn-secondary:hover { background: var(--blush); transform: translateY(-3px); }

/* ───────────────────────────────────────
   ESTATÍSTICAS
─────────────────────────────────────── */
.stats-section { background: var(--blush); position: relative; }
.stats-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--parchment));
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid rgba(201,107,128,0.15);
  border-radius: 22px;
  padding: 2rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(201,107,128,0.18); }
.stat-card.stat-message { background: linear-gradient(150deg, var(--orchid-lt), var(--blush)); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-number small { font-size: 0.95rem; font-weight: 700; margin-left: 0.15rem; }
.stat-label {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 700;
  margin-top: 0.65rem;
  line-height: 1.4;
}
.stat-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--ink-60);
}
.stat-range .stat-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose-pale), var(--rose-light));
}
.stat-source {
  display: block;
  margin-top: 1rem;
  font-size: 0.68rem;
  color: var(--ink-30);
  font-style: italic;
}
.stat-split {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.6rem;
}
.stat-split-item { flex: 1; }
.stat-split-item .stat-number { font-size: 1.6rem; }
.stat-split-item .stat-label { font-size: 0.74rem; font-weight: 600; color: var(--ink-60); }
.stat-message-text {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.7;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}

/* ───────────────────────────────────────
   FONTES OFICIAIS
─────────────────────────────────────── */
.sources-section {
  background: var(--parchment);
  text-align: center;
  padding-top: 5.5rem;
}
.sources-section .section-inner { max-width: 640px; }
.sources-section .section-eyebrow { justify-content: center; }
.sources-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1.5px solid rgba(201,107,128,0.18);
  border-radius: 18px;
  padding: 1rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.3s;
}
.source-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(201,107,128,0.2);
  border-color: var(--rose-pale);
}
.source-btn-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.source-btn-icon svg { width: 16px; height: 16px; }
.source-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.source-btn-text small { font-weight: 400; color: var(--ink-60); font-size: 0.68rem; }

/* ───────────────────────────────────────
   REDE DE APOIO (cards de município/programa)
─────────────────────────────────────── */
.network-section { background: var(--cream); padding-top: 5.5rem; }
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.network-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid rgba(201,107,128,0.15);
  border-radius: 22px;
  padding: 2.3rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.network-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }
.network-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rose-pale), var(--rose-light), var(--rose-pale));
  opacity: 0; transition: opacity 0.3s;
}
.network-card:hover::before { opacity: 1; }
.network-card-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.network-card-icon svg { width: 26px; height: 26px; }
.network-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.network-card-name {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.02rem;
}
.network-card-desc { font-size: 0.8rem; color: var(--ink-60); line-height: 1.55; }
.network-card-arrow {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.network-card-arrow svg { width: 12px; height: 12px; transition: transform 0.3s; }
.network-card:hover .network-card-arrow svg { transform: translateX(3px); }

/* segunda chamada (final da landing) */
.cta-repeat {
  background: linear-gradient(150deg, var(--blush), var(--orchid-lt));
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-repeat-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 2rem;
  font-weight: 700;
}

/* ───────────────────────────────────────
   RODAPÉ — parceiros + destaque
─────────────────────────────────────── */
.site-footer {
  background: var(--blush);
  padding: 3.4rem 2rem 2.6rem;
  text-align: center;
}
.footer-partners-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rose);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.footer-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 2rem;
}
.footer-partners span {
  font-size: 0.82rem;
  color: var(--ink-60);
  font-weight: 600;
}
.footer-partners span:not(:last-child)::after {
  content: '•';
  margin-left: 1.6rem;
  color: var(--rose-pale);
}
.footer-highlight {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  background: var(--white);
  border: 1.5px solid var(--rose-pale);
  border-radius: 18px;
  padding: 1.2rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}
.footer-credit {
  font-size: 0.76rem;
  color: var(--ink-30);
  line-height: 1.7;
}

/* ───────────────────────────────────────
   PÁGINAS DE MUNICÍPIO (uma tela, sem rolagem)
─────────────────────────────────────── */
.muni-page { display: flex; flex-direction: column; min-height: 100vh; }
.muni-header { flex-shrink: 0; }
.muni-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem clamp(1rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.muni-hero {
  text-align: center;
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.muni-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose);
  text-decoration: none;
  margin-bottom: 0.9rem;
}
.muni-back svg { width: 12px; height: 12px; }
.muni-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.muni-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--ink);
  font-weight: 700;
}
.muni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.muni-card {
  background: var(--white);
  border: 1px solid rgba(201,107,128,0.15);
  border-radius: 18px;
  padding: clamp(0.9rem, 2vh, 1.4rem) 1.2rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.muni-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(201,107,128,0.15); }
.muni-card-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
}
.muni-card-icon svg { width: 18px; height: 18px; }
.muni-card-body { flex: 1; min-width: 0; }
.muni-card-name {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.muni-card-phone {
  display: block;
  color: var(--rose);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 0.15rem;
}
.muni-card-phone:hover { color: #9a3050; }
.muni-card-meta {
  font-size: 0.74rem;
  color: var(--ink-60);
  line-height: 1.5;
}
.muni-call-btn {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .muni-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    background: var(--blush);
    color: var(--rose);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    text-decoration: none;
  }
}
.muni-footer-mini {
  flex-shrink: 0;
  text-align: center;
  padding: 0.8rem 1rem 1.1rem;
  font-size: 0.68rem;
  color: var(--ink-30);
}

/* ───────────────────────────────────────
   BOTÃO DE AJUDA FLUTUANTE
─────────────────────────────────────── */
.floating-help {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #9a3050, var(--rose));
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(154,48,80,0.32);
  transition: transform 0.3s var(--ease-out-expo);
}
.floating-help:hover { transform: translateY(-3px) scale(1.03); }
.floating-help svg { width: 15px; height: 15px; }

/* ───────────────────────────────────────
   REVEAL genérico (fade-up ao rolar)
─────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.rv.visible { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.4s; }
.rv-d6 { transition-delay: 0.48s; }

/* ───────────────────────────────────────
   QUIZ COMO PÁGINA PRÓPRIA (não mais overlay)
   — sobrescreve regras de #quiz-overlay do style.css
─────────────────────────────────────── */
#quiz-overlay.quiz-page {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: calc(100vh - 86px);
  overflow: visible;
  /* permite que o stage cresça livremente */
  flex: none;
}
.quiz-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 1.2rem 2.5rem 0;
}
@media (max-width: 640px) {
  .quiz-topbar { padding: 1rem 1.2rem 0; }
}

/* ── mensagem final: seleção de rede por município */
.final-network-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #9a3050;
  margin-bottom: 1.1rem;
}
.final-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.9rem;
  max-width: 480px;
}
.final-network-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(154,48,80,0.18);
  border-radius: 16px;
  padding: 1.1rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: transform 0.3s var(--ease-out-expo), background 0.3s, box-shadow 0.3s;
}
.final-network-btn:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(154,48,80,0.2);
}
.final-network-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.final-network-icon svg { width: 16px; height: 16px; }
.final-network-icon img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) {
  .final-network-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .final-network-btn { padding: 0.85rem 0.5rem; font-size: 0.76rem; }
  .final-network-grid { max-width: 100%; }
}

/* ───────────────────────────────────────
   RESPONSIVO
─────────────────────────────────────── */
@media (max-width: 720px) {
  .site-header-inner { padding: 0.8rem 1.2rem; gap: 0.8rem; }
  .brand-sub { display: none; }
  .brand-partner { padding-left: 0.8rem; }
  .partner-name { display: none; }
  .apoio-panel { padding-left: 1.2rem; padding-right: 1.2rem; }
  .landing-hero { min-height: auto; padding: 3rem 1.2rem 3.5rem; }
  .muni-main { padding: 1rem 1.2rem; }
}
@media (max-width: 480px) {
  .brand-title { font-size: 0.85rem; }
  .brand-logo { width: 38px; height: 38px; }
}
