/* =====================================================
   OLD MANOR FARM PRESERVATION TRUST
   Brand: Cormorant Garamond + DM Sans
   Palette: Sanctuary White · Limestone · Ivy · Deep Earth · Divine Gold
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* --- Token System --- */
:root {
  --c-sanctuary:   #F7F3EC;
  --c-limestone:   #E8E0CF;
  --c-ivy:         #4A6741;
  --c-ivy-dark:    #3a5234;
  --c-ivy-soft:    rgba(74, 103, 65, 0.12);
  --c-earth:       #2E1F0F;
  --c-earth-70:    rgba(46, 31, 15, 0.70);
  --c-earth-50:    rgba(46, 31, 15, 0.50);
  --c-earth-20:    rgba(46, 31, 15, 0.20);
  --c-earth-10:    rgba(46, 31, 15, 0.10);
  --c-gold:        #B8892A;
  --c-gold-soft:   rgba(184, 137, 42, 0.14);

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h: 80px;
  --max-w: 1280px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --ivy-mid:   #6B8F5E;
  --ivy-pale:  #E8EFE4;
  --mid:       #5C3F24;
  --soft:      #8A6E52;
  --gold-lt:   #D4A84B;
  --divider:   rgba(74,103,65,0.15);

  --shadow-xs: 0 1px 3px rgba(46,31,15,0.08), 0 1px 2px rgba(46,31,15,0.04);
  --shadow-sm: 0 2px 8px rgba(46,31,15,0.09), 0 1px 3px rgba(46,31,15,0.05);
  --shadow-md: 0 4px 18px rgba(46,31,15,0.11), 0 1px 4px rgba(46,31,15,0.06), 0 0 0 1px rgba(46,31,15,0.03);
  --shadow-lg: 0 12px 40px rgba(46,31,15,0.14), 0 3px 10px rgba(46,31,15,0.08), 0 0 0 1px rgba(46,31,15,0.04);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-earth);
  background: var(--c-sanctuary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Type Scale --- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

p { font-size: clamp(0.93rem, 1.15vw, 1.02rem); line-height: 1.75; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-ivy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--gold { color: var(--c-gold); }
.eyebrow--cream { color: rgba(232,239,228,0.6); }

.lead {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
}

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

.section--sanctuary { background: var(--c-sanctuary); }
.section--limestone { background: var(--c-limestone); }
.section--earth     { background: var(--c-earth); }
.section--ivy       { background: var(--c-ivy); }

.section-header { margin-bottom: 4rem; }
.gold-rule { display: block; width: 48px; height: 1px; background: var(--c-gold); margin: 1.25rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-smooth), background 0.22s var(--ease-smooth), color 0.22s var(--ease-smooth);
  position: relative;
}
.btn:focus-visible { outline: 2px solid var(--c-ivy); outline-offset: 3px; }
.btn:active { transform: scale(0.97); }

.btn--ivy {
  background: var(--c-ivy);
  color: var(--c-sanctuary);
  box-shadow: 0 2px 8px rgba(74,103,65,0.25), 0 1px 2px rgba(74,103,65,0.15);
}
.btn--ivy:hover {
  background: var(--c-ivy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74,103,65,0.30), 0 2px 6px rgba(74,103,65,0.18);
}

.btn--outline-cream {
  background: transparent;
  color: var(--c-sanctuary);
  border: 1px solid rgba(247,243,236,0.45);
}
.btn--outline-cream:hover {
  background: rgba(247,243,236,0.09);
  border-color: var(--c-sanctuary);
  transform: translateY(-1px);
}

.btn--outline-ivy {
  background: transparent;
  color: var(--c-ivy);
  border: 1px solid var(--c-ivy);
}
.btn--outline-ivy:hover {
  background: var(--c-ivy);
  color: var(--c-sanctuary);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-earth);
  box-shadow: 0 2px 8px rgba(184,137,42,0.3);
}
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn--outline-gold {
  background: transparent;
  color: var(--c-gold);
  border: 1px solid rgba(184,143,68,0.5);
}
.btn--outline-gold:hover {
  background: rgba(184,143,68,0.12);
  border-color: var(--c-gold);
  transform: translateY(-1px);
}

