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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--color-headline);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Default size for every icon svg. Without this, any <svg><use ...></svg>
   that isn't inside a container with its own "X svg { width/height }" rule
   falls back to the browser's intrinsic SVG default of 300x150px — which
   silently breaks mobile layout (horizontal overflow) wherever it's missed.
   .icon-sprite (the hidden master sprite) overrides this via its own,
   higher-specificity class rule further down. */
svg {
  display: block;
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
}

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

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--alt {
  background: var(--color-off-white);
  color: var(--color-text-on-dark);
}

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

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

/* Dark-navy sections: headings/body text sitting directly on the
   background need to switch to white. Anything inside a white .card
   keeps its normal (dark-on-white) styling untouched. */
.section--alt .section-head h1,
.section--alt .section-head h2,
.section--alt .section-head h3,
.section--alt .section-head h4,
.hero h1,
.section--alt .process-step h3,
.section--alt .faq-question,
.section--alt .ba-caption {
  color: var(--color-text-on-dark);
}

.section--alt .section-head p,
.hero .hero-lead,
.section--alt .process-step p,
.section--alt .faq-answer-inner,
.section--alt .testimonials-note {
  color: var(--color-text-on-dark-muted);
}

.section--alt .process-number {
  color: var(--color-text-on-dark);
}

.section--alt .process-step {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.section--alt .eyebrow,
.hero .eyebrow {
  color: var(--color-accent-400);
}

.section--alt .eyebrow::before,
.hero .eyebrow::before {
  background: var(--color-accent-400);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal-900);
  margin-bottom: var(--space-xs);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-accent-500);
  border-radius: var(--radius-pill);
}

.section-head p {
  margin-top: var(--space-xs);
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
}

.section--dark .section-head p {
  color: var(--color-text-on-dark-muted);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--color-charcoal-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}

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

::selection {
  background: var(--color-accent-500);
  color: #fff;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
