/* ==========================================================================
   Nappy Bag Initiative — main stylesheet
   Contents:
   1. Reset / base
   2. Variables
   3. Typography
   4. Layout & containers
   5. Buttons
   6. Header / navigation
   7. Mobile nav panel
   8. Footer
   9. Mobile sticky action bar
   10. Components (cards, tags, chips, timeline, journey, forms, gallery)
   11. Page hero / section backgrounds
   12. Utilities
   Responsive rules live in responsive.css
   ========================================================================== */

/* -------------------- 1. Reset / base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-brown);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-coral-deep);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-brown);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* -------------------- 2. Variables -------------------- */
:root {
  /* Brand palette, derived from the Nappy Bag Initiative logo */
  --color-cream: #FBF3EA;
  --color-white: #FFFFFF;
  --color-blush: #F7DEE2;
  --color-blush-soft: #FCEEF0;
  --color-coral: #DE8891;
  --color-coral-deep: #C1636D;
  --color-coral-tint: #F2C6CB;
  --color-brown: #3E2A20;
  --color-brown-soft: #6E5548;
  --color-beige: #EFE1CF;
  --color-line: rgba(62, 42, 32, 0.13);
  --color-line-dark: rgba(250, 244, 235, 0.16);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Allura', cursive;

  --container-width: 1200px;
  --container-wide: 1360px;
  --container-narrow: 900px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --shadow-card: 0 18px 40px rgba(62, 42, 32, 0.1);
  --shadow-pop: 0 20px 44px rgba(222, 136, 145, 0.4);

  --header-height: 84px;
}

/* -------------------- 3. Typography -------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-brown);
}
p { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-coral-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--color-coral);
}
.eyebrow--center { justify-content: center; }
.eyebrow--on-dark { color: var(--color-coral-tint); }

.h1 { font-size: 52px; line-height: 1.1; }
.h2 { font-size: 42px; line-height: 1.15; color: var(--color-brown); }
.h2--sm { font-size: 32px; }
.h2--on-dark { color: #fff; }

.lede { font-size: 17.5px; line-height: 1.75; color: var(--color-brown-soft); }
.lede--center { text-align: center; margin-left: auto; margin-right: auto; }

.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-coral-deep);
  font-size: 1.15em;
}

/* -------------------- 4. Layout & containers -------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 100px 0; }
.section--tight { padding-top: 56px; }
.section--no-top { padding-top: 0; }

.bg-cream { background: var(--color-cream); }
.bg-white { background: var(--color-white); }
.bg-beige { background: var(--color-beige); }
.bg-blush-soft { background: var(--color-blush-soft); }
.bg-brown { background: var(--color-brown); color: #fff; }
.bg-coral { background: var(--color-coral); color: #fff; }
.bg-hero-gradient { background: linear-gradient(180deg, #FDF7F0 0%, var(--color-cream) 100%); }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cluster--center { justify-content: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2--tight { gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.text-center { text-align: center; }
.narrow-copy { max-width: 680px; margin-left: auto; margin-right: auto; }

/* -------------------- 5. Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn svg { flex-shrink: 0; }
.btn--sm { padding: 13px 24px; font-size: 14px; }

.btn--primary {
  background: var(--color-coral);
  color: #fff;
  border-color: var(--color-coral);
  box-shadow: 0 8px 20px rgba(222, 136, 145, 0.32);
}
.btn--primary:hover {
  background: var(--color-coral-deep);
  border-color: var(--color-coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(193, 99, 109, 0.38);
}

.btn--outline {
  background: transparent;
  color: var(--color-brown);
  border-color: var(--color-brown);
}
.btn--outline:hover { background: var(--color-brown); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--outline-light:hover { background: #fff; color: var(--color-brown); }

.btn--on-white {
  background: #fff;
  color: var(--color-coral-deep);
}
.btn--on-white:hover { background: var(--color-blush); }

.btn--full { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-coral-deep);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-brown-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--color-coral-deep); }

/* -------------------- 6. Header / navigation -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: rgba(251, 243, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__bar {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--color-brown);
}
.brand__wordmark .script-accent { font-size: 24px; }
.brand__place {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-brown-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-brown);
  text-decoration: none;
  padding: 10px 2px;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--color-coral);
  transition: right 0.25s ease;
}
.nav__link:hover { color: var(--color-coral-deep); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--color-coral-deep); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
}
.menu-toggle:hover { background: rgba(62, 42, 32, 0.06); }
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* -------------------- 7. Mobile nav panel -------------------- */
.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--color-cream);
  z-index: 100000; /* above the WordPress admin bar (99999), which would otherwise cover the close button */
  display: flex;
  flex-direction: column;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  visibility: hidden;
}
.mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-line);
}
.mobile-panel__close { background: none; border: none; padding: 6px; }
.mobile-panel__body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px 28px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--color-brown);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover { color: var(--color-coral-deep); }
.mobile-panel .btn { margin-top: 24px; padding: 16px 26px; font-size: 16px; }

