/* ==========================================================================
   Gateway Center of Metropolitan St. Louis — Design System & Stylesheet
   501(c)(3) Civic Philanthropy Aesthetic · Pure Vanilla CSS · WCAG 2.1 AA
   ========================================================================== */

:root {
  /* Architectural Conservation Forest & Burnished Copper Palette */
  --forest-deep: #112a26;
  --forest-mid: #1a4d43;
  --forest-hover: #133b33;
  --sage-soft: #ebf2ef;
  --sage-border: #cde0d8;

  /* Burnished Copper & Warm Gold Accents (echoing historic Arch & Courthouse) */
  --copper: #9e4722;
  --copper-hover: #7d3618;
  --copper-soft: #fdf3ee;
  --copper-border: #efc8b6;
  --gold-light: #e8b86d;

  /* Warm Parchment Surfaces */
  --parchment: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f2efe8;

  /* Ink & Borders (All text pairs verified >= 4.5:1 WCAG 2.1 AA) */
  --ink-primary: #14221f;
  --ink-secondary: #394b47;
  --ink-muted: #4b5e59;
  --border-subtle: rgba(17, 42, 38, 0.12);
  --border-strong: rgba(17, 42, 38, 0.24);

  /* Semantic Status */
  --ok-bg: #e7f6ee;
  --ok-text: #135c37;
  --err-bg: #fef2f2;
  --err-text: #991b1b;

  /* Typography */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Radii */
  --container-max: 1160px;
  --container-narrow: 840px;
  --header-height: 78px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(17, 42, 38, 0.05);
  --shadow-md: 0 12px 30px rgba(17, 42, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 42, 38, 0.14);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t-med: 320ms var(--ease);
}

/* ---------- Base 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: 1rem;
  line-height: 1.7;
  color: var(--ink-primary);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest-mid);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--copper);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-primary);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  margin-bottom: 0.7rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.48rem);
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
  color: var(--ink-secondary);
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--forest-mid);
  outline-offset: 2px;
}

.site-footer :focus-visible,
.section--dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.top-bar :focus-visible {
  outline-color: var(--gold-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WCAG 1.4.1: Underline inline content links */
.prose a:not(.btn),
.callout a:not(.btn),
p a:not(.btn):not(.card__link):not(.nav-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--forest-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 3.5vw, 2.25rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section--white {
  background: var(--surface);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: linear-gradient(155deg, var(--forest-deep) 0%, #173c35 100%);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold-light);
}

.lead {
  font-size: clamp(1.06rem, 1.45vw, 1.22rem);
  line-height: 1.68;
  color: var(--ink-secondary);
}

.section-header {
  max-width: 700px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

/* ---------- Top Trust Bar ---------- */
.top-bar {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-block: 0.5rem;
}

.top-bar a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-bar a:hover {
  color: #fff;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--t-fast), background-color var(--t-fast);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-primary);
  flex-shrink: 1;
  min-width: 0;
}

.brand:hover {
  color: var(--forest-mid);
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}

.brand__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 700;
  color: var(--forest-deep);
}

.brand__sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--sage-soft);
  color: var(--forest-mid);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile Toggle & Drawer */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--ink-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 42, 38, 0.56);
  opacity: 0;
  transition: opacity var(--t-med);
}

.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(330px, 88vw);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-med);
  overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer__close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--parchment);
  color: var(--ink-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mobile-drawer__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-drawer__body a {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.mobile-drawer__body a:hover,
.mobile-drawer__body a[aria-current="page"] {
  background: var(--sage-soft);
  color: var(--forest-mid);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn--donate {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 4px 14px rgba(158, 71, 34, 0.25);
}

.btn--donate:hover {
  background: var(--copper-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(158, 71, 34, 0.32);
}

.btn--primary {
  background: var(--forest-mid);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 77, 67, 0.22);
}

.btn--primary:hover {
  background: var(--forest-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--forest-deep);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--sage-soft);
  border-color: var(--forest-mid);
  color: var(--forest-mid);
  transform: translateY(-1px);
}

.btn--light {
  background: #fff;
  color: var(--forest-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.btn--light:hover {
  background: var(--sage-soft);
  color: var(--forest-deep);
  transform: translateY(-1px);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.56rem 1.05rem;
  font-size: 0.87rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 74vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 42, 38, 0.28) 0%, rgba(17, 42, 38, 0.56) 52%, rgba(17, 42, 38, 0.92) 100%),
    linear-gradient(90deg, rgba(17, 42, 38, 0.82) 0%, rgba(17, 42, 38, 0.35) 62%, rgba(17, 42, 38, 0.12) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 6.5vw, 5.25rem) clamp(3rem, 5vw, 4.25rem);
  max-width: 760px;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  font-size: clamp(1.06rem, 1.55vw, 1.24rem);
  color: rgba(255, 255, 255, 0.93);
  line-height: 1.65;
  margin-bottom: 1.85rem;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: clamp(250px, 34vh, 360px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--forest-deep);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 42, 38, 0.45) 0%, rgba(17, 42, 38, 0.9) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 3rem 2.6rem;
  max-width: 780px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  margin-bottom: 0.55rem;
}

.page-hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Trust Metrics Strip ---------- */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip__item {
  padding: 1.45rem 1.35rem;
  border-right: 1px solid var(--border-subtle);
}

.trust-strip__item:last-child {
  border-right: none;
}

.trust-strip__num {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--forest-mid);
  line-height: 1.2;
}

