/* ─── PREMIUM NGO DESIGN SYSTEM (Silimulalu Initiative Uganda) ─── */

/* 1. TOKENS & VARIABLES */
:root {
  /* Core Brand Colors — premium NGO palette: hope, trust, compassion, growth */
  --color-primary: #0B5D3A; /* Deep Forest Green */
  --color-primary-rgb: 11, 93, 58;
  --color-primary-light: #16A34A; /* Emerald Green — used as gradient end / hover lift */
  --color-primary-dark: #073D26;

  --color-secondary: #16A34A; /* Emerald Green */
  --color-secondary-rgb: 22, 163, 74;

  /* Accent & Highlight — warm, optimistic counterpoints to the green brand */
  --color-accent: #F59E0B; /* Golden Amber */
  --color-accent-rgb: 245, 158, 11;
  --color-accent-dark: #B45309;

  --color-highlight: #FF6B35; /* Coral Orange — reserved for donate / highest-priority CTAs */
  --color-highlight-rgb: 255, 107, 53;
  --color-highlight-dark: #E14E1B;

  /* Neutral Palette */
  --color-bg-base: #FAF9F6; /* Warm Ivory */
  --color-bg-surface: #FFFFFF;
  --color-bg-alt: #F3F1EA; /* Warm ivory, one shade deeper */

  /* Ink System (Dark Mode / High Contrast) */
  --color-ink-base: #0F172A; /* Rich Navy */
  --color-ink-surface: #17233B;
  --color-ink-alt: #0A1220;

  /* Text Hierarchy */
  --text-primary: #111827; /* Near Black */
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-on-dark: #FAF9F6;
  --text-on-dark-muted: #9CA8B8;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Radius & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Premium Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-soft-depth: 0 30px 60px rgba(0, 89, 123, 0.08), 0 10px 20px rgba(0, 89, 123, 0.04);
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* ─── Bootstrap variable overrides ──────────────────────────────
     Bootstrap 5.3 utilities (.text-primary, .bg-primary, .border-primary,
     .btn-check + .btn-outline-primary, etc.) read from --bs-primary rather
     than our --color-primary token. Without this, every one of those
     utility classes across the site renders Bootstrap's default blue
     instead of the brand palette. */
  --bs-primary: var(--color-primary);
  --bs-primary-rgb: var(--color-primary-rgb);
  --bs-secondary: var(--color-secondary);
  --bs-secondary-rgb: var(--color-secondary-rgb);
  --bs-success: var(--color-secondary);
  --bs-success-rgb: var(--color-secondary-rgb);
  --bs-warning: var(--color-accent);
  --bs-warning-rgb: var(--color-accent-rgb);
  --bs-link-color: var(--color-primary);
  --bs-link-color-rgb: var(--color-primary-rgb);
  --bs-link-hover-color: var(--color-primary-light);
  --bs-link-hover-color-rgb: var(--color-secondary-rgb);

  /* ─── Back-compat aliases ───────────────────────────────────────
     Some page-level <style> blocks (stories.php, connect.php) reference
     a shorter --clr-* / --radius-custom / --shadow-3d* naming scheme.
     Alias them to the real tokens above so those pages resolve correctly
     instead of silently falling back to browser defaults. */
  --clr-bg: var(--color-bg-base);
  --clr-surface: var(--color-bg-surface);
  --clr-primary: var(--color-primary);
  --clr-primary-rgb: var(--color-primary-rgb);
  --clr-text-main: var(--text-primary);
  --clr-text-mut: var(--text-tertiary);
  --radius-custom: var(--radius-lg);
  --shadow-3d: var(--shadow-lg);
  --shadow-3d-hover: var(--shadow-soft-depth);
  --shadow-3d-premium: 0 40px 90px -10px rgba(var(--color-primary-rgb), 0.25), 0 15px 35px -10px rgba(var(--color-primary-rgb), 0.15);
  --color-ink: var(--color-ink-base);
  --text-on-light-muted: var(--text-tertiary);
}

