/* ================================================================
   styles.css — CMHDA: Christian Mission & Human Development Agency
   
   DESIGN DIRECTION:
   Warm, editorial, faith-inspired. Deep forest greens, rich accent,
   warm cream. Cormorant Garamond (display) + Nunito (body).
   Dignified, trustworthy, hopeful.

   TABLE OF CONTENTS
   1.  Variables & Reset
   2.  Base Typography
   3.  Utilities & Shared
   4.  Buttons
   5.  Navigation
   6.  Hero
   7.  About
   8.  Programs Grid
   9.  Categories Visual Grid
   10. Impact / Trust
   11. Donate & Get Involved
   12. Contact
   13. Footer
   14. Animations & Scroll Reveal
   15. Responsive
================================================================ */


/* ================================================================
   1. Variables & Reset
================================================================ */
:root {
  /* Brand colours — PURPLE & WHITE */
  --purple-deep:   #4a1a7a;
  --purple-mid:    #6b2faa;
  --purple-light:  #8e5cc8;
  --purple-pale:   #e8ddf5;
  --accent:        #9b59d0;
  --accent-light:  #b87de6;
  --accent-pale:   #f3ebfc;

  /* Neutrals */
  --cream:         #faf7f2;
  --offwhite:      #f3efe8;
  --border:        #e0d9cc;
  --text:          #2c2c2c;
  --text-mid:      #4a4a4a;
  --text-muted:    #6b6b6b;
  --dark:          #111c17;
  --white:         #ffffff;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:     'Nunito', 'Helvetica Neue', Helvetica, sans-serif;

  /* Spacing scale */
  --sp-xs:   0.25rem;
  --sp-sm:   0.5rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;
  --sp-3xl:  5rem;
  --sp-4xl:  7rem;

  /* Layout */
  --max-w:    1200px;
  --nav-h:    76px;
  --radius:   10px;
  --radius-lg:20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 18px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.2);

  /* Transitions */
  --t:     0.25s ease;
  --t-slow:0.45s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
address { font-style: normal; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ================================================================
   2. Base Typography
================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);   font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; }
p  { line-height: 1.75; }


/* ================================================================
   3. Utilities & Shared
================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}
.eyebrow--light { color: var(--accent-light); }

/* Section head block */
.section-head {
  margin-bottom: var(--sp-2xl);
}
.section-head.center { text-align: center; }
.section-head h2 { margin-bottom: var(--sp-md); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-head.center .section-sub {
  margin: 0 auto;
}
.section-sub.light { color: rgba(255,255,255,.65); }
h2.light { color: var(--white); }

/* Screen-reader only */
.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;
}


/* ================================================================
   4. Buttons
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}

/* Primary — forest green */
.btn--primary {
  background: var(--purple-mid);
  color: var(--white);
  border-color: var(--purple-mid);
  box-shadow: 0 4px 18px rgba(45,106,79,.3);
}
.btn--primary:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  box-shadow: 0 6px 26px rgba(45,106,79,.45);
  transform: translateY(-2px);
}

/* accent — warm CTA */
.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(200,146,42,.4);
}
.btn--accent:hover {
  background: #b07e22;
  border-color: #b07e22;
  box-shadow: 0 6px 28px rgba(200,146,42,.5);
  transform: translateY(-2px);
}

/* Ghost — transparent with white border */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* Outline — transparent with green border */
.btn--outline {
  background: transparent;
  color: var(--purple-mid);
  border-color: var(--purple-mid);
}
.btn--outline:hover {
  background: var(--purple-mid);
  color: var(--white);
}

.btn--large { padding: 1rem 2.4rem; font-size: 0.98rem; }
.btn--full  { width: 100%; }


/* ================================================================
   5. Navigation
================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  /* Permanent dark-to-transparent gradient keeps nav readable over any hero */
  background: linear-gradient(to bottom, rgba(10,25,18,.88) 0%, rgba(10,25,18,.45) 65%, transparent 100%);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}
