/* ============================================================
   OjayAjaifia Foundation — style.css
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop)
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --navy:        #162166;
  --navy-dark:   #0d1540;
  --red:         #d42b2b;
  --red-hover:   #b02020;
  --white:       #ffffff;
  --off-white:   #f5f7ff;
  --gray-light:  #e8eaf0;
  --gray-text:   #555e7a;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --container:   1200px;
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s ease;
  --shadow-sm:   0 4px 20px rgba(22, 33, 102, 0.08);
  --shadow-md:   0 8px 40px rgba(22, 33, 102, 0.12);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::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(--navy); line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--gray-text); }

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.text-center { text-align: center; }

/* ── 5. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.transparent { background: transparent; }
.navbar.scrolled,
.navbar.solid {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 52px; width: auto; }
/* Logo variant swap: colored logo on white nav, white logo on dark/transparent nav */
.nav-logo .logo-color   { display: block; }
.nav-logo .logo-white   { display: none; }
.nav-logo .logo-fallback { display: none; }
.navbar.transparent .nav-logo .logo-color { display: none; }
.navbar.transparent .nav-logo .logo-white { display: block; }
.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.25;
}
.nav-logo .logo-text span {
  color: var(--red);
  font-size: 0.62rem;
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.navbar.transparent .nav-logo .logo-text { color: var(--white); }
.navbar.transparent .nav-logo .logo-text span { color: rgba(255,255,255,0.7); }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.navbar.transparent .nav-links a { color: rgba(255,255,255,0.9); }
.navbar.transparent .nav-links a:hover,
.navbar.transparent .nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition) !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-hover) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  transform-origin: center;
}
.navbar.transparent .hamburger span { background: var(--white); }

/* Scrolled-state overrides — restore solid-nav colors when transparent nav has scrolled */
.navbar.scrolled .nav-logo .logo-color { display: block; }
.navbar.scrolled .nav-logo .logo-white { display: none; }
.navbar.scrolled .nav-logo .logo-text { color: var(--navy); }
.navbar.scrolled .nav-logo .logo-text span { color: var(--red); }
.navbar.scrolled .nav-links a { color: var(--navy); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--red); }
.navbar.scrolled .hamburger span { background: var(--navy); }

/* ── DROPDOWN MENU ────────────────────────────────────────── */
.has-dropdown { position: relative; }
.dropdown-arrow {
  font-style: normal;
  font-size: 0.65em;
  line-height: 1;
  margin-left: 0.15rem;
  transition: transform 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}
.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 175px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 0.4rem 0;
  z-index: 200;
  list-style: none;
  border-top: 3px solid var(--red);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; }
.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--navy) !important;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown li a:hover { color: var(--red) !important; background: var(--off-white); }
.nav-dropdown li a.active { color: var(--red) !important; }
.nav-dropdown li a::after { display: none !important; }

/* Mobile: show dropdown items inline inside the hamburger overlay */
body.nav-open .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  background: transparent;
  border-top: none;
  min-width: auto;
  transform: none;
  padding: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
body.nav-open .nav-dropdown li a {
  font-size: 0.95rem;
  color: var(--gray-text) !important;
  padding: 0.25rem 0;
  background: transparent !important;
}
body.nav-open .nav-dropdown li a:hover,
body.nav-open .nav-dropdown li a.active { color: var(--red) !important; }

