/* ==========================================================================
   BASE — reset, tipografia, layout utilitário
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

/* Subtítulo / sobretítulo na fonte Nexa Bold */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: currentColor;
}
.subtitle {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.4;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--plum); color: var(--text-on-dark); }
.section--dark .eyebrow { color: var(--amber); }
.section--cream-2 { background: var(--cream-200); }
.section__head { max-width: 46rem; display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.lead { font-size: var(--fs-lg); color: var(--text-soft); }
.section--dark .lead { color: rgb(246 241 241 / 0.78); }

/* Acessibilidade */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--sp-4); top: -4rem; z-index: 200;
  background: var(--amber); color: var(--plum); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm); font-weight: 700; transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Elementos escondidos até a animação inicial (evita "flash" — só com JS ativo) */
.js [data-reveal], .js [data-split] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-split] { opacity: 1; }
  html { scroll-behavior: auto; }
}
