/* ==========================================================================
   KEN BRENNAN FOR NM HOUSE DISTRICT 50
   Campaign Website Stylesheet

   Design: Bold, trustworthy, Western New Mexico sense of place
   Approach: Mobile-first, WCAG AA compliant, modern CSS
   ========================================================================== */


/* ==========================================================================
   0. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* ---- Color Palette ---- */
  --color-navy:        #1B2A4A;
  --color-navy-light:  #253a63;
  --color-navy-dark:   #111d35;
  --color-gold:        #D4A853;
  --color-gold-light:  #e2c07e;
  --color-gold-dark:   #b8903d;
  --color-turquoise:   #3A8C8C;
  --color-turquoise-light: #4aa8a8;
  --color-cream:       #FAF7F2;
  --color-white:       #FFFFFF;
  --color-red:         #B83A2E;
  --color-red-light:   #d04a3d;
  --color-text:        #2C2C2C;
  --color-text-muted:  #666666;
  --color-border:      #E0DCD5;
  --color-overlay:     rgba(17, 29, 53, 0.72);
  --color-shadow:      rgba(27, 42, 74, 0.10);
  --color-shadow-md:   rgba(27, 42, 74, 0.15);

  /* ---- Typography ---- */
  --font-headline:     'Bitter', Georgia, 'Times New Roman', serif;
  --font-body:         'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  /* ---- Font Sizes (fluid) ---- */
  --text-xs:    clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm:    clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
  --text-base:  clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --text-lg:    clamp(1.0625rem, 0.975rem + 0.45vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl:   clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl:   clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl:   clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl:   clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

  /* ---- Spacing Scale ---- */
  --space-xs:   clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm:   clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md:   clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
  --space-lg:   clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
  --space-xl:   clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-2xl:  clamp(3rem, 2.25rem + 3.75vw, 6rem);
  --space-3xl:  clamp(4rem, 3rem + 5vw, 8rem);

  /* ---- Layout ---- */
  --max-width:       1200px;
  --max-width-narrow: 800px;
  --header-height:   72px;
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;
  --radius-pill:     100px;

  /* ---- Transitions ---- */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
}


/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-turquoise);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-turquoise-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

::selection {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}


/* ==========================================================================
   2. SKIP-TO-CONTENT LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: 0.75em 1.5em;
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--color-turquoise);
  outline-offset: 2px;
}


/* ==========================================================================
   3. GLOBAL FOCUS STYLES
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--color-turquoise);
  outline-offset: 3px;
}

/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}


/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

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

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

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

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.section-subtitle.centered {
  margin-inline: auto;
}

.section-header {
  margin-bottom: var(--space-xl);
}


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 2em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary: Gold fill */
.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.35);
}

.btn--primary:focus-visible {
  outline-color: var(--color-white);
}

/* Secondary: Outline white (for dark backgrounds) */
.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Secondary: Outline dark (for light backgrounds) */
.btn--outline-dark {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outline-dark:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Navy fill */
.btn--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--navy:hover {
  background-color: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: var(--color-white);
  box-shadow: 0 4px 20px var(--color-shadow-md);
}

/* Small variant */
.btn--sm {
  padding: 0.6em 1.4em;
  font-size: var(--text-sm);
}

/* Large variant */
.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--text-lg);
}


/* ==========================================================================
   6. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition:
    background-color var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

/* Transparent state (over hero) */
.site-header:not(.is-scrolled) {
  background-color: transparent;
}

/* Solid state (scrolled) — added via JS */
.site-header.is-scrolled {
  background-color: var(--color-navy);
  box-shadow: 0 2px 20px rgba(17, 29, 53, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ---- Logo ---- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  z-index: 1001;
}

.site-logo__img {
  height: 40px;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}

.site-logo__text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}

/* ---- Desktop Navigation ---- */
.nav-list {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4em 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-white);
}

/* Donate nav button */
.nav-cta {
  margin-left: 0.5em;
}

/* ---- Hamburger Toggle ---- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition:
    transform var(--duration-base) var(--ease-in-out),
    opacity var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

/* Hamburger to X animation */
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Navigation Panel ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-navy-dark);
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-in-out);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