/* Fully opaque white once the user scrolls */
.site-header.scrolled {
  background: rgba(255,255,255,.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.08);
}
.site-header.scrolled .nav__link         { color: var(--text-mid); }
.site-header.scrolled .nav__link:hover   { background: rgba(45,106,79,.08); color: var(--purple-deep); }
.site-header.scrolled .nav__logo-text strong { color: var(--purple-deep); }
.site-header.scrolled .nav__logo-text span   { color: var(--text-muted); }
.site-header.scrolled .nav__toggle span      { background: var(--dark); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  z-index: 510;   /* stays above overlay */
  position: relative;
}

/* ── Logo image (replace logo-placeholder.png with your file) ── */
.nav__logo-img {
  display: block;
  height: 48px;          /* adjust height to fit your logo */
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* White filter makes a dark logo visible on the dark hero */
  /* filter: brightness(0) invert(1);
  transition: filter var(--t), opacity var(--t); */
}
/* On scrolled (white bg) — show logo in its natural colours */
.site-header.scrolled .nav__logo-img {
  filter: none;
}
.nav__logo:hover .nav__logo-img { opacity: 0.85; }

/* Fallback (shown when image fails to load) */
.nav__logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo-emblem {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200,146,42,.4);
  transition: background var(--t);
}
.nav__logo-emblem.small { width: 34px; height: 34px; font-size: 1rem; }
.nav__logo:hover .nav__logo-emblem { background: #b07e22; }

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav__logo-text strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
}
.nav__logo-text span {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ── Desktop nav links (visible row) ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  /* mobile overlay state is fully handled inside the @media block */
}
.nav__link {
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.nav__link:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  margin-left: 0.4rem;
  box-shadow: 0 3px 12px rgba(200,146,42,.4);
}
.nav__link--cta:hover { background: #b07e22 !important; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 34px; height: 26px;
  background: none; border: none;
  cursor: pointer;
  z-index: 600;          /* must sit above the mobile overlay */
  position: relative;
  padding: 2px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block; width: 100%; height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--t);
  transform-origin: center;
}
/* Dark bars when header is scrolled (white bg) */
.site-header.scrolled .nav__toggle span { background: var(--dark); }
/* Animated X when open */
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
/* Keep bars white when menu overlay is open (dark bg) */
.nav__toggle.open span { background: var(--white) !important; }


/* ================================================================
   6. Hero
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--sp-2xl)) var(--sp-xl) 120px;
}

/* ── Video background ── */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 0.85; /* slight transparency to blend with overlays */
}

/* Layered deep green/earth gradient */
.hero__bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(26, 15, 46, 0.7) 0%, transparent 65%),
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(42, 20, 64, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 90%, rgba(13, 5, 26, 0.8) 0%, transparent 70%),
    linear-gradient(170deg, rgba(22, 8, 43, 0.85) 0%, rgba(42, 20, 64, 0.8) 35%, rgba(61, 26, 106, 0.75) 65%, rgba(15, 5, 32, 0.9) 100%);
}

/* Subtle cross pattern overlay */
.hero__cross-pattern {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(155,89,208,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,89,208,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__vignette {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 100%);
}

/* Floating glow orbs */
.hero__orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 2;
}
.hero__orb--a {
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(155,89,208,.1) 0%, transparent 65%);
  animation: floatOrb 14s ease-in-out infinite;
}
.hero__orb--b {
  width: 500px; height: 500px;
  bottom: 60px; left: -100px;
  background: radial-gradient(circle, rgba(142,92,200,.12) 0%, transparent 65%);
  animation: floatOrb 18s ease-in-out infinite reverse;
}
.hero__orb--c {
  width: 300px; height: 300px;
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  animation: floatOrb 22s ease-in-out infinite;
}
@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.05); }
}

