/* ==========================================================================
   BASE / RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body { max-width: 100%; overflow-x: hidden; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

p { margin: 0; overflow-wrap: break-word; }

/* Focus visibility — accessibility requirement, never suppressed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.container {
  width: 90%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-desktop) 0;
}

.section--tight { padding: var(--sp-6) 0; }
.bg-white { background: var(--color-white); }
.bg-grey { background: var(--color-grey-light); }
.bg-blue { background: var(--color-blue); color: var(--color-white); }
.bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue p { color: var(--color-white); }

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-5);
}
.section-heading .eyebrow {
  display: block;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.section-heading h2 { font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-2); }
.section-heading p { color: var(--color-grey-text); }
.section-heading--left { text-align: left; margin-left: 0; }

.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;
}

@media (max-width: 1024px) {
  .section { padding: var(--section-pad-tablet) 0; }
}
@media (max-width: 640px) {
  .section { padding: var(--section-pad-mobile) 0; }
  :root { --fs-hero: 34px; --fs-h1: 28px; --fs-h2: 24px; --fs-h3: 20px; --fs-h4: 18px; --fs-body: 16px; --fs-small: 15px; --fs-caption: 13px; }
  .container { width: 92%; }
}
@media (max-width: 380px) {
  :root { --fs-hero: 28px; --fs-h1: 24px; --fs-h2: 21px; --fs-h3: 18px; --fs-h4: 17px; --sp-4: 24px; --sp-5: 32px; --sp-6: 40px; }
  .section { padding: 40px 0; }
}