.btn--outline-sanctuary {
  background: transparent;
  color: var(--c-sanctuary);
  border: 1px solid rgba(247,243,236,0.35);
}
.btn--outline-sanctuary:hover {
  background: rgba(247,243,236,0.08);
  border-color: rgba(247,243,236,0.7);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(247,243,236,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,103,65,0.12);
  transition: box-shadow 0.3s var(--ease-smooth);
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(46,31,15,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 0 1rem;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.nav-logo-mark {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-main {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--c-earth);
}
.nav-logo-sub {
  font-family: var(--f-body);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}
.nav-links > li > a {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  color: var(--c-earth-50);
  border-radius: 2px;
  transition: color 0.2s;
  position: relative;
}
.nav-links > li > a:hover { color: var(--c-earth); }
.nav-links > li > a.active { color: var(--c-earth); }

.nav-cta { justify-self: end; margin-left: 0; }

/* --- Nav Dropdowns --- */
.nav-item { position: relative; }

/* Invisible bridge fills the gap so cursor doesn't lose hover between link and dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px;
  background: transparent;
}

.nav-item > a .nav-arrow {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.22s var(--ease-smooth), opacity 0.22s;
  line-height: 1;
  vertical-align: middle;
}
.nav-item:hover > a .nav-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

.nav-dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--c-sanctuary);
  border: 1px solid var(--c-earth-10);
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth), visibility 0.22s;
  z-index: 100;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--c-earth-10);
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 0;
  border-bottom-color: var(--c-sanctuary);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-earth-70) !important;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown li a::after { display: none !important; }
.nav-dropdown li a:hover {
  background: var(--c-limestone);
  color: var(--c-earth) !important;
}
/* Dropdown divider accent */
.nav-dropdown li:first-child a {
  border-top: 2px solid var(--c-gold);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.45rem;
  grid-column: 3;
  justify-self: end;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--c-earth);
  transition: transform 0.25s, opacity 0.25s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* --- Hero (Homepage) — split layout --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Left text panel */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 5rem;
  background: var(--c-sanctuary);
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-ivy);
  font-weight: 400;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--c-ivy);
  flex-shrink: 0;
}
.hero-left h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.02;
  color: var(--c-earth);
  margin-bottom: 1.5rem;
}
.hero-left h1 em { font-style: italic; color: var(--c-ivy); }
.hero-rule {
  width: 40px; height: 1px;
  background: var(--c-gold);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-earth-70);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.btn-donate-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.0625rem 2.5rem;
  background: var(--c-ivy);
  color: var(--c-sanctuary);
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(74,103,65,0.25);
}
.btn-donate-hero svg { width: 15px; height: 15px; }
.btn-donate-hero:hover {
  background: var(--ivy-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(74,103,65,0.35);
}

.btn-ghost-hero {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid rgba(138,110,82,0.3);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.btn-ghost-hero:hover {
  color: var(--c-earth);
  border-color: var(--c-earth);
}

/* hero-title alias for h1 inside hero-left */
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5.5vw, 5.125rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--c-earth);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--c-ivy); }
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(247,243,236,0.25) 0%, transparent 30%);
  pointer-events: none;
}
.hero-ghost {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-earth-50);
  border-bottom: 1px solid var(--c-earth-20);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-ghost:hover { color: var(--c-earth); border-color: var(--c-earth-50); }

/* Right image panel */
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 8s ease;
  display: block;
}
.hero-right:hover .hero-img { transform: scale(1.03); }
/* Legacy alias */
.hero-right > img:not(.hero-img) {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 8s ease;
}
.hero-right-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(247,243,236,0.15) 0%, transparent 30%);
}
.hero-badge {
  position: absolute;
  bottom: 2.25rem; left: 2.25rem;
  background: var(--c-sanctuary);
  border-top: 2px solid var(--c-gold);
  padding: 1rem 1.4rem;
  box-shadow: 0 4px 20px rgba(46,31,15,0.12);
}
.hero-badge-num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
}
.hero-badge-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-earth-50);
  margin-top: 4px;
}