/* Hero content */
.hero__content {
  position: relative; z-index: 10;
  max-width: 860px; margin: 0 auto;
  animation: fadeUp .9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Faith badge */
.hero__faith-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(200,146,42,.4);
  background: rgba(200,146,42,.1);
  border-radius: var(--radius-pill);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}

.hero__headline {
  color: var(--white);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--sp-lg);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__headline em {
  color: var(--accent-light);
  font-style: italic;
}

.hero__subtext {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.78);
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.hero__verse {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,.55);
  margin-top: var(--sp-md);
  border-left: 2px solid rgba(200,146,42,.4);
  padding-left: var(--sp-md);
  text-align: left;
  max-width: 540px;
}
.hero__verse cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: rgba(200,146,42,.7);
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
}

/* Stats ribbon */
.hero__ribbon {
  position: absolute;
  bottom: 0; left: 0; right: 0; z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,30,20,.7);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(200,146,42,.18);
  padding: var(--sp-md) var(--sp-xl);
  animation: fadeUp .9s 0.4s ease both;
}
.hero__ribbon-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 var(--sp-xl);
  text-align: center;
}
.hero__ribbon-stat i { color: var(--accent-light); font-size: 1.2rem; }
.hero__ribbon-stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__ribbon-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.5);
}
.ribbon-sep {
  width: 1px; height: 36px;
  background: rgba(200,146,42,.2);
  flex-shrink: 0;
}


/* ================================================================
   7. About Section
================================================================ */
.about {
  padding: var(--sp-4xl) 0;
  background: var(--offwhite);
}
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-3xl);
  align-items: center;
}

/* Visual / cross graphic column */
.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Decorative cross */
.cross-graphic {
  position: relative;
  width: 220px; height: 260px;
}
.cross-graphic__v {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 48px; height: 100%;
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--purple-deep) 100%);
  border-radius: 6px;
  opacity: .15;
}
.cross-graphic__h {
  position: absolute;
  top: 30%; transform: translateY(-50%);
  width: 100%; height: 48px;
  background: linear-gradient(90deg, var(--purple-light) 0%, var(--purple-deep) 100%);
  border-radius: 6px;
  opacity: .15;
}
.cross-graphic__glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,42,.18) 0%, transparent 70%);
}

/* Quote card floating over cross */
.about__quote-card {
  position: absolute;
  bottom: 0; right: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-lg);
  /* border-left: 4px solid var(--accent); */
}
.about__quote-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--purple-deep);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.about__quote-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* About copy */
.about__copy h2 { margin-bottom: var(--sp-md); }
.about__lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.about__copy p { color: var(--text-muted); margin-bottom: var(--sp-xl); }

/* Pillars row */
.about__pillars {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}
.pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--purple-pale);
  border: 1px solid rgba(45,106,79,.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-deep);
  transition: background var(--t), box-shadow var(--t);
}
.pillar i { color: var(--purple-mid); font-size: 1rem; }
.pillar:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}


/* ================================================================
   8. Programs Grid (6 cards)
================================================================ */
.programs {
  padding: var(--sp-4xl) 0;
  background: var(--cream);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

/* Program card */
.prog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--sp-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

/* Top accent bar on hover */
/* .prog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-mid), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
} */
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prog-card:hover::before { transform: scaleX(1); }

/* Ghost number */
.prog-card__num {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-lg);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(45,106,79,.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Icon */
.prog-card__icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--purple-pale);
  border-radius: var(--radius);
  color: var(--purple-mid);
  font-size: 1.6rem;
  margin-bottom: var(--sp-md);
  transition: background var(--t), color var(--t);
}
.prog-card:hover .prog-card__icon-wrap {
  background: var(--purple-mid);
  color: var(--white);
}

.prog-card__title {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: var(--sp-sm);
}
.prog-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-md);
}

