/* ==========================================================================
   base.css — reset, elementos nativos e estilos de texto semânticos
   Camada 2 de 4. Tags e classes tipográficas do DS; nada de componentes.
   ========================================================================== */

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

/* O atributo hidden deve sempre vencer regras de display de componentes
   (ex.: .selo usa inline-flex e, sem isto, um selo [hidden] ainda apareceria). */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-loose);
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg1);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--service-200); text-decoration: none; }
a:hover { color: var(--service-300); }

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--r-xs);
}

/* --- Estilos de texto semânticos (DS) ------------------------------------ */

.h-display { font-family: var(--font-display); font-weight: var(--w-black); font-size: clamp(3rem, 6vw, var(--fs-96)); letter-spacing: -0.03em; line-height: var(--lh-tight); }
.h1 { font-size: clamp(2.25rem, 4vw, var(--fs-72)); }
.h2 { font-size: clamp(1.75rem, 3vw, var(--fs-56)); }
.h3 { font-size: var(--fs-32); line-height: var(--lh-snug); }
.h4 { font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: var(--w-medium); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--fg2);
}

.body-lg { font-size: var(--fs-20); line-height: var(--lh-normal); }
.body-sm { font-size: var(--fs-14); }
.caption { font-size: var(--fs-12); color: var(--fg3); line-height: var(--lh-normal); }

/* --- Utilitários estruturais --------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--largura-marketing);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.wrap--painel { max-width: var(--largura-painel); }

.oculto { display: none !important; }

.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: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--fg1);
  padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Palavra com preenchimento do espectro (usar com moderação). */
.spectrum-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Filete fino do espectro. */
.spectrum-bar { height: 4px; background: var(--spectrum); border: 0; margin: 0; }
