/* ======================
   1. Custom Properties (Design Tokens)
   ====================== */
:root {
  /* Colors */
  --color-primary: #0F2A1E;      /* deep forest emerald */
  --color-primary-light: #163a29;
  --color-teal: #2F9C7E;         /* leaf-mark teal */
  --color-teal-light: #4FBBA0;
  --color-gold: #C9A227;         /* wordmark gold */
  --color-gold-light: #E0BE4D;
  --color-bg: #FAF8F3;           /* warm off-white */
  --color-bg-alt: #FFFFFF;
  --color-text: #1C2620;         /* charcoal-green */
  --color-text-muted: #55645C;
  --color-text-reversed: #F5F1E6;
  --color-border: #E3DDCB;

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --container-max: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  /* Luxury shadow system: long, soft, low-opacity — never a hard tight shadow */
  --shadow-soft: 0 4px 16px -6px rgba(15,42,30,0.14);
  --shadow-elevated: 0 24px 60px -20px rgba(15,42,30,0.28), 0 6px 20px -8px rgba(15,42,30,0.12);
  --shadow-photo: 0 28px 70px -24px rgba(15,42,30,0.4), 0 8px 24px -10px rgba(15,42,30,0.16);
  --ease-luxury: cubic-bezier(0.16,1,0.3,1);
}

/* ======================
   2. CSS Reset
   ====================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ======================
   3. Base Styles
   ====================== */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 20px; font-weight: 700; }

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  h3 { font-size: 26px; }
}

p { color: var(--color-text-muted); }
small { font-size: 15px; }
.caption { font-size: 13px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  flex-shrink: 0;
}
.section--dark .eyebrow { color: var(--color-gold-light); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
}

/* Ornamental section divider — quiet editorial rhythm between major sections */
.divider--ornamental {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: var(--space-4) 0 0;
}
.divider--ornamental::before,
.divider--ornamental::after {
  content: '';
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--color-border));
}
.divider--ornamental::after { background: linear-gradient(90deg, var(--color-border), transparent); }
.divider--ornamental span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.section--dark .divider--ornamental::before,
.section--dark .divider--ornamental::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16));
}
.section--dark .divider--ornamental::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.16), transparent);
}

/* ======================
   4. Layout
   ====================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-8) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-12) 0; }
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-text-reversed);
  position: relative;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--color-text-reversed);
}
.section--dark p { color: #C8D3CB; }

.section--white { background: var(--color-bg-alt); }

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-2); }

/* Decorative gold line-art texture (from brand slide), used sparingly */
.bg-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(45deg, transparent 48%, var(--color-gold) 49%, var(--color-gold) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 48%, var(--color-gold) 49%, var(--color-gold) 50%, transparent 51%);
  background-size: 120px 120px;
}

/* ======================
   5. Navigation
   ====================== */
.topbar {
  background: var(--color-primary);
  color: var(--color-text-reversed);
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  flex-wrap: wrap;
  gap: var(--space-1);
}
.topbar a { color: var(--color-text-reversed); }
.topbar__contact { display: flex; gap: var(--space-3); }

/* The glass blur lives on ::before, NOT on .nav itself. backdrop-filter makes an
   element the containing block for its position:fixed descendants, which collapsed
   the mobile menu panel to the height of the nav bar (~104px) and clipped every
   link below the fold. Keeping the filter on a pseudo-element preserves the effect
   while letting .nav__mobile size itself against the viewport. */