/* Objectives list */
.prog-card__objectives {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--sp-lg);
  flex: 1;
}
.prog-card__objectives li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.prog-card__objectives i {
  color: var(--purple-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.prog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--t), color var(--t);
}
.prog-card__link:hover { gap: 0.6rem; color: #b07e22; }


/* ================================================================
   9. Categories Visual Grid
================================================================ */
.categories {
  padding: var(--sp-4xl) 0;
  background: var(--offwhite);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.cat-tile {
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.cat-tile__overlay {
  position: absolute; inset: 0;
  transition: opacity var(--t);
}
.cat-tile:hover .cat-tile__overlay { opacity: 0.7; }

/* Tile backgrounds — rich, earthy, faith-connected */
.cat-tile--1 { background: linear-gradient(145deg, #1b3a2d, #2d6a4f); }
.cat-tile--2 { background: linear-gradient(145deg, #4a3b1a, #8a6b30); }
.cat-tile--3 { background: linear-gradient(145deg, #1a2b3a, #2d5a7a); }
.cat-tile--4 { background: linear-gradient(145deg, #3a1a1a, #7a3030); }
.cat-tile--5 { background: linear-gradient(145deg, #2a1a3a, #5a3080); }
.cat-tile--6 { background: linear-gradient(145deg, #1a3030, #2d6060); }

.cat-tile--1 .cat-tile__overlay { background: linear-gradient(to top, rgba(11,30,20,.85), transparent 60%); }
.cat-tile--2 .cat-tile__overlay { background: linear-gradient(to top, rgba(40,25,5,.85), transparent 60%); }
.cat-tile--3 .cat-tile__overlay { background: linear-gradient(to top, rgba(5,18,30,.85), transparent 60%); }
.cat-tile--4 .cat-tile__overlay { background: linear-gradient(to top, rgba(30,5,5,.85), transparent 60%); }
.cat-tile--5 .cat-tile__overlay { background: linear-gradient(to top, rgba(18,5,30,.85), transparent 60%); }
.cat-tile--6 .cat-tile__overlay { background: linear-gradient(to top, rgba(5,20,20,.85), transparent 60%); }

.cat-tile__body {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--sp-lg);
  transform: translateY(6px);
  transition: transform var(--t);
}
.cat-tile:hover .cat-tile__body { transform: translateY(0); }
.cat-tile__body i { font-size: 2rem; opacity: .8; margin-bottom: 0.5rem; }
.cat-tile__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.25rem;
}
.cat-tile__body span {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}


/* ================================================================
   10. Impact / Trust
================================================================ */
.impact {
  position: relative;
  padding: var(--sp-4xl) 0;
  overflow: hidden;
}
.impact__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #16082b 0%, #2a1440 40%, #3d1a6a 75%, #0f0520 100%);
}
.impact__inner { position: relative; z-index: 1; }

/* 4-column impact cards */
.impact__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}
.impact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  text-align: center;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.impact-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.impact-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(200,146,42,.18);
  color: var(--accent-light);
  font-size: 1.5rem;
  margin: 0 auto var(--sp-md);
}
.impact-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--sp-sm);
}
.impact-card p { font-size: 0.88rem; color: rgba(255,255,255,.6); line-height: 1.65; }

/* Scripture banner */
.impact__verse-band {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  background: rgba(200,146,42,.1);
  border: 1px solid rgba(200,146,42,.22);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  max-width: 700px;
  margin: 0 auto;
}
.impact__verse-band i { color: var(--accent-light); font-size: 2rem; flex-shrink: 0; }
.impact__verse-band blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}
.impact__verse-band cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent-light);
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
}


/* ================================================================
   11. Donate & Get Involved
================================================================ */
.donate {
  padding: var(--sp-4xl) 0;
  background: var(--cream);
}
.donate__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

/* Give panel */
.donate__give h2   { margin: var(--sp-sm) 0 var(--sp-md); }
.donate__give > p  { color: var(--text-muted); margin-bottom: var(--sp-lg); font-size: 0.95rem; }

/* Amount picker */
.donate__amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.amount-btn {
  padding: 0.65rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 800;
  background: var(--offwhite);
  color: var(--text-mid);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t);
}
.amount-btn:hover {
  border-color: var(--purple-mid);
  color: var(--purple-mid);
}
.amount-btn--active {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45,106,79,.3);
}

/* Program select */
.donate__program-select {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--sp-md);
}
.donate__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.donate__select {
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a4a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.donate__select:focus { border-color: var(--purple-mid); }

/* Frequency */
.donate__freq {
  display: flex;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}
.freq-opt {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 700; color: var(--text-mid);
  cursor: pointer;
}
.freq-opt input[type="radio"] { accent-color: var(--purple-mid); width: 16px; height: 16px; cursor: pointer; }
.freq-opt:has(input:checked) { color: var(--purple-deep); }

.donate__assurance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-md);
}
.donate__assurance i { color: var(--purple-light); }

/* Involve panel */
.donate__involve {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
}
.donate__involve .eyebrow { display: block; margin-bottom: var(--sp-xs); }
.donate__involve h3 { margin-bottom: var(--sp-lg); font-size: 1.5rem; }

.involve-items { display: flex; flex-direction: column; gap: var(--sp-lg); }
.involve-item {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--cream);
  transition: box-shadow var(--t), transform var(--t);
}
.involve-item:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.involve-item__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--purple-pale);
  color: var(--purple-mid);
  font-size: 1.2rem;
}
.involve-item strong { display: block; font-size: 0.92rem; color: var(--dark); margin-bottom: 0.2rem; }
.involve-item p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }


