/* Zephyr Seven Homes — EPIC-inspired spacious nonprofit
   Brand: yellow #f7db07, black, white. Sans-only. */

:root {
  --yellow: #f7db07;
  --yellow-hover: #ffe44a;
  --yellow-soft: #fff8c4;
  --yellow-dark: #b89f04;
  --black: #121212;
  --near-black: #0a0a0a;
  --ink: #121212;
  --white: #ffffff;
  --gray: #444;
  --gray-muted: #5c5a5a;
  --gray-light: #e8e6e6;
  --gray-bg: #f6f6f4;
  --green: #6aad28;
  --focus: #f7db07;
  --font-sans: "Poppins", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --font-ui: var(--font-sans);
  --max: 1140px;
  --max-narrow: 720px;
  --max-wide: 1140px;
  --header-h: 88px;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-btn: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.14);
  --space: clamp(1.25rem, 3vw, 2rem);
  --space-section: clamp(2.25rem, 5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-z: 200;
  --drawer-z: 220;
  --backdrop-z: 210;
  --hero-overlay: rgba(0, 0, 0, 0.42);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(247, 219, 7, 0.25);
}

a, button, input, select, textarea, summary, [role="button"] {
  -webkit-tap-highlight-color: rgba(247, 219, 7, 0.25);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
::selection {
  background: rgba(247, 219, 7, 0.35);
  color: #000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ========== HEADER — overlay, scrolls away (NOT sticky) ==========
   No backdrop-filter / filter / transform on ancestors of .site-nav. */
.site-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--drawer-z);
  background: transparent;
  border-bottom: none;
  overflow: visible;
}

.site-header {
  background: transparent;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  overflow: visible;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex-shrink: 0;
  overflow: visible;
}
.brand:hover { opacity: 1; }

.brand-logo {
  height: 66px;
  width: auto;
  flex-shrink: 0;
  overflow: visible;
  background: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border: none;
  outline: none;
  /* constant size — never shrink on scroll */
}

.brand-tagline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  max-width: 200px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: calc(var(--drawer-z) + 5);
  position: relative;
}
.nav-toggle-label { display: none; }
.nav-toggle-bars {
  display: inline-block;
  width: 22px;
  height: 14px;
  position: relative;
  background:
    linear-gradient(var(--white), var(--white)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--white), var(--white)) 0 6px / 100% 2px no-repeat,
    linear-gradient(var(--white), var(--white)) 0 12px / 100% 2px no-repeat;
}

/* Desktop nav */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 961px) {
  .site-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    right: max(1.25rem, calc((100% - min(100%, var(--max-wide))) / 2 + 1.25rem));
    display: flex;
    align-items: center;
    z-index: 2;
    /* no transform — keep fixed drawer free on mobile */
  }
}

.site-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a.nav-link,
.site-nav .nav-drop > button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, opacity 0.15s ease;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.site-nav a.nav-link:hover,
.site-nav .nav-drop > button:hover,
.site-nav .nav-drop.open > button {
  color: var(--yellow);
  opacity: 1;
}

.site-nav a.nav-link[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.site-nav a.nav-link[aria-current="page"]::after { display: none; }

/* Donate CTA — yellow fill, black text, rounded-rect */
.site-nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.35rem;
  margin-left: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-btn);
  white-space: nowrap;
  text-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.site-nav a.nav-cta:hover {
  background: var(--yellow-hover);
  color: var(--black);
  opacity: 1;
  box-shadow: var(--shadow-sm);
}
.site-nav a.nav-cta[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--black);
}

/* More dropdown */
.nav-drop { position: relative; }
.nav-drop > button::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  z-index: 50;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
}
.nav-drop.open .nav-drop-menu,
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }

