/* ==========================================================================
   Bushra Relief — Design System
   Calm Islamic charity · deep green / gold / cream
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Greens */
  --green-950: #0c2b21;
  --green-900: #123a2e;
  --green-800: #17493a;
  --green-700: #1d5a45;
  --green-600: #256b52;
  --green-500: #2f7d5f;
  --green-400: #4a9678;
  --green-300: #7bb69d;
  --green-200: #b2d3c4;
  --green-100: #dcebe3;
  --green-50:  #eef5f1;

  /* Gold */
  --gold-700: #8a6a24;
  --gold-600: #a5822c;
  --gold-500: #c9a24b;
  --gold-400: #d8b76a;
  --gold-300: #e6cf96;
  --gold-200: #f0e2bd;
  --gold-100: #f7efd9;

  /* Cream / neutrals */
  --cream-50:  #fbf8f0;
  --cream-100: #f6f1e5;
  --cream-200: #efe7d5;
  --sand-300:  #e4d8be;
  --sand-400:  #d2c3a0;

  /* Ink (text) */
  --ink-900: #22342c;
  --ink-700: #3c4f45;
  --ink-500: #62746b;
  --ink-400: #85948d;
  --ink-300: #a9b4af;

  --white: #ffffff;
  --black: #0f1f19;

  /* Functional */
  --danger: #b23a3a;

  /* Type */
  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", var(--font-serif);

  /* Spacing / shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --shadow-sm: 0 1px 3px rgba(18, 58, 46, 0.08), 0 1px 2px rgba(18, 58, 46, 0.05);
  --shadow: 0 12px 32px -12px rgba(18, 58, 46, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(12, 43, 33, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--green-900);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 620; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
hr { border: 0; height: 1px; background: var(--cream-200); margin: 2.5rem 0; }
strong, b { color: var(--ink-900); font-weight: 650; }

::selection { background: var(--gold-300); color: var(--green-950); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--cream { background: var(--cream-100); }
.section--green {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 75, 0.14), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-800));
  color: var(--green-100);
}
.section--green h1, .section--green h2, .section--green h3, .section--green h4 {
  color: #fff;
}
.section--green p { color: var(--green-200); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--gold-500); color: var(--green-950); padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 650; line-height: 1;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--green-950);
  box-shadow: 0 10px 24px -10px rgba(138, 106, 36, 0.6);
}
.btn--gold:hover { background: var(--gold-400); color: var(--green-950); box-shadow: 0 14px 30px -10px rgba(138, 106, 36, 0.7); transform: translateY(-1px); }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-300); }
.btn--outline:hover { background: var(--green-50); border-color: var(--green-500); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1.075rem; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: 1px; background: var(--gold-500);
}
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before, .section-head--center .eyebrow::after { content: ""; }
.section-head--center .eyebrow::after { width: 2.2rem; height: 1px; background: var(--gold-500); }
.section-head p { color: var(--ink-500); font-size: 1.1rem; }
.section--green .section-head p { color: var(--green-200); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 50;
  background: var(--cream-50);
}
.topbar {
  background: var(--green-950);
  color: var(--green-200);
  font-size: 0.875rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.55rem;
}
.topbar__links { display: flex; gap: 1.25rem; }
.topbar a { color: var(--green-200); display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: #fff; }
.topbar__note { color: var(--gold-300); }
@media (max-width: 720px) { .topbar__note { display: none; } }

.site-header__main {
  border-bottom: 1px solid var(--cream-200);
  background: rgba(251, 248, 240, 0.92);
  backdrop-filter: blur(10px);
}
.site-header.is-sticky .site-header__main {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__logo { width: 52px; height: 52px; flex: none; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__logo--monogram {
  display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  color: var(--gold-400);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem;
  color: var(--green-900); letter-spacing: -0.01em;
}
.brand__tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.main-nav a {
  display: block; padding: 0.55rem 0.9rem;
  color: var(--ink-700); font-weight: 600; font-size: 0.98rem;
  border-radius: var(--radius-pill);
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--green-800); background: var(--green-50);
}
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.5rem; display: none; flex-direction: column;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px auto; transition: 0.2s; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--cream-200);
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem var(--gutter); gap: 0.15rem; }
  .main-nav .sub-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; display: none; }
  .main-nav .sub-menu.is-open { display: flex; }
  .header-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 43, 33, 0.9) 0%, rgba(12, 43, 33, 0.66) 45%, rgba(12, 43, 33, 0.18) 100%),
    url("../images/hero.svg") center/cover no-repeat;
  background-color: var(--green-900);
  min-height: clamp(560px, 82vh, 760px);
  display: flex; align-items: center;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__content { max-width: 660px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold-300); padding: 0.45rem 1rem; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 620; line-height: 1.05; margin-bottom: 0.4em; }
.hero__title em { font-style: italic; color: var(--gold-300); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.7), transparent); }

/* Decorative arch */
.hero__arch {
  position: absolute; right: -8%; bottom: -12%; width: 60%; height: 100%;
  background: radial-gradient(closest-side, rgba(201,162,75,0.16), transparent);
  border-radius: 50% 50% 0 0; pointer-events: none;
}

