/* ============ KindFlowGlobal — Django Stylesheet ============ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --green-deep: #0f5132;
  --green: #1f8a4e;
  --green-bright: #34c77b;
  --green-mint: #d6f5e3;
  --sky: #5cb8e4;
  --sky-soft: #e3f3fb;
  --sun: #ffb547;
  --sun-deep: #f08a2c;
  --cream: #fffaf2;
  --ink: #14241b;
  --ink-soft: #4a5b52;
  --line: #e7ede8;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20,36,27,.06);
  --shadow: 0 12px 40px rgba(20,36,27,.08);
  --shadow-lg: 0 30px 80px rgba(20,36,27,.12);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 36px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;              /* GLOBAL: no horizontal scroll */
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;              /* BELT + SUSPENDERS */
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============ NAVIGATION - BEAUTIFUL & CLEAN ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green-deep);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-bright), var(--sky));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(31, 138, 78, 0.25);
}

.logo-text {
  white-space: nowrap;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--green-deep);
}

.nav-links a.active {
  color: var(--green-deep);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sun), var(--green-bright));
  border-radius: 2px;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  cursor: pointer;
  gap: 5px;
  transition: all 0.2s ease;
  padding: 0;
}

.menu-toggle:hover {
  background: var(--green-mint);
  border-color: rgba(52, 199, 123, 0.3);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 27, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Drawer */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--cream);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.sidebar-header .logo {
  font-size: 1.2rem;
}

.sidebar-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-mint);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--ink);
}

.sidebar-close:hover {
  background: var(--line);
  transform: scale(0.95);
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  background: var(--green-mint);
  color: var(--green-deep);
  transform: translateX(4px);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--green-mint), rgba(52, 199, 123, 0.2));
  color: var(--green-deep);
  font-weight: 600;
  border-left: 3px solid var(--sun);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.sidebar-donate-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ RESPONSIVE - MOBILE & TABLET ============ */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-inner {
    padding: 12px 20px;
  }
  
  body {
    padding-top: 66px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .nav-inner {
    padding: 10px 16px;
  }
  
  .logo {
    font-size: 1.1rem;
    gap: 8px;
  }
  
  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  
  .menu-toggle span {
    width: 18px;
    height: 2px;
  }
  
  body {
    padding-top: 58px;
  }
  
  .sidebar {
    width: 85vw;
  }
  
  .sidebar-header {
    padding: 16px 20px;
  }
  
  .sidebar-nav {
    padding: 20px;
    gap: 6px;
  }
  
  .sidebar-nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .sidebar-footer {
    padding: 16px 20px 24px;
  }
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
  overflow: hidden;
}
/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
  box-shadow: 0 10px 30px rgba(20,36,27,.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(20,36,27,.28); }
.btn-sun {
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(240,138,44,.35);
}
.btn-sun:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(240,138,44,.45); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 12px 22px; font-size: .88rem; }

/* ============ CONTAINER & SECTIONS ============ */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;         /* padding inside width */
}
section { padding: 100px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--green);
  padding: 8px 16px;
  background: var(--green-mint);
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before { content: '✦'; color: var(--sun-deep); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
em.accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--green) 0%, var(--sun-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 600px; }

/* ============ HERO (Homepage) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 0 120px;
  color: #fff;
}

/* Video background layer */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Multi-layer overlay for depth & readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(15, 81, 50, .85) 0%,
      rgba(15, 81, 50, .55) 40%,
      rgba(20, 30, 40, .65) 100%),
    radial-gradient(1200px 700px at 15% 30%, rgba(255, 181, 71, .25), transparent 60%),
    radial-gradient(900px 600px at 85% 85%, rgba(92, 184, 228, .18), transparent 60%);
  pointer-events: none;
}

/* Subtle film grain for texture */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-text {
  max-width: 720px;
}

