:root {
  --bg-body: #f5f7fb;
  --bg-card: #ffffff;
  --bg-card-alt: #f0f4ff;
  --accent: #1e90a8;
  --accent-soft: rgba(30, 144, 168, 0.08);
  --accent-strong: #15748a;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 16px;
  --radius-xl: 22px;
  --transition-base: 200ms ease-out;

  /* verde musgo cards */
  --card-green: #3a4a3c;
  --card-green-light: #4f6252;
  --text-light: #f7f7f7;
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 1.25rem;
  margin: 0 auto;
}

/* HEADER CLARO */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

/* BRAND TAVVA */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: 200px; /* desktop */
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.brand-tagline {
  font-size: 0.96rem;
  font-weight: 500;
  color: #111827;
}

/* NAV - MESMO COMPORTAMENTO BASE PRA DESKTOP E MOBILE */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #000; /* texto preto */
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out,
    background 0.2s ease-out, transform 0.2s ease-out;
}

.nav-links a:hover {
  color: #000;
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  padding: 2.6rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.hero-left h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.hero-left h1 span {
  color: var(--accent-strong);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* CARDS PRINCIPAIS */
.counter-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem 1.5rem;
}

/* ===== AUMENTO PROPORCIONAL DO BLOCO PRINCIPAL ===== */

/* Título do card */
.counter-label {
  font-size: 1.15rem !important;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  text-transform: uppercase;
}

/* Número principal — agora bem maior */
.counter-value {
  font-size: clamp(2.8rem, 6vw, 3.6rem) !important;
  color: #ff8a00 !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
  margin-bottom: 0.35rem;
}

/* Texto da frequência */
.counter-meta {
  font-size: 1rem !important;
  color: var(--text-light) !important;
  opacity: 0.95;
}

.hero-disclaimer {
  margin-top: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-right .info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.info-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.info-label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.info-number {
  font-family: "Space Mono", ui-monospace;
  font-size: 0.98rem;
  font-weight: 600;
  margin-left: 0.3rem;
  color: #111827;
}

.mini-alert {
  font-size: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(30, 144, 168, 0.35);
  color: var(--text-muted);
}

/* SEÇÕES GERAIS */
.section {
  padding: 2.4rem 0 2.6rem;
}

.section.alt {
  background: #eef3ff;
}

.section-header {
  margin-bottom: 1.7rem;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.section-header p {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 80rem; /* mais largo pra alinhar com cards */
  width: 100%;
  text-align: left;
}

/* CARDS DE DISTRIBUIÇÃO */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.type-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.type-card h3 {
  font-size: 1rem;
}

.bar-wrap {
  margin-top: 0.3rem;
}

.bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e90a8, #36b497, #8aca34);
  transition: width 700ms ease-out;
}

.bar-meta {
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.bar-value {
  font-family: "Space Mono", ui-monospace;
  font-size: 0.86rem;
}

.type-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* COMO FUNCIONA */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  margin-bottom: 0.55rem;
  background: #eef3ff;
}

.step-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.step-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* METODOLOGIA / REF */
.methodology {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  margin-bottom: 1.5rem;
}

.methodology-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.2rem 1.2rem;
}

.methodology-block h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.methodology-block p,
.methodology-block ul {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.methodology-block ul {
  margin-left: 1rem;
  margin-top: 0.35rem;
  display: grid;
  gap: 0.22rem;
}

.methodology-block li {
  list-style: disc;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  padding-top: 0.75rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.9rem 0 1.1rem;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================
   MOBILE / TABLET (ATÉ 880px)
=============================== */
@media (max-width: 880px) {
  /* HEADER: tudo centralizado em coluna */
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0 0.5rem;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: 150px;
  }

  .brand-text {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-tagline {
    font-size: 1.02rem;
  }

  /* MENU visível, quebra em 1–2 linhas */
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.3rem 0.8rem;
  }

  /* Layout das seções */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .methodology {
    grid-template-columns: 1fr;
  }
}

/* MOBILE ESTREITO (ATÉ 640px) */
@media (max-width: 640px) {
  .brand-logo {
    width: 140px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* ====================
   ESTILO VERDE-MUSGO PARA TODOS OS CARDS
==================== */

/* Cards gerais */
.counter-card,
.info-card,
.type-card,
.step-card,
.methodology-block {
  background: var(--card-green) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--text-light) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Títulos dentro dos cards */
.counter-card h2,
.info-card h2,
.type-card h3,
.step-card h3,
.methodology-block h3 {
  color: #ffffff !important;
}

/* Textos dentro dos cards */
.counter-label,
.counter-meta,
.info-label,
.info-number,
.type-note,
.step-card p,
.methodology-block p,
.methodology-block li,
.bar-meta {
  color: var(--text-light) !important;
}

/* Barras internas (mantemos o gradiente) */
.bar {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* Valor numérico das barras */
.bar-value {
  color: #fff !important;
}

/* Mini-alert */
.mini-alert {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}

/* Bordas e separadores */
.methodology-block ul li::marker {
  color: #d5e3d0; /* verde clarinho */
}

/* Hover elegante em cards clicáveis (se houver) */
.type-card:hover,
.step-card:hover {
  background: var(--card-green-light) !important;
  transition: 0.2s ease-out;
}

/* ============================
   NÚMERO PRINCIPAL EM LARANJA
============================= */
#contadorPrincipal {
  color: #ff8a00 !important;
}

#acidentesAteAgora {
  color: #ff8a00 !important;
}

/* AVISO EM CINZA PADRÃO (mesmo com cards verdes) */
.hero-disclaimer {
  color: var(--text-muted) !important;
}
/* ===============================
   BOTÃO VOLTAR AO TOPO
=============================== */

#backToTop {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #FF8A00; /* verde musgo */
  color: #ffffff;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

#backToTop:hover {
  background: #4f6252; /* verde musgo mais claro */
}

/* Quando aparecer */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* HERO FULL-WIDTH (sem grid) */
.hero-full {
  padding: 2.6rem 0 2.8rem;
}

.hero-full .container {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Segundo bloco com leve diferença (opcional) */
.secondary-hero {
  margin-top: -1.2rem; /* une visualmente como sequência */
}

/* Mantém os cards como largura total */
.counter-card,
.info-card {
  width: 100%;
}

/* Títulos alinhados ao centro no mobile e esquerda no desktop */
@media (max-width: 880px) {
  .hero-full h1,
  .hero-full p.hero-subtitle,
  .hero-full p.hero-disclaimer {
    text-align: center;
  }
}
/* ============================
   AJUSTES DO BLOCO PRINCIPAL
   "ACIDENTES DOMÉSTICOS ESTIMADOS"
============================= */

/* Centraliza tudo dentro da primeira hero */
.hero.hero-full {
  text-align: center;
}

/* Título centralizado (garantia) */
.hero.hero-full h1 {
  text-align: center;
}

/* Parágrafo de introdução e aviso ocupando toda a largura do container */
.hero.hero-full .hero-subtitle,
.hero.hero-full .hero-disclaimer {
  max-width: 100% !important;   /* sem limite estreito */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;           /* centraliza o texto */
}

/* Card de acidentes: menor e centralizado */
.hero.hero-full .counter-card {
  max-width: 900px;             /* menor que o container (1120px) */
  width: 100%;
  margin: 0 auto;               /* centraliza */
}
/* ================================
   AGORA MESMO — NOVO LAYOUT
================================ */

.agora-card {
  background: var(--card-green);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  margin: 0 auto 1.5rem;
  max-width: 900px;
}

.agora-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.agora-bloco p {
  font-size: 1rem;
  margin: 0.45rem 0;
  color: #fff;
}

.agora-num {
  font-family: "Space Mono", monospace;
  margin-left: 0.35rem;
  font-weight: 700;
}

.agora-num.destaque {
  color: #ff8a00; /* laranja */
}

/* Divisória */
.divider {
  width: 85%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 1.3rem auto;
}

/* Aviso abaixo do card */
.agora-alerta {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 900px;
  margin: -1rem auto ;
  text-align: left;
  padding: 0.8rem 0;
}
/* Deixar o número de projeção anual em vermelho */
#projecaoAno {
  color: #ff3b30 !important; /* vermelho forte e legível */
  font-weight: 700;
}
@media (max-width: 640px) {

  /* texto abaixo do título */
  .hero-subtitle {
    margin-bottom: 0.4rem !important;  /* diminui o espaço */
  }

  /* card do acidente */
  .counter-card {
    margin-top: 0.4rem !important;     /* aproxima ainda mais */
  }

}
.section-divider {
  width: 100%;
  max-width: 1024px;     /* largura harmônica, semelhante à Sentinela */
  height: 1px;
  margin: 2rem auto 1.2rem;
  background: rgba(0, 0, 0, 0.12); /* cinza elegante */
  border-radius: 999px;
}
/* =========================
   AVISOS PADRONIZADOS
   (abaixo dos cards)
========================= */

.hero-warning,
.agora-alerta {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 900px;
  margin: -1rem auto 1.3rem;  /* espaço logo abaixo do card e antes da próxima seção */
  text-align: left;
  line-height: 1.5;
  padding: 0 1rem;
  display: block;
}

/* Ajuste para mobile */
@media (max-width: 640px) {
  .hero-warning,
  .agora-alerta {
    font-size: 0.85rem;
    margin: -1rem auto 1.1rem;
    padding: 0 0.75rem;
  }
}
/* ============================
   AJUSTE DOS NÚMEROS NAS BOLINHAS
=============================== */
.agora-bolinha,
.step-number,
.bolinha-num {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: #000 !important;            /* texto preto */
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

/* Garantir que a bolinha é circular */
.agora-bolinha,
.step-number,
.bolinha-num {
  border-radius: 50% !important;
}