/* 2. BASE & RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

img { max-width: 100%; }

a:hover {
  color: var(--color-primary-light);
}

/* 3. TYPOGRAPHY HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1, .text-display-1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2, .text-display-2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3, .text-heading-3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h4, .text-heading-4 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h5, .text-heading-5 { font-size: 1.125rem; font-weight: 600; }
h6, .text-heading-6 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.text-lead {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
}

.text-muted { color: var(--text-tertiary) !important; }

/* 4. BUTTONS & CONTROLS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0D9488 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--color-secondary-rgb), 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #059669 0%, var(--color-secondary) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-secondary-rgb), 0.4);
}

/* Highest-priority CTA — reserved for "Donate Now" so it always reads as the
   one action that outranks every other button on the page. */
.btn-donate {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--color-highlight-rgb), 0.35);
}
.btn-donate:hover {
  background: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--color-highlight-rgb), 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: rgba(var(--color-primary-rgb), 0.06);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* 5. LAYOUT & SPACING UTILITIES */
.section-padding { padding: var(--space-xl) 0; }
.section-padding-lg { padding: var(--space-2xl) 0; }
.section-padding-sm { padding: var(--space-lg) 0; }

.bg-surface { background-color: var(--color-bg-surface); }
.bg-alt { background-color: var(--color-bg-alt); }
.bg-ink { background-color: var(--color-ink-base); color: var(--text-on-dark); }
.bg-primary-tint { background-color: rgba(var(--color-primary-rgb), 0.03); }

/* 6. COMPONENTS */

/* Glass Navbar */
.navbar-premium {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.2rem 0;
  transition: all var(--transition-smooth);
}
.navbar-premium.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 89, 123, 0.1);
}
.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #00597B;
  line-height: 1.1;
}
.navbar-brand-sub {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  font-weight: 700;
}
.nav-link-premium {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-fast);
  position: relative;
}
.nav-link-premium::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-primary);
  transition: all var(--transition-smooth);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-link-premium:hover::after, .nav-link-premium.active::after {
  width: 70%;
}
.nav-link-premium:hover, .nav-link-premium.active {
  color: var(--color-primary) !important;
}

.navbar-logo-wrap { width: 46px; height: 46px; flex-shrink: 0; }
.navbar-logo { width: 100%; height: 100%; object-fit: contain; }
.navbar-brand-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
}

/* Animated hamburger — three bars that morph into an X on open */
.navbar-toggler-premium {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
}
.navbar-toggler-premium:focus { box-shadow: none; outline: none; }
.navbar-toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: transform var(--transition-smooth), opacity var(--transition-fast), width var(--transition-smooth);
}
.navbar-toggler-premium[aria-expanded="true"] .navbar-toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler-premium[aria-expanded="true"] .navbar-toggler-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.navbar-toggler-premium[aria-expanded="true"] .navbar-toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Premium Pro Cards */
.card-premium {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -10px rgba(0, 89, 123, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.6), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}
.card-premium:hover::before {
  opacity: 1;
}
.card-premium:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: var(--shadow-soft-depth), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  border-color: rgba(var(--color-primary-rgb), 0.15);
}
.card-premium .card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-primary-rgb), 0.02) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}
.card-premium:hover .card-icon {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.3);
}

/* Image Cards (Programs/Stories) */
.card-image {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(0, 89, 123, 0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-image:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-soft-depth);
}
.card-image-wrap {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
}
.card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-image:hover .card-image-wrap img {
  transform: scale(1.08);
}
.card-image-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* Hero Section Elevated */
.hero-premium {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-base);
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-bottom-left-radius: 60px;
  animation: heroZoom 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-bg-base) 10%, rgba(248,250,252,0.95) 55%, rgba(248,250,252,0) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base); 
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--color-primary-rgb), 0.3); 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-primary-rgb), 0.6); 
}