.trust-strip__label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* ---------- Grids & Editorial Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split--top {
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--forest-deep);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.7rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card--static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.card__body {
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__footer {
  margin-top: auto;
  padding-top: 1.15rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sage-soft);
  color: var(--forest-mid);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--forest-mid);
}

/* ---------- Board of Directors Cards ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.board-card--officer {
  border-top: 3px solid var(--copper);
}

.board-card__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
}

.board-card__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest-mid);
}

.board-card--officer .board-card__role {
  color: var(--copper);
}

/* ---------- Partner Logo Strip ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  min-height: 185px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-mid);
}

.partner-card img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
}

.partner-card__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* ---------- Jump Nav Pills (Learn More) ---------- */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.jump-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.jump-nav a:hover {
  background: var(--sage-soft);
  border-color: var(--forest-mid);
  color: var(--forest-mid);
}

/* ---------- History Timeline ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.1rem;
  display: grid;
  gap: 1.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.55rem;
  width: 2px;
  background: linear-gradient(180deg, var(--forest-mid) 0%, var(--copper) 100%);
  opacity: 0.45;
}

.timeline__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 1.55rem;
  left: -1.92rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--forest-mid);
  border: 3px solid var(--surface-alt);
  box-shadow: 0 0 0 2px rgba(26, 77, 67, 0.25);
}

.timeline__item--milestone {
  border-left: 4px solid var(--copper);
}

.timeline__item--milestone::before {
  background: var(--copper);
  box-shadow: 0 0 0 2px rgba(158, 71, 34, 0.28);
}

.timeline__date {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  color: var(--forest-mid);
  margin-bottom: 0.5rem;
}

.timeline__item--milestone .timeline__date {
  background: var(--copper-soft);
  color: var(--copper);
}

.timeline__item h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  margin-bottom: 0.35rem;
}

.timeline__item p {
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.callout--sage {
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
}

.callout--copper {
  background: var(--copper-soft);
  border: 1px solid var(--copper-border);
}

/* ---------- Givebutter Embed Frame ---------- */
.donate-embed-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-md);
}

.donate-embed-card iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  display: block;
}

/* ---------- Accessible Contact Form ---------- */
.form-stack {
  display: grid;
  gap: 1.15rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.form-req {
  color: var(--copper);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-primary);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--forest-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 77, 67, 0.22);
}

.form-textarea {
  min-height: 145px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid #a7dfc0;
}

.form-status--err {
  background: var(--err-bg);
  color: var(--err-text);
  border: 1px solid #f5bcbc;
}

/* ---------- Checklist ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-secondary);
}

.check-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest-mid);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 800;
  font-size: 0.78rem;
}

/* ---------- Donate CTA Band ---------- */
.cta-band {
  background: linear-gradient(145deg, var(--forest-deep) 0%, #1c4e44 100%);
  color: #fff;
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band__text {
  max-width: 680px;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1f1c;
  color: rgba(255, 255, 255, 0.88);
  padding-top: clamp(3rem, 5.5vw, 4.25rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr auto;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  align-items: start;
}

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 0.95rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.guidestar-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-primary);
  text-align: center;
  transition: transform var(--t-fast);
}

.guidestar-badge:hover {
  transform: translateY(-2px);
  color: var(--forest-mid);
}

.guidestar-badge img {
  width: 76px;
  height: 76px;
}

.guidestar-badge span {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.footer-bottom {
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
}

.footer-bottom a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest-deep);
  color: #fff;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 1600;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.prose p {
  font-size: 1.03rem;
  line-height: 1.78;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-strip__item:nth-child(2) {
    border-right: none;
  }
  .trust-strip__item:nth-child(1),
  .trust-strip__item:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-grid,
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .split,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
}

@media (max-width: 540px) {
  .trust-strip__grid,
  .board-grid,
  .partner-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .trust-strip__item:last-child {
    border-bottom: none;
  }
  .callout {
    flex-direction: column;
  }
}

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