/* ==========================================================================
   Donate For Dreams — Warm Editorial Nonprofit Design System
   Palette harmonized with Donate For Dreams logo (Deep Navy + Golden Amber)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-canvas: #faf8f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f2eee6;
  --bg-tint: #ebf2f7;

  /* Brand */
  --navy: #0b3b60;
  --navy-dark: #07263f;
  --navy-mid: #14507d;
  --amber: #e08e0b;
  --amber-hover: #c57a05;
  --amber-soft: #fef4e2;
  --plum: #5b3e8e;
  --plum-soft: #f2eef9;

  /* Ink */
  --ink: #132233;
  --ink-body: #3d4f63;
  --ink-muted: #657689;
  --ink-on-dark: #f7f9fb;
  --ink-on-dark-muted: #c6d6e6;

  /* Borders & Shadows */
  --border: #e5dfd3;
  --border-strong: #d4cbb9;
  --shadow-sm: 0 1px 3px rgba(11, 59, 96, 0.06);
  --shadow-md: 0 10px 28px -8px rgba(11, 59, 96, 0.11);
  --shadow-lg: 0 22px 46px -14px rgba(7, 38, 63, 0.18);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 780px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --header-height: 76px;
}

/* Reset & Base */
*,
*::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.68;
  color: var(--ink-body);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
}

h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
}

h3 {
  font-size: clamp(1.22rem, 1.9vw, 1.48rem);
}

p {
  margin: 0 0 1.15em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum);
  margin-bottom: 12px;
}

.eyebrow--amber {
  color: var(--amber);
}

.eyebrow--light {
  color: #f8c668;
}

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-body);
}

/* Layout Helpers */
.container {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--container-narrow), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.section--subtle {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.section--surface {
  background-color: var(--bg-surface);
  border-block: 1px solid var(--border);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--ink-on-dark);
}

.section--navy h2,
.section--navy h3 {
  color: #ffffff;
}

.section--navy p {
  color: var(--ink-on-dark-muted);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 3.8vw, 3rem);
}

.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-header p {
  max-width: 58ch;
  margin-top: 0.75rem;
}

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

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

.btn--primary {
  background-color: var(--amber);
  color: #132233;
  box-shadow: 0 4px 14px rgba(224, 142, 11, 0.28);
}

.btn--primary:hover {
  background-color: var(--amber-hover);
  color: #ffffff;
}

.btn--navy {
  background-color: var(--navy);
  color: #ffffff;
}

.btn--navy:hover {
  background-color: var(--navy-dark);
  color: #ffffff;
}

.btn--outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--navy);
  background-color: var(--bg-tint);
  color: var(--navy);
}

.btn--outline-light {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background-color: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

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

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  background-color: var(--bg-subtle);
  color: var(--navy);
}

.nav-link[aria-current="page"] {
  background-color: var(--bg-tint);
  color: var(--navy);
  font-weight: 600;
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.5rem 0.85rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-dark);
  color: #ffffff;
  min-height: clamp(500px, 68vh, 650px);
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(7, 34, 56, 0.94) 0%,
    rgba(7, 34, 56, 0.82) 48%,
    rgba(7, 34, 56, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  max-width: 670px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbe0a6;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: #f8be52;
  font-weight: 500;
}

.hero-lead {
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.66;
  color: #e4edf5;
  margin-bottom: 1.85rem;
  max-width: 56ch;
}

/* Impact Metrics Band */
.stats-band {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding-block: 2.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-item {
  padding-inline: 1rem;
  border-left: 2px solid var(--border);
}

.stat-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* Dual-Region Mission Split */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: center;
}

.region-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.region-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.region-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--navy);
}

.region-icon--plum {
  background: var(--plum-soft);
  color: var(--plum);
}

.region-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.region-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.mission-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mission-collage figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mission-collage figure:first-child {
  grid-column: 1 / -1;
}

.mission-collage img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mission-collage figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  background: var(--bg-surface);
}

/* Cards & Project Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.03);
}

.project-card__body {
  padding: 1.4rem 1.45rem 1.55rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.tag {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  color: var(--navy);
}

.tag--amber {
  background: var(--amber-soft);
  color: #8f5400;
}

.tag--plum {
  background: var(--plum-soft);
  color: var(--plum);
}

.meta-date {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.project-card h3 {
  margin-bottom: 0.6rem;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--navy-mid);
}

.project-card p {
  font-size: 0.94rem;
  color: var(--ink-body);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.card-link:hover {
  color: var(--amber-hover);
}

/* Curated Bento Impact Gallery (Replaces auto-scrolling carousel) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}

.bento-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-dark);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  height: 100%;
}

.bento-tile--wide {
  grid-column: span 6;
  grid-row: span 2;
}

.bento-tile--medium {
  grid-column: span 6;
  grid-row: span 1;
}

.bento-tile--third {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.bento-tile:hover img {
  transform: scale(1.04);
}

.bento-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.6rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(7, 34, 56, 0.94) 0%, rgba(7, 34, 56, 0.52) 60%, rgba(7, 34, 56, 0) 100%);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}

.bento-caption strong {
  display: block;
  font-weight: 700;
  color: #fbe0a6;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* Project Detail Photo Grid + Lightbox */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-tile {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

/* Native Dialog Lightbox */
dialog.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(94vw, 1120px);
  max-height: 92vh;
  overflow: visible;
  color: #ffffff;
}

