/* ====================================================================
   CENTER FOR LIVELIHOOD & DEVELOPMENT (CLD KENYA)
   Official Organization Design System & Stylesheet
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --primary-color: #0f5132;       /* Kenyan Deep Forest Green */
  --primary-light: #15803d;       /* Emerald / Foliage Green */
  --primary-dark: #073822;
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  
  --accent-gold: #d97706;         /* Kenyan Sunrise Amber / Harvest Gold */
  --accent-gold-light: #f59e0b;
  --accent-gold-50: #fffbeb;

  --accent-blue: #0284c7;         /* Clean Water Blue */
  --accent-blue-50: #f0f9ff;

  --kenya-red: #b91c1c;

  /* Neutrals */
  --text-primary: #0f172a;        /* Deep slate text */
  --text-secondary: #475569;      /* Muted readable body */
  --text-light: #64748b;          /* Light caption */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-py-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background-color: var(--primary-50);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid var(--primary-100);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(21, 128, 61, 0.35);
  color: #fff;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}
.btn-gold:hover {
  background-color: var(--accent-gold-light);
  border-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.35);
  color: #fff;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-dark);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Top Announcement Banner */
.top-bar {
  background-color: #0b1e16;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-bar-item a:hover {
  color: var(--accent-gold-light);
}

.badge-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-peace {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(5, 150, 105, 0.15);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.peace-hero-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Header & Navigation */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.header-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-link img {
  height: 52px;
  width: auto;
}

.brand-logo-emblem {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-accent {
  color: var(--primary-light);
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Footer & Dark Background Brand Styles */
.main-footer .brand-title {
  color: #ffffff;
}
.main-footer .brand-name {
  color: #e2e8f0;
}
.main-footer .brand-tagline {
  color: #94a3b8;
}
.main-footer .brand-logo-emblem circle[fill="#F0FDF4"] {
  fill: #064e3b;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
  border-radius: 2px;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-links a:hover, .drawer-links a.active {
  color: var(--primary-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #072a1a 0%, #0d462c 50%, #0a3320 100%);
  color: #ffffff;
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  color: #fef08a;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title .highlight {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.4);
}

.hero-lead {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.hero-feature-item i {
  color: #34d399;
}

/* Hero Visual Card Stack */
.hero-card-widget {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.hero-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
}

.hero-widget-title {
  color: #ffffff;
  font-size: 1.25rem;
}

.hero-quick-donate {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mpesa-quick-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #008751;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.donation-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.preset-pill:hover, .preset-pill.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.hero-widget-impact-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border-left: 3px solid #fbbf24;
}

/* Stat Banner */
.stats-banner {
  background-color: #ffffff;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 2.25rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  background-color: var(--primary-50);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-item:nth-child(2) .stat-icon {
  background-color: var(--accent-gold-50);
  color: var(--accent-gold);
}

.stat-item:nth-child(3) .stat-icon {
  background-color: var(--accent-blue-50);
  color: var(--accent-blue);
}

.stat-item:nth-child(4) .stat-icon {
  background-color: #fef2f2;
  color: #dc2626;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* About Overview */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-collage {
  position: relative;
}

.about-main-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: -1.75rem;
  right: -1.5rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  max-width: 260px;
}

.about-floating-card .counter {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.about-values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.value-card-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.value-card-mini:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.value-card-mini i {
  font-size: 1.35rem;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.value-card-mini h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.value-card-mini p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Program Pillar Cards */
.pillar-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(21, 128, 61, 0.3);
}

.program-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img-wrap img {
  transform: scale(1.05);
}

.program-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.program-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.program-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
  flex-grow: 1;
}

.program-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-50);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

/* Kenya Focus Map & Areas Section */
.counties-section {
  background-color: #0b2216;
  color: #ffffff;
}

.counties-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.counties-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.county-hub-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}

.county-hub-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fbbf24;
  transform: translateX(4px);
}

.county-hub-card h4 {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.county-hub-card p {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* Impact Stories Carousel / Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.story-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.story-body {
  padding: 1.75rem;
}

.story-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.story-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.85rem 0;
  border-left: 3px solid var(--primary-light);
  padding-left: 0.85rem;
}

.beneficiary-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.beneficiary-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Donation Strip & M-Pesa Interactive Box */
.donation-cta-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-xl);
}

.donation-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.mpesa-quick-box {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.mpesa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.mpesa-logo-text {
  font-weight: 900;
  font-size: 1.25rem;
  color: #008751;
  letter-spacing: -0.5px;
}

.paybill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.paybill-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.paybill-val {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.copy-btn:hover {
  text-decoration: underline;
}

/* Financial Transparency & Trust */
.trust-bar {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.trust-item i {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.85rem;
}

.trust-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Footer */
.main-footer {
  background-color: #081a11;
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: #fbbf24;
  margin-top: 0.25rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-newsletter-input {
  flex-grow: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.88rem;
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 4000;
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notice.success {
  background: #065f46;
  border-left: 5px solid #34d399;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .counties-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta-wrap {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .programs-grid, .stories-grid {
    grid-template-columns: 1fr;
  }
  .donation-cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .counties-pill-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
}