.hero .eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.hero h1 .accent {
  font-style: normal;
  background: linear-gradient(135deg, #ffd27a 0%, #ffb547 50%, #f08a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  max-width: 560px;
  margin-bottom: 40px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, .3);
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 48px;
}
.hero .btn-sun {
  box-shadow: 0 12px 30px -8px rgba(240, 138, 44, .6), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero .btn-sun:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(240, 138, 44, .75), 0 0 0 1px rgba(255, 255, 255, .15) inset;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}

/* Trust row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 44px;
}
.hero-trust strong { color: #fff; font-weight: 700; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .95);
  margin-left: -12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.avatars span:first-child { margin-left: 0; }

/* Inline stat cards (replacing floating image badges) */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, .4);
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 199, 123, .9), rgba(15, 81, 50, .9));
  display: grid; place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.hero-stat-icon.sun {
  background: linear-gradient(135deg, #ffd27a, #f08a2c);
}
.hero-stat strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
}
.hero-stat small {
  display: block;
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .2);
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  z-index: 2;
  transition: color .25s ease;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-mouse span {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 120px 0 100px; min-height: 90vh; }
  .hero h1 br { display: none; }
  .hero-stats {
    display: flex;
    width: 100%;
    gap: 16px;
    padding: 16px;
  }
  .hero-stat-divider { display: none; }
  .hero-stats { flex-wrap: wrap; }
  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  .hero-actions .btn-sun,
  .hero-actions .btn-ghost-light { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-wrap {
    background: linear-gradient(135deg, #0f5132, #1a3a2a);
  }
  .hero-scroll-mouse span { animation: none; }
}

/* ============ METRICS - RELAXED & BALANCED WITH BACKGROUND ============ */
.metrics {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.metrics::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(52,199,123,.12), transparent),
              radial-gradient(500px 300px at 20% 80%, rgba(255,181,71,.08), transparent);
  pointer-events: none;
}

.metrics-inner { 
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.metrics .eyebrow {
  display: inline-flex;
  background: rgba(52,199,123,.15);
  color: var(--green-bright);
  margin-bottom: 16px;
}

.metrics h2 { 
  color: var(--cream); 
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0;
}

.metrics h2 em.accent { 
  background: linear-gradient(120deg, var(--sun), var(--green-bright)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.metrics-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: nowrap;
  margin-top: 20px;
  width: 100%;
}

.metric {
  text-align: center;
  flex-shrink: 0;
  min-width: 140px;
}

.metric strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, var(--green-bright), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.metric span { 
  color: rgba(255,250,242,.75); 
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 500;
  display: block;
  margin-top: 8px;
}

/* Mobile - stats stay in single line with scroll if needed */
@media (max-width: 880px) {
  .metrics {
    padding: 60px 0;
  }
  .metrics-inner {
    gap: 32px;
    padding: 0 20px;
  }
  .metrics-grid {
    gap: 40px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .metric {
    min-width: 130px;
  }
  .metric strong {
    font-size: 1.8rem;
  }
  .metric span {
    font-size: 0.8rem;
    white-space: normal;
    max-width: 130px;
  }
}

@media (max-width: 560px) {
  .metrics {
    padding: 48px 0;
  }
  .metrics-inner {
    padding: 0 16px;
    gap: 24px;
  }
  .metrics-grid {
    gap: 28px;
  }
  .metric {
    min-width: 110px;
  }
  .metric strong {
    font-size: 1.5rem;
  }
  .metric span {
    font-size: 0.7rem;
    max-width: 110px;
  }
}

/* ============ SECTION HEAD ============ */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head .lede { margin: 16px auto 0; }

/* ============ IMPACT MISSION - PROFESSIONAL WRITE-UP ============ */
.impact-mission {
  position: relative;
  padding: 100px 0;
  margin: 40px 0;
  overflow: hidden;
  isolation: isolate;
}

.impact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.impact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, 
    rgba(15, 81, 50, 0.92) 0%,
    rgba(15, 81, 50, 0.85) 30%,
    rgba(20, 36, 27, 0.88) 70%,
    rgba(15, 81, 50, 0.92) 100%);
  z-index: -1;
}

.impact-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--cream);
}

