/* =========================================================
   HEROES KIDS FOUNDATION — Design System v2
   Palette: Old Glory Blue + Old Glory Red, on white/fog —
   the real flag colors, used with restraint.
   Type: Archivo (display) + Inter (body) — both sans-serif.
   Signature: "The Stripe Rule" — a minimal three-bar mark
   (blue / gap / red) standing in for the flag's stripes,
   used as a quiet section marker instead of literal iconography.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --blue-deep:  #0a2f5c;
  --blue:       #12386b;
  --blue-soft:  #3a5a8a;
  --red:        #b31942;
  --red-bright: #c8213f;
  --white:      #ffffff;
  --fog:        #f5f6f8;
  --fog-2:      #eef0f3;
  --ink:        #14181f;
  --ink-soft:   #5b6270;
  --line:       #e3e5ea;

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-soft: 0 24px 48px -28px rgba(10,47,92,0.22);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img{ max-width:100%; display:block; }
a{ color: inherit; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
section{ position: relative; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- Sponsors ---- */
  /* ---- Shell ---- */
  .sponsors {
    background-color: #f8f9fa;   /* light grey – change to match your site */
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
  }

  .sponsors .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
  }

  .sponsors .section-header p {
    color: #666;
    font-size: 0.95rem;
  }

  /* ---- Logo images ---- */
  .sponsor-logo {
    max-height: 80px;          /* uniform row height */
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);   /* greyscale at rest – remove if unwanted */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    display: block;
    margin: 0 auto;
  }

  .sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
  }

  /* ---- Swiper arrow colour – match your brand ---- */
  .sponsors-swiper .swiper-button-prev,
  .sponsors-swiper .swiper-button-next {
    color: #e8a812;            /* Bootstrap primary blue – customise */
  }

  /* Hide arrows when not needed (Swiper does this automatically,
     but the rule below keeps them from flashing on load) */
  .swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
  }
/* -- END Sponsors ------------------------------------ */

