/*
Theme Name: Building Malawi
Theme URI: https://www.buildingmalawi.com/
Author: Footprint Digital
Author URI: https://www.footprintdigital.co.uk/
Description: Bold, playful, multi-colour theme for Building Malawi — a UK charity building sustainable, Malawian-run schools, libraries and sports facilities in Lilongwe. Sticker-style outlines, hard offset shadows, leaning all the way into the brand yellow.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: building-malawi
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bm-yellow: #FFD400;
  --bm-ink:    #17150D;
  --bm-cream:  #FFFCF2;
  --bm-green:  #1AA64B;
  --bm-blue:   #15B7E8;
  --bm-coral:  #FF5945;
  --bm-orange: #FF9326;
  --bm-fb:     #1877F2;

  --bm-display: 'Bevan', Georgia, 'Times New Roman', serif;
  --bm-body: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --bm-maxw: 1240px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bm-body);
  color: var(--bm-ink);
  background: var(--bm-cream);
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: inherit; }

.bm-container {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  padding-left: 26px;
  padding-right: 26px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.bm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--bm-ink);
  color: var(--bm-yellow);
  padding: 12px 18px;
  font-weight: 800;
  border-radius: 0 0 10px 0;
}
.bm-skip-link:focus { left: 0; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes bm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bm-float { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-14px) rotate(var(--r,0deg)); } }
@keyframes bm-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bm-marquee__track,
  .bm-confetti *,
  .bm-spin { animation: none !important; }
}

/* ==========================================================================
   Buttons (sticker style)
   ========================================================================== */
.bm-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
  font-family: var(--bm-body);
  line-height: 1.1;
}
.bm-btn--ink {
  background: var(--bm-ink);
  color: var(--bm-yellow);
  font-size: 18px;
  padding: 16px 30px;
  box-shadow: 6px 6px 0 var(--bm-green);
}
.bm-btn--ink:hover,
.bm-btn--ink:focus-visible { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--bm-green); }

.bm-btn--ink-yellowshadow { box-shadow: 6px 6px 0 var(--bm-yellow); }
.bm-btn--ink-yellowshadow:hover,
.bm-btn--ink-yellowshadow:focus-visible { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--bm-yellow); }

