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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

address {
  font-style: normal;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--clr-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p { line-height: var(--leading-relaxed); }

/* Section shared.
   `position: relative; z-index: 1` is critical: the hero background is
   `position: fixed; z-index: -1`, and every section after hero must
   establish its own stacking context above it so the fixed image
   doesn't bleed through. Their solid backgrounds then "slide over"
   the hero image as the user scrolls. */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-8);

  @media (min-width: 768px) {
    padding-block: var(--sp-10);
  }

  @media (min-width: 1024px) {
    padding-block: var(--sp-12);
  }
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-3);
}

.section__title {
  margin-bottom: var(--sp-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.section__cta {
  text-align: center;
  margin-top: var(--sp-12);

  p {
    font-size: var(--text-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-6);
  }
}

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }

/* GTM noscript iframe — must stay invisible without breaking accessibility */
.gtm-noscript {
  display: none;
  visibility: hidden;
}


/* ===== DESKTOP PREMIUM TYPOGRAPHY (1024px+) ===== */
@media (min-width: 1024px) {
  .section {
    padding-block: var(--sp-12);
  }

  .section__header {
    text-align: left;
    margin-bottom: var(--sp-16);
    max-width: 70%;
  }

  .section__label {
    font-size: var(--text-micro);
    letter-spacing: var(--letter-wide);
    font-weight: var(--fw-bold);
  }

  .section__title {
    font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
    letter-spacing: var(--letter-tight);
    line-height: var(--leading-display);
  }

  .section__subtitle {
    max-width: 480px;
    margin-inline: 0;
  }

  h1 {
    font-size: var(--text-display);
    letter-spacing: var(--letter-tight);
    line-height: var(--leading-display);
    font-weight: var(--fw-black);
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .modal-overlay, .scroll-top { display: none; }
}