.nav {
  background: transparent;
  border-bottom: 1px solid rgba(227,221,203,0.7);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(250,248,243,0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background 0.3s ease;
}
.nav--scrolled::before { background: rgba(250,248,243,0.96); }
.nav--scrolled {
  box-shadow: 0 8px 32px -16px rgba(15,42,30,0.18);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  transition: padding 0.3s ease;
}
.nav--scrolled .container { padding-top: 12px; padding-bottom: 12px; }
.nav__logo img { height: 44px; width: auto; transition: height 0.3s ease; }
.nav--scrolled .nav__logo img { height: 38px; }
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-weight: 600;
  font-size: 15px;
}
.nav__links a:not(.btn) {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
  transition: right 0.25s var(--ease-luxury);
}
.nav__links a:not(.btn):hover { color: var(--color-teal); }
.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn)[aria-current="page"]::after { right: 0; }
.nav__links a:not(.btn)[aria-current="page"] { color: var(--color-primary); }
.nav__links .btn-primary {
  box-shadow: 0 8px 20px -8px rgba(201,162,39,0.55);
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
}
.nav__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 22px;
  position: relative;
  z-index: 201;
}
@media (min-width: 900px) {
  .nav__menu-toggle { display: none; }
}
.nav__menu-toggle .nav__menu-icon {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.nav__menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-luxury), opacity 0.2s ease, top 0.3s var(--ease-luxury);
}
.nav__menu-icon span:nth-child(1) { top: 0; }
.nav__menu-icon span:nth-child(2) { top: 7px; }
.nav__menu-icon span:nth-child(3) { top: 14px; }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-icon span:nth-child(2) { opacity: 0; }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobile overlay + slide-in panel */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,42,30,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 199;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  /* dvh tracks the shrinking/growing browser chrome on iOS and Android, so the
     last item never hides underneath the address bar. */
  height: 100dvh;
  width: min(84vw, 360px);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: calc(var(--space-8) + 8px) var(--space-4) var(--space-4);
  box-shadow: -24px 0 60px -24px rgba(15,42,30,0.35);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-luxury);
  z-index: 200;
  overflow-y: auto;
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile a:not(.btn) {
  padding: 14px 4px;
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav__mobile.is-open a:not(.btn) { opacity: 1; transform: translateX(0); }
.nav__mobile.is-open a:nth-child(1) { transition-delay: 0.06s; }
.nav__mobile.is-open a:nth-child(2) { transition-delay: 0.11s; }
.nav__mobile.is-open a:nth-child(3) { transition-delay: 0.16s; }
.nav__mobile.is-open a:nth-child(4) { transition-delay: 0.21s; }
.nav__mobile.is-open a:nth-child(5) { transition-delay: 0.26s; }
.nav__mobile.is-open a:nth-child(6) { transition-delay: 0.31s; }
.nav__mobile a[aria-current="page"] { color: var(--color-teal); }
.nav__mobile .btn { margin-top: var(--space-3); width: 100%; }
body.nav-open { overflow: hidden; }
@media (min-width: 900px) {
  .nav__mobile, .nav__overlay { display: none !important; }
}

/* ======================
   6. Hero Section
   ====================== */
.hero {
  background: var(--color-primary);
  color: var(--color-text-reversed);
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--color-gold), var(--color-teal-light), var(--color-gold)) 1;
}
@media (min-width: 768px) {
  .hero { padding: calc(var(--space-12) + var(--space-2)) 0 var(--space-12); }
}
/* Fine film-grain texture for an editorial, printed-material feel over solid-color heroes.
   Photo heroes (.hero--photo) skip this so real photography isn't muddied by synthetic noise. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero--photo::after { display: none; }

/* Photo heroes: the photograph runs full-bleed and completely uncovered at the top of the
   section, so it's the first thing a visitor sees, unedited by copy. The headline and CTAs
   live in their own band underneath, on solid brand color, so they never sit on top of faces
   no matter how a given photo is framed. */
.hero--photo {
  padding: 0 0 var(--space-6) 0;
}
@media (min-width: 768px) {
  .hero--photo { padding: 0 0 var(--space-8) 0; }
}
.hero--photo .hero-photo {
  position: relative;
  height: 46vh;
  min-height: 320px;
  max-height: 460px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero--photo .hero-photo { height: 58vh; min-height: 420px; max-height: 620px; }
}
.hero--photo .hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-6);
}
@media (min-width: 768px) {
  .hero--photo .hero__content { padding-top: var(--space-8); }
}

/* ---- Overlay variant (homepage) ----------------------------------------
   Instead of stacking photo-then-copy, the photograph becomes a full-bleed field
   filling the whole section and the copy sits over it in a single left-aligned
   column roughly half the container wide. A directional scrim keeps that side dark
   enough to read against while the right stays open for the photograph itself.
   Add `hero--overlay` alongside `hero--photo` to opt a page in. */
.hero--overlay {
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: var(--space-6) 0 calc(var(--space-6) + 40px);
}
@media (min-width: 768px) {
  .hero--overlay {
    min-height: 82vh;
    padding: var(--space-8) 0 calc(var(--space-8) + 40px);
  }
}
.hero--overlay .hero-photo {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  z-index: 0;
}
/* Mobile: the scrim runs top-to-bottom over the whole frame, so the photo just needs to
   sit high enough to keep both faces in view. */
