/* ============ 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; }

/* ============ NAV — BULLETPROOF CONTAINMENT ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;                /* CRITICAL: nothing escapes */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255,250,242,.85);
  border-bottom: 1px solid var(--line);
}
/* Push body content below the fixed nav */
body { padding-top: 76px; }
@media (max-width: 980px) { body { padding-top: 66px; } }
@media (max-width: 380px) { body { padding-top: 58px; } }
.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;         /* padding counted inside width */
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700; font-size: 1.35rem;
  color: var(--green-deep);
  min-width: 0;                    /* allow shrink */
  flex-shrink: 0;
}
.logo-text {
  white-space: nowrap;
}
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green-bright), var(--sky));
  border-radius: 12px;
  display: grid; place-items: center;
  color: white; font-weight: 900;
  box-shadow: 0 6px 18px rgba(31,138,78,.3);
  flex-shrink: 0;
}

/* Desktop nav links — center of bar */
.nav-links {
  display: flex; gap: 28px;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links a {
  font-weight: 500; font-size: .95rem;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-deep); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--sun); border-radius: 2px;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  transition: all .3s ease;
}
.hamburger-icon { top: 50%; margin-top: -1px; }
.hamburger-icon::before { content: ''; top: -7px; left: 0; transform: none; width: 22px; }
.hamburger-icon::after  { content: ''; top:  7px; left: 0; transform: none; width: 22px; }

/* ============ SIDEBAR DRAWER (mobile + tablet) ============ */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(20,36,27,.4);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);         /* NEVER wider than screen */
  max-width: 85vw;
  height: 100dvh;
  background: var(--cream);
  z-index: 210;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(20,36,27,.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sidebar-header .logo { font-size: 1.15rem; }
.sidebar-close {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--green-mint);
  color: var(--ink);
  font-size: 1.2rem;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s;
  border: none;
  flex-shrink: 0;
}
.sidebar-close:hover { background: var(--line); }

.sidebar-nav {
  display: flex; flex-direction: column;
  padding: 16px 24px;
  gap: 4px;
  flex: 1;
}
.sidebar-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 500; font-size: 1.05rem;
  color: var(--ink-soft);
  transition: all .15s;
}
.sidebar-nav a:hover { background: var(--green-mint); color: var(--green-deep); }
.sidebar-nav a.active {
  background: var(--green-mint);
  color: var(--green-deep);
  font-weight: 600;
}

.sidebar-cta {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.sidebar-donate-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-is-open { overflow: hidden; }

/* ============ NAV RESPONSIVE ============ */

/* Tablets: hide links, show hamburger */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-inner { padding: 14px 20px; }
}

/* Small phones */
@media (max-width: 380px) {
  .nav-inner { padding: 12px 14px; gap: 8px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; font-size: .85rem; }
  .menu-toggle { width: 38px; height: 38px; }
  .sidebar { width: 90vw; max-width: 90vw; }
  .sidebar-header { padding: 16px 16px; }
  .sidebar-nav { padding: 12px 16px; }
  .sidebar-cta { padding: 16px 16px; }
}

/* ============ 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; padding: 80px 0 120px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(255,181,71,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(92,184,228,.18), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(52,199,123,.15), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 br { display: inline; }  /* keep line breaks on desktop */
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 36px; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;               /* ALWAYS one row */
  align-items: center;
}
.hero-trust {
  margin-top: 44px; display: flex; align-items: center; gap: 16px;
  font-size: .9rem; color: var(--ink-soft);
}
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--cream);
  background-size: cover; background-position: center;
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.hero-visual { position: relative; }
.hero-card-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #fef3e0, #d6f5e3);
}
.hero-card-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.hero-float-1 { top: 8%; left: -40px; animation: float 6s ease-in-out infinite; }
.hero-float-2 { bottom: 12%; right: -30px; animation: float 6s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-float .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-mint);
  display: grid; place-items: center; font-size: 1.3rem;
}
.hero-float-2 .icon { background: #fff1d9; }
.hero-float strong { display: block; font-size: 1.1rem; color: var(--ink); }
.hero-float small { color: var(--ink-soft); font-size: .8rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }  /* single flowing line on mobile */
  .hero-float-1 { left: 10px; }
  .hero-float-2 { right: 10px; }
}

/* ============ METRICS ============ */
.metrics {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  margin: 0 32px;
  padding: 70px 60px;
  position: relative;
  overflow: hidden;
}
.metrics::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(52,199,123,.18), transparent),
              radial-gradient(500px 300px at 20% 80%, rgba(255,181,71,.12), transparent);
}
.metrics-inner { position: relative; display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; align-items: center; }
.metrics h2 { color: var(--cream); }
.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: grid;
  grid-template-columns: repeat(3, 1fr);   /* ALWAYS 3 columns */
  gap: 20px;
  text-align: center;
}
.metric strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  font-weight: 700;
  display: block;
  background: linear-gradient(135deg, var(--green-bright), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { color: rgba(255,250,242,.7); font-size: clamp(.7rem, 2vw, .95rem); }
@media (max-width: 880px) {
  .metrics { padding: 50px 30px; margin: 0 16px; }
  .metrics-inner { grid-template-columns: 1fr; gap: 30px; }
  /* metrics-grid stays 3 columns */
  .metrics-grid { gap: 12px; }
}

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

/* ============ STORIES ============ */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.story-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--line);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-img { height: 240px; position: relative; overflow: hidden; background: var(--green-mint); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--cream); color: var(--ink);
  padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.story-body { padding: 28px; }
.story-body h3 { margin-bottom: 8px; }
.story-body p { color: var(--ink-soft); font-size: .95rem; }
.story-arrow { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); font-size: .9rem; }
@media (max-width: 880px) { .stories-grid { grid-template-columns: 1fr; } }

/* ============ 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 ============ */
.causes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cause-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .3s;
  display: flex; flex-direction: column;
}
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cause-img { height: 220px; overflow: hidden; }
.cause-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cause-card:hover .cause-img img { transform: scale(1.06); }
.cause-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.cause-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 16px;
  background: var(--green-mint);
}
.cause-card:nth-child(3n+2) .cause-icon { background: #fff1d9; }
.cause-card:nth-child(3n) .cause-icon { background: var(--sky-soft); }
.cause-body h3 { margin-bottom: 10px; }
.cause-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; margin-bottom: 20px; }
.cause-impact {
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 12px;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: 20px;
  border-left: 3px solid var(--sun);
}
.cause-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-deep); }
@media (max-width: 880px) { .causes-grid { grid-template-columns: 1fr; } }

/* ============ 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 ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-grid h2 { margin-bottom: 20px; }
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.value { padding: 32px; background: white; border-radius: var(--radius); border: 1px solid var(--line); }
.value .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--green-mint); margin-bottom: 16px; }
.value h3 { margin-bottom: 10px; font-size: 1.2rem; }
.value p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ============ 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; }
}

/* ============ 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; }
  .metrics { margin: 0 12px; padding: 40px 16px; border-radius: var(--radius); }
  .metrics-grid { gap: 8px; }
  .metric strong { font-size: clamp(1.4rem, 6vw, 2rem); }
  .metric span { font-size: .7rem; }
  .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; }
  .metric strong { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  .metric span { font-size: .65rem; line-height: 1.3; }
  .metrics { padding: 30px 12px; margin: 0 8px; }
  .metrics-grid { gap: 6px; }
}