.nav-drop-menu a {
  display: block;
  color: var(--black);
  background: transparent;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  line-height: 1.3;
  text-shadow: none;
}
.nav-drop-menu a:hover,
.nav-drop-menu a[aria-current="page"] {
  background: var(--yellow);
  color: var(--black);
  opacity: 1;
}
.nav-drop-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  padding: 0.75rem 0.95rem 0.35rem;
}
.nav-drop-label.nav-board-label {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-drawer-head,
.nav-drawer-cta { display: none; }
.nav-backdrop { display: none; }

/* ========== MOBILE NAV — full-screen white panel (EPIC) ========== */
@media (max-width: 960px) {
  .header-inner {
    padding: 0.75rem 1rem;
    min-height: 72px;
  }
  .brand-logo { height: 56px; }
  .brand-tagline { display: none; }
  .nav-wrap { flex: 0 0 auto; }
  .nav-toggle { display: inline-flex; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--backdrop-z);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    z-index: var(--drawer-z);
    margin: 0;
    padding: 0;
    background: var(--white);
    border: none;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* slide/fade without trapping — transform only on .site-nav itself */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
    min-height: 100vh;
    min-height: 100dvh;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.15rem;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
  }
  .nav-drawer-head .drawer-title { display: none; }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    background: transparent;
    border: none;
    color: var(--black);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    font-weight: 300;
  }
  .nav-close:hover { color: var(--gray-muted); }

  /* Donate pinned to bottom of drawer (always visible) */
  .nav-drawer-cta {
    display: block;
    order: 3;
    flex-shrink: 0;
    padding: 0.85rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #fff 72%, rgba(255,255,255,0));
    z-index: 3;
  }
  .nav-drawer-cta .nav-cta {
    display: flex !important;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    min-height: 52px;
    font-size: 1.05rem;
    border-radius: var(--radius-btn);
    box-shadow: none;
  }

  .site-nav .nav-links {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap; /* wrap+column was creating a 2nd column + sideways scroll */
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    width: 100%;
    max-width: 100%;
    padding: 0.35rem 1.25rem 6.75rem;
    order: 2;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    position: static;
  }

  .site-nav a.nav-link,
  .site-nav .nav-drop > button {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    text-align: center;
    justify-content: center;
    border-radius: 0;
    color: var(--black);
    font-size: clamp(1.15rem, 4.2vw, 1.4rem);
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    text-shadow: none;
    white-space: normal;
    box-sizing: border-box;
  }
  .site-nav a.nav-link:hover,
  .site-nav a.nav-link[aria-current="page"],
  .site-nav .nav-drop > button:hover,
  .site-nav .nav-drop.open > button {
    background: transparent;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .site-nav a.nav-link[aria-current="page"]::after { display: none; }

  .site-nav .nav-links > a.nav-cta { display: none; }

  /* Flatten More into drawer */
  .nav-drop > button { display: none !important; }
  .nav-drop-menu {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    gap: 0.15rem;
    right: auto;
    left: auto;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop-label {
    display: none;
  }
  .nav-drop-label.nav-board-label {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.85rem 0 0.25rem;
    padding: 0.85rem 0.75rem 0.3rem;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    box-sizing: border-box;
  }
  .nav-drop-menu a {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    text-align: center;
    justify-content: center;
    border-radius: 0;
    color: var(--black);
    font-size: clamp(1.15rem, 4.2vw, 1.35rem);
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    background: transparent;
    white-space: normal;
    box-sizing: border-box;
  }
  .nav-drop-menu a:hover,
  .nav-drop-menu a[aria-current="page"] {
    background: transparent;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-backdrop,
  .site-chrome,
  .site-header,
  .header-inner,
  .brand-logo {
    transition: none !important;
  }
}

/* ========== MAIN ========== */
main { flex: 1 0 auto; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}
.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ========== HOME HERO — full-bleed + dark overlay + headline ========== */
.hero {
  position: relative;
  background: #111;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  min-height: 520px;
  height: min(88vh, 720px);
  max-height: 720px;
}
@media (max-width: 700px) {
  .hero-slides {
    min-height: 420px;
    height: min(78vh, 560px);
    max-height: 560px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  background: #222 center/cover no-repeat;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

/* EPIC-style left headline */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(2rem, 6vw, 4.5rem) var(--space) clamp(3rem, 7vw, 5rem);
  pointer-events: none;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.hero-copy h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

html.hero-dismissed .hero-overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  padding: calc(var(--header-h) + 1rem) var(--space) 1.5rem;
  background: transparent;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.hero-overlay.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-card {
  position: relative;
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.92);
  border: 1.5px solid rgba(247, 219, 7, 0.85);
  color: var(--white);
  padding: 1.75rem 1.65rem 1.6rem;
  max-width: 340px;
  text-align: center;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
  font-family: var(--font-ui);
}
.hero-card .badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.7rem;
  border-radius: var(--radius-sm);
}
.hero-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0.3rem 0;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-card p {
  margin: 0.35rem 0;
  font-family: var(--font-ui);
  color: #ececec;
  font-size: 0.95rem;
}
.hero-card .btn { margin-top: 1rem; }

.hero-card-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #f5f5f5;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.15s ease, background 0.15s ease;
}
.hero-card-close:hover,
.hero-card-close:focus-visible {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.hero-counter {
  position: absolute;
  bottom: 1.1rem;
  right: 1.25rem;
  z-index: 3;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}
.hero-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  /* use margin instead of transform on a different layer — fine here, not ancestor of nav */
  margin-left: -24px;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.hero-dots button.active {
  background: var(--yellow);
  border-color: var(--yellow);
}

@media (max-width: 700px) {
  .hero-overlay {
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 0.75rem) var(--space) 4.75rem;
  }
  .hero-card {
    max-width: min(380px, 100%);
    padding: 1.25rem 1.2rem;
    align-self: center;
    margin-top: -1.25rem; /* nudge slightly above true center */
  }
  .hero-copy {
    padding-bottom: clamp(2rem, 8vw, 3rem);
  }
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }
  .hero-dots { bottom: 0.75rem; }
  .hero-counter { bottom: 0.75rem; right: 0.85rem; }
}

