/* ZELBOT — sistema de design compartilhado entre todas as páginas.
   Tokens de cor/tipografia vieram do design original; ver docs/02-site-architecture.md */

:root {
  --bg: #f2f1ec;
  --bg-alt: #e6e4de;
  --navy: #1c2e44;
  --navy-light: #3d4f63;
  --rust: #a94e2a;
  --rust-dark: #8a3f21;
  --white: #ffffff;
  --border: #e6e4de;
  --green: #1f7a4d;
  --max: 1216px;
}

* { box-sizing: border-box; }
html { font-variant-numeric: tabular-nums; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Manrope, system-ui, sans-serif;
}
h1, h2, h3, .font-display {
  font-family: "Space Grotesk", Manrope, system-ui, sans-serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}
p { margin: 0; line-height: 1.55; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  height: 80px; display: flex; align-items: center; gap: 40px;
}
.logo { width: 132px; margin-left: -13px; flex-shrink: 0; }
.main-nav { display: flex; gap: 28px; font-size: 16px; font-weight: 600; }
.main-nav a { color: var(--navy); }
.main-nav a.active { color: var(--rust); font-weight: 800; }
.header-spacer { flex-grow: 1; }
.lang-toggle {
  display: inline-flex; border: 1px solid #dcdfe2; border-radius: 18px;
  overflow: hidden; font-size: 13px; font-weight: 800;
}
.lang-toggle span, .lang-toggle a { padding: 7px 10px; }
.lang-toggle .on { background: var(--navy); color: var(--bg); }
.lang-toggle a { color: var(--navy-light); }
.client-link { font-size: 15px; font-weight: 700; color: var(--navy-light); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 24px;
  background: var(--rust); color: #fff; font-size: 15px; font-weight: 800;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--rust-dark); color: #fff; }
.btn.outline {
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
}
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 20px; }

/* ---------- hero / sections ---------- */
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust);
}
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 640px; }
.section-head.center { max-width: 640px; margin: 0 auto; text-align: center; }
h2.section-title { font-size: 34px; margin-top: 10px; }
.lede { font-size: 18px; color: var(--navy-light); margin-top: 14px; }

.breadcrumb { font-size: 14px; color: var(--navy-light); }
.breadcrumb a { color: var(--navy-light); text-decoration: underline; }

.hero {
  border-radius: 28px; background: linear-gradient(135deg, var(--navy) 0%, #142231 100%);
  color: var(--bg); padding: 56px; margin: 40px auto 0; position: relative; overflow: hidden;
}
.hero .wrap { padding: 0; max-width: 100%; }
.hero h1 { color: #fff; font-size: 40px; }
.hero .lede { color: #c9d2dc; }
.hero-stat-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
}
.hero-pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600;
}

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border-radius: 18px; padding: 28px;
  box-shadow: 0 1px 3px rgba(28,46,68,.08);
}
.card.dark { background: var(--navy); color: var(--bg); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card .num { font-family: "Space Grotesk", sans-serif; font-size: 34px; font-weight: 700; color: var(--navy); }
.card.dark .num { color: #fff; }
.card .label { font-size: 13px; color: var(--navy-light); margin-top: 6px; }
.card.dark .label { color: #aeb9c4; }
.card .source { font-size: 11px; color: #8a9199; margin-top: 10px; display: block; }
.card.dark .source { color: #7e8a97; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr; } }

.region-card { border-radius: 16px; padding: 22px; border: 1px solid var(--border); background: #fff; }
.region-card .sev { height: 8px; border-radius: 4px; margin: 14px 0 10px; background: var(--bg-alt); overflow: hidden; }
.region-card .sev i { display: block; height: 100%; background: var(--rust); border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--bg); margin-top: 64px; }
.site-footer .wrap { padding: 64px 32px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)) 1.3fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 14px; margin-bottom: 10px; color: #fff; }
.footer-grid a, .footer-grid p { color: #aeb9c4; font-size: 14px; }
.footer-grid a { display: block; padding: 4px 0; }
.footer-grid a.active { color: var(--rust); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  font-size: 13px; color: #8a97a4; flex-wrap: wrap; gap: 12px;
}

/* ---------- sources / methodology ---------- */
.sources {
  background: #fff; border-radius: 18px; padding: 32px; margin-top: 24px;
}
.sources ul { margin: 12px 0 0; padding-left: 20px; }
.sources li { font-size: 14px; color: var(--navy-light); margin-bottom: 8px; }
.sources strong { color: var(--navy); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  border: 1px solid #dcdfe2; border-radius: 10px; padding: 12px 14px;
  font: inherit; color: var(--navy); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: #a7afb7; }

/* ---------- misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 1px 3px rgba(28,46,68,.1); }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 10px; font-size: 15px; color: var(--navy-light); list-style: none; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- foto / mapa / diferenciais (v2 visual) ---------- */
.photo-band {
  position: relative; border-radius: 28px; overflow: hidden; margin: 0 32px;
  min-height: 320px; display: flex; align-items: flex-end;
}
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,33,.88) 0%, rgba(15,23,33,.15) 55%, rgba(15,23,33,0) 100%);
}
.photo-band .caption { position: relative; padding: 36px 40px; color: #fff; max-width: 620px; }
.photo-band .caption .eyebrow { color: #e8a083; }
.photo-band .caption h3 { color: #fff; font-size: 24px; margin-top: 8px; }
.photo-band .caption p { color: #d7dee5; margin-top: 8px; font-size: 15px; }

.icon-badge { flex-shrink: 0; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row h3 { font-size: 17px; }
.feature-row p { color: var(--navy-light); margin-top: 4px; font-size: 14.5px; }

.map-section {
  background: #fff; border-radius: 28px; padding: 48px; margin: 0 32px;
}
.map-legend { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.map-legend .swatch { width: 16px; height: 16px; border-radius: 4px; }
.map-legend span.lbl { font-size: 12px; color: var(--navy-light); }

.diff-card {
  background: #fff; border-radius: 18px; padding: 26px; display: flex; gap: 16px;
  align-items: flex-start; box-shadow: 0 1px 3px rgba(28,46,68,.08);
}
.diff-card h3 { font-size: 16.5px; }
.diff-card p { color: var(--navy-light); font-size: 14px; margin-top: 4px; }

.trust-strip {
  text-align: center; font-size: 13px; color: var(--navy-light);
  padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