dialog.lightbox::backdrop {
  background: rgba(7, 22, 36, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.lightbox-img {
  max-width: min(92vw, 1060px);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #0d1b2a;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 960px;
  font-size: 0.92rem;
  color: #e4edf5;
}

.lightbox-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lightbox-btn {
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 59, 96, 0.72);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: var(--amber);
  color: #132233;
  border-color: var(--amber);
}

/* YouTube Facade Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1c2c;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.yt-facade:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(11, 59, 96, 0.9);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.yt-facade:hover .yt-play-btn {
  background: var(--amber);
  color: #132233;
  transform: translate(-50%, -50%) scale(1.06);
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__meta {
  padding: 1rem 1.2rem;
}

.video-card__meta h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.video-card__meta p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Page Header (Subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: var(--ink-on-dark-muted);
  max-width: 64ch;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--ink-on-dark-muted);
  margin-bottom: 1.15rem;
}

.breadcrumb a {
  color: #fbe0a6;
  text-decoration: none;
}

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

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.is-hidden {
  display: none !important;
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.1rem;
  border: 3px solid var(--bg-subtle);
  box-shadow: var(--shadow-sm);
}

.team-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
  margin: 0.3rem 0 0.85rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--ink-body);
  text-align: left;
  line-height: 1.6;
}

/* Project Detail Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}

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

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.info-box h3 {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--plum);
  margin-bottom: 1rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.9rem;
}

.detail-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  font-size: 0.92rem;
}

.detail-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

/* Phase Timeline (Sustainable Farm & Read-A-Thon Steps) */
.phase-stack {
  display: grid;
  gap: 1.35rem;
  margin-block: 1.5rem;
}

.phase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-sm);
}

.phase-card--amber {
  border-left-color: var(--amber);
}

.phase-card--plum {
  border-left-color: var(--plum);
}

.phase-card h3 {
  margin-bottom: 0.5rem;
}

.phase-objective {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-tint);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
}

/* Blog Cards & Article */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-card h3 {
  margin-bottom: 0.7rem;
}

.blog-card h3 a {
  text-decoration: none;
  color: var(--ink);
}

.blog-card h3 a:hover {
  color: var(--navy);
}

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  box-shadow: var(--shadow-sm);
}

/* Involvement Cards & Forms */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.involve-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.involve-card h3 {
  font-size: 1.32rem;
}

.involve-card p {
  flex: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 59, 96, 0.12);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c0392b;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

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

.form-status--success {
  background: #e9f7ef;
  color: #145a32;
  border: 1px solid #a9dfbf;
}

.form-status--info {
  background: var(--bg-tint);
  color: var(--navy);
  border: 1px solid #bdd4e7;
}

.social-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.social-row:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  color: var(--navy);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.social-row span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Transparency / 501(c)(3) Callout */
.trust-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--ink-on-dark-muted);
  padding-top: 4rem;
  padding-bottom: 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.footer-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f8be52;
  margin-bottom: 0.95rem;
}

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

.footer-links a {
  color: var(--ink-on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.footer-social-btn:hover {
  background: var(--amber);
  color: #132233;
}

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.84rem;
  color: #9cb4ca;
}

/* Subtle Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .project-card,
  .project-card__media img,
  .bento-tile img,
  .photo-tile img {
    transition: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .info-box {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }
  .brand-emblem {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand-tagline {
    font-size: 0.66rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.35rem;
    gap: 0.35rem;
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-link {
    padding: 0.72rem 0.9rem;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(7, 34, 56, 0.84) 0%,
      rgba(7, 34, 56, 0.92) 100%
    );
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .bento-tile--wide,
  .bento-tile--medium,
  .bento-tile--third {
    grid-column: span 1;
    grid-row: span 1;
  }
  .card-grid,
  .card-grid--2,
  .involve-grid,
  .video-grid,
  .photo-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }
  .stat-item {
    border-left: 0;
    padding-inline: 0;
  }
  .mission-collage {
    grid-template-columns: 1fr;
  }
}