.impact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 181, 71, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 24px;
}

.impact-header {
  text-align: center;
  margin-bottom: 56px;
}

.impact-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.impact-header h2 em.accent {
  background: linear-gradient(135deg, var(--sun), var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.impact-header .impact-lead {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 250, 242, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 56px 0 48px;
}

.impact-pillar {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.impact-pillar:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 181, 71, 0.3);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.2), rgba(52, 199, 123, 0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.impact-pillar h3 {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 12px;
  font-family: var(--display);
}

.impact-pillar p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 250, 242, 0.75);
}

.impact-stats {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin: 32px 0 48px;
}

.stat-block {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--sun), var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 250, 242, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impact-quote {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 36px 40px;
  text-align: center;
  border-left: 4px solid var(--sun);
}

.impact-quote p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 250, 242, 0.9);
  margin-bottom: 16px;
}

.impact-quote p::before {
  content: '"';
  font-size: 2.5rem;
  color: var(--sun);
  opacity: 0.5;
  line-height: 1;
  margin-right: 8px;
}

.quote-author {
  font-weight: 600;
  color: var(--sun);
}

.impact-cta {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 880px) {
  .impact-mission {
    padding: 60px 0;
    margin: 20px 0;
  }
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
  }
  .impact-stats {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }
  .impact-quote {
    padding: 28px 24px;
  }
  .impact-quote p {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .impact-mission {
    padding: 48px 0;
  }
  .impact-header {
    margin-bottom: 40px;
  }
  .impact-pillar {
    padding: 24px 20px;
  }
  .pillar-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
  .impact-quote {
    padding: 24px 20px;
  }
}