/* --- Stats bar --- */
.stats-bar {
  background: var(--c-ivy);
  padding: 2rem 0;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 2.5rem;
  border-right: 1px solid rgba(232,239,228,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(232,239,228,0.9);
  line-height: 1;
}
.stat-label {
  font-family: var(--f-body);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(232,239,228,0.45);
}
.stats-divider { display: none; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  background: var(--c-sanctuary);
  border-bottom: 1px solid rgba(74,103,65,0.12);
  position: relative;
}
.page-hero-grain { display: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--c-earth); margin-top: 0.5rem; margin-bottom: 0; }
.page-hero .lead { color: var(--c-earth-70); margin-top: 1rem; max-width: 52ch; }
.page-hero .eyebrow { color: var(--c-ivy); margin-bottom: 0; }

/* --- Pillars Grid --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--c-sanctuary);
  border: 1px solid var(--c-earth-10);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-smooth);
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.pillar-icon {
  width: 36px; height: 36px;
  margin-bottom: 1.5rem;
  color: var(--c-ivy);
}
.pillar-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.pillar-card p { font-size: 0.88rem; color: var(--c-earth-70); line-height: 1.7; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-ivy);
  transition: gap 0.2s;
}
.pillar-link:hover { gap: 0.65rem; }

/* --- Split Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split--reversed .split-image { order: -1; }

.split-image {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}
.split-image img {
  width: 100%; height: 500px;
  object-fit: cover;
  filter: saturate(0.82);
}
/* Decorative offset frame */
.split-image::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 55%; height: 55%;
  border: 1px solid rgba(74,103,65,0.2);
  z-index: 0;
  pointer-events: none;
}
.split--reversed .split-image::before {
  left: auto; right: -16px;
}
.split-image img { position: relative; z-index: 1; }
.split-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,31,15,0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.split-image-tint { display: none; }

.split-label { margin-bottom: 0.5rem; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; }

.split-stats {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--c-earth-10);
  border-bottom: 1px solid var(--c-earth-10);
  margin: 1.75rem 0;
}
.split-stat-value {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--c-ivy);
  line-height: 1;
}
.split-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-earth-50);
  margin-top: 0.25rem;
}

/* --- Quote section --- */
.quote-section {
  background: var(--c-earth);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(74,103,65,0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(184,137,42,0.10) 0%, transparent 50%);
}
.quote-section > * { position: relative; z-index: 1; }
.quote-mark {
  font-family: var(--f-display);
  font-size: 9rem;
  line-height: 0.6;
  color: var(--c-gold);
  opacity: 0.35;
  display: block;
  margin-bottom: -1.5rem;
}
.quote-text {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--c-sanctuary);
  line-height: 1.42;
  max-width: 26ch;
  margin: 0 auto 1.5rem;
}
.quote-attribution {
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* --- Courses grid --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: var(--c-sanctuary);
  border: 1px solid var(--c-earth-10);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.course-card-img {
  height: 175px;
  background: var(--c-limestone);
  position: relative;
  overflow: hidden;
}
.course-card-img img { width: 100%; height: 100%; object-fit: cover; }
.course-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,31,15,0.4) 0%, transparent 60%);
}
.course-card-body { padding: 1.5rem; }
.course-num {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.4rem;
}
.course-card h4 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.course-card p { font-size: 0.87rem; color: var(--c-earth-70); }

/* --- Support section --- */
.support-section { background: var(--c-ivy); position: relative; overflow: hidden; }
.support-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(247,243,236,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(184,137,42,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.support-card {
  background: rgba(247,243,236,0.08);
  border: 1px solid rgba(247,243,236,0.15);
  border-radius: 3px;
  padding: 2.5rem;
  transition: background 0.2s;
}
.support-card:hover { background: rgba(247,243,236,0.13); }
.support-card h3 { color: var(--c-sanctuary); margin-bottom: 1rem; }
.support-card p { color: rgba(247,243,236,0.68); margin-bottom: 1.5rem; font-size: 0.9rem; }
.support-intro { text-align: center; margin-bottom: 3.5rem; position: relative; z-index: 1; }
.support-intro h2 { color: var(--c-sanctuary); }
.support-intro p { color: rgba(247,243,236,0.7); margin-top: 0.75rem; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* --- Trustees --- */
.trustees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.trustee-card { text-align: center; }
.trustee-portrait {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--c-earth-10);
  box-shadow: var(--shadow-sm);
}
.trustee-portrait img { width: 100%; height: 100%; object-fit: cover; }
.trustee-name { font-size: 1.3rem; margin-bottom: 0.2rem; }
.trustee-role {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-ivy);
  margin-bottom: 0.85rem;
  display: block;
}
.trustee-bio { font-size: 0.88rem; color: var(--c-earth-70); line-height: 1.7; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 1rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-ivy), transparent);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 0.55rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-ivy);
  box-shadow: 0 0 0 3px var(--c-sanctuary);
}
.timeline-year {
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.3rem;
  display: block;
}
.timeline-item h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.88rem; color: var(--c-earth-70); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
}
.contact-detail { margin-bottom: 1.75rem; }
.contact-detail-label {
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.4rem;
  display: block;
}
.contact-detail-value {
  font-family: var(--f-display);
  font-size: 1.1rem;
  line-height: 1.5;
}
.contact-detail-value a { color: var(--c-ivy); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--c-ivy-dark); }

