@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy: #0d1d5e;
  --navy-dark: #080e38;
  --navy-mid: #162570;
  --red: #c8102e;
  --red-dark: #a00c24;
  --white: #fdfcfa;
  --off-white: #f4f1eb;
  --light-navy: #eaedfa;
  --gray: #6b6b6b;
  --gray-light: #d8d5ce;
  --dark: #141414;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 100px;
  border-bottom: 3px solid var(--red);
}

.nav-logo img {
  height: 80px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-donate {
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  padding: 10px 26px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
  border-bottom: none !important;
}

.nav-donate:hover {
  background: var(--red-dark) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.25s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 100px; left: 0; right: 0;
  background: var(--navy-dark);
  z-index: 199;
  padding: 24px 32px 32px;
  border-bottom: 3px solid var(--red);
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile ul a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-mobile ul a.active,
.nav-mobile ul a:hover { color: #fff; }

.nav-mobile .nav-donate-mobile {
  display: inline-block;
  margin-top: 20px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 80px 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; }

/* ─── SHARED SECTION STYLES ───────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-label-white {
  color: rgba(255,255,255,0.6);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  color: var(--navy);
  text-wrap: balance;
}

.section-title-white {
  color: #fff;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 600px;
}

.section-subtitle-white {
  color: rgba(255,255,255,0.75);
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 15px 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.45);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-outline-navy {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  padding: 15px 36px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  transition: all 0.2s;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* ─── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 160px 80px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 12px
  );
}

.page-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero .page-hero-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.page-hero p {
  margin-top: 24px;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
}

/* Red stripe accent */
.red-stripe {
  display: inline;
  background: var(--red);
  color: #fff;
  padding: 0 8px;
}

/* ─── MOBILE GRID UTILITY ─────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.five-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

/* =========================================
   TABLET STYLES — 769–1023px
   Keeps most desktop rules but reduces padding
   and lets a few grids breathe.
   ========================================= */
@media (min-width: 769px) and (max-width: 1023px) {
  .nav { padding: 0 32px !important; height: 96px !important; }
  .nav-logo img { height: 80px !important; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }

  .hero-left { padding: 130px 40px 60px 40px !important; }
  .stats-bar { padding: 24px 40px; }
  .intro-text { padding: 64px 40px !important; }
  .priorities-preview,
  .quote-section,
  .join-section { padding: 64px 40px !important; }
  .footer { padding: 56px 40px 32px !important; }
  .page-hero { padding: 140px 40px 64px !important; }
}

/* =========================================
   MOBILE STYLES — DO NOT MERGE WITH DESKTOP
   Activates at max-width: 768px
   All rules use !important so they win over
   page-level inline <style> @media rules that
   load after this stylesheet in the cascade.
   ========================================= */
@media (max-width: 768px) {

  /* ── GLOBAL ── */
  html, body { overflow-x: hidden !important; }
  body { font-size: 16px !important; line-height: 1.65 !important; }
  img, video { max-width: 100% !important; height: auto !important; }

  /* ── NAV — hamburger, prominent Donate, shrunk logo ── */
  .nav {
    padding: 0 16px !important;
    height: 72px !important;
  }
  .nav-logo img {
    height: 52px !important;
    width: auto !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .nav-links { display: none !important; }
  .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .nav-donate {
    padding: 10px 18px !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .nav-hamburger {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .nav-mobile {
    top: 72px !important;
    padding: 20px 20px 28px !important;
  }
  .nav-mobile ul { gap: 4px !important; }
  .nav-mobile ul a {
    display: block !important;
    padding: 14px 4px !important;
    min-height: 44px !important;
    font-size: 15px !important;
  }
  .nav-mobile .nav-donate-mobile {
    display: block !important;
    text-align: center !important;
    margin-top: 16px !important;
    padding: 14px 28px !important;
    min-height: 44px !important;
  }

  /* ── HERO — stack text above image ── */
  .hero {
    display: block !important;
    min-height: auto !important;
  }
  .hero-left {
    padding: 96px 20px 32px !important;
    order: 1 !important;
  }
  .hero-eyebrow { margin-bottom: 16px !important; }
  .hero-eyebrow span { font-size: 11px !important; }
  .hero h1 {
    font-size: clamp(40px, 11vw, 56px) !important;
    line-height: 0.95 !important;
    width: 100% !important;
    word-break: break-word !important;
  }
  .hero-divider { margin: 20px 0 !important; }
  .hero-subtext {
    font-size: 16px !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }
  .hero-right {
    height: 320px !important;
    width: 100% !important;
    order: 2 !important;
  }
  .hero-right img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .hero-right::after,
  .hero-right::before { display: none !important; }
  .hero-ctas {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* ── BUTTONS — full-width, ≥44px tap target ── */
  .btn-primary,
  .btn-secondary,
  .btn-outline-navy {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
    padding: 14px 28px !important;
    font-size: 14px !important;
  }

  /* ── STATS — 2x2 grid ── */
  .stats-bar {
    grid-template-columns: 1fr 1fr !important;
    padding: 24px 20px !important;
    gap: 20px 16px !important;
  }
  .stat-item {
    border-right: none !important;
    padding: 8px 0 !important;
    text-align: center !important;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.25) !important;
  }
  .stat-num { font-size: 30px !important; }
  .stat-label {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  /* ── INTRO / BIO TEXT BLOCK ── */
  .intro {
    display: block !important;
  }
  .intro-text {
    padding: 48px 20px !important;
  }
  .intro-text .section-title {
    font-size: clamp(28px, 7vw, 40px) !important;
  }
  .intro-text p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
  .intro-image {
    min-height: 280px !important;
    height: 280px !important;
  }

  /* ── PRIORITIES PREVIEW (home) ── */
  .priorities-preview { padding: 56px 20px !important; }
  .priorities-preview-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
  }
  .priority-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .priority-card {
    padding: 32px 24px !important;
  }
  .priority-card h3 { font-size: 22px !important; }
  .priority-card p { font-size: 16px !important; line-height: 1.7 !important; }

  /* ── HOME PHOTO STRIP (3-col captioned gallery) ── */
  section[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }
  section[style*="grid-template-columns:repeat(3,1fr)"] > div[style*="height:420px"],
  section[style*="grid-template-columns:repeat(3,1fr)"] > div[style*="height:400px"],
  section[style*="grid-template-columns:repeat(3,1fr)"] > div[style*="height:380px"],
  section[style*="grid-template-columns:repeat(3,1fr)"] > div[style*="height:360px"] {
    height: 280px !important;
  }

  /* ── PRESS / "AS SEEN IN" SECTION ── */
  section[style*="background:#0d1d5e"][style*="padding:80px 80px"] {
    padding: 56px 20px !important;
  }
  section[style*="background:#0d1d5e"] > div[style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
  section[style*="background:#0d1d5e"] > div[style*="grid-template-columns:1fr 1fr"] > div:first-child {
    margin-bottom: 36px !important;
  }
  section[style*="background:#0d1d5e"] h2 {
    font-size: clamp(28px, 7vw, 40px) !important;
  }
  section[style*="background:#0d1d5e"] p[style*="font-size: 30px"],
  section[style*="background:#0d1d5e"] p[style*="font-size:30px"] {
    font-size: 17px !important;
    line-height: 1.7 !important;
  }
  section[style*="background:#0d1d5e"] img {
    width: 100% !important;
    max-width: 260px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* ── QUOTE ── */
  .quote-section { padding: 56px 20px !important; }
  .quote-inner blockquote {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  .quote-section::before {
    font-size: 220px !important;
    top: -20px !important;
    left: 12px !important;
  }

  /* ── JOIN / CTA CARDS ── */
  .join-section {
    display: block !important;
    padding: 56px 20px !important;
  }
  .join-text { margin-bottom: 40px !important; }
  .join-text p { font-size: 16px !important; }
  .join-options { gap: 12px !important; }
  .join-option {
    padding: 20px !important;
    min-height: 72px !important;
  }
  .join-option-text h4 { font-size: 17px !important; }
  .join-option-text p { font-size: 14px !important; }

  /* ── FOOTER ── */
  .footer { padding: 48px 20px 32px !important; }
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: left !important;
  }
  .footer-brand p { max-width: 100% !important; }
  .footer-bottom {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
    font-size: 12px !important;
  }
  .footer-col ul a { padding: 4px 0 !important; display: inline-block !important; min-height: 32px !important; }

  /* ── PAGE HERO (inner pages: about / results / priorities / get-involved) ── */
  .page-hero { padding: 104px 20px 48px !important; }
  .page-hero h1 {
    font-size: clamp(40px, 10vw, 56px) !important;
    line-height: 0.95 !important;
  }
  .page-hero p { font-size: 16px !important; }

  /* ── ABOUT PAGE ── */
  .bio-section {
    display: block !important;
    min-height: auto !important;
  }
  .bio-image {
    position: relative !important;
    top: 0 !important;
    height: 360px !important;
  }
  .bio-content { padding: 48px 20px !important; }
  .bio-content h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  .bio-content p { font-size: 16px !important; line-height: 1.85 !important; }
  .bio-pull-quote { padding: 16px 20px !important; margin: 28px 0 !important; }
  .bio-pull-quote p { font-size: 18px !important; }
  .family-section {
    display: block !important;
    padding: 56px 20px !important;
  }
  .family-section h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  .family-right { display: none !important; }
  .endorse-section { padding: 56px 20px !important; }

  /* ── PRIORITIES PAGE ── */
  .priorities-section { padding: 56px 20px !important; }
  .pillar { margin-bottom: 56px !important; }
  .pillar-header {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .pillar-num { display: none !important; }
  .pillar-header-text h2 { font-size: 28px !important; }
  .pillar-header-text p { font-size: 16px !important; }
  .achievement-grid {
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    gap: 12px !important;
  }
  .pillar-divider { margin-left: 0 !important; }
  .committees-section { padding: 56px 20px !important; }
  .committees-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .record-bar {
    grid-template-columns: 1fr !important;
    padding: 48px 20px !important;
    gap: 24px !important;
  }

  /* ── RESULTS PAGE ── */
  .stat-block { padding: 16px 18px !important; }
  .stat-block-num { font-size: 30px !important; }
  .bill-row { padding: 16px 20px !important; }

  /* ── GET INVOLVED PAGE ── */
  .involve-main {
    display: block !important;
  }
  .volunteer-panel {
    padding: 48px 20px !important;
    border-right: none !important;
    border-bottom: 2px solid var(--off-white) !important;
  }
  .volunteer-panel h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important; /* prevents iOS zoom-on-focus */
    padding: 14px 16px !important;
    min-height: 48px !important;
  }
  .interest-grid { grid-template-columns: 1fr !important; }
  .donate-block { padding: 48px 20px !important; }
  .follow-block { padding: 40px 20px !important; }
  .office-section {
    grid-template-columns: 1fr !important;
    padding: 48px 20px !important;
    gap: 32px !important;
  }

  /* ── GENERIC GRID UTILITIES (inline styles used across pages) ── */
  .two-col,
  .three-col,
  .four-col,
  .five-col {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }

  /* Inline panel padding: shrink generously-padded panels on mobile */
  .two-col > div[style*="padding:72px"],
  .two-col > div[style*="padding:64px 72px"],
  .two-col > div[style*="padding:64px 56px"],
  .two-col > div[style*="padding:56px 60px"],
  .two-col > div[style*="padding:56px 52px"],
  .two-col > div[style*="padding:48px 56px"],
  .three-col > div[style*="padding:56px"],
  .three-col > div[style*="padding:48px"] {
    padding: 36px 20px !important;
  }

  /* Inline min-heights on photo panels */
  .two-col-panel,
  .two-col > div[style*="min-height:640px"],
  .two-col > div[style*="min-height:560px"],
  .two-col > div[style*="min-height:480px"],
  .two-col > div[style*="min-height:420px"],
  .two-col > div[style*="min-height:380px"] {
    min-height: 280px !important;
  }

  /* Inline fixed heights on photo strips */
  .three-col > div[style*="height:420px"],
  .three-col > div[style*="height:400px"],
  .three-col > div[style*="height:380px"],
  .three-col > div[style*="height:360px"] {
    height: 260px !important;
  }

  /* Reduce massive inline section padding (e.g. style="padding:96px 80px") */
  section[style*="padding:96px 80px"],
  section[style*="padding: 96px 80px"],
  section[style*="padding:80px 80px"],
  section[style*="padding: 80px 80px"],
  section[style*="padding:80px"] {
    padding: 56px 20px !important;
  }

  /* Generic inline h1/h2 type scaling */
  h1[style*="clamp"], h2[style*="clamp"] {
    font-size: clamp(28px, 7vw, 44px) !important;
    line-height: 1.05 !important;
  }
}