.hero--overlay .hero-photo img {
  object-position: 45% 22%;
}
/* Desktop: the father and daughter sit at ~45% across the source frame — directly behind
   the content column and the densest part of the scrim. Oversizing the image and pushing
   it right lands them at ~53-87% across, clear of the column (which ends at ~52%) and in
   the open half of the frame. The overflow is clipped by .hero-photo; the sliver left of
   the image is the section's own brand color under the opaque end of the scrim, so it is
   indistinguishable from the scrim itself. */
@media (min-width: 900px) {
  .hero--overlay .hero-photo {
    background: var(--color-primary);
  }
  .hero--overlay .hero-photo img {
    position: absolute;
    top: 0;
    left: 16%;
    width: 120%;
    height: 100%;
    object-position: 0% 33%;
  }
}
.hero--overlay .hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  padding-top: 0;
}
/* The content column. Full width on mobile, where there is no side-by-side split; from the
   split breakpoint up it takes ~51% of the container, matching the reference. The
   percentage cap keeps it off the photograph's subjects on narrower desktops, where a
   fixed 38rem would otherwise swallow most of the frame. */
.hero--overlay .hero__col {
  max-width: 38rem;
}
@media (min-width: 900px) {
  .hero--overlay .hero__col {
    max-width: min(38rem, 52%);
  }
}
.hero--overlay .hero__col .lede {
  max-width: 32rem;
}
/* The full-width hero carried a 56px headline comfortably; in a half-width column that
   same size runs to five lines, so it scales down with the column. */
.hero--overlay h1 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem);
}
/* Teal reads too dim against the photograph; gold is the reversed-context eyebrow color
   already used by .section--dark. */
.hero--overlay .eyebrow {
  color: var(--color-gold-light);
}
/* Trust line reads as a footer to the column, set off by a hairline rule. */
.hero--overlay .hero__micro {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(245, 241, 230, 0.18);
}
.hero__content { position: relative; z-index: 1; max-width: 780px; }
.hero h1 {
  color: var(--color-text-reversed);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 20px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
}
.hero h1 .highlight { color: var(--color-gold); }
.hero p.lede {
  font-size: 20px;
  color: #D7E0D9;
  margin-bottom: var(--space-4);
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.hero__micro { font-size: 14px; color: #9FB0A5; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }

/* Stacked photo heroes: copy sits on solid brand color below the image, not on top of it,
   so it doesn't need the heavy drop-shadows that photo-overlaid text requires. The overlay
   variant is excluded — its copy sits on the photograph and keeps the shadows defined on
   .hero above, which carry legibility wherever the scrim alone isn't enough. */
.hero--photo:not(.hero--overlay) h1,
.hero--photo:not(.hero--overlay) p.lede,
.hero--photo:not(.hero--overlay) .hero__micro {
  text-shadow: none;
}
.hero__video-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 15px;
}

/* ======================
   7. Sections
   ====================== */

/* Stat strip */
.stat-strip {
  background: var(--color-primary-light);
  padding: var(--space-6) 0;
  position: relative;
}
.stat-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.5), transparent);
}
.stat-strip .grid { text-align: center; }
@media (min-width: 640px) {
  .stat-strip .grid > div { border-left: 1px solid rgba(255,255,255,0.08); }
  .stat-strip .grid > div:first-child { border-left: none; }
}
.stat-strip__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  background: linear-gradient(155deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-strip__label {
  font-size: 14px;
  color: #B9C7BD;
}

/* Problem / generic content section */
.content-section h2 { margin-bottom: var(--space-3); }
.content-section p + p { margin-top: var(--space-2); }

.pull-quote {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-3);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-4) 0;
}
.section--dark .pull-quote { color: var(--color-text-reversed); border-color: var(--color-gold); }

/* Pillar / program cards */
.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury), border-color 0.35s ease;
}
.card--bordered {
  border-top: 3px solid var(--color-teal);
  border-left: none;
  box-shadow: var(--shadow-soft);
}
.card--bordered:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-border);
}
.card--bordered.card--founding { border-top-color: var(--color-gold); }
.card h3 { margin-bottom: var(--space-1); }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  background: rgba(201,162,39,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

/* Three-path CTA cards */
.path-card {
  background: linear-gradient(165deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius);
  padding: var(--space-4);
  color: var(--color-text-reversed);
  border-top: 2px solid var(--color-teal-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury);
}
.path-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}
.path-card h3 { color: var(--color-text-reversed); }
.path-card p { color: #C8D3CB; flex-grow: 1; }

/* Trust / differentiator list */
.trust-list__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.trust-list__item:last-child { border-bottom: none; }
.trust-list__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(47,156,126,0.12);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-list__body h4 { margin-bottom: 4px; }

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

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.faq-item h4 { margin-bottom: var(--space-1); }

/* Value stack (Donate page) */
.value-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.value-item__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-gold);
  min-width: 90px;
}

