/*
Theme Name: WiBA Theme Logo Fix
Theme URI: https://womeninblockchain.africa/
Author: WiBA
Author URI: https://womeninblockchain.africa/
Description: Custom WordPress theme for Women In Blockchain Africa, converted from the WiBA static site. Gold-and-midnight design system with Fraunces display and Hanken Grotesk body. Uses fixed public-root links for the logo, navigation, Community and Donate pages; includes the membership wizard and wp_mail-powered contact/join forms.
Version: 1.0.7
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wiba
Tags: custom-menu, custom-logo, featured-images, translation-ready, one-column, threaded-comments
*/

:root {
  --gold: #E4C527;
  --gold-dark: #C9A921;
  --gold-deep: #7E630D;
  --ink: #0B0B0F;
  --navy: #17172F;
  --navy-2: #101022;
  --cream: #FAF5EB;
  --cream-2: #F2ECDD;
  --white: #FFFFFF;
  --muted: #6B6B76;
  --line: #E7E1D3;
  --danger: #B3261E;
  --radius: 16px;
  --shadow: 0 20px 45px -20px rgba(11,11,15,0.25);
  --font-display: "Fraunces", serif;
  --font-body: "Hanken Grotesk", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, 92%); margin-inline: auto; }
section { padding: 96px 0; }
.cream-bg { background: var(--cream); }
.navy-bg { background: linear-gradient(150deg, var(--ink), var(--navy)); color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); }
h2 {
  font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.hero .eyebrow, .page-hero .eyebrow, .problem .eyebrow, .cta-band .eyebrow { color: var(--gold-dark); }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; padding: 13px 26px; border-radius: 999px;
  cursor: pointer; text-decoration: none; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 12px 24px -12px rgba(228,197,39,.7); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Header ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--white);
  transition: box-shadow .3s ease;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
}
.admin-bar header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar header { top: 46px; }
}
header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11,11,15,0.2); }
header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
nav a {
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; position: relative; transition: color .2s ease, background .2s ease;
}
nav a:hover { color: var(--gold-deep); }
nav a.active { background: rgba(228,197,39,.16); color: var(--ink); }
nav a.current-menu-item, nav a.current_page_item { background: rgba(228,197,39,.16); color: var(--ink); }
.hamburger {
  display: none; background: none; border: 1px solid var(--line); cursor: pointer;
  width: 42px; height: 42px; border-radius: 12px; place-items: center;
}
.hamburger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
@media (max-width: 900px) {
  nav {
    position: fixed; inset: 0; background: var(--navy-2);
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform .3s ease; z-index: 60;
  }
  nav.open { transform: translateX(0); }
  nav ul { flex-direction: column; gap: 8px; }
  nav a { color: var(--white); font-size: 20px; }
  nav a:hover, nav a.active { color: var(--gold); background: transparent; }
  nav a.current-menu-item, nav a.current_page_item { color: var(--gold); background: transparent; }
  .hamburger { display: grid; z-index: 70; }
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hamburger.open { border-color: rgba(255,255,255,.3); }
  .hamburger.open span { background: var(--white); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(228,197,39,.16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy-2) 55%, var(--navy) 100%);
  color: var(--white); padding: 168px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='rgba(228,197,39,0.10)' stroke-width='1.4'%3E%3Cpath d='M0 60 L90 60 L90 170 L180 170 L180 260'/%3E%3Cpath d='M260 50 L170 50 L170 120 L80 120'/%3E%3C/g%3E%3Cg fill='rgba(228,197,39,0.22)'%3E%3Ccircle cx='90' cy='60' r='4'/%3E%3Ccircle cx='90' cy='170' r='4'/%3E%3Ccircle cx='180' cy='170' r='4'/%3E%3Ccircle cx='170' cy='120' r='4'/%3E%3Ccircle cx='80' cy='120' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.crumbs a { color: var(--gold); text-decoration: none; }
.page-hero h1 {
  font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -.02em; max-width: 20ch;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(228,197,39,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(228,197,39,.10), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy-2) 55%, var(--navy) 100%);
  color: var(--white); min-height: 92svh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 170px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='rgba(228,197,39,0.10)' stroke-width='1.4'%3E%3Cpath d='M0 60 L90 60 L90 170 L180 170 L180 260'/%3E%3Cpath d='M260 50 L170 50 L170 120 L80 120'/%3E%3Cpath d='M0 200 L110 200'/%3E%3C/g%3E%3Cg fill='rgba(228,197,39,0.22)'%3E%3Ccircle cx='90' cy='60' r='4'/%3E%3Ccircle cx='90' cy='170' r='4'/%3E%3Ccircle cx='180' cy='170' r='4'/%3E%3Ccircle cx='180' cy='50' r='4'/%3E%3Ccircle cx='170' cy='120' r='4'/%3E%3Ccircle cx='80' cy='120' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04; letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 .gold { color: var(--gold); }
.hero p.lead { color: rgba(255,255,255,.72); font-size: 17.5px; max-width: 54ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.5); }
.hero-note strong { color: var(--gold); font-weight: 600; }
.hero { text-align: center; }
.hero .container { text-align: center; }
.hero .halo { position: absolute; left: 50%; top: 44%; width: min(760px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(228,197,39,.22), rgba(228,197,39,0) 62%); pointer-events: none; }
.hero .eyebrow { justify-content: center; color: var(--gold-dark); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); margin-bottom: 24px; }
.hero p.lead { margin-inline: auto; margin-bottom: 38px; }
.hero .hero-cta { justify-content: center; }
@media (max-width: 900px) {
  .hero .halo { width: 120vw; top: 40%; }
}