/* Creative Gradients & Orbs */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ambient-orb-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  animation: floatOrb 15s infinite ease-in-out alternate;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(var(--color-primary-rgb), 0.15);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(var(--color-secondary-rgb), 0.1);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Counters */
.counter-value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.counter-label {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Partner Logos */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 768px) {
  .partner-logo-grid { grid-template-columns: repeat(4, 1fr); }
}
.partner-logo {
  max-height: 70px;
  max-width: 160px;
  filter: grayscale(100%) opacity(0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Footer Premium */
.footer-premium {
  background-color: var(--color-ink-base);
  color: var(--text-on-dark-muted);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.footer-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.footer-premium h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}
.footer-link {
  color: var(--text-on-dark-muted);
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.footer-link:hover {
  color: var(--color-secondary);
  transform: translateX(6px);
}
.social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-circle:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.3);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile & Pro Level Adjustments */
@media (max-width: 991.98px) {
  /* Hero: keep the photograph front-and-center on mobile instead of fading it out —
     a rich bottom-anchored scrim keeps the type readable while the image still reads
     as the hero, editorial-poster style. */
  .hero-premium {
    min-height: 92vh;
    padding-top: 112px;
    padding-bottom: 3rem;
    text-align: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
  }
  .hero-bg-image {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-radius: 0 0 40px 40px;
  }
  .hero-bg-gradient {
    /* A neutral black scrim (not navy) so it fades cleanly under the green
       radial glow instead of the two hues muddying into each other. */
    background:
      radial-gradient(65% 55% at 18% 12%, rgba(var(--color-primary-rgb), 0.38) 0%, transparent 60%),
      linear-gradient(
        180deg,
        rgba(4, 8, 6, 0.55) 0%,
        rgba(4, 8, 6, 0.4) 26%,
        rgba(4, 8, 6, 0.72) 60%,
        rgba(4, 8, 6, 0.96) 100%
      );
  }
  .hero-content { margin: 1rem auto 0; }
  .hero-content .btn { margin-bottom: 1rem; width: 100%; }

  /* Flip typography to light-on-dark since content now sits over the photo */
  .hero-content .eyebrow { color: var(--color-secondary); }
  .hero-content .eyebrow::before { background: var(--color-secondary); }
  .hero-content h1 { color: #fff !important; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
  .hero-content h1 .text-primary { color: var(--color-secondary) !important; }
  .hero-content .text-lead.text-dark,
  .hero-content p.text-lead { color: rgba(248, 250, 252, 0.88) !important; }
  .hero-content .small.text-secondary { color: rgba(248, 250, 252, 0.8) !important; }
  .hero-content .btn-outline.bg-white { background: #fff !important; color: var(--color-primary) !important; border-color: #fff; }

  /* The hero tag pill was designed for the light ivory background — over the
     photo scrim on mobile it needs to flip to a glass pill or it reads as an
     invisible dark smudge above the headline. */
  .hero-content .hero-tag {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    margin-bottom: 1.25rem;
  }

  /* Trust row (avatar stack + caption): keep it from overflowing narrow
     screens instead of forcing a single unbreakable line. */
  .hero-trust-row {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .hero-trust-row p { max-width: 220px; text-align: left; }

  .card-premium {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }
  .card-premium .card-icon {
    margin: 0 auto 1.5rem;
  }
  .card-premium h3, .card-premium h4 {
    text-align: center;
  }
  .card-premium p {
    text-align: center;
    font-size: 1rem;
  }
  
  .section-padding { padding: 4rem 0; }
  .section-padding-lg { padding: 5rem 0; }

  /* Premium mobile nav — a floating glass card instead of a flat dropdown */
  .navbar-premium .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft-depth);
    padding: 0.5rem 1.5rem 1.5rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .navbar-premium .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
  }
  .navbar-premium .navbar-nav .nav-item:last-child { border-bottom: none; }
  .navbar-premium .nav-link-premium {
    padding: 0.9rem 0.25rem !important;
    font-size: 1.05rem;
  }
  .navbar-premium .nav-link-premium::after { display: none; }

  /* Staggered fade-in as the panel opens */
  .navbar-premium .navbar-collapse.show .nav-item {
    animation: navItemIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .navbar-premium .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.03s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.07s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.11s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.15s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.19s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(6) { animation-delay: 0.23s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(7) { animation-delay: 0.27s; }
  .navbar-premium .navbar-nav .nav-item:nth-child(8) { animation-delay: 0.31s; }
}

@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lock the page behind the open mobile nav panel */
body.nav-open { overflow: hidden; }

@media (max-width: 767.98px) {
  h1, .text-display-1 { font-size: 2.75rem; line-height: 1.15; }
  h2, .text-display-2 { font-size: 2.25rem; line-height: 1.2; }
  .text-lead { font-size: 1.05rem; }

  .btn { padding: 0.85rem 2rem; font-size: 0.95rem; }

  /* Bootstrap's default 12px gutter reads as too tight on phones —
     give page content real breathing room off the screen edges. */
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  .navbar-premium { padding: 0.75rem 0; }

  .hero-premium { min-height: 88vh; padding-top: 100px; }
  .hero-content .text-lead { max-width: 460px; margin-left: auto; margin-right: auto; }

  .marquee-track { gap: 2.5rem; }
  .partner-logo { max-height: 44px; max-width: 110px; }

  .section-head-split { text-align: center; }
}

@media (max-width: 575.98px) {
  .hero-premium { min-height: 82vh; padding-top: 92px; }
  .stat-tile { padding-left: 1rem; border-left-width: 2px; }
}

/* ═══════════════════════════════════════════════════════════════
   7. EDITORIAL LAYER — signature details that set SIU apart
   ═══════════════════════════════════════════════════════════════ */

:root {
  --color-accent-warm: var(--color-accent);   /* Golden Amber — editorial accent (eyebrows, quotes, indices) */
  --color-accent-warm-rgb: var(--color-accent-rgb);
  --color-accent-warm-dark: var(--color-accent-dark);
  --font-serif: 'Newsreader', 'Georgia', serif;
}

/* Eyebrow label with a drawn line — replaces plain uppercase kickers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent-warm);
  border-radius: 2px;
}
.eyebrow.eyebrow-light { color: rgba(255,255,255,0.75); }
.eyebrow.eyebrow-light::before { background: var(--color-secondary); }
.eyebrow.eyebrow-center { justify-content: center; }

/* Asymmetric section header: faint oversized index number beside the title */
.section-head-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.section-head-split .section-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--color-primary-rgb), 0.2);
  user-select: none;
}
@media (max-width: 767.98px) {
  .section-head-split { grid-template-columns: 1fr; }
  .section-head-split .section-index { font-size: 2.75rem; -webkit-text-stroke: 1px rgba(var(--color-primary-rgb), 0.25); }
}

/* Serif editorial pull-quote */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.4;
  color: var(--text-primary);
  position: relative;
}
.pull-quote .quote-glyph {
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--color-accent-warm);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

/* Thin repeating pattern strip — a woven-textile-inspired divider, used sparingly */
.pattern-strip {
  height: 6px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--color-primary) 0px, var(--color-primary) 8px,
    var(--color-accent-warm) 8px, var(--color-accent-warm) 16px,
    var(--color-secondary) 16px, var(--color-secondary) 24px
  );
  opacity: 0.9;
}