/* ---------- Stats strip ---------- */
.stats {
  margin-top: -4.5rem; position: relative; z-index: 5;
}
.stats__grid {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat { padding: 2rem 1.5rem; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--cream-200); }
.stat__value {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--green-700); line-height: 1;
}
.stat__value span { color: var(--gold-500); }
.stat__value--text { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; }
.stat__label { font-size: 0.9rem; color: var(--ink-500); font-weight: 600; margin-top: 0.5rem; }
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
}

/* ---------- Program cards ---------- */
.program-card {
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-200); }
.program-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); position: relative; }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(201,162,75,0.2), transparent 60%),
    linear-gradient(150deg, var(--green-100), var(--green-50));
  color: var(--green-500);
}
.program-card:hover .program-card__media img { transform: scale(1.05); }
.program-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.program-card__title { font-size: 1.3rem; margin: 0; }
.program-card__title a { color: var(--green-900); }
.program-card__title a:hover { color: var(--green-600); }
.program-card__excerpt { color: var(--ink-500); font-size: 0.98rem; margin: 0; flex: 1; }
.program-card__link {
  font-weight: 700; color: var(--green-700); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.program-card__link::after { content: "→"; transition: transform 0.2s ease; }
.program-card__link:hover::after { transform: translateX(4px); }

/* Icon chip for programs */
.icon-chip {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--green-100);
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--media-left { direction: ltr; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__media::after {
  content: ""; position: absolute; inset: auto -1.5rem -1.5rem 1.5rem;
  border: 2px solid var(--gold-400); border-radius: var(--radius-lg);
  z-index: -1;
}
.split__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.split__list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.split__list .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-size: 0.8rem; margin-top: 2px;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split__media { order: -1; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 2rem 1.75rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700;
  color: var(--gold-400); line-height: 1;
}
.step h3 { color: #fff; margin-top: 0.6rem; }
.step p { color: var(--green-200); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Appeal / quote ---------- */
.quote {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4; color: #fff; max-width: 760px;
}
.quote__author { color: var(--gold-300); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; margin-top: 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(201,162,75,0.2), transparent 60%),
    linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--green-200); max-width: 560px; margin-inline: auto; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="url"],
input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--cream-200); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-900); font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-400); box-shadow: 0 0 0 3px var(--green-100);
}
.newsletter { display: flex; gap: 0.6rem; max-width: 460px; margin-inline: auto; }
.newsletter input { flex: 1; }
@media (max-width: 520px) { .newsletter { flex-direction: column; } }

/* Bushra forms (donation / contact / volunteer / newsletter) */
.br-form {
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 680px;
}
.br-form__title { margin-top: 0; }
.br-form__intro { color: var(--ink-500); margin-bottom: 1.5rem; }

/* Cause-specific field group revealed by the "Choose a cause" dropdown */
.br-cause {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.25rem 0.15rem;
  margin-bottom: 1.25rem;
}
.br-cause[hidden] { display: none; }
.br-cause .form-field:last-child { margin-bottom: 1.25rem; }

.form-field { margin-bottom: 1.25rem; }
.form-field > label {
  display: block; font-weight: 700; color: var(--ink-900);
  font-size: 0.95rem; margin-bottom: 0.4rem;
}
.form-field .req { color: var(--danger); }
.form-field input[type="checkbox"] { width: auto; margin-right: 0.5rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; color: var(--ink-700) !important; cursor: pointer; }
.checkbox-label input { flex: none; margin-top: 0.25rem; }
.form-help { font-size: 0.85rem; color: var(--ink-400); margin: 0.4rem 0 0; }
.form-error { font-size: 0.85rem; color: var(--danger); margin: 0.4rem 0 0; font-weight: 600; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea {
  border-color: var(--danger);
}
.form-field.has-error input:focus, .form-field.has-error select:focus, .form-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(178, 58, 58, 0.15);
}