body.nav-open { overflow: hidden; }
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--navy); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--navy); }
body.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  /* Frosted glass — blurs whatever is behind the menu */
  background: rgba(230, 237, 255, 0.91);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  z-index: 999;
}
body.nav-open .nav-links > li {
  width: min(300px, 82vw);
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
body.nav-open .nav-links > li:hover { background: rgba(22, 33, 102, 0.06); }
/* !important overrides the .navbar.transparent white-text rule */
body.nav-open .nav-links a { color: var(--navy) !important; font-size: 1.1rem; font-weight: 700; }
body.nav-open .nav-links a:hover,
body.nav-open .nav-links a.active { color: var(--red) !important; }
/* Keep the CTA button white text on red even inside the open menu */
body.nav-open .nav-links a.nav-cta { color: var(--white) !important; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ── 7. HOMEPAGE HERO ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  /* REPLACE: Use a real photo of Nigerian children with disabilities.
     Save the file as images/hero-bg.jpg and update this URL. */
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
}
/* Mobile: use a portrait-cropped hero so the photo fills the screen properly */
@media (max-width: 767px) {
  .hero {
    background-image: url('../images/hero-bg-mobile.jpg');
    background-position: center center;
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,21,64,0.78) 0%, rgba(13,21,64,0.65) 55%, rgba(13,21,64,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 1.5rem 4rem;
  max-width: 920px;
  margin: 0 auto;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 640px; margin: 0 auto 2.25rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  position: relative;
  z-index: 1;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-stat {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  display: block;
}
.hero-stat .stat-num em { color: var(--red); font-style: normal; }
.hero-stat .stat-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  line-height: 1.4;
  display: block;
}

/* ── 8. INNER PAGE HERO ───────────────────────────────────── */
.page-hero {
  padding: 9rem 1.5rem 5rem;
  position: relative;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,21,64,0.72);
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* About page hero — full image, no cropping */
.about-page-hero {
  padding: 0;
  display: grid;
  background-image: none;
  background-color: var(--navy-dark);
  overflow: visible;
}
.about-page-hero::before { display: none; }
.about-hero-img {
  width: 100%;
  height: auto;
  display: block;
  grid-area: 1 / 1;
}
.about-page-hero .page-hero-content {
  grid-area: 1 / 1;
  align-self: end;
  max-width: 100%;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(to top, rgba(13,21,64,0.88) 0%, rgba(13,21,64,0.5) 50%, transparent 100%);
  text-align: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }

/* ── 9. OUR MISSION (Homepage) ────────────────────────────── */
.mission { padding: 5rem 1.5rem; }
.mission-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.mission-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  /* REPLACE: photo of children in an education or therapy session.
     Save as images/mission-photo.jpg */
}
.mission-text h2 { margin-bottom: 1rem; }
.mission-text > p { margin-bottom: 1.25rem; }
.pull-quote {
  border-left: 4px solid var(--red);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.5;
}
.stat-rows { margin: 1.25rem 0 1.75rem; }
.stat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-text);
}
.stat-row::before { content: '✓'; color: var(--red); font-weight: 800; flex-shrink: 0; }

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

/* ── 10. STATS SECTION ────────────────────────────────────── */
.stats-section {
  background: var(--navy);
  padding: 5rem 1.5rem;
}
.stats-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.stats-intro h2 { color: var(--white); margin-bottom: 0.75rem; }
.stats-intro p { color: rgba(255,255,255,0.7); }

.stats-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto 3.5rem;
  text-align: center;
}
.stat-block .big-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-block .big-num em { color: var(--red); font-style: normal; }
.stat-block .stat-desc { color: rgba(255,255,255,0.68); font-size: 0.88rem; margin-top: 0.5rem; line-height: 1.5; }
.stat-block .stat-src { color: rgba(255,255,255,0.38); font-size: 0.7rem; margin-top: 0.2rem; }

.dyk-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.dyk-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.dyk-stat {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 1rem;
}
.dyk-box > p { color: rgba(255,255,255,0.62); font-size: 0.9rem; margin-bottom: 1.75rem; }

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

/* ── 11. THREE PILLARS ────────────────────────────────────── */
.pillars { padding: 5rem 1.5rem; background: var(--off-white); }
.pillars-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.pillars-head p { margin-top: 0.75rem; }
.pillars-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg { width: 38px; height: 38px; fill: none; stroke: var(--navy); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.pillar-card p { font-size: 0.92rem; }

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

/* ── 12. MEET OUR FOUNDER ─────────────────────────────────── */
.founder { padding: 5rem 1.5rem; }
.founder-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.founder-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: top;
  aspect-ratio: 3/4;
  max-height: 540px;
  /* REPLACE: Professional photo of Orjiugo Gwueke Ajaifia.
     Save as images/founder.jpg */
}
.founder-text h2 { margin-bottom: 0.3rem; }
.founder-title {
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1.5rem;
}
.founder-text p { margin-bottom: 1rem; }

