/* ============================================================
   Iron Workers Local 8 — Industrial Modernism
   Barlow Condensed + Inter | Steel Blue + Spark Amber
   ============================================================ */

/* --- Fonts -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* --- Custom Properties -------------------------------------- */
:root {
  --bg: #F2F3F5;
  --bg-alt: #E0E2E6;
  --bg-card: #FFFFFF;
  --bg-dark: #141820;
  --text: #2D3139;
  --text-muted: #8B9199;
  --text-faint: #A8AEB6;
  --primary: #1B3A5C;
  --primary-rgb: 27, 58, 92;
  --primary-light: #3A6B94;
  --accent: #E8731A;
  --accent-rgb: 232, 115, 26;
  --accent-light: #F5A623;
  --accent-pale: #FFF0E0;
  --safety-green: #2D8A4E;
  --border: #D0D3D8;
  --border-light: #E0E2E6;
  --nav-height: 4rem;
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-max: 72rem;
  --container-px: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.375rem;
  --transition: 0.25s ease;
}

html.dark {
  --bg: #141820;
  --bg-alt: #1A2030;
  --bg-card: #202838;
  --bg-dark: #0A0E14;
  --text: #C8CDD4;
  --text-muted: #7A8090;
  --text-faint: #505868;
  --primary: #3A6B94;
  --primary-rgb: 58, 107, 148;
  --primary-light: #5A90B8;
  --accent: #F59030;
  --accent-rgb: 245, 144, 48;
  --accent-light: #E8B060;
  --accent-pale: #2A1A08;
  --safety-green: #4AAA6E;
  --border: #2A3040;
  --border-light: #1A2030;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* Nested list resets */
ul ul,
ul ol,
ol ul,
ol ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Typography --------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p + p {
  margin-top: 1em;
}

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

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

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

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

.text-white {
  color: #FFFFFF;
}

.uppercase {
  text-transform: uppercase;
}

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

.container--narrow {
  max-width: 56rem;
}

.container--wide {
  max-width: 84rem;
}

/* --- Section Spacing ---------------------------------------- */
.section {
  padding-block: var(--section-py);
}

.section--light {
  background-color: var(--bg);
}

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

.section--dark {
  background-color: var(--bg-dark);
  color: #C8CDD4;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #FFFFFF;
}

.section--dark .text-muted {
  color: #7A8090;
}

/* Section label / eyebrow */
.section__label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 40rem;
}

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

/* --- Sticky Nav ---------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.nav__brand span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #FFFFFF;
}

/* Apply Now — always visible */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  background-color: var(--accent);
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition);
  min-height: 2.75rem;
  min-width: 2.75rem;
  white-space: nowrap;
}

.nav__cta:hover {
  background-color: var(--accent-light);
  transform: translateY(-1px);
}

.nav__cta:active {
  transform: translateY(0);
}

/* Dark mode toggle in nav */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition), background-color var(--transition);
}

.nav__theme-toggle:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav__theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Sun icon hidden in light mode, moon hidden in dark */
.nav__theme-toggle .icon-moon { display: block; }
.nav__theme-toggle .icon-sun  { display: none; }
html.dark .nav__theme-toggle .icon-moon { display: none; }
html.dark .nav__theme-toggle .icon-sun  { display: block; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem var(--container-px) 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
    pointer-events: none;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__link:last-of-type {
    border-bottom: none;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
  }

  .nav__theme-toggle {
    align-self: flex-start;
    margin-top: 0.75rem;
  }
}

/* --- Hero --------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.85) 0%,
    rgba(20, 24, 32, 0.7) 40%,
    rgba(20, 24, 32, 0.85) 100%
  );
}

/* Spark trail canvas sits above bg, below content */
.hero__spark-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-height);
  padding-inline: var(--container-px);
  max-width: 52rem;
}

.hero__title {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(200, 205, 212, 0.85);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Living counter in hero */
.hero__counter {
  margin-top: 3rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.hero__counter-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(200, 205, 212, 0.5);
  margin-bottom: 0.25rem;
}

/* --- has-dark-hero: Nav transparent over hero, solid on scroll */
.has-dark-hero .nav {
  background-color: transparent;
  border-bottom-color: transparent;
}

.has-dark-hero .nav.is-scrolled {
  background-color: var(--bg-dark);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 2.75rem;
  min-width: 2.75rem;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: translateY(0);
}

/* Primary — accent amber */
.btn--primary {
  color: #FFFFFF;
  background-color: var(--accent);
}

.btn--primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

/* Secondary — steel blue */
.btn--secondary {
  color: #FFFFFF;
  background-color: var(--primary);
}

.btn--secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
}