/* When card dismissed, give copy more room */
html.hero-dismissed .hero-copy {
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  border: 2px solid var(--yellow);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  box-shadow: none;
}
.btn:hover {
  background: var(--yellow-hover);
  color: var(--black);
  border-color: var(--yellow-hover);
  opacity: 1;
}
.btn:active { opacity: 0.95; }
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.btn-dark {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.btn-dark:hover {
  background: #222;
  color: var(--yellow);
  border-color: #222;
}
.btn-footer-donate {
  /* single shared gap above Donate AND Subscribe */
  margin-top: 1.35rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

/* ========== SECTIONS ========== */
.section { padding: var(--space-section) 0; }
.section-yellow { background: var(--yellow); }
.section-dark { background: var(--near-black); color: var(--white); }
.section-muted { background: var(--white); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--black);
}
.section-title.left { text-align: left; }

.lead {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: #333;
  line-height: 1.75;
}
.lead.left { text-align: left; margin-left: 0; }
.lead a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  color: var(--black);
}
.lead a:hover { color: var(--yellow-dark); opacity: 1; }

/* Mission */
.mission {
  text-align: left;
  padding: var(--space-section) 0 0;
}
/* Match gap above first feature icon to gap between feature rows */
.features-section {
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.mission .container { max-width: var(--max); }
.mission h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--black);
  padding-left: 0.85rem;
  border-left: 4px solid var(--yellow);
}
.mission p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: var(--ink);
  line-height: 1.8;
}

/* ========== FEATURES — stacked EPIC rows ========== */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 0;
  max-width: 720px;
}
.feature {
  text-align: left;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: none;
}
.feature:hover {
  transform: none;
  box-shadow: none;
  border-top-color: transparent;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 0.75rem;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}
.feature h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
  color: var(--black);
  padding-left: 0.85rem;
  border-left: 4px solid var(--yellow);
}
.feature p {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
  flex: 1;
  line-height: 1.7;
  max-width: 38rem;
}
.feature .btn {
  margin-top: 0.85rem;
  align-self: flex-start;
}

/* Quote — clean editorial on light */
.quote-block {
  background: var(--gray-bg);
  color: var(--ink);
  padding: var(--space-section) var(--space);
  text-align: left;
  position: relative;
}
.quote-block::before { display: none; }
.quote-block blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  font-weight: 500;
  position: relative;
  padding-left: 0;
  color: var(--ink);
}
.quote-block blockquote p {
  margin: 0;
  position: relative;
  /* padding clears the large yellow glyphs so they never sit on the text */
  padding-top: 3.25rem;
  padding-bottom: 4.75rem;
}
.quote-block blockquote p::before,
.quote-block blockquote p::after {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.9;
  position: absolute;
  left: 0;
  pointer-events: none;
}
.quote-block blockquote p::before {
  content: "“";
  top: 0;
}
.quote-block blockquote p::after {
  content: "”";
  bottom: 0.15rem;
}
.quote-block cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-family: var(--font-ui);
  color: var(--black);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  text-transform: none;
}