@media (min-width: 768px) { .founder-grid { grid-template-columns: 5fr 7fr; } }

/* ── 13. PROGRAMS MEDIA SECTION ──────────────────────────── */
.programs-media {
  background: var(--navy-dark);
  padding: 5rem 1.5rem;
}
.programs-media-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}
.programs-media-head h2 { color: var(--white); margin-bottom: 0.75rem; }
.programs-media-head p { color: rgba(255,255,255,0.68); }

.gallery-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; }
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
}
.gallery-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-card-img img { transform: scale(1.06); }

.gallery-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  z-index: 2;
}
.gallery-card-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(13,21,64,0.95) 0%, rgba(13,21,64,0.6) 60%, transparent 100%);
  transform: translateY(40%);
  transition: transform 0.35s ease;
  z-index: 2;
}
.gallery-card:hover .gallery-card-caption { transform: translateY(0); }
.gallery-card-caption h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.gallery-card-caption p {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  line-height: 1.5;
}
.programs-media-cta {
  text-align: center;
  margin-top: 2.75rem;
}
.programs-media-placeholder {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
  font-weight: 600;
}
.programs-media-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* Mobile: caption sits as a static block under the image so the photo isn't covered */
@media (max-width: 767px) {
  .gallery-card {
    background: var(--navy);
  }
  .gallery-card-caption {
    position: static;
    transform: none;
    background: transparent;
    padding: 1rem 1.25rem 1.25rem;
  }
  .gallery-card-caption h4 {
    font-size: 1rem;
  }
  .gallery-card-caption p {
    font-size: 0.85rem;
  }
}

/* ── 14. JOIN US CTA STRIP ────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-strip p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 2.25rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── 14. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 4.5rem 1.5rem 0;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-logo img { height: 52px; width: auto; }
.footer-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
}
.footer-logo .logo-text span {
  color: rgba(255,255,255,0.6);
  font-size: 0.62rem;
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
  max-width: 240px;
  line-height: 1.6;
}
.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background var(--transition), transform var(--transition);
}
.social-links a:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.social-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }

.newsletter-wrap { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.75rem; }
.newsletter-wrap h4 { border-bottom: none; padding-bottom: 0; margin-bottom: 0.5rem; }
.newsletter-wrap > p { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 100%;
  min-width: 0;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.88rem;
}
.newsletter-form button { flex: 1 1 100%; }
.newsletter-form .nl-hp { display: none !important; }
.newsletter-status { font-size: 0.8rem; margin-top: 0.6rem; line-height: 1.5; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.32); }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,0.38); }
.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--red-hover); }
.newsletter-consent { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin-top: 0.6rem; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 1.5rem;
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.32);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

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

/* ── 15. ABOUT PAGE ───────────────────────────────────────── */
.about-story { padding: 5rem 1.5rem; }
.about-story-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.about-story-grid .story-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  /* REPLACE: group photo of the OFCD team or volunteers in the field */
}
.story-text h2 { margin-bottom: 1rem; }
.story-text p { margin-bottom: 1rem; }

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

.about-mission {
  background: var(--navy);
  padding: 5rem 1.5rem;
}
.about-mission-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.about-mission h2 { color: var(--white); margin-bottom: 1rem; }
.about-mission p { color: rgba(255,255,255,0.72); margin-bottom: 1rem; }
.about-mission .stat-row { color: rgba(255,255,255,0.68); }
.about-mission .stat-row::before { color: var(--red); }
.about-mission-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.about-mission-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* REPLACE: photo of the foundation working with children or community */
}

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