.form-row { display: grid; gap: 1rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-row--2 { grid-template-columns: 1fr; } }
.form-col { min-width: 0; }

/* Radio + money fields */
.radio-group { display: grid; gap: 0.6rem; }
.radio-label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 400; color: var(--ink-700); padding: 0.6rem 0.85rem; border: 1px solid var(--cream-200); border-radius: var(--radius-sm); transition: border-color 0.2s, background 0.2s; }
.radio-label:hover { border-color: var(--green-300); }
.radio-label:has(input:checked) { border-color: var(--green-500); background: var(--green-50); }
.radio-label input { width: auto; margin: 0; }
.money-wrap { position: relative; display: block; }
.money-prefix { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-500); font-weight: 700; }
.money-wrap input { padding-left: 2rem; }
input[readonly] { background: var(--cream-100); color: var(--ink-700); }

/* Stripe card fields */
.card-field {
  padding: 0.8rem 1rem;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-field:focus-within {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px var(--green-100);
}
.card-field .StripeElement { width: 100%; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; }
@media (max-width: 420px) { .card-row { grid-template-columns: 1fr; } }
#card-errors { color: var(--danger); font-size: 0.9rem; font-weight: 600; margin-top: 0.75rem; min-height: 1.2em; }
.br-form--donation > label:first-of-type { margin-top: 0.25rem; }

.form-notice {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  margin-bottom: 1.5rem; font-weight: 600; max-width: 680px;
}
.form-notice--success { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200); }
.form-notice--error { background: #fbeeee; color: var(--danger); border: 1px solid #e9b9b9; }

.br-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.br-form--newsletter { display: flex; gap: 0.6rem; align-items: center; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); box-shadow: none; max-width: 100%; }
.br-form--newsletter .form-field { flex: 1; margin: 0; }
.br-form--newsletter .form-field > label { display: none; }
.br-form--newsletter .btn { flex: none; }
.br-form--newsletter .form-notice { width: 100%; margin-bottom: 0; }
@media (max-width: 560px) { .br-form--newsletter { flex-direction: column; align-items: stretch; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12,43,33,0.92), rgba(12,43,33,0.7)),
    var(--green-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/pattern.svg") repeat; opacity: 0.06;
}
.page-hero__inner { position: relative; }
.page-hero--small { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero__lead { color: var(--green-200); max-width: 620px; font-size: 1.15rem; margin: 0; }

.breadcrumbs { font-size: 0.85rem; color: var(--green-300); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--gold-300); }
.breadcrumbs span + span::before { content: "/"; margin: 0 0.5rem; color: var(--green-400); }

/* ---------- Article / content ---------- */
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 820px; margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 1.75em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 3px solid var(--gold-500); margin: 2rem auto; padding: 1rem 1.5rem;
  background: var(--cream-100); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-size: 1.3rem; color: var(--green-900);
}

/* Donation sidebar layout */
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .layout-with-sidebar { grid-template-columns: 1fr; } }

.donate-sidebar { position: sticky; top: 100px; display: grid; gap: 1rem; }
.donate-card {
  background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.donate-card h3 { margin-top: 0; }
.donate-card__amount {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--green-700);
}

/* ---------- Card lists for archive/listing ---------- */
.cards-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cards-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-list { grid-template-columns: 1fr; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.9rem;
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--cream-200);
  color: var(--ink-700); font-weight: 600;
}
.pagination .current { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: var(--green-300); }
.site-footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--green-300); }
.site-footer a:hover { color: #fff; }
.site-footer__brand .brand__name { color: #fff; }
.footer-about { margin-top: 1rem; font-size: 0.95rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #fff; transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--gold-500); color: var(--green-950); transform: translateY(-2px); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-block: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.88rem;
}
.site-footer__bottom a { color: var(--green-300); }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- 404 / not found ---------- */
.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-404__code { font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; color: var(--green-200); line-height: 1; }
.error-404__code span { color: var(--gold-500); }

/* ---------- Animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.is-hidden { display: none !important; }

/* ---------- WordPress core alignment ---------- */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-500); margin-top: 0.5rem; }
.sticky { display: block; }