/* --- Form --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-earth-70);
  margin-bottom: 0.45rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-earth);
  background: var(--c-sanctuary);
  border: 1px solid var(--c-earth-20);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-ivy);
  box-shadow: 0 0 0 3px rgba(74,103,65,0.1);
}
.form-textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Purpose cards --- */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.purpose-card {
  padding: 1.5rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--c-earth-10);
  background: var(--c-sanctuary);
  box-shadow: var(--shadow-xs);
}
.purpose-num {
  font-family: var(--f-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--c-limestone);
  margin-bottom: 0.75rem;
}
.purpose-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.3; }
.purpose-card p { font-size: 0.82rem; color: var(--c-earth-70); }

/* --- Faith list --- */
.faith-list { display: flex; flex-direction: column; gap: 0.85rem; }
.faith-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--c-sanctuary);
  border-left: 2px solid var(--c-ivy);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--shadow-xs);
}
.faith-arrow { color: var(--c-ivy); flex-shrink: 0; margin-top: 0.15rem; font-size: 1rem; }
.faith-item p { font-size: 0.9rem; }

/* --- Blockquote / Pull quote --- */
.pull-quote {
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--c-gold);
  background: var(--c-limestone);
  border-radius: 0 3px 3px 0;
  margin: 2.5rem 0;
}
.pull-quote p {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--c-earth);
}

/* --- Content prose area --- */
.prose { max-width: 680px; }
.prose p { margin-bottom: 1.25rem; }
.prose h3 { margin-top: 2.5rem; margin-bottom: 0.85rem; }
.prose h4 { margin-top: 2rem; margin-bottom: 0.65rem; }

/* --- Page image feature --- */
.feature-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.feature-img-wrap {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,31,15,0.4) 0%, transparent 55%);
  pointer-events: none;
}
.feature-img-tint {
  position: absolute; inset: 0;
  background: var(--c-ivy);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* --- Donate input --- */
.donate-amounts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.donate-amount {
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(247,243,236,0.3);
  border-radius: 2px;
  color: rgba(247,243,236,0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  background: transparent;
  font-family: var(--f-body);
}
.donate-amount:hover,
.donate-amount.selected {
  background: rgba(247,243,236,0.12);
  border-color: var(--c-sanctuary);
  color: var(--c-sanctuary);
}

/* --- Scroll Reveal Animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
}
[data-reveal="left"]  { transform: translateX(-22px); }
[data-reveal="right"] { transform: translateX(22px); }
[data-reveal].revealed { opacity: 1; transform: translate(0, 0); }

/* Screenshot compatibility: screenshot.mjs adds .visible to .fade-up elements */
body.visible [data-reveal] { opacity: 1; transform: translate(0, 0); }

/* --- Floating Donate Button --- */
.float-donate {
  position: fixed;
  bottom: 2.25rem; right: 2.25rem;
  z-index: 900;
  background: var(--c-gold);
  color: var(--c-sanctuary);
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(184,137,42,0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-smooth), background 0.2s;
}
.float-donate:hover {
  background: var(--c-gold);
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(184,137,42,0.45);
}
.float-donate svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Image band (full-width photo with overlay quote) --- */
.image-band {
  height: 460px;
  position: relative;
  overflow: hidden;
}
.image-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
}
.image-band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(46,31,15,0.88) 0%, rgba(46,31,15,0.35) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 5rem;
}
.image-band blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-sanctuary);
  line-height: 1.45;
  max-width: 620px;
  margin-bottom: 1.25rem;
}
.image-band cite {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,239,228,0.55);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.image-band cite::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--c-gold);
}

