/* ═══════════════════════════════════════════ */
/*  Community Funding & Grant Solutions        */
/*  Shared Styles — Clever-inspired system     */
/*  (ported from the Dynamic Achievers build)  */
/* ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --blue: #2D5CE5;
  --blue-dark: #1E42B8;
  --blue-light: #4A76FF;
  --blue-bg: #EEF3FF;
  --gold: #D4A017;
  --gold-light: #F2C94C;
  --gold-bg: #FFF8E7;
  --green: #0E9F6E;
  --green-bg: #ECFDF5;
  --purple: #7C3AED;
  --purple-bg: #F3EEFF;
  --coral: #EF6454;
  --coral-bg: #FFF1F0;
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --light-gray: #F5F6F8;
  --gray-100: #F0F1F3;
  --gray-200: #E2E4E9;
  --gray-300: #CBD0D8;
  --text-dark: #1A1D26;
  --text-mid: #4A5066;
  --text-light: #6E7489;
  --text-muted: #9DA3B4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Fluid root size: 16px up to 1280px viewports, scaling to 21px on very wide
   screens. Everything below is rem-based, so the whole layout scales with it. */
html { scroll-behavior: smooth; font-size: clamp(16px, 0.83vw + 5.4px, 21px); }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text-dark); overflow-x: hidden; line-height: 1.6; }
.hidden { display: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--text-dark); color: var(--white);
  padding: 0.8rem 1.2rem; text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0; font-size: 0.85rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 3rem; min-height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; min-width: 38px; border-radius: 10px;
  background: var(--blue); color: var(--white);
  font-family: 'DM Serif Display', serif; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem; line-height: 1.15; color: var(--text-dark);
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-mid); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active-link { color: var(--blue); font-weight: 600; }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding: 0.55rem 1.5rem !important; border-radius: var(--radius-pill) !important; font-weight: 600 !important; transition: all 0.2s !important; display: inline-flex !important; align-items: center; gap: 0.4rem; }
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45,92,229,0.3) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }

/* ─── HERO (Clever-style: side-by-side) ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 3rem 4rem;
  background: linear-gradient(170deg, var(--white) 55%, var(--blue-bg) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 76rem; margin: 0 auto; width: 100%;
}
.hero-inner.hero-solo { grid-template-columns: 1fr; }
.hero-inner.hero-solo .hero-text { max-width: 42rem; }
.hero-text { max-width: 35rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-bg); padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.35s forwards;
}
.hero-title em { font-style: italic; color: var(--blue); }
.hero-subtitle {
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-light); line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards;
}
.hero-subtitle a { color: var(--blue); }
.hero-buttons {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s ease 0.65s forwards;
}
.hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  opacity: 0; animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-img img { width: 100%; height: 26rem; object-fit: cover; display: block; }

/* Page Hero (sub-pages) */
.page-hero { min-height: auto; padding: 7rem 3rem 5rem; }
.page-hero .hero-img img { height: 24rem; }
.page-hero .hero-inner { gap: 3rem; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--blue); color: var(--white);
  padding: 0.75rem 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border-radius: var(--radius-pill);
  border: 2px solid var(--blue);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--blue-dark); border-color: var(--blue-dark);
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(45,92,229,0.3);
}
.btn-primary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.btn-secondary {
  background: var(--white); color: var(--text-dark);
  padding: 0.75rem 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border-radius: var(--radius-pill);
  border: 2px solid var(--gray-200);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover {
  border-color: var(--blue); color: var(--blue);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-secondary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.btn-gold {
  background: var(--gold); color: var(--white);
  padding: 0.75rem 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border-radius: var(--radius-pill);
  border: 2px solid var(--gold);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-gold:hover {
  background: #B8860B; border-color: #B8860B;
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,160,23,0.3);
}

/* ─── SECTION BASE ─── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 76rem; margin: 0 auto; padding: 0 3rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-bg); padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill); margin-bottom: 1rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--blue); }
.section-lead {
  font-size: 1rem; font-weight: 400;
  color: var(--text-light); line-height: 1.75;
  max-width: 38rem;
}
.section-lead a { color: var(--blue); }

/* ─── SPLIT SECTION ─── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.split-img img { width: 100%; height: 25rem; object-fit: cover; display: block; }

/* ─── FEATURE CARDS ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.feature-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow-sm); text-decoration: none; display: block; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gray-200); }
.feature-img { width: 100%; height: 12.5rem; object-fit: cover; display: block; }
.feature-body { padding: 1.8rem; }
.feature-tag { display: inline-flex; padding: 0.25rem 0.7rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--radius-pill); margin-bottom: 0.8rem; }
.tag-blue { background: var(--blue-bg); color: var(--blue); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-gold { background: var(--gold-bg); color: var(--gold); }
.tag-coral { background: var(--coral-bg); color: var(--coral); }
.tag-purple { background: var(--purple-bg); color: var(--purple); }
.feature-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }
.feature-link { font-size: 0.78rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 0.3rem; }
.feature-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── PRINCIPLE / ICON CARDS ─── */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.principles-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.principle-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.principle-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.principle-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.principle-title { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.principle-desc { font-size: 0.78rem; color: var(--text-light); line-height: 1.55; }
.principle-desc a { color: var(--blue); }

/* ─── SUPPORT PILLS ─── */
.support-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }
.support-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-pill); text-decoration: none; color: var(--text-dark); font-size: 0.85rem; font-weight: 500; transition: all 0.25s; box-shadow: var(--shadow-sm); }
.support-pill:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.support-pill-icon { width: 20px; height: 20px; }
.support-pill-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding: 2rem 0; max-width: 51rem; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-phase { position: relative; padding-left: 64px; margin-bottom: 2.5rem; }
.timeline-phase:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 12px; top: 4px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; color: var(--white); z-index: 1; }
.timeline-dot.blue { background: var(--blue); }
.timeline-dot.green { background: var(--green); }
.timeline-dot.gold { background: var(--gold); }
.timeline-dot.purple { background: var(--purple); }
.timeline-years { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.timeline-title { font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.timeline-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; margin-bottom: 0.5rem; }
.timeline-success { font-size: 0.78rem; color: var(--text-mid); background: var(--off-white); padding: 0.6rem 1rem; border-radius: var(--radius-md); border-left: 3px solid; }
.timeline-success.blue { border-color: var(--blue); }
.timeline-success.green { border-color: var(--green); }
.timeline-success.gold { border-color: var(--gold); }
.timeline-success.purple { border-color: var(--purple); }

/* ─── PHOTO BREAK (quote over image) ─── */
.photo-break { position: relative; height: 28rem; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-break-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.photo-break-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,92,229,0.75) 0%, rgba(26,29,38,0.65) 100%); }
.photo-break-content { position: relative; z-index: 1; text-align: center; max-width: 44rem; padding: 0 2rem; }
.photo-break-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.4; margin-bottom: 1rem;
}
.photo-break-attr { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ─── CARDS ─── */
.card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 2.5rem;
  transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gray-200); }

