/* ============================================================
   BASE — reset enxuto, tipografia e utilitários de acessibilidade
   ============================================================ */
/* Poppins hospedada aqui, não no Google. Vinda de
   fonts.gstatic.com, ela mandava o IP de todo visitante para o
   Google antes de qualquer clique — uma transferência a declarar na
   política de privacidade por nada. Baixadas só as três variações
   usadas, no subset `latin`: conferi os 87 caracteres distintos do
   site e todos cabem nele (o único de fora é o ★, que a Poppins não
   tem de qualquer forma e já vinha da fonte do sistema).
   24 KB no total, contra duas conexões externas. */
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../assets/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Adumu';
  src: url('../../assets/fonts/adumu.woff2') format('woff2');
  font-weight: 400;          /* Adumu tem UMA variação. Nunca usar bold: */
  font-style: normal;        /* o navegador sintetizaria um falso negrito */
  font-display: swap;        /* e destruiria os contornos irregulares.    */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-lg));
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-texto);
  background: var(--surface-a);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }

/* O atributo hidden precisa vencer qualquer display de componente
   (ex.: .mapa__erro usa display:grid e reaparecia mesmo com hidden). */
[hidden] { display: none !important; }

address { font-style: normal; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;               /* ver nota do @font-face */
  font-synthesis-weight: none;    /* trava a síntese de negrito */
  line-height: var(--lh-title);
  color: var(--c-tijolo);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display-xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-display-lg); }
h3 { font-size: var(--fs-display-md); }

p { text-wrap: pretty; }
a { color: inherit; }

/* ---- Foco visível: aparece de imediato, sem transição (WCAG 2.4.7) ---- */
:focus-visible {
  outline: 3px solid var(--c-mostarda);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible {
  outline-color: var(--c-mostarda);
}

/* ---- Utilitários ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-md); top: -100px; z-index: 200;
  background: var(--c-tijolo); color: #fff; padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-md); }

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 600;
}
.lead { font-size: var(--fs-lead); }
.measure { max-width: var(--measure); }