.milestones { padding: 5rem 1.5rem; background: var(--off-white); }
.milestones-head { text-align: center; max-width: 580px; margin: 0 auto 3rem; }
.milestones-head p { margin-top: 0.75rem; }
.milestones-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.milestone-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.milestone-card:hover { transform: translateY(-3px); }
.milestone-year {
  display: inline-block;
  background: var(--off-white);
  color: var(--red);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.milestone-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.milestone-card p { font-size: 0.88rem; }

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

/* ── 16. PROGRAMS PAGE ────────────────────────────────────── */
.program-block { padding: 5rem 1.5rem; }
.program-block:nth-child(odd)  { background: var(--white); }
.program-block:nth-child(even) { background: var(--off-white); }

.program-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.program-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.prog-num {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: -0.75rem;
  user-select: none;
}
.program-grid h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.3rem; }
.prog-tagline {
  color: var(--red);
  font-weight: 700;
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  display: block;
}
.program-grid p { margin-bottom: 0.85rem; }

@media (min-width: 768px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .program-block:nth-child(even) .program-grid { direction: rtl; }
  .program-block:nth-child(even) .program-grid > * { direction: ltr; }
}

/* ── 17. DONATE PAGE ──────────────────────────────────────── */
.donate-hero {
  position: relative;
  padding: 9rem 1.5rem 5rem;
  text-align: center;
  color: var(--white);
  background-color: var(--navy-dark);
  /* REPLACE: emotional background photo. Save as images/donate-bg.jpg */
  background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.donate-hero::before { content: ''; position: absolute; inset: 0; background: rgba(13,21,64,0.82); }
.donate-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.donate-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.donate-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

.donate-online { padding: 5rem 1.5rem; }
.donate-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}
.donate-copy h2 { margin-bottom: 1rem; }
.donate-copy p { margin-bottom: 1rem; }
.impact-list { margin: 1.5rem 0; }
.impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--gray-text);
  font-size: 0.95rem;
}
.impact-list li .chk { color: var(--red); font-weight: 800; flex-shrink: 0; }

.donate-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.donate-form-wrap h3 { margin-bottom: 0.4rem; }
.donate-form-wrap > p { font-size: 0.88rem; margin-bottom: 1.75rem; }

.amount-label { font-weight: 700; font-size: 0.85rem; color: var(--navy); display: block; margin-bottom: 0.6rem; }
.amount-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.amount-pill {
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--gray-light);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition);
  appearance: none;
}
.amount-pill.active,
.amount-pill:hover { border-color: var(--red); background: var(--red); color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }

.trust-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.78rem; color: var(--gray-text); }
.trust-note svg { width: 14px; height: 14px; flex-shrink: 0; fill: var(--gray-text); }

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