/* ─── BOARD CARDS ─── */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.board-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); text-align: center; transition: all 0.3s; }
.board-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.board-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); font-family: 'DM Serif Display', serif; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.board-role { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.board-name { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--text-dark); }

/* ─── FORMS ─── */
.contact-form-wrap { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow-md); }
.form-heading { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--text-dark); margin-bottom: 1.5rem; }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  color: var(--text-dark); background: var(--white);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,92,229,0.1); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--coral); }
.form-error { display: none; font-size: 0.75rem; color: var(--coral); margin-top: 0.35rem; }
.form-field.has-error .form-error { display: block; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  width: 100%; padding: 0.9rem; background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.form-submit:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(45,92,229,0.3); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }
.form-status { display: none; margin-top: 1.2rem; font-size: 0.85rem; font-weight: 500; border-radius: var(--radius-md); padding: 0.8rem 1rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--green-bg); color: var(--green); }
.form-status.is-error { background: var(--coral-bg); color: var(--coral); }

/* ─── INFO ROWS (contact details) ─── */
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.info-row-icon { width: 36px; height: 36px; min-width: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.info-row-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.info-row-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.info-row-value { font-size: 0.85rem; color: var(--text-light); }

/* ─── NOTE / CALLOUT ─── */
.note-callout {
  font-size: 0.85rem; color: var(--text-mid); background: var(--off-white);
  padding: 1rem 1.2rem; border-radius: var(--radius-md);
  border-left: 3px solid var(--blue); max-width: 45rem; line-height: 1.7;
}
.note-callout a { color: var(--blue); }

/* ─── DRAFT BANNER ─── */
.draft-banner {
  background: var(--gold-bg); border: 1px solid var(--gold-light); color: #8A6A0F;
  border-radius: var(--radius-md); padding: 0.8rem 1.2rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 2.5rem; line-height: 1.6;
}

/* ─── POLICY / PROSE BODY ─── */
.policy-body { max-width: 48rem; }
.policy-body h2 { font-family: 'DM Serif Display', serif; font-size: 1.3rem; font-weight: 400; color: var(--text-dark); margin: 2.2rem 0 0.6rem; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { font-size: 0.92rem; color: var(--text-light); line-height: 1.75; margin-bottom: 0.8rem; }
.policy-body a { color: var(--blue); }
.policy-body strong { color: var(--text-mid); }

/* ─── STAT CARDS ─── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.stat-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  text-align: center; transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 3rem; font-weight: 400; color: var(--blue); line-height: 1; margin-bottom: 0.5rem; display: block; }
.stat-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.stat-sub { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

/* ─── FOOTER ─── */
footer {
  background: var(--text-dark); padding: 3.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo .logo-mark { background: var(--blue); }
.footer-logo-text { font-family: 'DM Serif Display', serif; font-size: 0.95rem; line-height: 1.15; color: rgba(255,255,255,0.9); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.35); line-height: 1.7; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.75rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-credits { width: 100%; font-size: 0.65rem; color: rgba(255,255,255,0.25); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-buttons, .hero-img, .reveal { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ─── */

/* --- Tablet / Small Desktop (≤ 900px) --- */
@media (max-width: 900px) {
  nav { padding: 0.75rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.nav-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 1.5rem; gap: 0;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
  }
  .nav-links.nav-open li { border-bottom: 1px solid var(--gray-100); }
  .nav-links.nav-open li:last-child { border-bottom: none; }
  .nav-links.nav-open a { display: block; padding: 1rem 0.5rem; font-size: 1rem; }
  .nav-links.nav-open .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; }

  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img img { height: 260px; border-radius: var(--radius-lg); }
  .hero { padding: 5.5rem 1.5rem 2.5rem; min-height: auto; }
  .hero-text { max-width: 100%; }

  .page-hero { padding: 5.5rem 1.5rem 2.5rem; }
  .page-hero .hero-img img { height: 240px; }

  .section-inner { padding: 0 1.5rem; }
  section[style*="padding:6rem"] { padding: 4rem 0 !important; }

  footer { flex-direction: column; text-align: center; gap: 1rem; padding: 2.5rem 1.5rem; }
  .footer-links { justify-content: center; gap: 0.75rem 1rem; }
  .footer-logo { justify-content: center; }

  .photo-break { height: 300px; }
  .photo-break-content { padding: 0 1.5rem; }

  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-img img { height: 260px; }

  .features-grid { grid-template-columns: 1fr; }
  .principles-grid, .principles-grid.cols-2 { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .stat-num { font-size: 2.4rem; }
  .stat-card { padding: 2rem 1.5rem; }
  .card { padding: 2rem; }
  .contact-form-wrap { max-width: 100%; padding: 2rem; }

  .support-pills { gap: 0.5rem; }
  .support-pill { padding: 0.65rem 1.2rem; font-size: 0.82rem; }

  .btn-primary, .btn-secondary, .btn-gold {
    padding: 0.85rem 1.8rem;
    font-size: 0.9rem;
    min-height: 48px;
  }
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  .hero { padding: 5rem 1rem 2rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-img img { height: 220px; }
  .hero-eyebrow { font-size: 0.68rem; margin-bottom: 1rem; }
  .hero-buttons { flex-direction: column; gap: 0.6rem; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; justify-content: center; }

  .page-hero { padding: 5rem 1rem 2rem; }
  .page-hero .hero-img img { height: 200px; }

  .section-inner { padding: 0 1rem; }
  .section-title { font-size: 1.6rem; }
  .section-lead { font-size: 0.9rem; }

  .photo-break { height: 260px; }
  .photo-break-quote { font-size: 1.15rem; }
  .photo-break-content { padding: 0 1rem; }

  .split-img img { height: 220px; }
  .feature-img { height: 180px; }
  .feature-body { padding: 1.4rem; }
  .feature-title { font-size: 1.1rem; }

  .board-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-num { font-size: 2rem; }
  .stat-card { padding: 1.5rem 1.2rem; }
  .stat-label { font-size: 0.68rem; }
  .stat-sub { font-size: 0.75rem; }

  .contact-form-wrap { padding: 1.5rem; }
  .form-submit { min-height: 48px; font-size: 0.9rem; }
  .form-row-2 { grid-template-columns: 1fr; }

  .support-pills { flex-direction: column; align-items: stretch; }
  .support-pill { justify-content: center; }

  .timeline-phase { padding-left: 56px; }
  .timeline-title { font-size: 1.05rem; }

  footer { padding: 2rem 1rem; }
  .footer-links { flex-direction: column; gap: 0.6rem; align-items: center; }
  .footer-links a { font-size: 0.82rem; padding: 0.3rem 0; }
  .footer-copy { font-size: 0.7rem; }

  nav { padding: 0.65rem 1rem; }
  .logo-text { font-size: 0.85rem; }

  .btn-primary, .btn-secondary, .btn-gold { font-size: 0.85rem; padding: 0.8rem 1.5rem; }
}

/* --- Ultra-small Phones (≤ 380px) --- */
@media (max-width: 380px) {
  .hero-title { font-size: 1.7rem; }
  .section-title { font-size: 1.4rem; }
  .stat-num { font-size: 1.7rem; }
  .photo-break { height: 220px; }
  .photo-break-quote { font-size: 1rem; }
  footer { padding: 1.5rem 0.75rem; }
}

/* --- Slide-down animation for mobile nav --- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