/* -------------------- 8. Footer -------------------- */
.site-footer { background: var(--color-brown); color: #efe6dc; }
.site-footer__inner { max-width: var(--container-wide); margin: 0 auto; padding: 72px 32px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; }
.footer-brand__mark { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; }
.footer-brand__wordmark { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: #fff; }
.footer-tagline { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--color-coral-tint); text-transform: uppercase; margin: 0 0 16px; }
.footer-desc { font-size: 14.5px; line-height: 1.7; color: #d9ccbf; max-width: 340px; margin: 0 0 22px; }
.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover { background: var(--color-coral); border-color: var(--color-coral); }

.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral-tint);
  margin-bottom: 18px;
  display: block;
}
.footer-col__links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 14.5px; color: #e9ded4; text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: var(--color-coral-tint); }
.footer-link--muted { font-size: 12.5px; }

.footer-bottom {
  border-top: 1px solid var(--color-line-dark);
  margin-top: 56px;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 12.5px; color: #b4a79a; margin: 0; }
.footer-legal { display: flex; gap: 24px; }

/* -------------------- 9. Mobile sticky action bar -------------------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--color-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 18px rgba(62, 42, 32, 0.1);
}
.mobile-cta-bar__link {
  flex: 1;
  text-align: center;
  padding: 13px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.mobile-cta-bar__link--primary { background: var(--color-coral); color: #fff; }
.mobile-cta-bar__link--secondary { background: transparent; color: var(--color-brown); border: 1.5px solid var(--color-brown); }

/* -------------------- 10. Components -------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card); }
.card--link { text-decoration: none; color: inherit; display: block; overflow: hidden; }
.card--pad-lg { padding: 40px; }
.card--pad-md { padding: 34px 26px; }
.card--pad-sm { padding: 28px 22px; }
.card--center { text-align: center; }
.card--flat { background: transparent; }
.card__label { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.card__text { font-size: 13.5px; color: var(--color-brown-soft); line-height: 1.6; margin-bottom: 18px; }
.card__link { font-size: 13px; font-weight: 600; color: var(--color-coral-deep); }
.card__link:hover { text-decoration: underline; }
.icon-center { margin: 0 auto 12px; display: block; }

.numbered-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius-md); background: var(--color-blush-soft); }
.numbered-row__num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--color-coral-deep); width: 28px; flex-shrink: 0; line-height: 1; }
.numbered-row__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.numbered-row__text { font-size: 13.5px; color: var(--color-brown-soft); line-height: 1.6; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-blush);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-badge--circle { border-radius: 50%; }
.icon-badge--sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-coral-deep);
  background: var(--color-blush-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-brown);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover, .chip.is-active { background: var(--color-coral); color: #fff; border-color: var(--color-coral); }

.placeholder-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-coral-deep);
  background: var(--color-blush-soft);
  border: 1px dashed var(--color-coral-tint);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
}

/* Feature image */
.feature-image { border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(62, 42, 32, 0.22); aspect-ratio: 4 / 5; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-image--flat { box-shadow: none; border-radius: 22px; aspect-ratio: auto; }

.floating-badge {
  position: absolute;
  top: -22px; left: -30px;
  background: var(--color-white);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 16px 30px rgba(62, 42, 32, 0.14);
  display: flex; align-items: center; gap: 12px;
  animation: floatHeart 7s ease-in-out infinite;
}
@keyframes floatHeart { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.floating-badge__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-blush); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.floating-badge__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.floating-badge__sub { font-size: 12px; color: var(--color-brown-soft); }

/* Idea flow (donation -> hope) */
.idea-flow { position: relative; padding: 20px 0; }
.idea-flow__path { width: 100%; height: auto; overflow: visible; }
.idea-flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: -260px; }
.idea-flow__step { text-align: center; }
.idea-flow__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-blush); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.idea-flow__icon--final { background: var(--color-coral); }
.idea-flow__label { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.idea-flow__label--final { color: var(--color-coral-deep); }

/* Step list (how it works) */
.step-row { display: flex; gap: 40px; align-items: flex-start; padding: 40px 0; border-bottom: 1px solid var(--color-line); }
.step-row:last-child { border-bottom: none; }
.step-row__num { font-family: var(--font-display); font-size: 52px; font-weight: 600; color: var(--color-coral-tint); width: 100px; flex-shrink: 0; line-height: 1; }
.step-row__num--final { color: var(--color-coral); }
.step-row__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 10px; }
.step-row__title--final { color: var(--color-coral-deep); }