/* Overlay behind mobile nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    visibility var(--duration-slow) var(--ease-out);
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav__link {
  display: block;
  padding: 0.9em 0;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: var(--color-gold);
}

.mobile-nav__cta {
  margin-top: var(--space-lg);
}

/* Desktop breakpoint: show desktop nav, hide hamburger */
@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  background-color: var(--color-navy-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Dark gradient overlay for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(17, 29, 53, 0.82) 0%,
    rgba(27, 42, 74, 0.65) 40%,
    rgba(17, 29, 53, 0.78) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  padding: 0.5em 1.2em;
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--radius-pill);
}

.hero__title {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero__title em {
  font-style: normal;
  color: var(--color-gold);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* Decorative scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: gentleBounce 2.5s var(--ease-in-out) infinite;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}


/* ==========================================================================
   8. SECTIONS — GENERAL
   ========================================================================== */

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

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

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

.section--navy {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.9);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--color-white);
}

.section--navy .section-label {
  color: var(--color-gold);
}

.section--navy .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Thin decorative line under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-turquoise));
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.text-center .section-title::after,
.section-header.text-center .section-title::after {
  margin-inline: auto;
}


/* ==========================================================================
   9. ABOUT SECTION
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__photo-wrapper {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.about__photo {
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px var(--color-shadow-md);
}

/* Decorative accent behind photo */
.about__photo-wrapper::before {
  content: '';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: calc(var(--space-md) * -1);
  bottom: calc(var(--space-md) * -1);
  border: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.about__text h2 {
  margin-bottom: var(--space-md);
}

.about__text p {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.about__text .lead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
}

/* Key stats grid */
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
}

.stat__number {
  display: block;
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
}

.stat__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.3em;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-2xl);
  }

  .about__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .about__grid {
    gap: clamp(3rem, 5vw, 6rem);
  }
}


/* ==========================================================================
   10. ISSUES SECTION
   ========================================================================== */

.issues__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.issue-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

/* Colored top border */
.issue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-turquoise));
}

.issue-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
}

.issue-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-turquoise-light));
}

.issue-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--color-red), var(--color-red-light));
}

.issue-card:nth-child(5)::before {
  background: linear-gradient(90deg, var(--color-navy), var(--color-gold));
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-shadow-md);
}

.issue-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}

.issue-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.issue-card__title {
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.issue-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.issue-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--space-md);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-turquoise);
  transition: gap var(--duration-base) var(--ease-out);
}

.issue-card__link:hover {
  gap: 0.7em;
  color: var(--color-turquoise);
}

@media (min-width: 640px) {
  .issues__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .issues__grid {
    gap: var(--space-lg);
  }
}


/* ==========================================================================
   11. TRACK RECORD SECTION
   ========================================================================== */

.track-record__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.record-card {
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--color-gold);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--color-shadow);
}

.record-card__year {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.record-card__title {
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.record-card__text {
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Timeline variant */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-gold),
    var(--color-turquoise),
    var(--color-navy)
  );
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-lg);
}

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

.timeline__marker {
  position: absolute;
  left: calc(var(--space-lg) * -1 + 2px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.timeline__content {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 2px 8px var(--color-shadow);
}

@media (min-width: 768px) {
  .track-record__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .track-record__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   12. GET INVOLVED / SIGNUP FORM
   ========================================================================== */

.involved__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.involved__text h2 {
  color: var(--color-white);
}

.involved__text p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-sm);
}

/* Form styles */
.signup-form {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4em;
}

.form-label--required::after {
  content: ' *';
  color: var(--color-gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.25);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

/* ---- Checkbox (10DLC compliant consent) ---- */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  cursor: pointer;
}

.form-checkbox__input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--color-gold);
  cursor: pointer;
  /* Custom styled checkbox */
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  position: relative;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.form-checkbox__input:checked {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
}

.form-checkbox__input:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--color-navy-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox__input:focus-visible {
  outline: 3px solid var(--color-turquoise);
  outline-offset: 2px;
}

.form-checkbox__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.form-checkbox__label a {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox__label a:hover {
  color: var(--color-gold);
}

/* 10DLC compliance notice */
.form-compliance {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-md);
}

