/* ============================================================
   SGCOR — Base
   ============================================================ */

/* overflow-x: clip corta qualquer estouro lateral sem transformar
   html/body em contêiner de scroll (não interfere no Lenis). */
html {
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--pad-y);
}

/* Nota: content-visibility:auto foi removido das seções — a estimativa
   de altura (contain-intrinsic-size) nunca bate com o conteúdo real e a
   altura do documento muda durante o scroll, quebrando o smooth scroll. */

h1,
h2,
h3 {
  font-weight: var(--fw-title);
  line-height: var(--lh-title);
  color: var(--ink);
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.eyebrow--amber {
  color: var(--amber);
}

.lead {
  font-size: var(--fs-body-lg);
  color: var(--muted);
  margin-top: 0.9rem;
}

/* Blocos escuros */
.section--dark {
  background: var(--navy);
  color: var(--paper);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .lead {
  color: rgba(245, 248, 252, 0.72);
}

/* Acessibilidade */
.visually-hidden {
  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;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus-visible {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(62, 141, 227, 0.45);
  outline-offset: 3px;
}

::selection {
  background: rgba(62, 141, 227, 0.25);
}
