/* ==========================================================================
   BAGIN — Base: reset, tipografia, layout e utilitários
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-light :focus-visible, .section--paper :focus-visible { outline-color: var(--peacock-blue); }

::selection { background: var(--lime); color: var(--peacock-blue); }

/* ---- Tipografia ---------------------------------------------------------- */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-display); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
.h3 { font-size: var(--fs-h3); line-height: 1; }
.h4 { font-size: var(--fs-h4); line-height: 1.05; letter-spacing: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }
.body { font-size: var(--fs-body); text-wrap: pretty; }
.small { font-size: var(--fs-small); }
.muted { color: var(--color-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}
.eyebrow--plain::before { display: none; }

/* Rótulo pequeno acima de títulos (Figma: caixa alta espaçada, sem traço) */
.kicker {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peacock-900);
}

.prose > * + * { margin-top: 1.1em; }

/* Destaque com o lima da marca em trechos de títulos */
.hl { color: var(--lime); }
.hl-tomato { color: var(--tomato); }

/* ---- Layout -------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.section--peacock { background: var(--peacock-blue); color: var(--color-text-inverse); }
.section--deep { background: var(--peacock-900); color: var(--color-text-inverse); }
.section--lemon { background: var(--bitter-lemon); color: var(--peacock-blue); }
.section--paper { background: var(--paper); color: var(--peacock-blue); }
.section--mint { background: var(--cool-mint); color: var(--peacock-blue); }
.section--peacock .muted, .section--deep .muted,
.dark-panel .muted, .cta-panel:not([class*="cta-panel--"]) .muted { color: var(--color-muted-inverse); }

.stack > * + * { margin-top: var(--stack, var(--space-5)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--lime);
  color: var(--peacock-blue);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
