/* ==========================================================================
   base.css - Global element styling & layout primitives
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
}

/* Lock scroll (used by preloader & mobile menu) */
body.is-locked {
  overflow: hidden;
}

/* ---- Layout container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---- Section rhythm ---- */
.section {
  padding-block: var(--section-y);
  position: relative;
}

/* Fallback offset for anchor targets so a jumped-to heading is never hidden
   behind the fixed navbar (JS uses a live nav-height; this covers no-JS and
   native fragment jumps). */
section[id],
[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.section--dark {
  background: var(--navy-900);
  color: var(--text-on-dark);
}

.section--alt {
  background: var(--surface-alt);
}

/* ---- Headings ---- */
h1 { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h1); }
h2 { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h2); }
h3 { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h3); }
h4 { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h4); }

strong { font-weight: 700; }

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5em 1.1em;
  border: 1.5px solid rgba(243, 107, 33, 0.35);
  border-radius: var(--r-pill);
  background: var(--orange-soft);
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-600);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  flex: none;
}

.section--dark .eyebrow {
  color: var(--orange);
  background: rgba(243, 107, 33, 0.12);
  border-color: rgba(243, 107, 33, 0.4);
}

/* ---- Section header block ---- */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

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

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

.section-head h2 {
  margin-top: var(--sp-3);
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: var(--sp-4);
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 56ch;
}

.section--dark .section-head p { color: var(--muted-on-dark); }
.section-head--center p { margin-inline: auto; }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
}

.text-orange { color: var(--orange); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: var(--z-preloader);
  background: var(--navy-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-4);
}

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

/* No-JS fallback: everything visible */
.no-js [data-anim] {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