/* Stat tile — replaces plain counters with a bordered, indexed card */
.stat-tile {
  border-left: 3px solid var(--color-accent-warm);
  padding: 0.25rem 0 0.25rem 1.5rem;
  height: 100%;
}
.stat-tile .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}
.stat-tile .stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-tile.stat-tile-on-dark { border-left-color: var(--color-secondary); }
.stat-tile.stat-tile-on-dark .stat-number { color: #fff; }
.stat-tile.stat-tile-on-dark .stat-label { color: var(--text-on-dark-muted); }

/* Marquee — continuous scrolling row (partners, taglines) */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Numbered process / feature rows (alternative to identical card grids) */
.feature-row {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
}
.feature-row:first-of-type { padding-top: 0; }
.feature-row:last-of-type { border-bottom: 0; }
.feature-row .feature-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--color-accent-warm);
  min-width: 3rem;
  flex-shrink: 0;
}

/* Tag / badge with warm accent variant */
.badge-warm {
  background: rgba(var(--color-accent-warm-rgb), 0.1);
  color: var(--color-accent-warm-dark);
  border: 1px solid rgba(var(--color-accent-warm-rgb), 0.18);
}

/* Signature corner-notch panel — used for dark feature panels */
.panel-notched {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-notched::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: var(--color-accent-warm);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.9;
}