/* Testimonial placeholder */
.testimonial {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-style: italic;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: var(--space-3);
  font-family: var(--font-display);
  font-size: 64px;
  font-style: normal;
  color: var(--color-gold);
  opacity: 0.35;
  line-height: 1;
}

/* Photography */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-primary-light);
  box-shadow: var(--shadow-photo);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.09);
  opacity: 0;
  transition: transform 1.8s var(--ease-luxury), opacity 1.1s ease, filter 0.5s ease;
  filter: saturate(1.06) contrast(1.03) brightness(1.01);
}
/* Reveal: image settles into frame as its container scrolls into view */
.photo-frame.is-visible img,
[data-reveal].is-visible .photo-frame img,
.card.is-visible .photo-frame img {
  transform: scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .photo-frame img { transform: none !important; opacity: 1 !important; transition: none !important; }
}
/* Gentle hover zoom + brightening, focus is drawn to the subject not the frame */
.photo-frame:hover img,
.card:hover .photo-frame img,
a:hover .photo-frame img {
  transform: scale(1.055);
  filter: saturate(1.1) contrast(1.03);
}
/* Vignette + brand color wash: feathers the edges so the photo blends into the layout
   instead of reading as a hard-edged screenshot */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(201,162,39,0.10) 0%, transparent 34%),
    linear-gradient(-25deg, rgba(47,156,126,0.10) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(15,42,30,0.34) 100%);
  mix-blend-mode: multiply;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), inset 0 0 0 2px rgba(15,42,30,0.06);
  pointer-events: none;
  z-index: 2;
}
.photo-frame--tall { aspect-ratio: 4 / 5; }
.photo-frame--wide { aspect-ratio: 16 / 9; }
.photo-frame--square { aspect-ratio: 1 / 1; }
/* A slim gold hairline, quieter and more editorial than a thick bar */
.photo-frame--gold-edge {
  border-top: 2px solid var(--color-gold);
}
/* A soft diagonal "cut" corner for editorial framing on feature photography */
.photo-frame--cut {
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}

.split-photo {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .split-photo { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split-photo--reverse { direction: rtl; }
  .split-photo--reverse > * { direction: ltr; }
}

.card--bordered .photo-frame,
.card .photo-frame {
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-3);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: none;
}
.card--bordered .photo-frame { margin-top: calc(var(--space-4) * -1); }
/* Bottom scrim so card photography settles into the card body instead of a hard cut */
.card .photo-frame::after {
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 0 0 0 1px rgba(15,42,30,0.06), inset 0 -28px 24px -18px rgba(28,38,32,0.28);
}
.card { overflow: hidden; }

/* Full-bleed, uncovered photo band. No overlay copy sits on this image, so nothing here
   needs to fight for legibility — the photo is shown clearly, true to its own color and
   composition, exactly as shot. */
.hero-photo {
  position: relative;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  filter: saturate(1.08);
}
@keyframes heroKenBurns {
  0% { transform: scale(1.04) translate3d(0,0,0); }
  100% { transform: scale(1.1) translate3d(-1%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; transform: scale(1.02); }
}
/* Soft feathered seam at the bottom edge only, so the photo settles into the brand-color
   content band below rather than ending in a hard rectangle. Top stays completely clear. */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 82%,
    rgba(15,42,30,0.5) 94%,
    var(--color-primary) 100%);
}

/* Overlay heroes carry copy on the photograph, so they need a directional scrim instead.
   The horizontal pass anchors solid brand color behind the content column and clears
   toward the right so the photograph reads openly on that side; the vertical pass seats
   the frame under the nav and feathers it into the section below. */
