/* Relatório de encerramento AGM · Campo Belo
   Estilo editorial: cream + cobalto + Inter Black
   Impressão A4 friendly */

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

:root {
  --cream: #EBE4D2;
  --cream-soft: #F4EFE0;
  --cobalto: #1E36CC;
  --cobalto-dark: #16289E;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --line: #C7BDA3;
  --alert-bg: #7a1a1a;
  --alert-ink: #FFF;
  --good: #1B7A4B;
  --warn: #B87500;
  --bad: #C0392B;
}

html, body { background: var(--cream); font-family: 'Inter', -apple-system, system-ui, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.5; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

/* ============ BANNER TOPO ============ */
.banner {
  background: var(--alert-bg);
  color: var(--alert-ink);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800;
}
.banner-left { display: flex; align-items: center; gap: 12px; }
.banner-dot { width: 8px; height: 8px; background: #FFD6D6; border-radius: 50%; }
.banner-right { opacity: .8; font-weight: 600; letter-spacing: 1px; }

/* ============ HEADER ============ */
.hdr {
  background: var(--cream);
  padding: 48px 40px 24px;
  border-bottom: 1px solid var(--line);
}
.hdr-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.hdr-logo {
  height: 48px;
  width: auto;
  display: block;
}
.hdr-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cobalto);
  font-weight: 800;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.hdr-title {
  font-family: 'Inter', sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -2.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.hdr-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cobalto);
}
.hdr-sub {
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
  max-width: 640px;
  margin-top: 12px;
}
.hdr-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 48px;
  font-size: 12px;
}
.hdr-meta-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--cobalto);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 4px;
}
.hdr-meta-item span {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

/* ============ SEÇÕES ============ */
.section {
  background: var(--cream);
  padding: 40px;
  border-bottom: 1px solid var(--line);
}
.section:last-child { border-bottom: none; }
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cobalto);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.05;
}
.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: -18px 0 24px;
  max-width: 720px;
}

/* ============ HEROS ============ */
.heros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.hero {
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}
.hero-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-value {
  font-size: 56px;
  font-weight: 900;
  line-height: .95;
  color: var(--ink);
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.hero-value .small { font-size: 22px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.hero-cap {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ COMPARATIVO (BLOCO PRINCIPAL) ============ */
.comp-block {
  background: var(--cobalto);
  color: white;
  padding: 40px;
}
.comp-block .section-eyebrow { color: #FFD8A8; }
.comp-block .section-title { color: white; }
.comp-block .section-subtitle { color: rgba(255,255,255,.85); }

.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
}
.comp-table th, .comp-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.comp-table th {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 800;
  background: rgba(0,0,0,.15);
}
.comp-table td {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
}
.comp-table td.metric { font-weight: 700; }
.comp-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
}
.comp-table td.num.cb { color: #FFD8A8; }
.comp-table tr:last-child td { border-bottom: none; }

.comp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.comp-card {
  background: rgba(255,255,255,.08);
  padding: 24px;
  border-radius: 12px;
}
.comp-card-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 800;
  margin-bottom: 10px;
}
.comp-card-value {
  font-size: 40px;
  font-weight: 900;
  color: white;
  line-height: 1;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.comp-card-cap {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.comp-card-pill {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,216,168,.2);
  color: #FFD8A8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-top: 10px;
}

/* ============ TABELAS ============ */
.dtl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.dtl-panel h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cobalto);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dtl-list { list-style: none; }
.dtl-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(199,189,163,.5);
  font-size: 14px;
}
.dtl-list li:last-child { border-bottom: none; }
.dtl-list li strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--cobalto);
  font-size: 15px;
}

.bars {
  margin-top: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.bar-track {
  background: rgba(199,189,163,.4);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  background: var(--cobalto);
  height: 100%;
  border-radius: 5px;
}
.bar-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* ============ MESES (linha do tempo) ============ */
.meses-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.mes-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: 16px 12px;
  border-radius: 8px;
  text-align: center;
}
.mes-card-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.mes-card-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--cobalto);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mes-card-cap {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.mes-card.dim { opacity: .5; }
.mes-card.peak { background: var(--cobalto); }
.mes-card.peak .mes-card-label, .mes-card.peak .mes-card-cap { color: rgba(255,255,255,.75); }
.mes-card.peak .mes-card-value { color: white; }

.comp-nota {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  font-style: italic;
  line-height: 1.5;
  max-width: 720px;
}

/* ============ ALERTA (planilha) ============ */
.alerta-block {
  background: #7a1a1a;
  color: white;
  padding: 40px;
  border-top: 4px solid #C0392B;
}
.alerta-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFD6D6;
  font-weight: 800;
  margin-bottom: 8px;
}
.alerta-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  color: white;
  margin-bottom: 20px;
}
.alerta-body p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px;
  max-width: 820px;
}
.alerta-body p:last-child { margin-bottom: 0; }
.alerta-body strong {
  color: #FFD8A8;
  font-weight: 700;
}

/* ============ FOOTER ============ */
.foot {
  background: var(--ink);
  color: white;
  padding: 32px 40px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-brand { font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.foot-brand em { font-style: italic; font-weight: 300; opacity: .7; }
.foot-note { opacity: .65; font-size: 11px; letter-spacing: .5px; }

/* ============ NOTAS DE RODAPÉ ============ */
.notas {
  background: var(--cream-soft);
  padding: 24px 40px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--line);
}
.notas p { margin-bottom: 6px; }
.notas strong { color: var(--ink); }

/* ============ IMPRESSÃO ============ */
@media print {
  html, body { background: white; }
  .page { max-width: 100%; }
  .section { page-break-inside: avoid; }
  .banner { position: static; }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .heros { grid-template-columns: repeat(2, 1fr); }
  .comp-cards { grid-template-columns: 1fr; }
  .dtl-grid { grid-template-columns: 1fr; }
  .meses-strip { grid-template-columns: repeat(3, 1fr); }
  .hdr-title { font-size: 44px; letter-spacing: -1.5px; }
  .section, .comp-block { padding: 28px 20px; }
  .hdr { padding: 32px 20px 20px; }
  .banner { padding: 12px 20px; font-size: 10px; }
  .hdr-meta { flex-wrap: wrap; gap: 20px; }
}