/* ============ HOW IT WORKS ============ */
.how {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sky-soft) 100%);
  border-radius: var(--radius-lg);
  margin: 0 32px;
  padding: 100px 60px;
}
.how-head { text-align: center; max-width: 700px; margin: 0 auto; }
.how-head .lede { margin: 16px auto 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.how-step {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.how-step .num {
  position: absolute; top: -24px; left: 32px;
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700; font-size: 1.5rem;
  color: white;
  box-shadow: var(--shadow);
}
.how-step:nth-child(1) .num { background: linear-gradient(135deg, var(--sun), var(--sun-deep)); }
.how-step:nth-child(2) .num { background: linear-gradient(135deg, var(--sky), #2d8fc4); }
.how-step:nth-child(3) .num { background: linear-gradient(135deg, var(--green-bright), var(--green-deep)); }
.how-step h3 { margin: 24px 0 12px; }
.how-step p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 880px) {
  .how { padding: 60px 24px; margin: 0 16px; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ CAUSES - ANIMATED ICONS ONLY, NO IMAGES ============ */
.causes-section {
  background: linear-gradient(135deg, #fef9f0 0%, #e8f5ed 50%, #f0f7fe 100%);
  padding: 80px 0;
  margin: 40px 0;
  border-radius: var(--radius-lg);
}

.causes-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  margin-top: 20px;
}

.cause-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex; 
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cause-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(31, 138, 78, 0.12); 
  border-color: rgba(255, 181, 71, 0.3);
  background: white;
}

/* Large Animated Icon Container - replaces images */
.cause-icon-large {
  padding: 48px 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cause-icon-animated {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: floatIcon 3s ease-in-out infinite;
}

/* Individual card icon colors */
.cause-card:nth-child(1) .cause-icon-animated {
  background: linear-gradient(135deg, #5cb8e4, #2d8fc4);
}
.cause-card:nth-child(2) .cause-icon-animated {
  background: linear-gradient(135deg, #ffb547, #f08a2c);
}
.cause-card:nth-child(3) .cause-icon-animated {
  background: linear-gradient(135deg, #34c77b, #1f8a4e);
}

.cause-card:hover .cause-icon-animated {
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Large SVG Icon styling */
.cause-icon-svg {
  width: 55px;
  height: 55px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
  transition: all 0.3s ease;
}

.cause-card:hover .cause-icon-svg {
  stroke-width: 2;
  transform: scale(1.02);
}

.cause-body { 
  padding: 28px 28px 32px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  background: white;
}

.cause-body h3 { 
  margin-bottom: 12px; 
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.cause-body p { 
  color: var(--ink-soft); 
  font-size: 0.92rem; 
  line-height: 1.6;
  flex: 1; 
  margin-bottom: 20px;
  text-align: center;
}

.cause-impact {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(52, 199, 123, 0.08), rgba(92, 184, 228, 0.06));
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 24px;
  border-left: 3px solid var(--sun);
  transition: all 0.3s ease;
  text-align: center;
}

.cause-card:hover .cause-impact {
  background: linear-gradient(135deg, rgba(52, 199, 123, 0.12), rgba(92, 184, 228, 0.1));
  border-left-width: 4px;
}

.cause-link { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  gap: 8px; 
  font-weight: 700; 
  color: var(--green-deep);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.cause-link:hover { 
  gap: 12px; 
  color: var(--sun-deep);
}

/* Floating animation for icons */
@keyframes floatIcon {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 880px) { 
  .causes-section {
    padding: 60px 0;
    margin: 20px 0;
    border-radius: var(--radius);
  }
  .causes-grid { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .cause-icon-animated {
    width: 85px;
    height: 85px;
  }
  .cause-icon-svg {
    width: 48px;
    height: 48px;
  }
  .cause-icon-large {
    padding: 40px 0 28px;
  }
}

@media (max-width: 560px) {
  .causes-section {
    padding: 48px 0;
  }
  .cause-body {
    padding: 24px 20px 28px;
  }
  .cause-body h3 {
    font-size: 1.2rem;
  }
  .cause-impact {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  .cause-icon-animated {
    width: 75px;
    height: 75px;
  }
  .cause-icon-svg {
    width: 42px;
    height: 42px;
  }
  .cause-icon-large {
    padding: 32px 0 24px;
  }
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--green-mint);
  border-radius: var(--radius-lg);
  margin: 0 32px;
  padding: 90px 60px;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.testimonial {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: '"'; font-family: var(--display);
  font-size: 5rem; line-height: 1;
  color: var(--green-bright);
  position: absolute; top: 10px; right: 24px;
  opacity: .35;
}
.testimonial p { color: var(--ink); font-size: .98rem; margin-bottom: 24px; position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author div strong { display: block; font-size: .95rem; }
.testimonial-author div small { color: var(--ink-soft); font-size: .8rem; }
.testimonial-author .ava {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--green-bright));
  display: grid; place-items: center;
  color: white; font-weight: 700;
}
@media (max-width: 880px) {
  .testimonials { padding: 60px 24px; margin: 0 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============ CTA BANNER ============ */
.cta-wrap { padding: 0; margin-top: 100px; }
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 60%, var(--sun-deep) 130%);
  border-radius: var(--radius-lg);
  margin: 0 32px;
  padding: 90px 60px;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 80% 30%, rgba(255,181,71,.3), transparent),
              radial-gradient(500px 300px at 20% 70%, rgba(92,184,228,.2), transparent);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--cream); margin-bottom: 16px; }
.cta-banner h2 em.accent { background: linear-gradient(120deg, var(--sun), #ffd88a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-eyebrow { background: rgba(255,250,242,.15); color: var(--sun); }
.cta-banner p { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; }
@media (max-width: 880px) { .cta-banner { padding: 60px 24px; margin: 0 16px; } }
@media (max-width: 380px) { .cta-banner { margin: 0 10px; padding: 44px 16px; border-radius: var(--radius); } }

/* ============ FOOTER — BULLETPROOF CONTAINMENT ============ */
footer {
  background: var(--ink);
  color: rgba(255,250,242,.75);
  padding: 80px 0 30px;
  margin-top: 100px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;                /* CRITICAL: nothing escapes */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,250,242,.1);
}
.footer-brand { min-width: 0; }   /* allow text to shrink/wrap */
.footer-col { min-width: 0; }
.footer-logo {
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.footer-grid p {
  font-size: .95rem;
  margin-bottom: 20px;
  max-width: 100%;                 /* respect container on mobile */
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
  font-size: .92rem;
  transition: color .2s;
  word-break: break-word;          /* long emails don't overflow */
}
.footer-grid a:hover { color: var(--sun); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 10px;
  word-wrap: break-word;
}
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,250,242,.08);
  display: grid; place-items: center;
  transition: all .2s;
  flex-shrink: 0;
}
.socials a:hover { background: var(--sun); color: var(--ink); }

/* Footer: tablet (2-col) */
@media (max-width: 880px) {
  footer { padding: 60px 0 24px; margin-top: 60px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;           /* brand spans full width */
  }
}

/* Footer: phones (single column, tight padding) */
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: auto; }
  .footer-logo { font-size: 1.3rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* Footer: tiny phones */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  footer { padding: 44px 0 20px; }
  .footer-logo { font-size: 1.15rem; }
}

/* ============ PAGE HEADER (subpages) ============ */
.page-head {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(52,199,123,.12), transparent),
              radial-gradient(500px 300px at 80% 50%, rgba(255,181,71,.1), transparent);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; position: relative; }
.page-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 600px; margin: 0 auto; position: relative; }

/* ============ ABOUT PAGE STYLES ============ */

/* Vision Section */
.about-vision {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.vision-header {
  margin-bottom: 32px;
}

.vision-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Mission Pillars */
.mission-pillars {
  background: linear-gradient(135deg, var(--green-mint), var(--sky-soft));
  border-radius: var(--radius-lg);
  padding: 80px 0;
  margin: 40px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin: 50px 0 40px;
}

.pillar-card {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.mission-statement {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  margin-top: 20px;
}

.mission-statement p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
}

/* Founder Story */
.founder-story {
  padding: 60px 0;
}

.story-grid {
  max-width: 900px;
  margin: 0 auto;
}

.story-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 20px 0 16px;
  line-height: 1.3;
}

.story-lead {
  font-size: 1.2rem;
  color: var(--sun-deep);
  font-weight: 600;
  margin-bottom: 32px;
}

.story-body p {
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.story-quote {
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.1), rgba(52, 199, 123, 0.08));
  border-left: 4px solid var(--sun);
  padding: 24px 32px;
  border-radius: 16px;
  margin: 28px 0;
}

.story-quote p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0;
  color: var(--ink);
}

/* Continents Section */
.continents {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0;
  margin: 40px 0;
}

.continents-grid {
  max-width: 900px;
  margin: 0 auto;
}

.continents-text {
  text-align: center;
}

.continents-text h2 {
  color: var(--cream);
  margin-bottom: 48px;
}

.continent-card {
  display: flex;
  gap: 20px;
  text-align: left;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.continent-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

.continent-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.continent-card h4 {
  color: var(--sun);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.continent-card p {
  color: rgba(255, 250, 242, 0.8);
  line-height: 1.6;
}

/* Transformation Section */
.transformation {
  padding: 60px 0;
}

.transformation-grid {
  max-width: 900px;
  margin: 0 auto;
}

.transformation-content h2 {
  margin-bottom: 40px;
}

.transformation-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}

.transform-stat {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--green-mint);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.transform-stat:hover {
  transform: translateX(8px);
  background: rgba(52, 199, 123, 0.15);
}

.transform-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.transform-stat strong {
  font-size: 1.1rem;
  color: var(--green-deep);
  display: block;
  margin-bottom: 6px;
}

.transform-stat p {
  color: var(--ink-soft);
  line-height: 1.5;
}

.transformation-quote {
  background: linear-gradient(135deg, var(--sky-soft), var(--green-mint));
  padding: 36px 40px;
  border-radius: 24px;
  text-align: center;
  margin-top: 40px;
}

.transformation-quote p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink);
}

.quote-source {
  margin-top: 16px;
  font-weight: 600;
  color: var(--green-deep);
  font-style: normal;
}

/* Join CTA Section */
.join-cta {
  padding: 60px 0 80px;
}

.join-card {
  background: linear-gradient(135deg, var(--ink), var(--green-deep));
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  color: var(--cream);
}

.join-card h2 {
  color: var(--cream);
  margin-bottom: 24px;
}

.join-card h2 em.accent {
  background: linear-gradient(135deg, var(--sun), var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.join-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 250, 242, 0.85);
  max-width: 700px;
  margin: 0 auto 32px;
}

.join-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.join-footer {
  font-size: 0.95rem;
  margin-top: 24px;
  color: rgba(255, 250, 242, 0.7);
}

/* Responsive */
@media (max-width: 880px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-pillars {
    padding: 50px 0;
    border-radius: var(--radius);
  }
  
  .join-card {
    padding: 40px 24px;
  }
  
  .join-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .continent-card {
    flex-direction: column;
    text-align: center;
  }
  
  .transform-stat {
    flex-direction: column;
    text-align: center;
  }
  
  .transformation-quote {
    padding: 28px 20px;
  }
}

@media (max-width: 560px) {
  .story-quote {
    padding: 20px;
  }
  
  .story-quote p {
    font-size: 1rem;
  }
  
  .join-card {
    padding: 32px 20px;
  }
}

/* ============ DONATE ============ */
.donate-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  max-width: 100%; overflow: hidden;
}
.donate-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-width: 0;                    /* prevent grid blowout */
  overflow: hidden;
}
.donate-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.donate-card .lede { font-size: 1rem; margin-bottom: 30px; }

/* Amount grid — 6 items (with $500) */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.amount-btn {
  padding: 18px 8px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 2px solid var(--line);
  font-weight: 600; font-size: 1rem;
  color: var(--ink);
  transition: all .2s;
  position: relative;
  overflow: visible;
}
.amount-btn:hover { border-color: var(--green-bright); }
.amount-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Popular badge */
.amount-btn .popular-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--ink);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(240,138,44,.35);
  line-height: 1.3;
}
.amount-btn.active .popular-badge {
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--ink);
}