/* ========== PAGE BANNER — short image band ========== */
.page-banner {
  position: relative;
  background: #1a1a1a url("/assets/images/hero-slide-1.jpg") center/cover no-repeat;
  padding: calc(var(--header-h) + clamp(1.25rem, 3vw, 2rem)) var(--space) clamp(1.5rem, 3vw, 2.25rem);
  text-align: left;
  border-bottom: none;
  min-height: 200px;
  max-height: none;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 961px) {
  .page-banner {
    min-height: 220px;
    max-height: 240px;
  }
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}
.page-banner h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0;
  max-width: var(--max-wide);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.page-banner.dark {
  background: #1a1a1a url("/assets/images/projects-hero.jpg") center/cover no-repeat;
}
.page-banner.dark h1 { color: #fff; }

.page-banner--projects {
  background-image: url("/assets/images/projects-hero.jpg");
}

/* Content */
.prose {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 2.85rem) var(--space) clamp(2.25rem, 4.5vw, 3.25rem);
}
.prose p { margin: 0 0 1.25rem; color: #222; font-size: 1.05rem; line-height: 1.75; }
.prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--black);
  padding-left: 0.85rem;
  border-left: 4px solid var(--yellow);
}
.prose.text-center h2,
.prose h2.mt-0.text-center {
  border-left: none;
  padding-left: 0;
  display: inline-block;
  text-align: center;
}
.prose.text-center h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  background: var(--yellow);
  margin: 0.55rem auto 0;
  border-radius: 2px;
}
.prose.text-center {
  text-align: center;
}
.prose a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.prose a:hover { color: var(--yellow-dark); }

.content-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 2.85rem) var(--space) clamp(2.5rem, 5vw, 3.5rem);
}
.content-split p {
  margin: 0 0 1.15rem;
  color: #222;
  font-size: 1.05rem;
  line-height: 1.75;
}
.content-split img {
  width: 100%;
  object-fit: cover;
  max-height: 440px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) {
  .content-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* Team grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem var(--space) clamp(2.5rem, 5vw, 3.5rem);
}
.team-card {
  text-align: left;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: none;
  display: block;
  overflow: hidden;
  width: 210px;
  flex: 0 0 210px;
  max-width: 100%;
}
.team-card:hover {
  transform: none;
  opacity: 1;
  box-shadow: var(--shadow-sm);
  border-color: rgba(247, 219, 7, 0.55);
}
.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}
.team-card:hover img { border-color: transparent; }
.team-card h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  margin: 1rem 1rem 0.35rem;
  font-weight: 700;
  color: var(--black);
}
.team-card p {
  font-size: 0.88rem;
  color: var(--gray-muted);
  margin: 0 1rem 1.15rem;
  line-height: 1.4;
}

/* Bio */
.bio {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 2.85rem) var(--space) clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.75rem;
  align-items: start;
}
.bio img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bio h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}
.bio .role {
  color: var(--yellow-dark);
  font-weight: 700;
  margin: 0 0 1.4rem;
  font-family: var(--font-ui);
  font-size: 1rem;
}
.bio p { color: #222; line-height: 1.75; }
@media (max-width: 700px) {
  .bio { grid-template-columns: 1fr; }
  .bio img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
  }
}

/* Forms */
.form-card {
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--space) clamp(2.25rem, 4vw, 3.25rem);
}
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.form-group label .req { color: #c6280a; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  color: var(--black);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 52px;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247, 219, 7, 0.45);
}
.form-group textarea { min-height: 168px; resize: vertical; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: #eef6d8;
  border: 1px solid var(--green);
  color: var(--black);
  border-radius: var(--radius-sm);
}
.form-status.error { background: #f8d7d0; border-color: #c6280a; }
.form-status.show { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 2.85rem) var(--space) clamp(2.5rem, 5vw, 3.5rem);
}
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
  color: var(--black);
  padding-left: 0.75rem;
  border-left: 4px solid var(--yellow);
}
.contact-info p { margin: 0 0 1.5rem; color: #333; }
.contact-info a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.contact-info a:hover { color: var(--yellow-dark); opacity: 1; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Donate */
.donate-cta {
  text-align: left;
  padding: clamp(2rem, 4.5vw, 2.85rem) var(--space);
  max-width: 760px;
  margin: 0 auto;
}
.donate-cta h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.donate-box {
  background: var(--yellow);
  padding: 2.25rem 1.75rem;
  margin: 0 auto 0;
  max-width: 500px;
  text-align: center;
  border-radius: var(--radius);
  border: none;
  box-shadow: none;
}
.donate-box h2 {
  font-family: var(--font-heading);
  margin: 0 0 1.15rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}
.donate-box .btn {
  min-width: 200px;
  min-height: 52px;
  font-size: 1rem;
}
.donate-note {
  font-size: 0.95rem;
  color: #2a2a2a;
  margin-top: 1.25rem;
  line-height: 1.55;
}
.donate-note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.donate-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
}

/* Fundraiser — works under overlay header */
.fundraiser-hero {
  text-align: left;
  padding: calc(var(--header-h) + clamp(1.25rem, 3vw, 2rem)) var(--space) clamp(1.5rem, 3vw, 2.25rem);
  background: #0a0a0a url("/assets/images/hero-slide-2.jpg") center/cover no-repeat;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  min-height: 200px;
}
.fundraiser-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}
.fundraiser-hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .fundraiser-hero img {
    max-width: min(100%, 360px);
  }
}
.fundraiser-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