/* ---------- Typography ---------- */
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin: 0 0 0.45em;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight:800; letter-spacing: -0.02em; }
h2{ font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
h3{ font-size: 1.2rem; font-weight:700; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow{
  display:flex;
  align-items:center;
  gap:12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.lede{ font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* Signature mark: the stripe rule */
.stripe-rule{
  display:inline-flex;
  flex-direction:column;
  gap:3px;
  width: 22px;
  flex-shrink:0;
}
.stripe-rule span{ display:block; height:2px; width:100%; }
.stripe-rule span:nth-child(1){ background: var(--blue); }
.stripe-rule span:nth-child(2){ background: transparent; }
.stripe-rule span:nth-child(3){ background: var(--red); }
.eyebrow.center{ justify-content:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration:none;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--red-bright); color:#fff; }
.btn-primary:hover{ background:#a11636; transform: translateY(-1px); }
.btn-secondary{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover{ background: rgba(255,255,255,0.1); border-color:#fff; }
.btn-navy{ background: var(--blue-deep); color:#fff; }
.btn-navy:hover{ background: var(--blue); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--blue-deep); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--blue-deep); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(255,255,255,0);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 26px 0;
}
.site-header.scrolled{
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 16px 0;
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark{
  width:96px; height:96px; flex-shrink:0;
  background:#fff; border-radius:6px; padding:3px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 1px 3px rgba(10,47,92,0.5);
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-text{ font-family: var(--font-display); font-weight:800; font-size:1.22rem; line-height:1.1; color: var(--on-brand-text, #fff); }
.brand-text span{ display:block; font-family: var(--font-body); font-weight:600; font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; opacity:0.7; margin-top:3px; }
.site-header:not(.scrolled) .brand-text{ color:#fff; }
.site-header.scrolled .brand-text{ color: var(--blue-deep); }

.nav-links{ display:flex; align-items:center; gap:34px; list-style:none; margin:0; padding:0; }
.nav-links a{ text-decoration:none; font-weight:600; font-size:0.92rem; position:relative; padding: 6px 0; }
.site-header:not(.scrolled) .nav-links a:not(.btn){ color:#fff; }
.site-header.scrolled .nav-links a:not(.btn){ color: var(--ink); }
.nav-links a:not(.btn)::after{ content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--red-bright); transition: width .25s ease; }
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after{ width:100%; }
.nav-cta{ margin-left:6px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:24px; height:2px; margin:6px 0; transition: all .3s ease; }
.site-header:not(.scrolled) .nav-toggle span{ background:#fff; }
.site-header.scrolled .nav-toggle span{ background: var(--ink); }

@media (max-width: 920px){
  .nav-toggle{ display:block; }
  .nav-links{
    position: fixed; top:0; right:0; height:100vh; width:min(78vw,320px);
    background: var(--white); flex-direction:column; justify-content:center;
    align-items:flex-start; padding: 40px; gap:26px;
    transform: translateX(100%); transition: transform .4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a:not(.btn){ color: var(--ink) !important; }
  .nav-cta{ margin-left:0; }
}

/* ---------- Hero (restrained parallax) ---------- */
.hero{
  position: relative;
  min-height: 40vh;
  display:flex; align-items:center;
  overflow:hidden;
  background: var(--blue-deep);
}
.hero-layer{ position:absolute; inset:0; will-change: transform; }
.hero-field{ z-index:1; }
.hero-field svg{ width:100%; height:100%; }
.hero-line{ z-index:2; position:absolute; right:-6%; top:0; bottom:0; width:46%; opacity:0.9; }
.hero-content{ position:relative; z-index:5; padding-top: 60px; width:100%; }

.hero-content .eyebrow{ color: rgba(255,255,255,0.72); }
.hero-content h1{ color:#fff; }
.hero-content .lede{ color: rgba(255,255,255,0.78); }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 36px; }
.scroll-cue{
  position:absolute; bottom: 36px; left:32px;
  z-index:6; color: rgba(255,255,255,0.55); font-size:0.7rem;
  letter-spacing:0.18em; text-transform:uppercase;
  display:flex; align-items:center; gap:12px;
}
.scroll-cue .line{ width:40px; height:1px; background: rgba(255,255,255,0.4); position:relative; overflow:hidden; }
.scroll-cue .line::after{ content:""; position:absolute; left:-100%; top:0; bottom:0; width:100%; background:#fff; animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep{ 0%{ left:-100%; } 50%{ left:100%; } 100%{ left:100%; } }

/* ---------- Window panel (signature, simplified) ---------- */
.panel{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.panel::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 48%, var(--red) 52%, var(--red) 100%);
  z-index:2;
}
.panel-media{
  aspect-ratio: 4/3.4;
  background-size: cover; background-position:center;
}
.panel-caption{ margin-top:16px; }
.panel-caption .k{ display:block; font-family: var(--font-display); font-size:1.05rem; font-weight:700; color: var(--blue-deep); }
.panel-caption .v{ font-size:0.9rem; color: var(--ink-soft); }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Sections ---------- */
.section{ padding: 50px 0; }
.section-tight{ padding: 80px 0; }
.section-blue{ background: var(--blue-deep); color:#fff; }
.section-blue h2, .section-blue h3{ color:#fff; }
.section-blue p{ color: rgba(255,255,255,0.75); }
.section-fog{ background: var(--fog); }
.section-white{ background: var(--white); }
.section-header{ max-width: 680px; margin-bottom: 64px; }
.section-header.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Mission statement / pull-quote band */
.pull-quote{
  position:relative;
  padding: 130px 0;
  background: var(--white);
  text-align:center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote blockquote{
  font-family: var(--font-display);
  font-weight:600;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  max-width: 840px; margin: 0 auto 26px;
  line-height:1.4;
  color: var(--blue-deep);
}
.pull-quote cite{ display:block; font-style:normal; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; font-size:0.74rem; color: var(--red-bright); }

/* Programs grid */
.programs-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px){ .programs-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .programs-grid{ grid-template-columns: 1fr; } }
.program-card{ background: var(--white); padding: 42px 34px; transition: background .25s ease; }
.program-card:hover{ background: var(--fog); }
.program-icon{ width:30px; height:30px; margin-bottom:22px; color: var(--blue); }
.program-card h3{ margin-bottom:10px; }
.program-card p{ font-size:0.95rem; margin-bottom:0; }

/* Stats strip */
.stats-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap: 40px; padding: 20px 0; }
@media (max-width: 760px){ .stats-strip{ grid-template-columns: repeat(2,1fr); gap: 40px; } }
.stat{ text-align:left; border-left: 2px solid rgba(255,255,255,0.25); padding-left: 20px; }
.stat .num{ font-family: var(--font-display); font-size: clamp(2rem,3.4vw,2.7rem); font-weight:800; color:#fff; display:block; }
.stat .label{ font-size:0.8rem; letter-spacing:0.05em; color: rgba(255,255,255,0.62); margin-top:6px; }

/* Windows gallery (home) */
.windows-row{ display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
@media (max-width: 900px){ .windows-row{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .windows-row{ grid-template-columns: 1fr; } }

/* CTA banner */
.cta-banner{
  background: var(--blue-deep);
  color:#fff;
  border-radius: var(--radius);
  padding: 56px 50px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-banner h2{ color:#fff; margin-bottom:6px; }
.cta-banner p{ color: rgba(255,255,255,0.78); margin-bottom:0; }

/* Two-column layout */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items:center; }
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; gap:44px; } }
.split.reverse .split-media{ order:2; }

/* Page hero (level-2) */
.page-hero-donate{
  position:relative;
  padding: 170px 0 35px;
  background: var(--blue-deep);
	background-image: url("../images/header-design.png"); 
	background-repeat: no-repeat;
	background-position: center;
  color:#fff;
  overflow:hidden;
}
.page-hero{
  position:relative;
  padding: 170px 0 35px;
  background: var(--blue-deep);
	background-image: url("../images/header-design.png"); 
	background-repeat: no-repeat;
	background-position: center;
  color:#fff;
  overflow:hidden;
}
.page-hero-app{
  position:relative;
  padding: 170px 0 35px;
  background: var(--blue-deep);
	background-image: url("../images/header-design-application.png"); 
	background-repeat: no-repeat;
	background-position: center;
  color:#fff;
  overflow:hidden;
}
.page-hero-about{
  position:relative;
  padding: 170px 0 35px;
  background: var(--blue-deep);
	background-image: url("../images/header-design-about.png"); 
	background-repeat: no-repeat;
	background-position: center;
  color:#fff;
  overflow:hidden;
}
.page-hero .container{ position:relative; z-index:3; max-width: 1200px; }
.breadcrumb{ font-size:0.82rem; color: rgba(255,255,255,0.55); margin-bottom:26px; }
.breadcrumb a{ text-decoration:none; color: rgba(255,255,255,0.85); }
.breadcrumb a:hover{ color:#fff; }

/* Values / timeline */
.values-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
@media (max-width:760px){ .values-grid{ grid-template-columns:1fr; } }
.value-item{ background:#fff; padding: 40px; display:flex; gap:22px; align-items:flex-start; }
.value-mark{ font-family:var(--font-display); font-weight:800; font-size:0.85rem; color: var(--red-bright); flex-shrink:0; padding-top:4px; }

.timeline{ position:relative; padding-left: 32px; }
.timeline::before{ content:""; position:absolute; left:5px; top:6px; bottom:6px; width:1px; background: var(--line); }
.timeline-item{ position:relative; padding-bottom: 48px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:""; position:absolute; left:-32px; top:2px; width:11px; height:11px; border-radius:50%; background: var(--white); border:2px solid var(--red-bright); }
.timeline-item .year{ font-family: var(--font-display); font-weight:700; color: var(--red-bright); font-size:0.95rem; letter-spacing:0.04em; text-transform:uppercase; }

/* Board / people */
.people-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
@media (max-width:760px){ .people-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px){ .people-grid{ grid-template-columns: 1fr; } }
.person-card{ text-align:left; }
.person-photo{ width:100%; aspect-ratio:1; border-radius: var(--radius); background: var(--fog-2); margin-bottom:18px; overflow:hidden; }
.person-photo img{ width:100%; height:100%; object-fit:cover; }
.person-card h3{ margin-bottom:2px; font-size:1.05rem; }
.person-card .role{ color: var(--red-bright); font-weight:700; font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; }

/* Footer */
.site-footer{ background: var(--blue-deep); color: rgba(255,255,255,0.7); padding: 80px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom:56px; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.footer-brand .brand-text{ color:#fff; }
.footer-col h4{ color:#fff; font-family: var(--font-body); font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:20px; font-weight:700; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:13px; }
.footer-col a{ text-decoration:none; color: rgba(255,255,255,0.68); font-size:0.92rem; transition: color .2s; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.14); padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; font-size:0.8rem; }
.tagline{ font-family: var(--font-body); font-weight:600; color: rgba(255,255,255,0.7); font-size:0.92rem; }

.skip-link{ position:absolute; left:-999px; top:0; background:#fff; color:var(--blue-deep); padding:10px 16px; z-index:200; }
.skip-link:focus{ left:12px; top:12px; }

a:focus-visible, button:focus-visible{ outline: 2px solid var(--red-bright); outline-offset: 3px; }
