/* ============================================================
   RISE WITH PLEDGE — design system
   ============================================================ */
:root {
  /* Brand blues — sourced from the Rise With Pledge logo (#0042ab) and
     the foundation letterhead (navy #0a1a4f, bright sky #0aa2e0).
     Legacy --green-* / --gold-* names are kept as aliases so every existing
     reference (incl. admin.css) adopts the new palette automatically. */
  --navy-900: #0a1a4f;
  --blue-800: #002c78;
  --blue-700: #0042ab;
  --blue-600: #0a56c9;
  --blue-500: #1a6ae0;
  --sky-500: #0aa2e0;
  --sky-400: #4cc2f5;

  --green-900: var(--navy-900);
  --green-800: var(--blue-800);
  --green-700: var(--blue-700);
  --green-600: var(--blue-600);
  --green-500: var(--blue-500);
  --gold-500: var(--sky-500);
  --gold-400: var(--sky-400);

  --bg: #f3f7fc;
  --bg-soft: #e9f1fb;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --text: #0f1b2d;
  --text-soft: #43526b;
  --muted: #6b7a91;
  --border: #dbe5f1;
  --shadow: 0 10px 30px -12px rgba(10, 26, 79, .18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 26, 79, .28);
  --primary: var(--blue-700);
  --primary-strong: var(--blue-800);
  --on-primary: #ffffff;
  --accent: var(--sky-500);
  --on-accent: #05243a;
  --hero-grad: linear-gradient(135deg, #0a1a4f 0%, #0042ab 55%, #0aa2e0 100%);
  --header-bg: rgba(255, 255, 255, .85);

  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #070d1a;
  --bg-soft: #0b1424;
  --surface: #111d33;
  --surface-2: #16233d;
  --text: #e8eefb;
  --text-soft: #b6c4dd;
  --muted: #8595b3;
  --border: #24344f;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
  --primary: #3d84ff;
  --primary-strong: #5b9bff;
  --on-primary: #05122b;
  --accent: #38b6ff;
  --sky-500: #38b6ff;
  --sky-400: #7cd0ff;
  --hero-grad: linear-gradient(135deg, #071233 0%, #0a3a8a 55%, #0a72b0 100%);
  --header-bg: rgba(9, 16, 30, .85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  transition: background .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; }
h4, h5 { line-height: 1.3; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; font-family: var(--font-body);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px rgba(0, 66, 171, .55); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-gold { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px rgba(10, 162, 224, .6); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline { border-color: currentColor; color: var(--primary); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 160;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none !important; color: var(--text); flex-shrink: 1; min-width: 0; overflow: hidden; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
}
.brand-mark img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; overflow: hidden; }
.brand-text b { font-size: 1.02rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: clip; display: block; }
.brand-text b .gold { color: var(--accent); }
.brand-text > span { font-size: .6rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav a { color: var(--text-soft); font-weight: 600; font-size: .92rem; text-decoration: none !important; position: relative; padding: .3rem 0; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  border-radius: 3px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.06); color: var(--primary); }
.theme-toggle svg { width: 19px; height: 19px; }
[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun, html:not([data-theme="dark"]) .icon-sun { display: none; }

.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-close {
  display: none; position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 1.2rem; line-height: 1;
  cursor: pointer; z-index: 10;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--hero-grad);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(76, 194, 245, .28), transparent 65%),
    radial-gradient(500px 400px at 10% 90%, rgba(255, 255, 255, .08), transparent 60%);
}
.hero-inner { position: relative; padding: 5.5rem 0 6.5rem; max-width: 780px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: .4rem 1rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(76,194,245,.65); } 50% { box-shadow: 0 0 0 7px rgba(76,194,245,0); } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,.88); margin-bottom: 2.2rem; max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-wave { display: block; width: 100%; margin-top: -1px; color: var(--bg); }

/* page hero (inner pages) */
.page-hero { background: var(--hero-grad); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 250px at 88% 20%, rgba(76,194,245,.26), transparent 60%); }
.page-hero-inner { position: relative; padding: 3.6rem 0 4.2rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; }
.breadcrumb { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; margin-bottom: .8rem; }

/* ---------- sections ---------- */
section.block { padding: 4.2rem 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary); margin-bottom: .7rem;
}
.kicker::before { content: "— "; color: var(--accent); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.section-head p { color: var(--text-soft); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.18rem; margin: 0 0 .55rem; font-family: var(--font-body); font-weight: 800; }
.card p { color: var(--text-soft); font-size: .94rem; }
.card .icon-bubble {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 1.1rem; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.card .icon-bubble svg { width: 26px; height: 26px; }
.card ul { list-style: none; margin-top: .6rem; }
.card ul li { padding-left: 1.4rem; position: relative; color: var(--text-soft); font-size: .92rem; margin: .35rem 0; }
.card ul li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; top: .15rem; }

/* values chips */
.values-strip { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.value-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow);
}
.value-chip .star { color: var(--accent); }