.hero--overlay .hero-photo::after {
  background:
    linear-gradient(90deg,
      var(--color-primary) 0%,
      rgba(15,42,30,0.92) 40%,
      rgba(15,42,30,0.70) 50%,
      rgba(15,42,30,0.34) 60%,
      rgba(15,42,30,0.14) 75%,
      rgba(15,42,30,0.07) 100%),
    linear-gradient(180deg,
      rgba(15,42,30,0.42) 0%,
      rgba(15,42,30,0) 26%,
      rgba(15,42,30,0) 76%,
      var(--color-primary-light) 100%);
}
/* On narrow screens there is no room for a side-by-side split, so the scrim runs
   top-to-bottom instead and the column simply sits over the full frame. */
@media (max-width: 899px) {
  .hero--overlay .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(15,42,30,0.55) 0%,
      rgba(15,42,30,0.72) 45%,
      rgba(15,42,30,0.88) 82%,
      var(--color-primary-light) 100%);
  }
}

/* ======================
   8. Components
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-luxury), box-shadow 0.3s var(--ease-luxury), background 0.25s ease, opacity 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '\2192';
  display: inline-block;
  margin-left: 2px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-luxury);
}
.btn:hover::after { opacity: 1; transform: translateX(0); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(155deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-primary);
  box-shadow: 0 10px 24px -10px rgba(201,162,39,0.5);
}
.btn-primary:hover { background: linear-gradient(155deg, var(--color-gold-light), var(--color-gold-light)); }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(245,241,230,0.5);
  color: var(--color-text-reversed);
}
.section--white .btn-secondary, .section--light .btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--color-text-reversed); }
.section--white .btn-secondary:hover, .section--light .btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-reversed);
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(47,156,126,0.12);
  color: var(--color-teal);
}

/* Forms */
.form-group { margin-bottom: var(--space-2); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(47,156,126,0.14);
}
.form-disclaimer { font-size: 13px; color: var(--color-text-muted); margin-top: var(--space-2); }
.form-success {
  background: rgba(47,156,126,0.1);
  border: 1px solid var(--color-teal);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
}
.form-error {
  background: rgba(201,80,39,0.08);
  border: 1px solid #C95027;
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  margin-top: var(--space-2);
  font-size: 14px;
  color: #93341A;
}

/* ======================
   9. Footer
   ====================== */
.footer {
  background: var(--color-primary);
  color: var(--color-text-reversed);
  padding: var(--space-8) 0 var(--space-3);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-teal-light), var(--color-gold), transparent);
}
.footer h4 {
  color: var(--color-gold-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.footer__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer__logo img { height: 40px; margin-bottom: var(--space-2); }
.footer p { color: #A9BAAF; font-size: 15px; }
.footer a { color: #C8D3CB; font-size: 15px; }
.footer a:hover { color: var(--color-gold-light); }
.footer li + li { margin-top: 10px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-3);
  font-size: 13px;
  color: #8FA097;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}
.footer__bottom a { color: #8FA097; }
.footer__bottom-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ======================
   10. Animations & Transitions
   ====================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ======================
   11. Responsive Overrides
   ====================== */
@media (max-width: 639px) {
  .hero__ctas .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}

/* ======================
   14. Giving form (donate page)
   ====================== */
.give {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-soft);
}
.give__group {
  border: 0;
  margin: 0 0 var(--space-4) 0;
  padding: 0;
}
.give__legend {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  padding: 0;
}
.give__toggle,
.give__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.give__amounts .give__option { flex: 1 1 120px; }

.give__option {
  appearance: none;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.give__option:hover { border-color: var(--color-teal); }
.give__option.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-reversed);
}
.give__option:focus-visible {
  outline: 3px solid var(--color-teal-light);
  outline-offset: 2px;
}

.give__custom { display: block; margin-top: var(--space-2); }
.give__custom-label {
  display: block;
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.give__custom-field {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: var(--color-bg-alt);
}
.give__custom-field:focus-within { border-color: var(--color-teal); }
.give__currency { color: var(--color-text-muted); font-weight: 600; }
.give__custom-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 17px;
  font-family: var(--font-body);
}

.give__submit { width: 100%; margin-top: var(--space-1); }
.give__submit[disabled] { opacity: 0.65; cursor: progress; }

.give__status {
  margin-top: var(--space-2);
  font-size: 15px;
  color: var(--color-text-muted);
  min-height: 1.2em;
}
.give__status--error { color: #A3271F; font-weight: 600; }

.give__reassurance {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Name definition in a hero lede ("ACF stands for Advancing Community Forward.")
   reads at full strength against the muted lede copy around it. */
.hero p.lede strong {
  color: var(--color-text-reversed);
  font-weight: 600;
}
