/* Guias da Niva — design system do brandbook (brand/brandbook.html) */

:root {
  --navy:    #0B1F3A;
  --ink:     #0B1020;
  --sage:    #7C9E8A;
  --sage-dk: #5F8270;
  --paper:   #F7F3EE;
  --paper-d: #EDE7D9;
  --white:   #FFFFFF;
  --red:     #C0392B;
  --rule:    rgba(11, 31, 58, .1);
  --nf:      rgba(11, 31, 58, .055);
  --muted:   rgba(11, 31, 58, .62);

  --ff-h: 'Playfair Display', Georgia, serif;
  --ff-b: 'Montserrat', sans-serif;
  --ff-q: 'Cormorant Garamond', Georgia, serif;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- topo ---------- */
.topbar {
  background: var(--navy);
  padding: .5rem 0;
  margin-bottom: 2.5rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* A logo tem o fundo navy #0B1F3A chapado (igual ao --navy), então encaixa
   na barra sem emenda — a sobra interna da arte já serve de respiro. */
.logo {
  display: block;
  height: 52px;
  width: auto;
}
.topbar .tag {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* ---------- cabeçalho da guia ---------- */
.guia-head { margin-bottom: 2.5rem; }
.eyebrow {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 700;
  margin-bottom: .75rem;
}
h1 {
  font-family: var(--ff-h);
  font-weight: 700;
  font-size: clamp(1.75rem, 6.5vw, 2.4rem);
  line-height: 1.18;
  color: var(--navy);
  text-wrap: balance;
  margin-bottom: .9rem;
}
.lead {
  font-family: var(--ff-q);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- seções ---------- */
.section { margin-bottom: 2.5rem; }
h2 {
  font-family: var(--ff-h);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section > p { margin-bottom: 1rem; }
.section > p:last-child { margin-bottom: 0; }

/* ---------- lista numerada ---------- */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.checklist li {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.1rem 1rem 3.1rem;
  position: relative;
}
.checklist li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-size: .78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.checklist { counter-reset: item; }
.checklist strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: .3rem; }
.checklist .why { font-size: .9rem; color: var(--muted); }

/* ---------- placar ---------- */
.placar { display: flex; flex-direction: column; gap: .6rem; }
.placar-row {
  display: flex;
  gap: .9rem;
  align-items: baseline;
  background: var(--nf);
  border-left: 3px solid var(--sage);
  border-radius: 0 5px 5px 0;
  padding: .8rem 1rem;
}
.placar-row b { font-family: var(--ff-h); color: var(--navy); white-space: nowrap; }
.placar-row.alerta { border-left-color: var(--red); }

/* ---------- tabela ---------- */
.tabela-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: .95rem;
}
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); }
th {
  background: var(--navy);
  color: var(--paper);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }
td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- veredito ---------- */
.veredito {
  background: var(--navy);
  color: var(--paper);
  border-radius: 8px;
  padding: 1.5rem 1.35rem;
}
.veredito h2 { color: var(--paper); }
.veredito p { color: rgba(247, 243, 238, .82); }
.veredito p + p { margin-top: .8rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--paper-d);
  border-radius: 8px;
  padding: 1.75rem 1.35rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.cta h2 { margin-bottom: .6rem; }
.cta p { color: var(--muted); margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--ff-b);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: .95rem 1.25rem;
  border-radius: 6px;
  transition: background .15s ease;
}
.cta-btn:hover { background: var(--sage-dk); }
.cta-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.cta-btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex-shrink: 0; }
.cta-alt { margin-top: .9rem; font-size: .9rem; color: var(--muted); margin-bottom: 0; }
.cta-alt a { color: var(--navy); font-weight: 600; }
.cta-alt a:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* ---------- disclaimer + rodapé ---------- */
.disclaimer {
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: .85rem 1rem;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}
.disclaimer b { color: var(--navy); }
footer {
  margin-top: 2.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