/* Photo frame with offset accent border (editorial image treatment) */
.photo-frame { position: relative; }
.photo-frame::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  width: 100%; height: 100%;
  border: 2px solid var(--color-accent-warm);
  border-radius: var(--radius-lg);
  z-index: -1;
}
@media (max-width: 767.98px) {
  .photo-frame::before { top: -10px; left: -10px; }
}

/* Underline-draw link used for inline CTAs */
.link-underline-draw {
  position: relative;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.35s ease;
}
.link-underline-draw:hover { background-size: 100% 2px; color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════
   10. LEGACY PAGE UTILITY CLASSES — hero/section/button helpers
   referenced by stories.php & connect.php, given a real premium
   implementation instead of resolving to nothing.
   ═══════════════════════════════════════════════════════════════ */
.max-width-700 { max-width: 700px; }
.max-width-800 { max-width: 800px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.18);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hero-title-accent { color: var(--color-primary); }

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 0.85rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent-warm);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-divider {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  margin-top: 1.25rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

.btn-outline-siu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid rgba(var(--color-primary-rgb), 0.25);
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
}
.btn-outline-siu:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-primary-siu {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 24px rgba(var(--color-primary-rgb), 0.3);
  transition: all var(--transition-smooth);
}
.btn-primary-siu:hover { color: #fff; }
.btn-primary-siu:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(var(--color-primary-rgb), 0.4);
}

.btn-nav-cta {
  transition: all var(--transition-smooth);
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}


.faq-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-warm);
  font-size: 1.1rem;
  margin-right: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   8. STORY / TESTIMONIAL CARD — "Lived Experiences"
   ═══════════════════════════════════════════════════════════════ */
.story-card {
  padding-top: 3rem;
  align-items: center;
}
.story-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}
.story-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-warm);
  opacity: 0.55;
}
.story-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg-surface);
  box-shadow: 0 10px 24px rgba(var(--color-primary-rgb), 0.18);
}
.story-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.1rem;
}
.story-quote {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}
.story-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 2.75rem;
  line-height: 0.6;
  color: var(--color-accent-warm);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   9. PREMIUM CTA BACKGROUND — "Ready to Make an Impact?"
   ═══════════════════════════════════════════════════════════════ */
.cta-premium { isolation: isolate; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.cta-orb-1 {
  width: 460px;
  height: 460px;
  background: rgba(255, 255, 255, 0.22);
  top: -180px;
  left: -140px;
}
.cta-orb-2 {
  width: 420px;
  height: 420px;
  background: var(--color-secondary);
  opacity: 0.28;
  bottom: -200px;
  right: -120px;
}
.cta-pattern-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}
.cta-glyph {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.6;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 0.5rem;
  user-select: none;
}
@media (max-width: 767.98px) {
  .cta-orb-1, .cta-orb-2 { width: 280px; height: 280px; filter: blur(50px); }
  .cta-orb-1 { top: -120px; left: -100px; }
  .cta-orb-2 { bottom: -140px; right: -90px; }
}

/* ═══════════════════════════════════════════════════════════════
   11. HOMEPAGE PREMIUM ADDITIONS — mission band, gallery, testimonial
   carousel, and the rich-gradient donate CTA band.
   ═══════════════════════════════════════════════════════════════ */

/* Rich gradient background for the Donate CTA band (pairs with .cta-premium) */
.cta-gradient-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-secondary) 100%);
  color: #fff;
}