/* ---------- impact stats ---------- */
.stats-band { background: var(--hero-grad); color: #fff; border-radius: calc(var(--radius) + 8px); padding: 3rem 2.2rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% 0%, rgba(76,194,245,.28), transparent 60%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem 1.2rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--gold-400); }
.stat .label { font-size: .85rem; color: rgba(255,255,255,.82); margin-top: .2rem; }

.impact-cat { margin-bottom: 2rem; }
.impact-cat h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--primary); }
.impact-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.impact-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.impact-tile .num { font-size: 1.7rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.impact-tile .label { font-size: .85rem; color: var(--muted); }

/* ---------- quote / founder ---------- */
.founder-quote {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-left: 6px solid var(--accent); border-radius: var(--radius);
  padding: 2.2rem 2.4rem; box-shadow: var(--shadow);
}
.founder-quote p.q { font-family: var(--font-display); font-size: 1.18rem; font-style: italic; color: var(--text); margin-bottom: 1.2rem; }
.founder-sig b { display: block; }
.founder-sig span { color: var(--muted); font-size: .88rem; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.2rem; box-shadow: var(--shadow); transition: transform .25s; }
.team-card:hover { transform: translateY(-5px); }
.team-photo {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden;
  border: 4px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--surface-2); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; color: var(--primary); font-weight: 700;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card b { display: block; font-size: 1.02rem; }
.team-card .role { color: var(--primary); font-size: .85rem; font-weight: 700; }
.team-card .bio { color: var(--muted); font-size: .85rem; margin-top: .5rem; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; }
.field label .req { color: #d33; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem 1rem; transition: border .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.form-msg { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-strong); }
.form-msg.err { display: block; background: rgba(220, 60, 60, .12); color: #d05050; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.tab-btn {
  padding: .65rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-soft); font-weight: 700; font-size: .92rem;
  cursor: pointer; font-family: var(--font-body); transition: .2s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tab-panel { display: none; animation: fadeUp .35s ease; }
.tab-panel.active { display: block; }

/* ---------- donate ---------- */
.donate-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.bank-card {
  background: var(--hero-grad); color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.bank-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(350px 200px at 90% 10%, rgba(76,194,245,.32), transparent 60%); }
.bank-card > * { position: relative; }
.bank-card .bank-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 700; }
.bank-card .bank-value { font-size: 1.05rem; font-weight: 700; margin: .15rem 0 1.1rem; }
.bank-card .acct-num { font-size: clamp(1.6rem, 4vw, 2.2rem); font-family: var(--font-display); letter-spacing: .12em; color: var(--gold-400); }
.copy-btn {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 999px; padding: .45rem 1.1rem; font-size: .82rem; font-weight: 700;
  font-family: var(--font-body); transition: .2s; vertical-align: middle;
}
.copy-btn:hover { background: rgba(255,255,255,.26); }
.copy-btn.copied { background: var(--sky-500); color: var(--on-accent); border-color: var(--sky-500); }
.copy-btn svg { width: 14px; height: 14px; }

/* inline copyable (footer / light surfaces) */
.copy-inline { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* ---------- projects / news ---------- */
.proj-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.proj-card .thumb { height: 190px; background: var(--surface-2); position: relative; overflow: hidden; }
.proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj-card:hover .thumb img { transform: scale(1.06); }
.proj-card .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--surface-2), var(--bg-soft)); }
.proj-card .thumb .ph svg { width: 44px; height: 44px; opacity: .5; }
.proj-card .body { padding: 1.4rem 1.6rem 1.7rem; flex: 1; }
.badge {
  display: inline-block; padding: .25rem .85rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.badge.ongoing { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.badge.completed { background: rgba(100, 116, 139, .15); color: #64748b; }
.badge.upcoming { background: color-mix(in srgb, var(--sky-500) 20%, transparent); color: #0369a1; }
[data-theme="dark"] .badge.upcoming { color: var(--sky-400); }
.meta { font-size: .8rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.g-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--surface-2); border: 1px solid var(--border); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.07); }
.g-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: .85rem; font-weight: 600;
}
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 15, 11, .9);
  display: none; place-items: center; padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox .lb-content { max-width: min(960px, 94vw); max-height: 86vh; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 80vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: .8rem; }