.bm-btn--ink-whiteshadow { box-shadow: 6px 6px 0 #fff; }
.bm-btn--ink-whiteshadow:hover,
.bm-btn--ink-whiteshadow:focus-visible { transform: translate(2px,2px); box-shadow: 3px 3px 0 #fff; }

.bm-btn--outline {
  background: #fff;
  color: var(--bm-ink);
  font-size: 18px;
  padding: 16px 28px;
  border-color: var(--bm-ink);
}
.bm-btn--outline:hover,
.bm-btn--outline:focus-visible { background: var(--bm-ink); color: #fff; }

.bm-btn--yellow {
  background: var(--bm-yellow);
  color: var(--bm-ink);
  font-size: 17px;
  padding: 14px 26px;
}
.bm-btn--yellow:hover,
.bm-btn--yellow:focus-visible { background: var(--bm-green); color: #fff; }

.bm-btn--ghost {
  background: transparent;
  color: #fff;
  font-size: 17px;
  padding: 14px 24px;
  border-color: #fff;
  font-weight: 800;
}
.bm-btn--ghost:hover,
.bm-btn--ghost:focus-visible { background: #fff; color: var(--bm-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.bm-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bm-yellow);
  border-bottom: 3px solid var(--bm-ink);
}
.bm-header__inner {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bm-logo { display: flex; align-items: center; text-decoration: none; }
.bm-logo img { height: 50px; width: auto; display: block; }

.bm-nav { display: flex; align-items: center; }
.bm-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bm-nav__menu a {
  text-decoration: none;
  color: var(--bm-ink);
  font-weight: 800;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  display: inline-block;
}
.bm-nav__menu a:hover,
.bm-nav__menu a:focus-visible { background: var(--bm-ink); color: var(--bm-yellow); }

.bm-nav__menu .bm-nav__cta a,
.bm-nav__cta {
  color: var(--bm-yellow);
  background: var(--bm-ink);
  font-weight: 900;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  margin-left: 6px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.18);
  text-decoration: none;
  display: inline-block;
}
.bm-nav__menu .bm-nav__cta a:hover,
.bm-nav__cta:hover,
.bm-nav__cta:focus-visible { background: var(--bm-green); color: #fff; }

/* Mobile nav toggle */
.bm-nav-toggle {
  display: none;
  background: var(--bm-ink);
  color: var(--bm-yellow);
  border: 3px solid var(--bm-ink);
  border-radius: 12px;
  font-weight: 900;
  font-size: 15px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--bm-body);
}

/* ==========================================================================
   Sections / headings
   ========================================================================== */
.bm-section { padding: 84px 26px; }
.bm-section__inner { max-width: var(--bm-maxw); margin: 0 auto; }

.bm-eyebrow {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
}
.bm-eyebrow--green  { color: var(--bm-green); }
.bm-eyebrow--coral  { color: var(--bm-coral); }
.bm-eyebrow--orange { color: var(--bm-orange); }
.bm-eyebrow--yellow { color: var(--bm-yellow); }

.bm-pill {
  display: inline-block;
  background: var(--bm-yellow);
  border: 3px solid var(--bm-ink);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bm-ink);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
}

.bm-h2 {
  font-family: var(--bm-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.04;
  margin: 12px 0 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bm-hero {
  position: relative;
  background: var(--bm-yellow);
  overflow: hidden;
}
.bm-hero__inner {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  padding: 62px 26px 60px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.bm-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bm-ink);
  color: var(--bm-yellow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}
.bm-hero__title {
  font-family: var(--bm-display);
  font-weight: 400;
  color: var(--bm-ink);
  font-size: 74px;
  line-height: 0.98;
  margin: 22px 0 0;
  letter-spacing: -0.01em;
}
.bm-hero__title span { color: var(--bm-green); }
.bm-hero__lead {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 520px;
  margin: 24px 0 0;
  color: #2b2820;
}
.bm-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.bm-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-weight: 800;
  font-size: 15px;
}
.bm-trust span.bm-trust__item { display: inline-flex; align-items: center; gap: 8px; }
.bm-trust__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bm-ink);
}
.bm-trust__dot--green { background: var(--bm-green); }
.bm-trust__dot--blue  { background: var(--bm-blue); }
.bm-trust__dot--coral { background: var(--bm-coral); }

.bm-hero__media { position: relative; }
.bm-hero__card {
  position: relative;
  border: 4px solid var(--bm-ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--bm-ink);
  transform: rotate(2deg);
  background: var(--bm-blue);
}
.bm-hero__card img { display: block; width: 100%; height: 480px; object-fit: cover; }

.bm-hero__sticker {
  position: absolute;
  bottom: -22px;
  left: -26px;
  background: var(--bm-cream);
  border: 3px solid var(--bm-ink);
  border-radius: 18px;
  padding: 12px 16px;
  transform: rotate(-4deg);
  box-shadow: 5px 5px 0 var(--bm-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bm-hero__sticker img { height: 46px; width: auto; display: block; }
.bm-hero__sticker-text { font-family: var(--bm-display); font-size: 15px; line-height: 1.05; }

.bm-hero__badge {
  position: absolute;
  top: -20px;
  right: -14px;
  background: var(--bm-orange);
  border: 3px solid var(--bm-ink);
  border-radius: 50%;
  width: 92px; height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--bm-display);
  font-size: 13px;
  line-height: 1;
  transform: rotate(10deg);
  box-shadow: 4px 4px 0 var(--bm-ink);
}
.bm-hero__badge span { font-size: 10px; }

/* Confetti */
.bm-confetti { position: absolute; inset: 0; z-index: 1; }
.bm-confetti__shape {
  position: absolute;
  border: 3px solid var(--bm-ink);
  animation: bm-float 7s ease-in-out infinite;
}
.bm-confetti__shape--1 { top: 8%; left: 6%; width: 74px; height: 74px; border-radius: 50%; background: var(--bm-blue); --r: -8deg; animation-duration: 6s; }
.bm-confetti__shape--2 { top: 62%; left: 3%; width: 54px; height: 54px; background: var(--bm-coral); border-radius: 14px; --r: 12deg; transform: rotate(12deg); animation-duration: 7.5s; }
.bm-confetti__shape--3 { top: 14%; right: 8%; width: 60px; height: 60px; background: var(--bm-orange); border-radius: 50%; --r: 0deg; animation-duration: 8s; }
.bm-confetti__shape--4 { bottom: 18%; right: 4%; width: 46px; height: 46px; background: var(--bm-green); border-radius: 12px; transform: rotate(-14deg); --r: -14deg; animation-duration: 6.8s; }
.bm-confetti__star { position: absolute; top: 40%; left: 46%; animation: bm-spin 16s linear infinite; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.bm-marquee {
  background: var(--bm-ink);
  border-top: 3px solid var(--bm-ink);
  border-bottom: 3px solid var(--bm-ink);
  overflow: hidden;
  padding: 13px 0;
}
.bm-marquee__track {
  display: flex;
  width: max-content;
  animation: bm-marquee 26s linear infinite;
  font-family: var(--bm-display);
  font-size: 21px;
  color: var(--bm-yellow);
  white-space: nowrap;
}
.bm-marquee__group {
  display: inline-flex;
  gap: 42px;
  padding-right: 42px;
}
.bm-marquee__group .c-green  { color: var(--bm-green); }
.bm-marquee__group .c-blue   { color: var(--bm-blue); }
.bm-marquee__group .c-coral  { color: var(--bm-coral); }
.bm-marquee__group .c-orange { color: var(--bm-orange); }

/* ==========================================================================
   Impact
   ========================================================================== */
.bm-impact { background: var(--bm-cream); }
.bm-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.bm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.bm-stat {
  border: 3px solid var(--bm-ink);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 6px 6px 0 var(--bm-ink);
}
.bm-stat--blue   { background: var(--bm-blue); }
.bm-stat--green  { background: var(--bm-green); color: #fff; }
.bm-stat--orange { background: var(--bm-orange); }
.bm-stat--coral  { background: var(--bm-coral); color: #fff; }
.bm-stat__num {
  font-family: var(--bm-display);
  font-size: 60px;
  line-height: 0.9;
}
.bm-stat--blue .bm-stat__num,
.bm-stat--green .bm-stat__num,
.bm-stat--coral .bm-stat__num { color: #fff; }
.bm-stat--orange .bm-stat__num { color: var(--bm-ink); }
.bm-stat__num--sm { font-size: 50px; }
.bm-stat__label { font-weight: 800; font-size: 17px; margin-top: 10px; }

/* ==========================================================================
   Story / Lingadzi
   ========================================================================== */
.bm-story {
  background: var(--bm-green);
  border-top: 3px solid var(--bm-ink);
  border-bottom: 3px solid var(--bm-ink);
  position: relative;
}
.bm-story__inner {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: center;
}
.bm-story__title { color: #fff; font-size: 48px; line-height: 1.02; margin: 18px 0 0; font-family: var(--bm-display); font-weight: 400; }
.bm-story__text { font-size: 19px; line-height: 1.55; font-weight: 500; color: #eafce9; margin: 20px 0 0; }
.bm-story__text strong { color: var(--bm-yellow); }
.bm-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.bm-story__photo-wide {
  grid-column: 1 / 3;
  border: 4px solid var(--bm-ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--bm-ink);
}
.bm-story__photo-wide img { display: block; width: 100%; height: 260px; object-fit: cover; }
.bm-story__photo {
  border: 4px solid var(--bm-ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--bm-ink);
  transform: rotate(-1.5deg);
}
.bm-story__photo img { display: block; width: 100%; height: 180px; object-fit: cover; }
.bm-story__note {
  border: 4px solid var(--bm-ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--bm-ink);
  transform: rotate(2deg);
  background: var(--bm-yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}
.bm-story__note-text { font-family: var(--bm-display); font-size: 34px; line-height: 0.95; }

/* ==========================================================================
   Where the money goes / Donate
   ========================================================================== */
.bm-donate { background: var(--bm-ink); color: #fff; }
.bm-donate__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: stretch;
}
.bm-badge100 {
  background: var(--bm-yellow);
  color: var(--bm-ink);
  border: 3px solid var(--bm-ink);
  border-radius: 26px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 8px 8px 0 var(--bm-green);
}
.bm-badge100__num { font-family: var(--bm-display); font-size: 96px; line-height: 0.85; }
.bm-badge100__lead { font-weight: 900; font-size: 20px; margin-top: 8px; }
.bm-badge100__sub { font-weight: 600; font-size: 14px; margin-top: 14px; line-height: 1.45; opacity: 0.85; }

.bm-thermo {
  background: #221f15;
  border: 3px solid var(--bm-yellow);
  border-radius: 26px;
  padding: 34px;
}
.bm-thermo__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.bm-thermo__goal-label { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bm-yellow); font-size: 13px; }
.bm-thermo__raised { font-family: var(--bm-display); font-size: 44px; line-height: 1; margin-top: 6px; }
.bm-thermo__raised span { color: #8a8678; font-size: 24px; }
.bm-thermo__pct { font-family: var(--bm-display); font-size: 40px; color: var(--bm-green); }
.bm-thermo__bar {
  margin-top: 22px;
  height: 34px;
  background: #0f0d08;
  border: 3px solid var(--bm-yellow);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bm-thermo__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bm-green), var(--bm-blue));
  width: 0;
  transition: width 0.2s linear;
}
.bm-thermo__copy { font-size: 16px; line-height: 1.5; font-weight: 500; color: #d8d4c6; margin: 22px 0 0; }
.bm-thermo__copy strong { color: #fff; }
.bm-thermo__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ==========================================================================
   Volunteer
   ========================================================================== */
.bm-volunteer {
  background: var(--bm-blue);
  border-bottom: 3px solid var(--bm-ink);
}
.bm-volunteer__inner {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}
.bm-volunteer__media {
  border: 4px solid var(--bm-ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--bm-ink);
  transform: rotate(-1.5deg);
}
.bm-volunteer__media img { display: block; width: 100%; height: 430px; object-fit: cover; }
.bm-volunteer__text { font-size: 19px; line-height: 1.55; font-weight: 500; margin: 20px 0 0; color: #0c2c36; }
.bm-volunteer__note { font-size: 16px; font-weight: 600; margin: 20px 0 0; color: #0c2c36; }
.bm-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.bm-tag {
  background: #fff;
  border: 3px solid var(--bm-ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 15px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.bm-gallery { background: var(--bm-cream); }
.bm-gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.bm-fb-btn {
  text-decoration: none;
  background: var(--bm-fb);
  color: #fff;
  border: 3px solid var(--bm-ink);
  font-weight: 800;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--bm-ink);
  display: inline-block;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bm-fb-btn:hover,
.bm-fb-btn:focus-visible { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--bm-ink); }

.bm-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.bm-gallery__fig {
  margin: 0;
  border: 4px solid var(--bm-ink);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.bm-gallery__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bm-gallery__fig:hover img { transform: scale(1.05); }
.bm-gallery__fig--a { grid-column: span 4; grid-row: span 2; box-shadow: 7px 7px 0 var(--bm-coral); }
.bm-gallery__fig--b { grid-column: span 2; grid-row: span 1; box-shadow: 7px 7px 0 var(--bm-blue); }
.bm-gallery__fig--c { grid-column: span 2; grid-row: span 1; box-shadow: 7px 7px 0 var(--bm-green); }
.bm-gallery__fig--d { grid-column: span 6; grid-row: span 1; box-shadow: 7px 7px 0 var(--bm-orange); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.bm-newsletter {
  background: var(--bm-yellow);
  padding: 78px 26px;
  border-top: 3px solid var(--bm-ink);
  border-bottom: 3px solid var(--bm-ink);
}
.bm-newsletter__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.bm-newsletter__title { font-family: var(--bm-display); font-weight: 400; font-size: 44px; line-height: 1.04; margin: 0; }
.bm-newsletter__lead { font-size: 18px; font-weight: 600; margin: 14px 0 0; color: #2b2820; }
.bm-newsletter__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.bm-newsletter__input {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  font-family: var(--bm-body);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 20px;
  border: 3px solid var(--bm-ink);
  border-radius: 999px;
  background: #fff;
  outline: none;
}
.bm-newsletter__input:focus-visible { box-shadow: 0 0 0 3px rgba(23,21,13,0.25); }
.bm-newsletter__submit {
  cursor: pointer;
  background: var(--bm-ink);
  color: var(--bm-yellow);
  font-family: var(--bm-body);
  font-weight: 900;
  font-size: 17px;
  padding: 15px 30px;
  border: 3px solid var(--bm-ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--bm-green);
  transition: background .15s ease, color .15s ease;
}
.bm-newsletter__submit:hover,
.bm-newsletter__submit:focus-visible { background: var(--bm-green); color: #fff; }
.bm-newsletter__thanks {
  margin-top: 28px;
  background: var(--bm-ink);
  color: var(--bm-yellow);
  font-weight: 800;
  font-size: 19px;
  padding: 20px 26px;
  border-radius: 18px;
  display: inline-block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bm-footer { background: var(--bm-ink); color: #e9e6da; padding: 64px 26px 36px; }
.bm-footer__inner {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.bm-footer__logo {
  display: inline-block;
  background: var(--bm-yellow);
  border-radius: 16px;
  padding: 12px 16px;
}
.bm-footer__logo img { height: 48px; width: auto; display: block; }
.bm-footer__about { font-size: 16px; line-height: 1.55; font-weight: 500; max-width: 380px; margin: 18px 0 0; color: #c7c3b4; }
.bm-footer__heading { font-family: var(--bm-display); font-size: 18px; color: var(--bm-yellow); }
.bm-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  padding: 0;
}
.bm-footer__list a { text-decoration: none; color: #e9e6da; transition: color .15s ease; }
.bm-footer__list a:hover,
.bm-footer__list a:focus-visible { color: var(--bm-yellow); }
.bm-footer__list .muted { color: #8f8b7d; }
.bm-footer__bar {
  max-width: var(--bm-maxw);
  margin: 40px auto 0;
  border-top: 1px solid #3a3628;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #8f8b7d;
  font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .bm-hero__inner,
  .bm-story__inner,
  .bm-volunteer__inner { grid-template-columns: 1fr; }
  .bm-hero__title { font-size: 56px; }
  .bm-donate__grid { grid-template-columns: 1fr; }
  .bm-stats { grid-template-columns: repeat(2, 1fr); }
  .bm-footer__inner { grid-template-columns: 1fr 1fr; }
  .bm-volunteer__media { order: 2; }
}

@media (max-width: 760px) {
  .bm-section { padding: 60px 22px; }
  .bm-nav-toggle { display: inline-block; }
  .bm-nav { display: none; flex-basis: 100%; }
  .bm-nav.is-open { display: block; }
  .bm-nav__menu { flex-direction: column; align-items: stretch; gap: 6px; }
  .bm-nav__menu a { padding: 12px 14px; }
  .bm-nav__menu .bm-nav__cta a,
  .bm-nav__cta { margin-left: 0; text-align: center; }
  .bm-hero__title { font-size: 44px; }
  .bm-hero__inner { padding: 44px 22px; }
  .bm-h2, .bm-story__title, .bm-newsletter__title { font-size: 36px; }
  .bm-badge100__num { font-size: 72px; }
  .bm-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .bm-gallery__fig--a { grid-column: span 2; grid-row: span 2; }
  .bm-gallery__fig--b,
  .bm-gallery__fig--c { grid-column: span 1; }
  .bm-gallery__fig--d { grid-column: span 2; }
  .bm-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 460px) {
  .bm-stats { grid-template-columns: 1fr; }
  .bm-hero__card img { height: 360px; }
}

/* ==========================================================================
   Dropdown navigation (added for multi-level menu)
   ========================================================================== */
.bm-nav__menu li { position: relative; }
.bm-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 10px 0 0;
  padding: 8px;
  background: var(--bm-cream);
  border: 3px solid var(--bm-ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--bm-ink);
  display: none;
  z-index: 90;
}
/* Invisible bridge across the gap so the cursor never leaves the hover area. */
.bm-nav__menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 16px;
}
.bm-nav__menu > li:hover > .sub-menu,
.bm-nav__menu > li:focus-within > .sub-menu { display: block; }
.bm-nav__menu .sub-menu a {
  display: block;
  white-space: nowrap;
  font-size: 14px;
  border-radius: 10px;
  padding: 9px 12px;
}
.bm-nav__menu .menu-item-has-children > a::after {
  content: " \25BE";
  font-size: 11px;
  opacity: 0.7;
}

/* ==========================================================================
   Page hero / feature image (interior pages)
   ========================================================================== */
.bm-page-hero {
  position: relative;
  background: var(--bm-yellow);
  border-bottom: 5px solid var(--bm-ink);
  padding: 56px 26px 50px;
}
.bm-page-hero__inner { position: relative; max-width: var(--bm-maxw); margin: 0 auto; }
.bm-page-hero__title {
  font-family: var(--bm-display);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.02;
  margin: 12px 0 0;
  color: var(--bm-ink);
}
.bm-page-hero__lead {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 720px;
  margin: 18px 0 0;
  color: #2b2820;
}

/* Photo header: the image becomes the hero background, title sits on top. */
.bm-page-hero--photo {
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  padding: 0;
  background: var(--bm-ink);
  overflow: hidden;
}
.bm-page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bm-page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(23, 21, 13, 0.10) 0%,
    rgba(23, 21, 13, 0.45) 52%,
    rgba(23, 21, 13, 0.86) 100%
  );
}
.bm-page-hero--photo .bm-page-hero__inner {
  z-index: 2;
  width: 100%;
  padding: 64px 26px 44px;
}
.bm-page-hero--photo .bm-eyebrow--green { color: var(--bm-yellow); }
.bm-page-hero--photo .bm-page-hero__title { color: #fff; }
.bm-page-hero--photo .bm-page-hero__lead {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bm-page-body { padding-top: 52px; }

/* ==========================================================================
   Entry content (WYSIWYG / page content)
   ========================================================================== */
.bm-entry { max-width: 820px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.bm-entry.bm-entry--wide { max-width: var(--bm-maxw); }
.bm-entry > *:first-child { margin-top: 0; }
.bm-entry p { margin: 0 0 22px; font-weight: 400; }
.bm-entry .bm-lead { font-size: 22px; font-weight: 600; line-height: 1.5; }
.bm-entry h2 {
  font-family: var(--bm-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.08;
  margin: 48px 0 16px;
}
.bm-entry h3 {
  font-weight: 900;
  font-size: 22px;
  margin: 36px 0 12px;
}
.bm-entry a { color: var(--bm-green); font-weight: 700; text-underline-offset: 3px; }
.bm-entry a:hover { color: var(--bm-coral); }
.bm-entry ul, .bm-entry ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.bm-entry ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.bm-entry ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 12px;
  height: 12px;
  background: var(--bm-yellow);
  border: 2px solid var(--bm-ink);
  border-radius: 4px;
  transform: rotate(10deg);
}
.bm-entry ol { counter-reset: bm; padding-left: 0; }
.bm-entry ol li { position: relative; padding-left: 44px; margin-bottom: 14px; counter-increment: bm; }
.bm-entry ol li::before {
  content: counter(bm);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  background: var(--bm-ink);
  color: var(--bm-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  font-family: var(--bm-body);
}
.bm-entry blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--bm-green);
  color: #fff;
  border: 3px solid var(--bm-ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--bm-ink);
  font-family: var(--bm-display);
  font-size: 22px;
  line-height: 1.4;
}
.bm-entry blockquote cite { display: block; font-family: var(--bm-body); font-size: 15px; font-weight: 700; margin-top: 12px; color: var(--bm-yellow); font-style: normal; }
.bm-entry img { border: 3px solid var(--bm-ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--bm-ink); margin: 8px 0; }
/* In-body break image (injected on long interior pages) */
.bm-entry .bm-entry-figure { margin: 40px 0; }
.bm-entry .bm-entry-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin: 0;
  border: 4px solid var(--bm-ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--bm-coral);
}
.bm-entry table { width: 100%; border-collapse: collapse; margin: 0 0 24px; border: 3px solid var(--bm-ink); border-radius: 14px; overflow: hidden; }
.bm-entry table th, .bm-entry table td { padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--bm-ink); font-size: 16px; }
.bm-entry table th { background: var(--bm-ink); color: var(--bm-yellow); font-weight: 800; }
.bm-entry table tr:last-child td { border-bottom: 0; }
.bm-entry table tr:nth-child(even) td { background: #fff; }

/* Callout box */
.bm-callout {
  background: var(--bm-yellow);
  border: 3px solid var(--bm-ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--bm-ink);
  padding: 26px 28px;
  margin: 32px 0;
}
.bm-callout p:last-child { margin-bottom: 0; }
.bm-callout--blue { background: var(--bm-blue); }
.bm-callout--cream { background: #fff; }

/* ==========================================================================
   Card grids (success stories, partners, ways to help, team)
   ========================================================================== */
.bm-cards {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bm-cards--2 { grid-template-columns: repeat(2, 1fr); }
.bm-card {
  background: #fff;
  border: 3px solid var(--bm-ink);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--bm-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bm-card__media { border-bottom: 3px solid var(--bm-ink); overflow: hidden; }
.bm-card__media img { display: block; width: 100%; height: 190px; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.bm-card__body { padding: 22px 24px; }
.bm-card__tag {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bm-yellow);
  border: 2px solid var(--bm-ink);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}
.bm-card__title { font-family: var(--bm-display); font-weight: 400; font-size: 22px; line-height: 1.1; margin: 0 0 10px; }
.bm-card__text { font-size: 16px; line-height: 1.55; margin: 0; color: #3a382f; }
.bm-card--green { background: var(--bm-green); color: #fff; }
.bm-card--green .bm-card__text { color: #eafce9; }
.bm-card--blue { background: var(--bm-blue); }
.bm-card--coral { background: var(--bm-coral); color: #fff; }
.bm-card--coral .bm-card__text { color: #ffeae7; }
.bm-card--orange { background: var(--bm-orange); }

/* Team grid */
.bm-team {
  max-width: var(--bm-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bm-team__member {
  background: #fff;
  border: 3px solid var(--bm-ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--bm-ink);
  padding: 22px 18px;
  text-align: center;
}
.bm-team__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--bm-ink);
  background: var(--bm-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bm-display);
  font-size: 24px;
}
.bm-team__name { font-weight: 900; font-size: 17px; }
.bm-team__role { font-size: 14px; font-weight: 600; color: var(--bm-green); margin-top: 4px; }

/* Responsive map embed */
.bm-map {
  position: relative;
  padding-bottom: 56%;
  height: 0;
  border: 3px solid var(--bm-ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--bm-ink);
  margin: 28px 0;
}
.bm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   CTA band (bottom of interior pages)
   ========================================================================== */
.bm-cta-band {
  background: var(--bm-ink);
  color: #fff;
  padding: 70px 26px;
  text-align: center;
}
.bm-cta-band__inner { max-width: 760px; margin: 0 auto; }
.bm-cta-band__title { font-family: var(--bm-display); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 0; color: #fff; }
.bm-cta-band__lead { font-size: 18px; font-weight: 500; margin: 16px 0 0; color: #d8d4c6; }
.bm-cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* Big donate button (donate page) */
.bm-jg {
  display: inline-block;
  background: var(--bm-coral);
  color: #fff;
  border: 3px solid var(--bm-ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 20px;
  padding: 18px 36px;
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--bm-ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bm-jg:hover, .bm-jg:focus-visible { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--bm-ink); }

@media (max-width: 980px) {
  .bm-cards, .bm-team { grid-template-columns: repeat(2, 1fr); }
  .bm-page-hero__title { font-size: 46px; }
  .bm-page-hero--photo { min-height: 360px; }
}
@media (max-width: 760px) {
  /* Mobile: show submenus inline, indented, always open */
  .bm-nav__menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--bm-ink);
    border-radius: 0;
    margin: 4px 0 8px 12px;
    padding: 0 0 0 10px;
    min-width: 0;
    background: transparent;
  }
  .bm-nav__menu .menu-item-has-children > a::after { content: ""; }
  .bm-cards, .bm-team { grid-template-columns: 1fr; }
  .bm-page-hero__title { font-size: 38px; }
  .bm-page-hero--photo { min-height: 300px; }
  .bm-page-hero--photo .bm-page-hero__inner { padding: 48px 22px 30px; }
  .bm-entry { font-size: 17px; }
}