/* --- Programme list items (education) --- */
.programme-list { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.5rem; }
.programme-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--c-limestone);
  border-left: 3px solid var(--c-ivy);
  font-size: 0.88rem;
  color: var(--c-earth-70);
  line-height: 1.5;
}
.programme-item strong { display: block; font-size: 0.88rem; font-weight: 500; color: var(--c-earth); margin-bottom: 1px; }
.programme-num {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-gold);
  opacity: 0.7;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* --- Footer --- */
.site-footer {
  background: var(--c-earth);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,243,236,0.1);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo-main { font-size: 1.15rem; }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.83rem;
  color: rgba(247,243,236,0.45);
  line-height: 1.7;
}
.footer-col h5 {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.84rem; color: rgba(247,243,236,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--c-sanctuary); }
.footer-col address { font-style: normal; font-size: 0.83rem; color: rgba(247,243,236,0.45); line-height: 1.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(247,243,236,0.28); }

/* ─── Reference-matched section styles ─── */

/* Shared text helpers used across homepage sections */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--c-earth);
  margin-bottom: 0.65rem;
}
.section-title em { font-style: italic; color: var(--c-ivy); }
.section-rule {
  display: block;
  width: 36px; height: 1px;
  background: var(--c-gold);
  margin: 1.1rem 0 1.5rem;
}
.body-text {
  font-size: 0.91rem;
  line-height: 1.9;
  color: var(--mid);
  margin-bottom: 1rem;
}
.body-text strong { color: var(--c-earth); font-weight: 400; }

/* ─── STATS BAND (reference style) ─── */
.stats {
  background: var(--c-ivy);
  padding: 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 2.25rem;
  border-right: 1px solid rgba(232,239,228,0.15);
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: 2.375rem;
  font-weight: 300;
  color: var(--ivy-pale);
  line-height: 1;
}
.stat .stat-label {
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(232,239,228,0.55);
  margin-top: 0.375rem;
}

/* ─── MISSION ─── */
.mission {
  padding: 7rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5.5rem;
  align-items: center;
  background: var(--c-sanctuary);
  max-width: 1440px;
  margin: 0 auto;
}
.mission-img-wrap { position: relative; }
.mission-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  filter: saturate(0.8);
  position: relative;
  z-index: 1;
}
.mission-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 60%; height: 60%;
  border: 1px solid var(--divider);
  z-index: 0;
  pointer-events: none;
}
.mission-tag {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--c-limestone);
  border-top: 2px solid var(--c-ivy);
  padding: 0.875rem 1.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  z-index: 2;
}

/* ─── PILLARS ─── */
.pillars-section { background: var(--c-limestone); }
.pillars {
  padding: 6.25rem 4rem;
  max-width: 1440px;
  margin: 0 auto;
}
.pillars-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.75rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.pillars-header .body-text { align-self: end; margin-bottom: 0; }
.pillars-grid-ref {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--divider);
  border: 1px solid var(--divider);
}
.pillar {
  background: var(--c-sanctuary);
  padding: 2.25rem 1.5rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-ivy);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.pillar:hover { background: var(--ivy-pale); }
.pillar:hover::after { transform: scaleX(1); }
.pillar-num {
  font-family: var(--f-display);
  font-size: 2.625rem;
  font-weight: 300;
  color: var(--c-ivy);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1.125rem;
}
.pillar-title {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--c-earth);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.pillar-desc {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--soft);
}

/* ─── IMAGE BAND ─── */
.image-band-full {
  height: 480px;
  position: relative;
  overflow: hidden;
}
.image-band-full img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.85);
}
.image-band-full-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(46,31,15,0.85) 0%, rgba(46,31,15,0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 4rem;
}
.image-band-full-text { max-width: 560px; }
.image-band-full-text blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2.375rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-sanctuary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}
.image-band-full-text cite {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,239,228,0.6);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.image-band-full-text cite::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--c-gold);
}