/* Ghost — transparent outline */
.btn--ghost {
  color: #FFFFFF;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* On light backgrounds */
.btn--ghost-dark {
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost-dark:hover {
  background-color: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
}

/* Small variant */
.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Stats Bar ---------------------------------------------- */
.stats-bar {
  background-color: var(--primary);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-bar__number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.stats-bar__suffix {
  font-size: 2rem;
}

.stats-bar__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

/* Count-up animation */
.stat-count {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stat-count.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stat-count[data-delay="0"] { transition-delay: 0s; }
.stat-count[data-delay="1"] { transition-delay: 0.15s; }
.stat-count[data-delay="2"] { transition-delay: 0.3s; }
.stat-count[data-delay="3"] { transition-delay: 0.45s; }

@media (max-width: 767px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-bar__number {
    font-size: 2.5rem;
  }
}

/* --- The Work (full-width photo + discipline grid) ---------- */
.work-section__photo {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.work-section__disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.discipline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.discipline-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.08);
}

.discipline-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.discipline-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.discipline-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Apprenticeship / Wage Progression Cards ---------------- */
.wage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.wage-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wage-card__year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.wage-card__rate {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.wage-card__details {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.wage-card__badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2rem;
  background-color: var(--accent-pale);
  color: var(--accent);
}

/* --- History / Timeline (dark section) ---------------------- */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5rem;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.12);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -1.625rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.timeline__year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline__text {
  font-size: 0.9375rem;
  color: rgba(200, 205, 212, 0.75);
  line-height: 1.6;
  max-width: 36rem;
}

/* Two-column timeline on larger screens */
@media (min-width: 768px) {
  .timeline {
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 2rem 1fr;
    gap: 0;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    padding-bottom: 0;
    margin-bottom: 2.5rem;
  }

  .timeline__item:nth-child(odd) {
    grid-column: 1;
    text-align: right;
    padding-right: 1.5rem;
  }

  .timeline__item:nth-child(even) {
    grid-column: 3;
    padding-left: 1.5rem;
  }

  .timeline__item:nth-child(odd) .timeline__dot {
    left: auto;
    right: -1.375rem;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    left: -1.375rem;
  }

  .timeline__item:nth-child(odd) .timeline__text {
    margin-left: auto;
  }

  /* Spacer for alternating grid */
  .timeline__item:nth-child(odd) + .timeline__item:nth-child(even) {
    grid-row: auto;
  }
}

/* --- Contractor Split Section ------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.split__image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.split__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.split__list-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--safety-green);
  margin-top: 0.125rem;
}

@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__image {
    order: -1;
  }
}

/* --- CTA Overlay (dark) ------------------------------------- */
.cta-overlay {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  overflow: hidden;
}

.cta-overlay__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-overlay__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.9) 0%,
    rgba(20, 24, 32, 0.8) 50%,
    rgba(10, 14, 20, 0.9) 100%
  );
}

.cta-overlay__content {
  position: relative;
  z-index: 1;
}

.cta-overlay__title {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.cta-overlay__text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(200, 205, 212, 0.8);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* --- Contact Form ------------------------------------------- */
.contact-section {
  background-color: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 479px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form__label--required::after {
  content: ' *';
  color: var(--accent);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 2.75rem;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-faint);
}

.form__textarea {
  resize: vertical;
  min-height: 8rem;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238B9199' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Turnstile container */
.form__turnstile {
  min-height: 65px;
}

.form__message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
}

.form__message--success {
  display: block;
  background-color: rgba(45, 138, 78, 0.1);
  border: 1px solid var(--safety-green);
  color: var(--safety-green);
}

.form__message--error {
  display: block;
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid #DC3545;
  color: #DC3545;
}

.form__submit {
  align-self: flex-start;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Footer (dark) ------------------------------------------ */
.footer {
  background-color: var(--bg-dark);
  padding-block: clamp(3rem, 6vw, 5rem) 0;
  color: rgba(200, 205, 212, 0.6);
  font-size: 0.875rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer__brand span {
  color: var(--accent);
}

.footer__about {
  line-height: 1.6;
  max-width: 24rem;
}

.footer__heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer__link {
  display: block;
  padding-block: 0.25rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: #FFFFFF;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

.footer__credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__credit a {
  color: var(--accent);
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: var(--accent-light);
}

/* --- Disclaimer Bar ----------------------------------------- */
.disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.625rem var(--container-px);
  font-size: 0.75rem;
  color: rgba(200, 205, 212, 0.5);
  text-align: center;
}

/* --- Utility Classes ---------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap  { flex-wrap: wrap; }

.grid { display: grid; }

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

.hidden { display: none; }

/* Touch targets — minimum 44px */
a,
button,
input,
select,
textarea,
[role="button"] {
  min-height: 2.75rem; /* 44px */
}

/* But don't bloat inline links */
p a,
li a,
span a {
  min-height: auto;
}

/* --- Focus visible ------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Selection ---------------------------------------------- */
::selection {
  background-color: rgba(var(--accent-rgb), 0.2);
  color: var(--text);
}

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

  .stat-count {
    opacity: 1;
    transform: none;
  }

  .hero__spark-canvas {
    display: none;
  }
}

/* --- Print -------------------------------------------------- */
@media print {
  .nav,
  .disclaimer,
  .hero__spark-canvas,
  .nav__hamburger {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    padding-bottom: 0;
  }

  .section--dark {
    background: #222;
    color: #fff;
  }
}