/* Mission Statement band — soft radial wash + floating shapes behind an
   oversized editorial statement. */
.mission-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(var(--color-secondary-rgb), 0.10) 0%, transparent 60%),
    radial-gradient(55% 70% at 85% 85%, rgba(var(--color-accent-rgb), 0.10) 0%, transparent 60%),
    var(--color-bg-base);
}
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  animation: floatOrb 18s infinite ease-in-out alternate;
  z-index: 0;
}
.floating-shape.shape-1 { width: 260px; height: 260px; background: rgba(var(--color-secondary-rgb), 0.35); top: 10%; left: 4%; }
.floating-shape.shape-2 { width: 220px; height: 220px; background: rgba(var(--color-accent-rgb), 0.3); bottom: 8%; right: 6%; animation-delay: -6s; }
.mission-statement {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.35;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}
.mission-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.mission-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-secondary-rgb), 0.08));
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

/* Visual Impact Gallery — masonry-style grid used on the homepage Gallery
   section (mirrors the treatment on stories.php's impact gallery). */
.impact-gallery {
  display: grid;
  grid-auto-flow: dense;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-surface);
  transform: translateZ(0);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.92) 0%, rgba(var(--color-primary-rgb), 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
}
.gallery-overlay h5 { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
@media (max-width: 767px) {
  .impact-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery-item:nth-child(1) { grid-column: span 2; height: 220px; }
  .gallery-item:nth-child(2) { height: 240px; }
  .gallery-item:nth-child(3) { height: 180px; }
  .gallery-item:nth-child(4) { height: 200px; grid-column: span 2; }
  .gallery-overlay { opacity: 1; padding: 1rem; background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.95) 0%, rgba(var(--color-primary-rgb), 0.3) 50%, transparent 100%); }
  .gallery-overlay h5 { font-size: 1.05rem; }
}
@media (min-width: 768px) {
  .impact-gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; grid-auto-rows: 220px; }
  .gallery-item { height: auto; }
  .gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 2; }
  .gallery-overlay { opacity: 0; padding: 1.5rem; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  .gallery-overlay h5 { transform: translateY(15px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  .gallery-item:hover .gallery-overlay { opacity: 1; }
  .gallery-item:hover .gallery-overlay h5 { transform: translateY(0); }
}

/* Testimonial Carousel — premium quote slider (distinct from the
   image-forward Success Stories cards). */
.testimonial-carousel .carousel-inner { border-radius: var(--radius-lg); }
.testimonial-slide {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-depth);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.testimonial-slide .quote-glyph {
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}
.testimonial-slide .testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--color-bg-surface);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.2);
}
.testimonial-carousel .carousel-indicators { bottom: -3.25rem; }
.testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(var(--color-primary-rgb), 0.25);
  border: none;
  opacity: 1;
}
.testimonial-carousel .carousel-indicators .active { background-color: var(--color-primary); }
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-md);
  opacity: 1;
}
.testimonial-carousel .carousel-control-prev { left: -1.5rem; }
.testimonial-carousel .carousel-control-next { right: -1.5rem; }
.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
  filter: invert(20%) sepia(40%) saturate(700%) hue-rotate(100deg);
  width: 1.1rem;
  height: 1.1rem;
}
@media (max-width: 767.98px) {
  .testimonial-carousel .carousel-control-prev { left: 0.25rem; }
  .testimonial-carousel .carousel-control-next { right: 0.25rem; }
}

/* News card date badge (Latest News section, built on .card-image) */
.news-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(var(--color-accent-rgb), 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════════════════════════
   12. CINEMATIC PAGE HERO — replaces the flat ivory .hero-premium
   header on inner pages (About, Donate) with a full-bleed photo +
   dark scrim + centered content, plus a quick trust-stat strip.
   ═══════════════════════════════════════════════════════════════ */
.hero-cinematic {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 168px 0 96px;
  min-height: 60vh;
}
.hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 22s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.hero-cinematic-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 50% 20%, rgba(var(--color-primary-rgb), 0.35) 0%, transparent 65%),
    linear-gradient(180deg, rgba(4, 8, 6, 0.55) 0%, rgba(4, 8, 6, 0.5) 40%, rgba(4, 8, 6, 0.88) 100%);
}
.hero-cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hero-cinematic .eyebrow { color: var(--color-accent); justify-content: center; }
.hero-cinematic .eyebrow::before { background: var(--color-accent); }
.hero-cinematic h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
.hero-cinematic .text-lead { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }

