/* ═══════════════════════════════════════════════
   GIVE FORWARD — MAIN STYLESHEET
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --primary: #1a6b3c;
  --primary-dark: #114d2a;
  --primary-light: #2ecc71;
  --accent: #f0a500;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --bg: #ffffff;
  --bg-light: #f8fdf9;
  --border: #e8f5ee;
  --shadow: 0 4px 24px rgba(26, 107, 60, 0.08);
  --shadow-hover: 0 12px 40px rgba(26, 107, 60, 0.16);
  --radius: 16px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── BASE ── */
* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}
h1,h2,h3,h4,h5 { font-family: var(--font-display); }
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }
.x-small { font-size: 11px; }

/* ── TOPBAR ── */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 6px 0;
}

/* ── NAVBAR ── */
#mainNavbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
  padding: 12px 0;
  transition: all 0.3s;
}
.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
}
.brand-text { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.brand-text strong { color: var(--primary); }
.nav-link { color: #555 !important; font-weight: 500; padding: 8px 12px !important; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: rgba(26,107,60,0.06); }
.cart-nav-btn {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
}
.cart-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-pill {
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 11px;
  padding: 2px 7px;
  font-weight: 700;
}
.cart-btn-mobile { color: var(--text); position: relative; }
.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--primary);
  color: white; font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── BUTTONS ── */
.btn-donate {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(26,107,60,0.25);
}
.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,60,0.35);
  color: white !important;
}
.btn-donate:active { transform: translateY(0); }

/* ── HERO ── */
.hero-section {
  background: linear-gradient(145deg, #0d3b22 0%, #1a6b3c 50%, #114d2a 100%);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex; align-items: center;
}
.min-vh-85 { min-height: 75vh; }
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 40%; background: rgba(255,255,255,0.03); }
.hero-badge {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; font-size: 13px;
  padding: 6px 16px; font-weight: 500;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: white; line-height: 1.15; margin-bottom: 20px;
}
.text-gradient {
  background: linear-gradient(135deg, #2ecc71 0%, #f0a500 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 500px; }
.hero-card-stack { position: relative; width: 340px; height: 360px; }
.hero-float-card {
  position: absolute; background: white; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); min-width: 220px;
}
.card-1 { top: 20px; right: 20px; animation: float 4s ease-in-out infinite; }
.card-2 { bottom: 60px; left: 0; animation: float 4s ease-in-out 1s infinite; }
.hero-impact-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white; border-radius: 20px;
  padding: 20px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: float 5s ease-in-out 0.5s infinite;
}
.hero-illustration {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
}
.hero-heart-icon {
  font-size: 280px; color: rgba(255,255,255,0.04);
}
.donor-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── STATS ── */
.stat-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 2rem; color: var(--primary); }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 13px; font-weight: 500; }

/* ── SECTIONS ── */
.section-badge {
  display: inline-block; background: rgba(26,107,60,0.08);
  color: var(--primary); border-radius: 50px;
  padding: 5px 16px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; margin-bottom: 12px;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── CATEGORY CARDS ── */
.category-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all 0.3s; border: 1.5px solid transparent;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cat-color, var(--primary));
}
.category-card-header {
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, white);
  padding: 28px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.category-icon-wrap {
  width: 56px; height: 56px;
  background: var(--cat-color, var(--primary));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px;
}
.category-progress-pill {
  background: var(--cat-color, var(--primary));
  color: white; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}
.category-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.category-desc { font-size: 13px; line-height: 1.5; }
.progress-sm { height: 6px; border-radius: 6px; }

/* ── HOW IT WORKS ── */
.how-step { position: relative; padding-top: 20px; }
.step-number {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: var(--primary);
  letter-spacing: 1px;
}
.step-icon { font-size: 2.5rem; color: var(--primary); }

/* ── STORY CARDS ── */
.story-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: all 0.3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.story-img { width: 100%; height: 200px; object-fit: cover; }
.story-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #e8f5ee, #d4edda);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #aaa;
}
.story-tag {
  background: rgba(26,107,60,0.08); color: var(--primary);
  font-size: 11px; font-weight: 600; border-radius: 50px;
  padding: 3px 12px;
}
.story-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.quote-icon { color: var(--primary); opacity: 0.3; }
.testimonial-text { font-size: 14px; line-height: 1.6; color: #555; font-style: italic; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.testimonial-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #0d3b22 0%, #1a6b3c 100%);
  color: white;
}
.cta-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.cta-subtitle { opacity: 0.85; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, #0d3b22 0%, #1a6b3c 100%);
  padding: 48px 0 56px;
  color: white;
}
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.page-header-title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: white; margin-bottom: 8px; }
.page-header-sub { color: rgba(255,255,255,0.8); margin: 0; font-size: 15px; }
.cat-detail-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ── DONATE WIDGET ── */
.donate-widget { }
.amount-pills { }
.pill-btn {
  background: white; border: 1.5px solid var(--border);
  color: var(--text); border-radius: 50px;
  padding: 7px 18px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.pill-btn:hover, .pill-btn.active {
  background: var(--primary); border-color: var(--primary);
  color: white; transform: translateY(-1px);
}

/* ── CART ── */
.empty-cart-wrapper { }
.empty-cart-icon { font-size: 5rem; color: var(--primary); opacity: 0.2; }
.cart-item { transition: background 0.2s; }
.cart-item:hover { background: #f8fdf9; }
.cart-item:last-child { border-bottom: none !important; }
.cart-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* ── CHECKOUT ── */
.checkout-steps { gap: 0; align-items: center; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #eee; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; transition: all 0.3s;
}
.step-item.active .step-circle { background: var(--primary); color: white; }
.step-item span { font-size: 12px; color: #aaa; font-weight: 500; }
.step-item.active span { color: var(--primary); font-weight: 600; }
.step-line { width: 60px; height: 2px; background: #eee; margin-bottom: 18px; }
.section-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.payment-method-label {
  cursor: pointer; font-weight: 500; font-size: 14px;
  transition: all 0.2s;
}
.btn-check:checked + .payment-method-label {
  background: var(--primary); color: white; border-color: var(--primary);
}
.checkout-summary-item { }
.summary-item-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.security-notice { border: 1.5px solid #d4edda; }

/* ── IMPACT / HISTORY ── */
.impact-card { transition: all 0.3s; }
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover) !important; }
.impact-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cause-tag {
  background: rgba(26,107,60,0.07); color: var(--primary);
  border-radius: 50px; font-size: 11px; font-weight: 600;
  padding: 3px 10px;
}
.impact-message { font-size: 13px; }

/* ── RECENT DONORS (Category detail) ── */
.donor-mini-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recent-donor-row { border-bottom: 1px solid #f0f0f0; }
.recent-donor-row:last-child { border-bottom: none; }

/* ── ABOUT ── */
.value-card { transition: all 0.3s; }
.value-card:hover { transform: translateY(-4px); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(26,107,60,0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.mission-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ── FOOTER ── */
.site-footer { background: #0d2b1a; }
.footer-top { padding: 56px 0 40px; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: white; }
.footer-brand strong { color: var(--primary-light); }
.footer-desc { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; }
.footer-heading { color: white; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 14px; transition: all 0.2s; }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--primary-light); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ── MPESA INSTRUCTIONS ── */
.mpesa-instructions ol li { margin-bottom: 4px; }

/* ── UTILITY ── */
.rounded-4 { border-radius: var(--radius) !important; }
.shadow-card { box-shadow: var(--shadow); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-section { padding: 60px 0 80px; min-height: auto; }
  .hero-card-stack { display: none; }
  .checkout-steps { gap: 8px; }
  .step-line { width: 30px; }
}