/* ================================================================
   12. Contact Section
================================================================ */
.contact {
  padding: var(--sp-4xl) 0;
  background: var(--offwhite);
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.contact__info h2 { margin: var(--sp-sm) 0 var(--sp-md); }
.contact__info > p { color: var(--text-muted); margin-bottom: var(--sp-xl); font-size: 0.95rem; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.contact__detail i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.contact__detail a { color: var(--purple-mid); font-weight: 600; }
.contact__detail a:hover { text-decoration: underline; }

.contact__social { display: flex; gap: var(--sp-sm); }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 1.1rem;
  transition: all var(--t);
}
.social-icon:hover {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Contact form */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: var(--sp-md); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color var(--t);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple-mid); background: var(--white); }
.form-note { font-size: 0.88rem; margin-top: var(--sp-sm); min-height: 1.4em; }


/* ================================================================
   13. Footer
================================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); }

.footer__top { padding: var(--sp-3xl) 0; }
.footer__top-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: var(--sp-3xl);
  align-items: start;
}

/* Brand */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--sp-md);
}
/* Footer logo image — white version on dark background */
.footer__logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
  opacity: 0.85;
}
.footer__logo .nav__logo-text strong { color: var(--white); }
.footer__logo .nav__logo-text span   { color: rgba(255,255,255,.5); }

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
  max-width: 300px;
}
.footer__verse {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: rgba(200,146,42,.08);
  border-left: 3px solid rgba(200,146,42,.3);
  padding: var(--sp-md);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: var(--sp-lg);
}
.footer__verse i { color: rgba(200,146,42,.5); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.footer__verse em { font-size: 0.82rem; color: rgba(255,255,255,.45); line-height: 1.6; }

.footer__social { display: flex; gap: var(--sp-sm); }

/* Nav columns */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}
.footer__col-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--sp-md);
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--white); }

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--sp-lg) 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}
.footer__bottom-inner p { font-size: 0.82rem; color: rgba(255,255,255,.3); }
.footer__legal { display: flex; gap: var(--sp-lg); }
.footer__legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,.35);
  transition: color var(--t);
}
.footer__legal a:hover { color: rgba(255,255,255,.7); }