.lb-close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* ---------- reports ---------- */
.report-row {
  display: flex; align-items: center; gap: 1.2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow); transition: transform .2s;
}
.report-row:hover { transform: translateX(4px); }
.report-row .ric { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.report-row .ric svg { width: 22px; height: 22px; }
.report-row .grow { flex: 1; min-width: 0; }
.report-row b { display: block; font-size: .98rem; }
.report-row span { font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 1.1rem 1.4rem; background: none; border: none;
  font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { transition: transform .25s; color: var(--primary); flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.4rem 1.2rem; color: var(--text-soft); font-size: .93rem; }

/* ---------- partners ---------- */
.partner-logos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.partner-pill {
  display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; color: var(--text-soft); box-shadow: var(--shadow);
}
.partner-pill img { height: 34px; width: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--hero-grad); border-radius: calc(var(--radius) + 8px); color: #fff; padding: 3.2rem 2.5rem; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 220px at 12% 100%, rgba(76,194,245,.28), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: #cfe2d8; margin-top: 4.5rem; }
[data-theme="dark"] .site-footer { background: #081410; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.4rem; padding: 3.6rem 0 2.4rem; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #cfe2d8; }
.site-footer a:hover { color: var(--gold-400); }
.footer-links { list-style: none; }
.footer-links li { margin: .45rem 0; font-size: .92rem; }
.footer-about p { font-size: .9rem; color: #a9c4b6; margin-top: 1rem; }
.footer-contact li { display: flex; gap: .6rem; margin: .6rem 0; font-size: .9rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: .25rem; color: var(--gold-400); }
.footer-news p { font-size: .9rem; color: #a9c4b6; margin-bottom: 1rem; }
.footer-news form { display: flex; gap: .5rem; }
.footer-news input {
  flex: 1; min-width: 0; padding: .7rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-body);
}
.footer-news input::placeholder { color: #8fae9f; }
.footer-news input:focus { outline: none; border-color: var(--gold-400); }
.footer-acct { margin-top: 1.4rem; padding: 1rem 1.2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); font-size: .85rem; }
.footer-acct b { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .82rem; color: #8fae9f; }
.socials { display: flex; gap: .7rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); transition: .2s;
}
.socials a:hover { background: var(--sky-500); color: #05243a !important; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.empty-note { text-align: center; color: var(--muted); padding: 2.5rem 1rem; border: 1.5px dashed var(--border); border-radius: var(--radius); }
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--green-900); color: #fff; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .3s; z-index: 400;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.prose p { margin-bottom: 1rem; color: var(--text-soft); }
.prose ul { margin: .6rem 0 1.2rem 1.3rem; color: var(--text-soft); }
.prose ul li { margin: .35rem 0; }
.prose h3 { margin: 1.6rem 0 .7rem; font-size: 1.25rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-rows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 80vw); height: 100vh; height: 100dvh;
    z-index: 250;
    display: flex; flex-direction: column; align-items: stretch;
    background: var(--surface); border-left: 1px solid var(--border);
    padding: 4.5rem 1.8rem 2rem; gap: .4rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(110%); transition: transform .3s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav a {
    display: block; padding: .7rem 1rem; border-radius: var(--radius-sm);
    transition: background .15s;
  }
  .main-nav a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
  .main-nav a.active { background: color-mix(in srgb, var(--primary) 14%, transparent); }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav a { font-size: 1rem; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(5, 12, 9, .7); z-index: 155; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  .nav-burger { display: flex; }
  .nav-close { display: grid; place-items: center; }
  .grid-2, .grid-3, .two-col, .form-grid { grid-template-columns: 1fr; }
  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-sidebar { position: static; top: auto; }
  /* Give brand name more room at tablet/large-phone size */
  .brand-text b { font-size: .9rem; letter-spacing: 0; }
  .header-donate { display: none; }
  /* Freeze body scroll while nav is open */
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .grid-4, .team-grid, .gallery-grid, .impact-rows { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-inner { padding: 3.6rem 0 4.6rem; }
  section.block { padding: 3rem 0; }
  .form-card { padding: 1.5rem; }
  .bank-card { padding: 1.7rem; }
  .brand-text > span { display: none; }
  /* Ensure full brand name fits on small phones */
  .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; }
  .brand-mark img { width: 38px; height: 38px; }
  .brand-text b { font-size: .82rem; }
  .header-actions { gap: .4rem; }
  .theme-toggle { width: 36px; height: 36px; }
  .nav-burger { width: 36px; height: 36px; border-radius: 10px; }
}