/* Timeline (our story) */
.timeline { position: relative; padding-left: 36px; border-left: 2px dashed var(--color-coral-tint); max-width: 760px; margin: 0 auto; }
.timeline__item { margin-bottom: 52px; position: relative; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot { position: absolute; left: -45px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-coral); border: 4px solid var(--color-cream); }
.timeline__dot--final { background: var(--color-brown); }
.timeline__year { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--color-coral-deep); margin-bottom: 8px; }
.timeline__year--final { color: var(--color-brown); }

/* Impact stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-tile { text-align: center; padding: 28px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.stat-tile__number { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--color-coral-tint); }
.stat-tile__label { font-size: 13px; color: #d9ccbf; margin-top: 6px; }
.stat-quote { font-family: var(--font-display); font-size: 17px; font-style: italic; color: #f0e6db; text-align: center; }

/* Bag's Journey (signature section) */
.journey { position: relative; margin-top: 48px; }
.journey__path { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(100%, 1136px); height: auto; z-index: 0; }
.journey__list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 64px; }
.journey__row { display: flex; }
.journey__row--right { justify-content: flex-end; }
.journey__row--left { justify-content: flex-start; }
.journey__row--center { justify-content: center; }
.journey__item { display: flex; align-items: center; gap: 24px; max-width: 520px; }
.journey__item--reverse { text-align: right; }
.journey__photo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 5px solid var(--color-white); box-shadow: 0 14px 30px rgba(62, 42, 32, 0.14); }
.journey__photo img { width: 100%; height: 100%; object-fit: cover; }
.journey__photo--icon { background: var(--color-blush-soft); display: flex; align-items: center; justify-content: center; }
.journey__step-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--color-coral-deep); text-transform: uppercase; margin-bottom: 6px; }
.journey__step-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.journey__final { text-align: center; max-width: 340px; margin: 0 auto; }
.journey__final-photo { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 6px solid var(--color-coral); box-shadow: var(--shadow-pop); }
.journey__final-photo img { width: 100%; height: 100%; object-fit: cover; }
.journey__final-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 8px; }

/* Quote / testimonial card */
.quote-card { padding: 40px; text-align: left; max-width: 640px; margin: 0 auto; }
.quote-card--lg { padding: 52px 56px; max-width: 760px; }
.quote-card__mark { margin-bottom: 14px; }
.quote-card__text { font-family: var(--font-display); font-size: 19px; font-style: italic; line-height: 1.5; color: var(--color-brown); }
.quote-card__text--lg { font-size: 21px; line-height: 1.65; }
.quote-card__note { font-size: 13.5px; color: var(--color-brown-soft); margin-top: 14px; }
.quote-card__byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--color-line); }
.quote-card__author { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.quote-card__source { font-size: 13px; color: var(--color-brown-soft); }
.quote-card--compact { padding: 30px 28px; max-width: none; margin: 0; display: flex; flex-direction: column; }
.quote-card--compact .quote-card__text { font-size: 16.5px; line-height: 1.6; margin-bottom: 22px; }
.quote-card--compact .quote-card__byline { margin-top: auto; padding-top: 20px; }
.quote-card__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--color-coral-deep); text-decoration: none; margin-top: 26px; }

/* Method sections (donate page) */
.method { padding: 48px 0; border-bottom: 1px solid var(--color-line); scroll-margin-top: 110px; }
.method:last-child { border-bottom: none; }
.method__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.method__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; }

/* Values / support grid icons */
.value-icon { margin-bottom: 16px; }

/* Gallery masonry */
.masonry { column-count: 3; column-gap: 22px; }
.masonry__item { break-inside: avoid; margin-bottom: 22px; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--color-white); border: 1px solid var(--color-line); }
.masonry__item img { width: 100%; height: auto; display: block; }
.masonry__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(62, 42, 32, 0.78) 0%, rgba(62, 42, 32, 0) 100%); color: #fff; }
.masonry__tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-coral-tint); }
.masonry__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-top: 3px; }
.masonry__placeholder { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: var(--color-blush-soft); padding: 0 16px; text-align: center; }

.story-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-thumb--placeholder { background: var(--color-blush-soft); display: flex; align-items: center; justify-content: center; }
.story-card__body { padding: 24px; }
.story-card__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 12px 0 8px; }
.story-card__title--sm { font-size: 16.5px; margin: 10px 0 0; }
.story-card__text { font-size: 13.5px; color: var(--color-brown-soft); line-height: 1.6; }
.wide-feature-image { border-radius: 24px; overflow: hidden; max-height: 480px; }
.wide-feature-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.body-copy p { font-size: 17px; line-height: 1.85; color: var(--color-brown-soft); margin-bottom: 22px; }
.story-layout { display: grid; grid-template-columns: 1fr 220px; gap: 56px; }
.story-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.story-aside__text { font-size: 13.5px; color: var(--color-brown-soft); line-height: 1.6; }
@media (max-width: 900px) { .story-layout { grid-template-columns: 1fr; } .story-aside { position: static; } }
.masonry__placeholder-title { font-size: 11.5px; font-weight: 600; color: var(--color-coral-deep); }
.masonry__item[hidden] { display: none; }