.custom-amount {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  font-size: 1rem; font-family: inherit;
  background: var(--cream);
  margin-bottom: 24px;
  box-sizing: border-box;
}
.custom-amount:focus { outline: none; border-color: var(--green-bright); }
.impact-msg {
  background: linear-gradient(135deg, var(--green-mint), var(--sky-soft));
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  display: flex; gap: 16px; align-items: center;
}
.impact-msg .icon { font-size: 2rem; flex-shrink: 0; }
.impact-msg div { min-width: 0; }
.impact-msg div strong { display: block; font-size: 1.05rem; }
.impact-msg div span { font-size: .9rem; color: var(--ink-soft); }

.crypto-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.crypto-tab {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  border: 2px solid var(--line);
  font-weight: 600; font-size: .9rem;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.crypto-tab .dot { width: 10px; height: 10px; border-radius: 50%; }
.crypto-tab[data-coin="btc"] .dot { background: #f7931a; }
.crypto-tab[data-coin="eth"] .dot { background: #627eea; }
.crypto-tab[data-coin="usdt"] .dot { background: #26a17b; }
.crypto-tab[data-coin="usdc"] .dot { background: #2775ca; }
.crypto-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.wallet-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px dashed var(--line);
  overflow: hidden;
}
.wallet-box-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.wallet-box-top strong { font-size: 1rem; word-break: break-word; }
.wallet-box-top .crypto-rate { font-size: .85rem; color: var(--ink-soft); }
.wallet-row { display: flex; gap: 14px; align-items: center; }
.qr-box {
  width: 130px; height: 130px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.qr-box svg { width: 100%; height: 100%; }
.wallet-info { flex: 1; min-width: 0; }
.wallet-info label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; }
.wallet-addr {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.wallet-addr code {
  flex: 1; font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: .78rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink);
  min-width: 0;
}
.copy-btn {
  background: var(--ink); color: var(--cream);
  padding: 8px 14px; border-radius: 8px;
  font-size: .8rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0; transition: all .2s;
}
.copy-btn:hover { background: var(--green-deep); }
.copy-btn.copied { background: var(--green-bright); }

.donate-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.side-card { background: white; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); overflow: hidden; }
.side-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.steps-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: none; }
.steps-list .n {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--green-mint); color: var(--green-deep);
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.steps-list strong { display: block; font-size: .95rem; }
.steps-list span { font-size: .85rem; color: var(--ink-soft); }
.trust-card { background: var(--ink); color: var(--cream); }
.trust-card h3 { color: var(--cream); }
.trust-card p { color: rgba(255,250,242,.75); font-size: .92rem; margin-bottom: 14px; }
.trust-card a { color: var(--sun); font-size: .9rem; font-weight: 600; }
.soft-card { background: linear-gradient(135deg, var(--green-mint), var(--sky-soft)); border: none; }
.soft-card p { font-size: .92rem; color: var(--ink-soft); }

.txid-form { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.txid-form h3 { font-size: 1.2rem; margin-bottom: 8px; }
.txid-form p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.txid-form input {
  width: 100%; padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  font-size: .92rem; font-family: inherit;
  background: var(--cream);
  box-sizing: border-box;
}
.txid-form input:focus { outline: none; border-color: var(--green-bright); }
.btn-block { width: 100%; justify-content: center; }

/* Donate: tablet */
@media (max-width: 980px) {
  .donate-layout { grid-template-columns: 1fr; }
  .donate-card { padding: 28px; }
  .wallet-row { flex-direction: column; align-items: stretch; }
  .qr-box { margin: 0 auto; }
  .field-row { grid-template-columns: 1fr; }
}

/* Donate: phones */
@media (max-width: 520px) {
  .donate-card { padding: 20px 16px; border-radius: var(--radius); }
  .amount-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .amount-btn { padding: 14px 4px; font-size: .88rem; border-radius: 10px; }
  .amount-btn .popular-badge { font-size: .52rem; padding: 2px 7px; top: -8px; }
  .custom-amount { padding: 12px 14px; font-size: .92rem; }
  .impact-msg { padding: 16px; gap: 12px; }
  .impact-msg .icon { font-size: 1.5rem; }
  .impact-msg div strong { font-size: .95rem; }
  .impact-msg div span { font-size: .82rem; }
  .crypto-tabs { gap: 6px; }
  .crypto-tab { padding: 10px 14px; font-size: .82rem; gap: 6px; }
  .wallet-box { padding: 18px 14px; border-radius: var(--radius-sm); }
  .wallet-box-top strong { font-size: .9rem; }
  .wallet-box-top .crypto-rate { font-size: .78rem; }
  .qr-box { width: 110px; height: 110px; }
  .wallet-addr { padding: 10px 12px; gap: 8px; }
  .wallet-addr code { font-size: .68rem; }
  .copy-btn { padding: 6px 10px; font-size: .75rem; }
  .side-card { padding: 24px 18px; }
  .txid-form input { padding: 12px 14px; font-size: .88rem; }
}

/* Donate: tiny phones */
@media (max-width: 380px) {
  .donate-card { padding: 16px 12px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .amount-btn { padding: 12px 4px; font-size: .82rem; }
  .crypto-tab { padding: 8px 12px; font-size: .78rem; }
  .qr-box { width: 100px; height: 100px; padding: 8px; }
  .wallet-box { padding: 14px 10px; }
}

/* File upload styling */
.txid-form input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.txid-form input[type="file"]:hover {
  border-color: var(--green-bright);
  background: white;
}

.txid-form input[type="file"]:focus {
  outline: none;
  border-color: var(--green-bright);
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.txid-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  resize: vertical;
  transition: all 0.2s ease;
}

.txid-form textarea:focus {
  outline: none;
  border-color: var(--green-bright);
}

.txid-info {
  background: linear-gradient(135deg, var(--green-mint), var(--sky-soft));
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 24px;
}

.txid-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.txid-info strong {
  color: var(--green-deep);
}

/* ============ DJANGO MESSAGES - BEAUTIFULLY STYLED ============ */
.messages-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.message {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.05);
  animation: messageSlideIn 0.3s ease-out forwards;
  transition: all 0.3s ease;
  cursor: pointer;
}

.message:hover {
  transform: translateX(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.message-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.message-content {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

.message-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  transition: all 0.2s ease;
  color: inherit;
}

.message-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

/* Message Types */
.message-success {
  background: linear-gradient(135deg, rgba(52, 199, 123, 0.95), rgba(31, 138, 78, 0.95));
  color: white;
  border-left: 4px solid #ffffff;
}

.message-success .message-icon::before {
  content: "✓";
}

.message-error {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
  color: white;
  border-left: 4px solid #ffffff;
}

.message-error .message-icon::before {
  content: "⚠";
}

.message-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  color: white;
  border-left: 4px solid #ffffff;
}

.message-warning .message-icon::before {
  content: "⚠";
}

.message-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
  color: white;
  border-left: 4px solid #ffffff;
}

.message-info .message-icon::before {
  content: "ℹ";
}

/* Message Animations */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes messageSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.message-exit {
  animation: messageSlideOut 0.3s ease-in forwards;
}

/* Mobile Responsive Messages */
@media (max-width: 768px) {
  .messages-container {
    top: 70px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
  
  .message {
    padding: 14px 16px;
  }
  
  .message-content {
    font-size: 0.85rem;
  }
}

/* Stacked messages */
.message + .message {
  margin-top: 0;
}

/* Auto-hide progress bar */
.message-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 0 16px;
  animation: progressShrink 5s linear forwards;
  width: 100%;
}

@keyframes progressShrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card .img { height: 220px; overflow: hidden; }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 26px; }
.post-card .meta { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============ INVOLVED ============ */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.involve-card { padding: 44px 32px; background: white; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; transition: all .3s; }
.involve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.involve-card .icon-lg {
  width: 80px; height: 80px; border-radius: 24px;
  margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, var(--green-mint), var(--sky-soft));
}
.involve-card h3 { margin-bottom: 12px; }
.involve-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 24px; }
@media (max-width: 880px) { .involve-grid { grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { background: white; padding: 44px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  font-size: .95rem; font-family: inherit;
  background: var(--cream);
  margin-bottom: 18px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-bright); }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-detail .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-mint); display: grid; place-items: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: .95rem; }
.contact-detail span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* Django messages */
.messages { position: fixed; top: 90px; right: 30px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.messages li {
  background: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-bright);
  font-size: .9rem;
}
.messages li.error { border-left-color: #e74c3c; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: 14px 24px; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: all .3s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 24px; }
.pad-top-sm { padding-top: 40px; }
.no-section-pad { padding: 40px 0 100px; }

/* ============ GLOBAL MOBILE SAFETY NET ============ */
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  section { padding: 60px 0; }
  .how { margin: 0 12px; padding: 50px 18px; border-radius: var(--radius); }
  .testimonials { margin: 0 12px; padding: 50px 18px; border-radius: var(--radius); }
  .cta-wrap { margin-top: 60px; }
  .no-section-pad { padding: 24px 0 60px; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .lede { font-size: 1rem; }
  .hero { padding: 50px 0 80px; }
  .hero-sub { font-size: 1rem; }
  /* Buttons: compact in one row */
  .btn { padding: 12px 16px; font-size: .82rem; gap: 6px; }
  .hero-actions { gap: 8px; }
}

@media (max-width: 380px) {
  h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .btn { padding: 10px 14px; font-size: .78rem; }
  .hero-actions { gap: 6px; }
}