/* ---------- Stats band ---------- */
.stats { background: var(--gold); color: var(--ink); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.stat .lbl { margin-top: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; opacity: .75; }
.stat + .stat { border-left: 1px solid rgba(0,0,0,.18); }

/* ---------- Split / about intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.media-right .media { order: 2; }
.split .media img { width: 100%; border-radius: 20px; }
.split .eyebrow { margin-bottom: 14px; }
.split p { color: var(--muted); font-size: 16.5px; margin-bottom: 18px; }
.split p strong { color: var(--ink); }

/* ---------- Vision / mission cards ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vm-grid .card h3 { display: flex; align-items: center; gap: 10px; }
.vm-grid .card h3 .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); background: rgba(228,197,39,.15); padding: 3px 10px; border-radius: 999px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(228,197,39,.55); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card .icon svg { width: 26px; height: 26px; }
.card:has(.icon):not(.contact-card) { display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; row-gap: 14px; align-items: center; }
.card:has(.icon):not(.contact-card) .icon { margin-bottom: 0; grid-column: 1; grid-row: 1; }
.card:has(.icon):not(.contact-card) h3 { margin-bottom: 0; grid-column: 2; grid-row: 1; align-self: center; }
.card:has(.icon):not(.contact-card) p { grid-column: 1 / -1; margin-top: 0; }
.card h3 { font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Problem stats ---------- */
.problem {
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(228,197,39,.12), transparent 60%),
    linear-gradient(150deg, var(--ink), var(--navy));
  color: var(--white); position: relative; overflow: hidden;
}
.problem h2 { color: var(--white); }
.problem .section-head p { color: rgba(255,255,255,.68); }
.problem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem-stat {
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 34px 28px; background: rgba(255,255,255,.04);
}
.problem-stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; }
.problem-stat p { color: rgba(255,255,255,.72); font-size: 15px; margin-top: 10px; }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.counter .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-deep); }
.counter .lbl { font-size: 14px; color: var(--muted); letter-spacing: .06em; font-weight: 600; margin-top: 6px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); text-align: center; transition: transform .22s ease, box-shadow .22s ease;
}
.team:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team .photo { aspect-ratio: 1/1; overflow: hidden; background: var(--cream-2); }
.team .photo img { width: 100%; height: 100%; object-fit: cover; }
.team .meta { padding: 18px 16px 20px; }
.team .meta h3 { font-size: 16.5px; font-weight: 600; }
.team .meta .role { font-size: 13px; color: var(--gold-deep); font-weight: 600; margin-top: 2px; }
.team .meta .links { margin-top: 10px; }
.team .meta .links a { color: var(--muted); margin: 0 4px; }
.team .meta .links a:hover { color: var(--gold-deep); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative;
}
.testi .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.testi p { color: var(--muted); font-size: 15px; }
.testi .who { margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid .g { border-radius: 14px; overflow: hidden; position: relative; }
.gallery-grid .g img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.gallery-grid .g:hover img { transform: scale(1.05); }
.gallery-grid .g.tall img { height: 280px; }

/* ---------- Program rows ---------- */
.prog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.prog-row:first-of-type { border-top: 0; }
.prog-row.reverse .media { order: 2; }
.prog-row .num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--gold-deep); letter-spacing: .12em; }
.prog-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prog-row .desc { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.prog-row .media img { width: 100%; border-radius: 20px; height: 340px; object-fit: cover; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post .thumb { height: 240px; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post:hover .thumb img { transform: scale(1.04); }
.post .body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post .tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); background: rgba(228,197,39,.15); padding: 4px 12px; border-radius: 999px; }
.post h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.post p { color: var(--muted); font-size: 14.5px; flex: 1; }
.post .links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; padding: 36px 26px; }
.contact-card .icon { margin: 0 auto 18px; }
.contact-card h3 { font-size: 17px; }
.contact-card a { color: var(--ink); font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--gold-deep); }
.contact-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 44px; box-shadow: 0 14px 34px -20px rgba(11,11,15,.22); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field label .req { color: var(--gold-dark); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--white); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228,197,39,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; margin: 0; cursor: pointer; }
.radio-row input { accent-color: var(--gold); width: 16px; height: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.form-progress .step-dot { flex: 1; height: 6px; border-radius: 999px; background: var(--line); transition: background .25s ease; }
.form-progress .step-dot.done { background: var(--gold-deep); }
.form-progress .step-dot.current { background: var(--gold); }
.form-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-card .step-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 20px; padding: 0; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }
.field .error-msg { display: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.form-success { display: none; text-align: center; padding: 18px 0; }
.form-success.active { display: block; }
.form-success h3 { font-size: 24px; margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 14.5px; max-width: 52ch; margin: 0 auto 14px; line-height: 1.6; }
.form-success a { color: var(--gold-deep); }
.form-alert { display: none; margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: rgba(179,38,30,.1); border: 1px solid rgba(179,38,30,.35); color: var(--danger); font-size: 14px; font-weight: 500; }
.form-alert.show { display: block; }

/* ---------- Partners ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-chip {
  display: grid; place-items: center; height: 96px; padding: 14px;
  border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.logo-chip:hover { filter: none; opacity: 1; border-color: rgba(228,197,39,.6); transform: translateY(-3px); }
.logo-chip img { max-height: 58px; max-width: 90%; object-fit: contain; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(500px 300px at 15% 100%, rgba(228,197,39,.18), transparent 60%),
    var(--ink);
  color: var(--white); text-align: center; padding: 90px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.7); max-width: 46ch; margin: 0 auto 30px; font-size: 16.5px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  min-width: 300px; padding: 14px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: var(--white); font-family: var(--font-body); font-size: 14.5px; outline: none;
}
.cta-form input::placeholder { color: rgba(255,255,255,.45); }
.cta-form input:focus { border-color: var(--gold); }

/* ---------- Donate modal ---------- */
.donate-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.donate-modal.open { display: flex; }
.donate-backdrop { position: absolute; inset: 0; background: rgba(11,11,15,.72); backdrop-filter: blur(3px); }
.donate-panel {
  position: relative; width: min(640px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: 22px; padding: 34px; box-shadow: var(--shadow);
}
.donate-panel h3 { font-size: 24px; margin-bottom: 4px; }
.donate-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.donate-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 18px; cursor: pointer; color: var(--muted); }
.donate-close:hover { color: var(--ink); border-color: var(--gold); }
.donate-tabs { display: flex; gap: 8px; background: var(--cream); padding: 6px; border-radius: 999px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 10px 16px; border-radius: 999px; border: 0; background: transparent; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tab-btn.active { background: var(--gold); color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.donate-panel .label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.copy-row { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.copy-row code { flex: 1; font-size: 13px; word-break: break-all; color: var(--ink); }
.copy-btn { flex: none; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink); }
.copy-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.donate-panel .note { font-size: 13px; color: var(--ink); margin-top: 18px; padding: 14px 16px; background: rgba(228,197,39,.12); border-radius: 10px; }
.bank-block { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.bank-block h4 { font-size: 15px; margin-bottom: 8px; font-family: var(--font-display); }
.bank-block p { font-size: 14px; color: var(--muted); }
.bank-block p b { color: var(--ink); }
.bank-block .copy-btn { padding: 4px 10px; font-size: 11px; margin-left: 6px; vertical-align: middle; }
.donate-panel .donate-help { background: var(--cream); border: 1px dashed var(--line); color: var(--muted); }

/* ---------- Footer ---------- */
footer { background: var(--navy-2); color: rgba(255,255,255,.72); padding: 72px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.foot-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.foot-brand p { font-size: 14px; margin-top: 16px; max-width: 30ch; color: rgba(255,255,255,.6); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--gold);
  transition: background .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; border-radius: 0 0 8px 0; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 0; }
footer h4, footer h3 { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer ul a { color: rgba(255,255,255,.66); text-decoration: none; font-size: 14px; transition: color .2s ease; }
footer ul a:hover { color: var(--gold); }
.foot-contact li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.66); }
.foot-contact svg { flex: none; margin-top: 2px; color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
.foot-bottom a { color: var(--gold); text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .split, .prog-row { grid-template-columns: 1fr; gap: 36px; }
  .split.media-right .media, .prog-row.reverse .media { order: 0; }
  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .vm-grid, .testi-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .problem-stats, .counters { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .grid-3, .vm-grid, .testi-grid, .contact-grid, .grid-4, .team-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 26px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .page-hero { padding-top: 140px; }
  .hero { padding-top: 140px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Theme extras (WordPress) ---------- */
nav li.current-menu-item > a,
nav li.current_page_item > a,
nav li.current_page_parent > a {
  background: rgba(228,197,39,.16);
  color: var(--ink);
}
@media (max-width: 900px) {
  nav li.current-menu-item > a,
  nav li.current_page_item > a,
  nav li.current_page_parent > a {
    background: transparent;
    color: var(--gold);
  }
}
.donate-page .label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 8px;
}
.donate-page .note {
  font-size: 13px; color: var(--ink); margin-top: 18px; padding: 14px 16px;
  background: rgba(228,197,39,.12); border-radius: 10px;
}
.donate-page .donate-help {
  background: var(--cream); border: 1px dashed var(--line); color: var(--muted);
}
.donate-page .copy-row { background: var(--cream); }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Critical UI fallbacks and button normalization. */
.foot-bottom button[data-open-donate] {
  appearance: none; border: 0; background: none; padding: 0;
  color: inherit; font: inherit; cursor: pointer; text-decoration: underline;
}

/* ---------- Final navigation and donation controls (v1.0.5) ---------- */
.brand-preview {
  cursor: default;
}

.desktop-nav { display: block; }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .hamburger { display: grid; }
.mobile-nav[open] .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav[open] .hamburger span:nth-child(2) { opacity: 0; }
.mobile-nav[open] .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav[open] .hamburger { border-color: rgba(255,255,255,.3); position: relative; z-index: 202; }
.mobile-nav[open] .hamburger span { background: var(--white); }
.mobile-nav:not([open]) .mobile-nav-panel { display: none !important; }
.mobile-nav[open] .mobile-nav-panel { display: flex !important; }
.mobile-nav-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200 !important;
  background: var(--navy-2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 90px 24px 40px !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.mobile-nav-panel ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mobile-nav-panel a {
  display: block !important;
  color: var(--white) !important;
  font-size: 21px !important;
  text-decoration: none !important;
  padding: 10px 16px !important;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel .current-menu-item > a,
.mobile-nav-panel a.active { color: var(--gold) !important; }

.donate-trigger { cursor: pointer; text-decoration: none; }
.donate-modal:target { display: flex !important; }
.donate-modal .donate-backdrop,
.donate-modal .donate-close { cursor: pointer; text-decoration: none; }

@media (max-width: 900px) {
  .desktop-nav { display: none !important; }
  .mobile-nav { display: block !important; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
  .desktop-nav { display: block !important; }
}