/* ─── EDUCATION ─── */
.education {
  padding: 7rem 4rem;
  background: var(--c-sanctuary);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5.5rem;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.education-text { order: 1; }
.education-img-wrap { order: 2; position: relative; }
.education-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  filter: saturate(0.8);
}
.education-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 55%; height: 55%;
  border: 1px solid var(--divider);
  z-index: 0;
  pointer-events: none;
}

/* ─── DONATE CTA ─── */
.donate-cta {
  background: var(--c-earth);
  padding: 6.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.donate-cta::before {
  content: '';
  position: absolute;
  right: -7.5rem; top: 50%;
  transform: translateY(-50%);
  width: 30rem; height: 30rem;
  border-radius: 50%;
  border: 1px solid rgba(74,103,65,0.15);
  pointer-events: none;
}
.donate-cta::after {
  content: '';
  position: absolute;
  right: -5rem; top: 50%;
  transform: translateY(-50%);
  width: 22.5rem; height: 22.5rem;
  border-radius: 50%;
  border: 1px solid rgba(184,137,42,0.1);
  pointer-events: none;
}
.donate-cta-text .eyebrow { color: var(--ivy-pale); }
.donate-cta-text .eyebrow::before { background: var(--ivy-pale); }
.donate-cta-text h2 {
  font-family: var(--f-display);
  font-size: clamp(1.875rem, 3vw, 2.875rem);
  font-weight: 300;
  color: var(--c-sanctuary);
  line-height: 1.15;
  margin-bottom: 0.625rem;
}
.donate-cta-text .section-rule { background: var(--c-gold); margin-bottom: 1.25rem; }
.donate-cta-text p {
  font-size: 0.91rem;
  line-height: 1.85;
  color: rgba(247,243,236,0.6);
  max-width: 520px;
}
.donate-right {
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.donate-hint {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.4);
  margin-bottom: 1rem;
}
.btn-donate-big {
  display: block;
  padding: 1.375rem 3.5rem;
  background: var(--c-gold);
  color: var(--c-sanctuary);
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
  white-space: nowrap;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 32px rgba(184,137,42,0.3);
}
.btn-donate-big:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(184,137,42,0.45);
}
.donate-note {
  font-size: 0.625rem;
  color: rgba(247,243,236,0.3);
  letter-spacing: 0.04em;
}

/* ─── PARTNERS ─── */
.partners {
  padding: 3.75rem 4rem;
  background: var(--c-limestone);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.partners-label {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: center;
  margin-bottom: 1.75rem;
}
.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.75rem;
  flex-wrap: wrap;
}
.partner-item {
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--soft);
  letter-spacing: 0.05em;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.partner-item:hover { opacity: 1; }
.partner-item span {
  display: block;
  font-family: var(--f-body);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  color: var(--c-gold);
}

/* ─── FOOTER (updated) ─── */
.footer-tagline {
  font-size: 0.8125rem;
  font-style: italic;
  font-family: var(--f-display);
  color: rgba(247,243,236,0.45);
  line-height: 1.6;
  margin: 0.875rem 0 1.25rem;
}
.footer-donate-sm {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.625rem 1.375rem;
  border: 1px solid rgba(184,137,42,0.4);
  color: var(--c-gold);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.footer-donate-sm:hover {
  background: var(--c-gold);
  color: var(--c-sanctuary);
  border-color: var(--c-gold);
}
/* Footer col heading update to match reference (muted white, not gold) */
.footer-col h4, .footer-col h5 {
  font-family: var(--f-body);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.4);
  margin-bottom: 1.125rem;
}