/* Subscribe */
.subscribe-hero {
  text-align: left;
  padding: calc(var(--header-h) + clamp(1.25rem, 3vw, 2rem)) var(--space) clamp(1.25rem, 2.5vw, 1.75rem);
  background: #1a1a1a url("/assets/images/hero-slide-1.jpg") center/cover no-repeat;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 961px) {
  .subscribe-hero { min-height: 220px; }
}
.subscribe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}
.subscribe-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.55rem;
  color: #fff;
}
.subscribe-hero .lead {
  position: relative;
  z-index: 1;
  text-align: left;
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
}
.subscribe-hero .lead + .lead { margin-bottom: 0; }
.subscribe-hero .icon {
  display: none;
}

/* ========== FOOTER — solid black 3-col (EPIC weight) ========== */
.site-footer {
  background: var(--near-black);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--space) 1.5rem;
  margin-top: auto;
  border-top: 2px solid var(--yellow);
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.footer-brand .footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 0.75rem;
}
.footer-brand p.footer-mission {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  /* beat .footer-inner p { margin: 0 }; bottom gap comes from the button only */
  margin: 0.5rem 0 0;
  max-width: 340px;
  line-height: 1.65;
}
.footer-col h3,
.footer-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 1.15rem;
  font-weight: 700;
}
.footer-contact p,
.footer-inner p,
.footer-inner a {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.footer-address {
  margin-top: 0.75rem !important;
  color: rgba(255, 255, 255, 0.8);
}
.footer-contact p + p { margin-top: 0.75rem; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--yellow);
  opacity: 1;
}
.footer-links a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.65rem;
  background: #fff;
  flex-shrink: 0;
}
.footer-inner a:hover { color: var(--yellow); opacity: 1; }

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0; /* gap above Subscribe = same .btn-footer-donate margin-top */
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.socials a,
.social-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1px solid #333;
  color: var(--yellow);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover,
.social-link:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
  opacity: 1;
}
.socials svg,
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.socials img { width: 20px; height: 20px; }

.footer-bottom {
  max-width: var(--max-wide);
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(247, 219, 7, 0.45);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.footer-bottom a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .site-footer {
    padding: 2rem var(--space) 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2.35rem;
  }
  .footer-col h3,
  .footer-inner h3 {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-brand p.footer-mission {
    margin: 0.35rem 0 0;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .socials { justify-content: flex-start; gap: 0.65rem; }
  .footer-bottom {
    justify-content: flex-start;
    text-align: left;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 2.15rem;
    padding-top: 1.25rem;
  }
  .footer-links { align-items: flex-start; }
  .btn-footer-donate {
    margin-left: 0;
    margin-top: 1.35rem; /* identical for Donate + Subscribe */
    margin-bottom: 0.15rem;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
  }
  .footer-newsletter p { margin: 0; font-size: 0.95rem; }
  .footer-inner p,
  .footer-inner a { font-size: 0.95rem; }
}

@media (max-width: 700px) {
  .quote-block { text-align: left; }
  .quote-block blockquote {
    padding-left: 0;
    padding-top: 0;
  }
  .quote-block blockquote p {
    padding-top: 2.85rem;
    padding-bottom: 4.35rem;
  }
  .quote-block blockquote p::before,
  .quote-block blockquote p::after {
    left: 0;
    font-size: 3.25rem;
  }
}

@media (max-width: 600px) {
  body { font-size: 1rem; line-height: 1.7; }
  .lead { font-size: 1.05rem; }
  .section-title { margin-bottom: 0.85rem; }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@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;
  }
}