/* Error state */
.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--color-red-light);
}

.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-red-light);
  margin-top: 0.3em;
}

/* Success message */
.form-success {
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-white);
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-turquoise);
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .involved__wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .form-row .form-group {
    margin-bottom: 0;
  }
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding-block: var(--space-xl) var(--space-md);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-sm);
  max-width: 320px;
}

.footer__nav-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.footer__nav-list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__nav-list a:hover {
  color: var(--color-gold);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Footer bottom — disclaimer + legal */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: var(--text-xs);
}

.footer__disclaimer {
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
  color: var(--color-gold);
}

.footer__legal span {
  color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* ==========================================================================
   14. SCROLL-REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-hint {
    animation: none;
  }

  .btn,
  .nav-link::after,
  .issue-card,
  .record-card,
  .form-input,
  .social-link {
    transition: none;
  }
}


/* ==========================================================================
   15. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .nav-toggle,
  .mobile-nav,
  .mobile-nav-overlay,
  .hero__scroll-hint,
  .social-links,
  .btn--outline,
  .form-submit {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2em 0;
  }

  .hero__overlay {
    display: none;
  }

  .hero__title,
  .hero__subtitle {
    color: #000 !important;
  }

  .section {
    padding-block: 1.5em;
    break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}


/* ==========================================================================
   16. ADDITIONAL COMPONENT STYLES
   ========================================================================== */

/* ---- Blockquote / Testimonial ---- */
.quote {
  position: relative;
  padding: var(--space-lg);
  padding-left: calc(var(--space-lg) + 4px);
  border-left: 4px solid var(--color-gold);
  background-color: var(--color-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote__text {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.5;
}

.quote__author {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  background-color: rgba(58, 140, 140, 0.1);
  color: var(--color-turquoise);
}

.badge--gold {
  background-color: rgba(212, 168, 83, 0.15);
  color: var(--color-gold-dark);
}

.badge--navy {
  background-color: rgba(27, 42, 74, 0.1);
  color: var(--color-navy);
}

/* ---- Divider ---- */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border),
    transparent
  );
  margin-block: var(--space-xl);
}

/* ---- Icon list (for about section bullet points) ---- */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
}

.icon-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-turquoise);
  margin-top: 2px;
}

.icon-list__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

/* ---- Announcement Bar (optional, above header) ---- */
.announcement-bar {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  text-align: center;
  padding: 0.5em var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.announcement-bar a {
  color: var(--color-navy-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar a:hover {
  color: var(--color-navy);
}

/* When announcement bar is present, offset header */
.has-announcement .site-header {
  top: 36px;
}

.has-announcement .hero {
  padding-top: calc(var(--header-height) + 36px + var(--space-xl));
}


/* ==========================================================================
   17. RESPONSIVE FINE-TUNING
   ========================================================================== */

/* Small phones */
@media (max-width: 374px) {
  :root {
    --space-md: 0.875rem;
    --space-lg: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Tablet landscape & small desktop */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__content {
    max-width: 660px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .container {
    padding-inline: var(--space-lg);
  }

  .issues__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Third card spans partial width for visual interest on 5-card layout */
  .issues__grid--five {
    grid-template-columns: repeat(3, 1fr);
  }

  .issues__grid--five .issue-card:nth-child(4),
  .issues__grid--five .issue-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
  :root {
    --max-width: 1320px;
  }
}


/* ==========================================================================
   18. DARK MODE (OPTIONAL — respects OS preference)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Only apply if a .dark-mode-auto class is on <html> */
  html.dark-mode-auto {
    --color-cream: #1a1d23;
    --color-white: #22262e;
    --color-text: #e0dcd5;
    --color-text-muted: #9a9590;
    --color-border: #333840;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-md: rgba(0, 0, 0, 0.4);
  }

  html.dark-mode-auto .issue-card {
    background-color: var(--color-white);
  }

  html.dark-mode-auto .stat {
    background-color: var(--color-white);
  }

  html.dark-mode-auto .about__photo-wrapper::before {
    opacity: 0.2;
  }

  html.dark-mode-auto .record-card {
    background-color: var(--color-white);
  }
}