/* ─── HERO animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-eyebrow { animation: fadeUp 0.7s 0.2s both; }
.hero-left h1  { animation: fadeUp 0.7s 0.35s both; }
.hero-rule     { animation: fadeUp 0.7s 0.5s both; }
.hero-sub      { animation: fadeUp 0.7s 0.6s both; }
.hero-ctas     { animation: fadeUp 0.7s 0.75s both; }
.hero-right    { animation: fadeIn 1.2s 0.3s both; }

/* ─── Screenshot compat: skip animations ─── */
body.visible .hero-eyebrow,
body.visible .hero-left h1,
body.visible .hero-rule,
body.visible .hero-sub,
body.visible .hero-ctas,
body.visible .hero-right {
  animation: none;
  opacity: 1;
  transform: none;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid-ref { grid-template-columns: repeat(3, 1fr); }
  .purpose-grid { grid-template-columns: repeat(3, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mission { gap: 3.5rem; padding: 5rem 2.5rem; }
  .education { gap: 3.5rem; padding: 5rem 2.5rem; }
  .pillars { padding: 5rem 2.5rem; }
  .stats { padding: 2rem 2.5rem; }
  .donate-cta { padding: 5rem 2.5rem; }
  .partners { padding: 3rem 2.5rem; }
}

@media (max-width: 900px) {
  .pillars-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .pillars-grid-ref { grid-template-columns: repeat(2, 1fr); }
  .mission { grid-template-columns: 1fr; }
  .education { grid-template-columns: 1fr; }
  .education-text { order: 1; }
  .education-img-wrap { order: 2; }
  .donate-cta { grid-template-columns: 1fr; }
  .donate-right { text-align: left; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 4rem 0; }

  .nav-logo-mark { height: 42px; }

  .nav-inner { display: flex; justify-content: space-between; }

  .mobile-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--c-sanctuary);
    flex-direction: column;
    padding: 1.5rem 2rem 2.5rem;
    gap: 0.35rem;
    box-shadow: 0 8px 28px var(--c-earth-20);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.32s var(--ease-smooth), opacity 0.32s;
    pointer-events: none;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { color: var(--c-earth-70) !important; padding: 0.6rem 0; font-size: 0.88rem; }
  .nav-cta { display: none; }

  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reversed .split-image { order: 0; }
  .split-image img { height: 300px; }

  .support-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillars-grid-ref { grid-template-columns: 1fr 1fr; }
  .trustees-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); padding: 1.75rem 1.5rem; gap: 1.5rem 0; }
  .stat { padding: 0.5rem 1.5rem; }
  .stat:nth-child(2) { border-right: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.5rem; padding-top: 2rem; }
  .hero-right { height: 50vw; min-height: 300px; }

  .mission { padding: 4rem 1.5rem; gap: 3rem; }
  .education { padding: 4rem 1.5rem; gap: 3rem; }
  .pillars { padding: 4rem 1.5rem; }
  .donate-cta { padding: 4rem 1.5rem; gap: 3rem; }
  .partners { padding: 2.5rem 1.5rem; }
  .partners-row { gap: 2rem; }
  .image-band-full { height: 380px; }
  .image-band-full-overlay { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .purpose-grid { grid-template-columns: 1fr; }
  .trustees-grid { grid-template-columns: 1fr; }
  .donate-amounts { flex-direction: column; }
  .pillars-grid-ref { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid rgba(232,239,228,0.1); padding: 0.75rem 0; }
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1a0f05;
  border-top: 1px solid rgba(181,152,90,0.35);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.8rem;
  color: rgba(247,243,236,0.55);
  line-height: 1.65;
}
.cookie-banner-text strong { color: rgba(247,243,236,0.8); font-weight: 500; }
.cookie-banner-text a { color: var(--c-gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--f-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept { background: var(--c-gold); color: #1a0f05; font-weight: 600; }
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-decline {
  background: transparent;
  color: rgba(247,243,236,0.45);
  border: 1px solid rgba(247,243,236,0.18);
}
.cookie-btn-decline:hover { color: rgba(247,243,236,0.75); border-color: rgba(247,243,236,0.35); }

/* ============================================================
   Fundraising Regulator Badge (footer)
   ============================================================ */
.fundraising-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: rgba(247,243,236,0.35);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
.fundraising-badge:hover { color: rgba(247,243,236,0.55); }
.fundraising-badge svg { opacity: 0.4; }

/* ============================================================
   Contact Form — Success / Error States
   ============================================================ */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-gold-soft);
  border: 1px solid rgba(181,152,90,0.35);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-earth);
  margin-bottom: 0.75rem;
}
.form-success p { font-size: 0.9rem; color: var(--c-earth-70); }
.form-error-msg {
  display: none;
  font-size: 0.82rem;
  color: #b94a48;
  background: rgba(185,74,72,0.06);
  border: 1px solid rgba(185,74,72,0.2);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}
.form-error-msg.visible { display: block; }