/* Forms */
.form { background: var(--color-white); border-radius: var(--radius-lg); border: 1px solid var(--color-line); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--color-brown); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--color-brown);
  background: var(--color-cream);
  border: 1.5px solid var(--color-line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-coral); }
.field textarea { resize: vertical; min-height: 120px; }
.form-success {
  background: var(--color-white); border-radius: var(--radius-lg); border: 1px solid var(--color-line);
  padding: 56px 40px; text-align: center;
}
.form-success[hidden], .form[hidden] { display: none; }

.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.info-row:last-child { border-bottom: none; }
.info-row__label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-brown-soft); margin-bottom: 4px; }
.info-row__value { font-size: 13.5px; font-weight: 600; color: var(--color-coral-deep); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.contact-photo { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.contact-photo img { width: 100%; display: block; object-fit: cover; max-height: 260px; }

/* -------------------- 11. Hero / decorative -------------------- */
.hero { position: relative; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__blob--pink { top: -160px; right: -160px; width: 520px; height: 520px; background: radial-gradient(circle, var(--color-blush) 0%, rgba(247, 222, 226, 0) 70%); }
.hero__blob--beige { bottom: -220px; left: -180px; width: 480px; height: 480px; background: radial-gradient(circle, var(--color-beige) 0%, rgba(239, 225, 207, 0) 70%); }
.hero__blob--sm-pink { top: -140px; right: -140px; width: 420px; height: 420px; background: radial-gradient(circle, var(--color-blush) 0%, rgba(247, 222, 226, 0) 70%); }
.cta-band { position: relative; overflow: hidden; padding: 100px 0; }
.cta-band__blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.cta-band__blob--tl { top: -120px; left: -100px; width: 340px; height: 340px; }
.cta-band__blob--br { bottom: -140px; right: -100px; width: 380px; height: 380px; }
.cta-band__text { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.92); margin: 22px auto 36px; max-width: 560px; }

/* -------------------- 12. Utilities -------------------- */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 26px; }
.mt-lg { margin-top: 38px; }
.mb-lg { margin-bottom: 48px; }
.italic { font-style: italic; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   13. WordPress additions (added during the static-HTML → WordPress conversion)
   ========================================================================== */

/* Sticky header must clear the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Real (non-placeholder) details entered in the Customizer on the Donate page */
.nbi-detail { font-size: 14.5px; line-height: 1.7; color: var(--color-brown); }
.nbi-detail + .nbi-detail { margin-top: 16px; }

/* Content typed into the WordPress editor (legal pages, optional extra content) */
.nbi-content { font-size: 16px; line-height: 1.75; color: var(--color-brown-soft); }
.nbi-content > * + * { margin-top: 1.1em; }
.nbi-content h2, .nbi-content h3, .nbi-content h4 { color: var(--color-brown); margin-top: 1.6em; line-height: 1.25; }
.nbi-content h2 { font-size: 28px; }
.nbi-content h3 { font-size: 22px; }
.nbi-content ul, .nbi-content ol { padding-left: 1.4em; margin-left: 0; }
.nbi-content a { color: var(--color-coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.nbi-content img { border-radius: var(--radius-md); height: auto; }

/* Contact / info values that become links once real details are entered */
a.info-row__value { text-decoration: none; }
a.info-row__value:hover { text-decoration: underline; }

/* Mobile overflow fixes (defects in the original static CSS, found during QA):
   1fr grid columns can't shrink below their content, so wide text pushed the
   page sideways at 375–390px. */
.stat-tile { min-width: 0; }
.stat-tile__number { overflow-wrap: anywhere; }
.contact-grid > * { min-width: 0; }
.info-row > div { min-width: 0; }
.info-row__value, .info-row .text-link { overflow-wrap: anywhere; }

/* Founder bios: intro paragraph visible, remainder expandable */
.bio-more { margin-top: 16px; }
.bio-more summary {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-coral-deep);
}
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after { content: "+"; font-size: 18px; line-height: 1; }
.bio-more[open] summary::after { content: "\2212"; }
.bio-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.bio-more summary:focus-visible { outline: 2px solid var(--color-coral-deep); outline-offset: 3px; border-radius: 4px; }
.bio-more__close,
.bio-more[open] .bio-more__open { display: none; }
.bio-more[open] .bio-more__close { display: inline; }