.hero-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.25rem;
}
.hero-stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.hero-stat-chip strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}
@media (max-width: 767.98px) {
  .hero-cinematic { padding: 130px 0 72px; min-height: 54vh; }
  .hero-stat-chip { font-size: 0.78rem; padding: 0.5rem 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════════
   13. RICH DARK / GRADIENT BANDS — used to break up long stretches
   of ivory/white sections so pages read as vibrant rather than flat.
   ═══════════════════════════════════════════════════════════════ */
.band-rich {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--color-ink-base) 0%, var(--color-primary-dark) 60%, var(--color-primary) 100%);
  color: var(--text-on-dark);
}
.band-rich::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 55% at 90% 0%, rgba(var(--color-accent-rgb), 0.18) 0%, transparent 60%),
    radial-gradient(50% 60% at 5% 100%, rgba(var(--color-secondary-rgb), 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.band-rich .eyebrow-light { color: var(--color-accent); }
.band-rich .eyebrow-light::before { background: var(--color-accent); }

/* Frosted glass card meant to sit on top of a .band-rich background */
.card-glass-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-glass-dark:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}
.card-glass-dark .card-icon {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.28), rgba(var(--color-secondary-rgb), 0.18));
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  box-shadow: none;
}
.card-glass-dark h3, .card-glass-dark h4 { color: #fff; }
.card-glass-dark p { color: rgba(255,255,255,0.72); }

/* ═══════════════════════════════════════════════════════════════
   14. HOMEPAGE MOBILE HERO — a completely different composition
   from the desktop cinematic photo hero: a rich mesh gradient with
   a floating framed portrait + glass stat chip, so mobile never has
   to fight photo-vs-text legibility again.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .hero-home .hero-bg-image,
  .hero-home .hero-bg-gradient {
    display: none;
  }
  .hero-home.hero-premium {
    background:
      radial-gradient(120% 55% at 12% -10%, rgba(var(--color-secondary-rgb), 0.4) 0%, transparent 60%),
      radial-gradient(90% 65% at 105% 105%, rgba(var(--color-accent-rgb), 0.22) 0%, transparent 55%),
      linear-gradient(160deg, var(--color-ink-base) 0%, var(--color-primary-dark) 55%, var(--color-primary) 100%);
  }
}
.hero-mobile-visual {
  position: relative;
  width: 220px;
  margin: 0 auto 2.75rem;
}
.hero-mobile-glow {
  position: absolute;
  inset: -34px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.55), transparent 70%);
  filter: blur(34px);
  z-index: 0;
}
.hero-mobile-frame {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 42px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
}
.hero-mobile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-mobile-chip {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%) rotate(2deg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 0.6rem 0.9rem;
  max-width: 240px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  text-align: left;
}
.hero-mobile-chip .chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.hero-mobile-chip strong {
  display: block;
  font-size: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.3;
}
.hero-mobile-chip span {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   15. GIVING TIER CARDS — donate.php amount/impact selector
   ═══════════════════════════════════════════════════════════════ */
.tier-card {
  background: var(--color-bg-surface);
  border: 2px solid rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}
.tier-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: var(--shadow-soft-depth);
}
.tier-card.tier-featured {
  border-color: var(--color-accent);
  box-shadow: 0 20px 45px rgba(var(--color-accent-rgb), 0.18);
}
.tier-card .tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(var(--color-highlight-rgb), 0.3);
}
.tier-card .tier-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.tier-card .tier-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.tier-card .tier-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}