/* Reset mínimo + classes de texto do design system */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body-xs);
  line-height: var(--lh-140);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Setas da Instrument Sans (← → ↓ não vêm no pacote padrão do Google Fonts,
   então usamos um recorte local só com esses 3 caracteres, ~800 bytes) */
@font-face { font-family: "Instrument Arrows"; font-weight: 400; font-display: block;
  src: url("../assets/fonts/instrument-arrows-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Arrows"; font-weight: 600; font-display: block;
  src: url("../assets/fonts/instrument-arrows-600.woff2") format("woff2"); }
.arrow-glyph { font-family: "Instrument Arrows", var(--font-main); line-height: 1; }

.container { width: min(100% - 2 * var(--gutter), var(--container-max)); margin-inline: auto; }
.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; }

/* ---------- Estilos de texto (nomes do Figma) ---------- */
.t-display  { font-size: var(--fs-display); line-height: var(--lh-100); } /* extra grande 120 */
.t-hero     { font-size: var(--fs-hero);    line-height: var(--lh-120); } /* hero 80 */
.t-h2       { font-size: var(--fs-h2);      line-height: var(--lh-100); } /* médio 56 */
.t-body-l2  { font-size: var(--fs-body-l2); line-height: var(--lh-120); }                   /* textos médios 2 — 40 */
.t-body-l1  { font-size: var(--fs-body-l1); line-height: var(--lh-120); }                   /* textos médios 1 — 32 */
.t-body-s   { font-size: var(--fs-body-s);  line-height: var(--lh-140); }                   /* pequenos 20 */
.t-body-xs  { font-size: var(--fs-body-xs); line-height: var(--lh-140); }                   /* extra pequenos 16 */

/* Títulos sem palavra sozinha na última linha; parágrafos com quebra mais equilibrada */
h1, h2, h3, .t-display, .t-hero, .t-h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Respiro padrão de seção */
.section-y { padding-block: var(--section-y); }

/* Utilitário: quebras de linha do Figma só valem no desktop e notebook */
@media (max-width: 1023px) { .br-lg { display: none; } }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-tag);
  font-size: var(--fs-tag);
  font-weight: var(--fw-tag);
  line-height: 1;
}
.tag--outline {
  padding: var(--tag-padding);
  border: 1px solid currentColor;
  border-radius: var(--tag-radius);
}

/* ---------- Pesos e variações ---------- */
strong, b, .is-bold { font-weight: var(--fw-bold); }      /* ênfase */
.is-semibold { font-weight: var(--fw-semibold); }
.is-upper { text-transform: uppercase; }                  /* ALL CAPS */

/* Fundo escuro: texto sobe para semibold automaticamente
   (ênfase dentro dele continua bold) */
.on-dark { background: var(--rd-navy-900); color: var(--rd-white-100); font-weight: var(--fw-semibold); }

/* ---------- Marcador (texto com fundo) ----------
   Funciona em textos de várias linhas: cada linha recebe o fundo. */
.highlight {
  background: var(--highlight-bg);
  color: var(--highlight-color);
  padding: 0 var(--highlight-pad-x);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Filtro escuro sobre imagens ---------- */
.img-overlay { position: relative; }
.img-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rd-navy-900-overlay);
  pointer-events: none;
}

/* Respiro entre texto de apoio e título grande nas aberturas de seção */
.cmp__intro, .pr__intro, .cov__intro { column-gap: 40px; }