/* ================================================================
   14. Animations & Scroll Reveal
================================================================ */
.prog-card, .impact-card, .involve-item, .cat-tile, .pillar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
/* Stagger delays */
.prog-card:nth-child(1), .impact-card:nth-child(1), .cat-tile:nth-child(1) { transition-delay: 0s; }
.prog-card:nth-child(2), .impact-card:nth-child(2), .cat-tile:nth-child(2) { transition-delay: 0.08s; }
.prog-card:nth-child(3), .impact-card:nth-child(3), .cat-tile:nth-child(3) { transition-delay: 0.16s; }
.prog-card:nth-child(4), .impact-card:nth-child(4), .cat-tile:nth-child(4) { transition-delay: 0.24s; }
.prog-card:nth-child(5),                             .cat-tile:nth-child(5) { transition-delay: 0.32s; }
.prog-card:nth-child(6),                             .cat-tile:nth-child(6) { transition-delay: 0.40s; }
.involve-item:nth-child(1) { transition-delay: 0s; }
.involve-item:nth-child(2) { transition-delay: 0.1s; }
.involve-item:nth-child(3) { transition-delay: 0.2s; }
.involve-item:nth-child(4) { transition-delay: 0.3s; }
.pillar:nth-child(1) { transition-delay: 0s; }
.pillar:nth-child(2) { transition-delay: 0.07s; }
.pillar:nth-child(3) { transition-delay: 0.14s; }
.pillar:nth-child(4) { transition-delay: 0.21s; }

.prog-card.revealed, .impact-card.revealed, .involve-item.revealed,
.cat-tile.revealed, .pillar.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   15. Responsive
================================================================ */

/* Tablet ≤1024px */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-lg); }

  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .impact__cards  { grid-template-columns: repeat(2, 1fr); }
  .cat-grid       { grid-template-columns: repeat(2, 1fr); }

  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }
  .about__visual  { min-height: 260px; }
  .about__quote-card { position: static; width: 100%; margin-top: var(--sp-md); }

  .donate__layout  { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; }

  .footer__top-inner { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  :root { --nav-h: 66px; }

  /* ── Show the hamburger button ── */
  .nav__toggle {
    display: flex !important;
  }

  /* ── Mobile overlay: ALWAYS rendered, hidden via opacity+visibility ──
     Never use display:none here — it prevents CSS transitions.            */
  .nav__links {
    /* override desktop flex row */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;

    /* layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;

    /* appearance */
    background: rgba(11, 28, 21, 0.98) !important;
    z-index: 550 !important;

    /* HIDDEN STATE — opacity+visibility allows CSS transitions */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    /* Smooth fade */
    transition: opacity 0.3s ease, visibility 0.3s ease !important;

    /* border: red solid 2px; */
  }

  /* OPEN STATE — JS adds .open class */
  .nav__links.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
  }

  /* Mobile link styling */
  .nav__link {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    width: 260px !important;
    text-align: center !important;
    display: block !important;
    border: 1px solid transparent !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
  }
  .nav__link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }
  .nav__link--cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: 9999px !important;
    margin-top: 0.5rem !important;
    border-color: var(--accent) !important;
  }
  .nav__link--cta:hover {
    background: #b07e22 !important;
  }

  /* Hero adjustments */
  .hero { padding: calc(var(--nav-h) + 2rem) 1rem 140px; }
  .hero__ribbon {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: space-around;
  }
  .hero__ribbon-stat { padding: 0; }
  .ribbon-sep { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; max-width: 320px; }

  /* Sections */
  .programs__grid { grid-template-columns: 1fr; }
  .cat-grid       { grid-template-columns: 1fr 1fr; }
  .impact__cards  { grid-template-columns: 1fr; }
  .donate__amounts { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }
}

/* Small phones ≤480px */
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { height: 160px; }
  .footer__nav { grid-template-columns: 1fr; }
  .about__pillars { gap: var(--sp-sm); }
  .donate__amounts { grid-template-columns: repeat(2, 1fr); }
  .hero__verse { font-size: 0.9rem; }
  .impact__verse-band { flex-direction: column; }
}