.bank-transfer { background: var(--navy-dark); padding: 5rem 1.5rem; }
.bank-head { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.bank-head h2 { color: var(--white); margin-bottom: 0.75rem; }
.bank-head p { color: rgba(255,255,255,0.65); }
.bank-grid {
  display: grid;
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.bank-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition);
}
.bank-card:hover { background: rgba(255,255,255,0.09); }
.currency-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.bank-card .acct-name { font-weight: 700; color: var(--white); font-size: 0.82rem; margin-bottom: 0.35rem; }
.bank-card .acct-num { font-family: monospace; font-size: 1.4rem; color: var(--white); letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.bank-card .bank-name { color: rgba(255,255,255,0.52); font-size: 0.82rem; }
.bank-card .bank-note { color: rgba(255,255,255,0.38); font-size: 0.75rem; font-style: italic; margin-top: 0.4rem; }

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

/* ── 18. BLOG PAGE ────────────────────────────────────────── */
.blog-layout { padding: 4rem 1.5rem; }
.blog-inner {
  display: grid;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
}
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-thumb { aspect-ratio: 16/7; overflow: hidden; background: var(--gray-light); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 1.75rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--gray-text); margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-meta .cat { color: var(--red); font-weight: 700; }
.blog-body h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.blog-body h3 a { color: var(--navy); transition: color var(--transition); }
.blog-body h3 a:hover { color: var(--red); }
.blog-body > p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.read-more { color: var(--red); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.read-more:hover { text-decoration: underline; }

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--gray-light);
}
.sidebar-widget h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gray-light);
}
.sidebar-post { display: flex; gap: 0.75rem; margin-bottom: 1rem; align-items: flex-start; }
.sidebar-post img { width: 60px; height: 60px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.sidebar-post-text h5 { font-size: 0.83rem; color: var(--navy); line-height: 1.35; margin-bottom: 0.2rem; }
.sidebar-post-text h5 a { color: inherit; transition: color var(--transition); }
.sidebar-post-text h5 a:hover { color: var(--red); }
.sidebar-post-text span { font-size: 0.72rem; color: var(--gray-text); }

.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.pagination a.active,
.pagination a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

@media (min-width: 1024px) { .blog-inner { grid-template-columns: 2fr 1fr; } }

/* ── 19. MEDIA PAGE ───────────────────────────────────────── */
.media-section { padding: 4.5rem 1.5rem; }
.media-sec-head { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.media-sec-head h2 { margin-bottom: 0.5rem; }
.video-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto 5rem;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-dark);
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  color: var(--white);
}
.play-btn {
  width: 72px; height: 72px;
  background: rgba(212,43,43,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), background var(--transition);
}
.play-btn:hover { transform: scale(1.1); background: var(--red); }
.play-btn svg { width: 26px; height: 26px; fill: var(--white); margin-left: 4px; }
.video-desc { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.video-replace-note { font-size: 0.72rem; color: rgba(255,255,255,0.38); font-style: italic; margin-top: 0.3rem; }

.photos-section { max-width: var(--container); margin: 0 auto; }
.photos-section h2 { margin-bottom: 0.5rem; }
.photos-section > p { margin-bottom: 2.5rem; }
.cs-box {
  background: var(--off-white);
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  text-align: center;
}
.cs-icon {
  width: 80px; height: 80px;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}
.cs-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cs-box h3 { margin-bottom: 0.75rem; }
.cs-box > p { max-width: 420px; margin: 0 auto 1.75rem; font-size: 0.92rem; }

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

/* ── 20. VOLUNTEER / CONTACT PAGE ────────────────────────── */
.contact-section { padding: 5rem 1.5rem; }
.contact-grid {
  display: grid;
  gap: 4rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.contact-info > h2 { margin-bottom: 0.5rem; }
.contact-info > p { margin-bottom: 2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.contact-icon {
  width: 46px; height: 46px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gray-light);
}
.contact-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-text h5 { font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.contact-item-text p, .contact-item-text a { color: var(--gray-text); font-size: 0.95rem; line-height: 1.5; }
.contact-item-text a:hover { color: var(--red); }

.contact-photo { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.contact-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* REPLACE: photo of OFCD volunteers or team in the field — warm, tropical setting.
     Do NOT use city streets or winter scenes. Save as images/volunteer-field.jpg */
}

.volunteer-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.volunteer-form-wrap h3 { margin-bottom: 0.35rem; }
.volunteer-form-wrap > p { font-size: 0.88rem; margin-bottom: 1.75rem; }
.char-counter { font-size: 0.72rem; color: var(--gray-text); text-align: right; margin-top: 0.3rem; }

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

/* ── 22. LEGAL PAGES (terms.html, privacy.html) ───────────── */
.legal-section { padding: 5rem 0 6rem; }
.legal-section h1 { margin-bottom: 0.5rem; }
.legal-meta { font-size: 0.82rem; color: var(--gray-text); margin-bottom: 3rem; }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal-body p { margin-bottom: 1rem; font-size: 0.95rem; }
.legal-body ul { list-style: disc; padding-left: 1.75rem; margin-bottom: 1rem; }
.legal-body ul li { color: var(--gray-text); font-size: 0.95rem; margin-bottom: 0.4rem; }
.legal-body a { color: var(--red); text-decoration: underline; }
.legal-body a:hover { color: var(--red-hover); }

/* ── 21. SMALL SCREEN OVERRIDES ───────────────────────────── */
@media (max-width: 479px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-stat:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .donate-form-wrap,
  .volunteer-form-wrap { padding: 1.75rem 1.25rem; }
  .cta-btns { flex-direction: column; align-items: center; }
}
