/* ==========================================================================
   Beyond Limits Care Foundation — V2 Premium Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;

  --color-brand-light: #e8f5ee;
  --color-brand: #8dd0bc;
  --color-brand-dark: #2d6a4f;
  --color-brand-deeper: #1f4f38;

  --color-accent: #e07a2f;
  --color-accent-hover: #d06820;

  --color-text-main: #1b2e28;
  --color-text-muted: #5e7368;

  --color-bg: #fdfaf6;
  --color-bg-alt: #f1ebd9;
  --color-white: #ffffff;

  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 60px rgba(31, 80, 56, 0.18);
  --shadow-accent: 0 4px 14px rgba(224, 122, 47, 0.3);
  --shadow-accent-hover: 0 8px 24px rgba(224, 122, 47, 0.45);

  --nav-height: 80px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

html { scroll-behavior: smooth; }

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

/* Page-exit transition */
body.page-exit { opacity: 0; transition: opacity 0.25s ease; }

/* Custom cursor — only applied when JS adds this class */
body.custom-cursor-active { cursor: none; }

img { max-width: 100%; display: block; }
a { transition: color var(--transition-base), opacity var(--transition-base); }

/* Custom text selection */
::selection { background: rgba(141, 208, 188, 0.35); color: var(--color-text-main); }
::-moz-selection { background: rgba(141, 208, 188, 0.35); color: var(--color-text-main); }

/* Accessibility — focus-visible rings */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

.text-serif { font-family: var(--font-serif); }
.text-accent { color: var(--color-brand-dark); }
.text-muted { color: var(--color-text-muted); }

.uppercase-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-brand-dark);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color var(--transition-base), transform var(--transition-base),
              box-shadow var(--transition-base), color var(--transition-base),
              border-color var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-donate {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}
.btn-donate:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-brand-dark);
  border: 2px solid var(--color-brand-dark);
}
.btn-outline:hover {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-brand-dark);
}

.btn-lg { padding: 1.2rem 2.8rem; font-size: 1.05rem; }

/* Donate button pulse — hero CTA only */
.btn-donate-pulse {
  animation: donatePulse 2.5s ease-in-out infinite;
}
@keyframes donatePulse {
  0%, 100% { box-shadow: var(--shadow-accent); }
  50% { box-shadow: 0 4px 28px rgba(224, 122, 47, 0.55), 0 0 0 6px rgba(224, 122, 47, 0.1); }
}

/* --------------------------------------------------------------------------
   5. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  z-index: 1000;
  transition: background-color 0.4s var(--ease-smooth),
              padding 0.4s var(--ease-smooth),
              box-shadow 0.4s var(--ease-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(253, 250, 246, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--color-white);
}
.navbar.scrolled .nav-brand { color: var(--color-text-main); }
.nav-brand img {
  height: 48px;
  width: auto;
  transition: transform var(--transition-base);
}
.nav-brand:hover img { transform: scale(1.05); }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.75;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-base);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.navbar.scrolled .nav-link {
  color: var(--color-text-main);
  text-shadow: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand);
  transition: width var(--transition-base);
}
.nav-link:hover::after,
.nav-link-active::after { width: 100%; }
.nav-link-active { color: var(--color-brand-dark) !important; text-shadow: none !important; }
.nav-link-active::after { background-color: var(--color-accent) !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  padding: 0.5rem;
  color: var(--color-white);
}
.navbar.scrolled .hamburger { color: var(--color-text-main); }

/* --------------------------------------------------------------------------
   6. MOBILE MENU
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 46, 40, 0.98);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-link {
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-family: var(--font-serif);
  transition: color var(--transition-base);
}
.mobile-link:hover { color: var(--color-brand); }

.mobile-menu .btn-donate {
  margin-top: 0.5rem;
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* padding-top clears the fixed navbar; padding-bottom shifts the flex
     centre upward, keeping the CTA buttons away from the floating stats
     card at all zoom levels */
  padding: calc(var(--nav-height) + 2rem) 10% 10rem;
  overflow: hidden;
}

/* ── Slideshow ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

.hero-slide.leaving {
  opacity: 0;
  transform: scale(1.08);
}

/* Inline LCP image inside first slide — discovered immediately by HTML parser */
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Individual slide background images */
.hero-slide:nth-child(1) {
  background-image: url('/images/hero-slide-1.jpg');
  background-position: center 35%;
}
.hero-slide:nth-child(2) {
  background-image: url('/images/hero-slide-2.jpg');
  background-position: center 30%;
}
.hero-slide:nth-child(3) {
  background-image: url('/images/hero-slide-3.jpg');
  background-position: center 40%;
}

/* Mobile: serve smaller hero images (768px) over slow 4G */
@media (max-width: 860px) {
  .hero-slide:nth-child(1) { background-image: url('/images/hero-slide-1-sm.jpg'); }
  .hero-slide:nth-child(2) { background-image: url('/images/hero-slide-2-sm.jpg'); }
  .hero-slide:nth-child(3) { background-image: url('/images/hero-slide-3-sm.jpg'); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    rgba(15, 35, 26, 0.82) 0%,
    rgba(15, 35, 26, 0.55) 55%,
    rgba(15, 35, 26, 0.25) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  color: var(--color-white);
}

.hero-label {
  color: var(--color-brand);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Force white on hero headings (overrides global h1 color) */
.hero-content h1,
.hero-title {
  color: var(--color-white) !important;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  margin-bottom: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  margin-bottom: 2.75rem;
  max-width: 580px;
  line-height: 1.85;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Slideshow dot indicators ── */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 4;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.hero-dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* ── Scroll hint arrow ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 10%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   8. PAGE HERO (Sub-page banner)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  height: 38vh;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 0 10% 4rem;
  overflow: hidden;
  background: var(--color-brand-dark);
}

.page-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('/images/hero-slide-2.jpg');
  background-size: cover;
  background-position: center 55%;
  opacity: 0.25;
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 46, 40, 0.6) 0%, rgba(27, 46, 40, 0.95) 100%);
  z-index: 2;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
}

.page-hero-label {
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--color-white);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   9. SECTIONS
   -------------------------------------------------------------------------- */
.section {
  padding: 8rem 5%;
  position: relative;
}

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

/* Section heading block (replaces inline-styled divs) */
.section-heading {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}
.section-heading .uppercase-label { margin-bottom: 0.75rem; }
.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. IMPACT STATS (floating card)
   -------------------------------------------------------------------------- */
.stats-section {
  margin: -6rem 5% 0;
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-brand-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item { position: relative; }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Static badge variant (no counter) */
.stat-number.stat-badge {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  padding: 0.4rem 1rem;
  background: rgba(141, 208, 188, 0.15);
  border: 1px solid rgba(141, 208, 188, 0.3);
  border-radius: var(--radius-pill);
  display: inline-block;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  color: var(--color-white);
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  height: auto;
  align-self: stretch;
}

/* --------------------------------------------------------------------------
   11. SPLIT LAYOUT (Mission)
   -------------------------------------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.split-text p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.split-title {
  font-size: clamp(2.4rem, 3.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  min-height: 420px;
  background: rgba(45, 106, 79, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.split-image:hover img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   12. PROGRAM CARDS (Glass cards)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-elastic), box-shadow 0.4s ease;
  z-index: 2;
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(45, 106, 79, 0.12);
  border-color: rgba(255, 255, 255, 0.95);
}

/* Shimmer on hover */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-25deg);
  opacity: 0;
}
.glass-card:hover::before {
  animation: cardShimmer 0.65s ease forwards;
}
@keyframes cardShimmer {
  0% { left: -75%; opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

.glass-card-icon {
  width: 72px;
  height: 72px;
  background: var(--color-brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-brand-dark);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.glass-card:hover .glass-card-icon { transform: scale(1.1) rotate(5deg); }
.glass-card-icon svg { width: 34px; height: 34px; }

.glass-card-title {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  color: var(--color-brand-dark);
}

.glass-card-body {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   13. FOUNDER / STORY SECTION
   -------------------------------------------------------------------------- */
.founder-section {
  background: var(--color-brand-dark);
  padding: 7rem 5%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.founder-section .blob-bg {
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(141, 208, 188, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.founder-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.founder-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--color-white);
  line-height: 1.45;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.founder-quote em {
  color: var(--color-brand);
  font-style: normal;
}

.founder-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.founder-avatars {
  display: flex;
  gap: -0.5rem;
}

.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-brand);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-brand-dark);
}
.founder-avatar:last-child { margin-left: -12px; }

.founder-names {
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}
.founder-names strong {
  color: var(--color-white);
  display: block;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   14. DONATE PAGE — IMPACT ROW
   -------------------------------------------------------------------------- */
.donate-wrapper {
  padding-top: 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.donate-headline { margin-bottom: 0.75rem; }
.donate-headline h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  color: var(--color-brand-dark);
  line-height: 1.1;
}
.donate-headline h1 span { color: var(--color-accent); }

.donate-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 1.5rem auto 3rem;
  line-height: 1.8;
}

.impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
}

.impact-item {
  background: var(--color-white);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: background var(--transition-base);
}
.impact-item:hover { background: var(--color-brand-light); }

.impact-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  margin-bottom: 0.4rem;
}

.impact-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.donate-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 3rem;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.donate-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--color-text-main);
}

.donate-box p {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.donate-trust-badges {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-brand-dark);
  font-weight: 500;
  flex-wrap: wrap;
}

.donate-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   15. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-dark);
}

.contact-info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-text { line-height: 1.6; font-size: 0.95rem; }

.contact-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 2rem 0;
}

.contact-ein-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.contact-ein-note a { color: var(--color-accent); text-decoration: underline; }

/* Contact form panel */
.contact-form-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-brand-dark);
}

.contact-form-panel .form-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input, .form-textarea, .form-select {
  padding: 1rem 1.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: var(--color-white);
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  appearance: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(141, 208, 188, 0.25);
}

.form-input::placeholder, .form-textarea::placeholder { color: #a8b8b2; }
.form-textarea { resize: vertical; }
.form-submit { align-self: stretch; margin-top: 0.5rem; }

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.25rem;
}
.form-note a { color: var(--color-brand-dark); }

/* --------------------------------------------------------------------------
   16. FINANCIALS PAGE
   -------------------------------------------------------------------------- */
.financials-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.financials-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.financials-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: var(--shadow-sm);
}

.financials-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-brand-dark);
  font-size: 1.3rem;
}

.financials-card .card-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.doc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.doc-icon { color: var(--color-brand-dark); flex-shrink: 0; }

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(45, 106, 79, 0.08);
  color: var(--color-brand-dark);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.financials-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  line-height: 1.6;
  padding: 1rem 1.25rem;
  background: rgba(45, 106, 79, 0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-brand);
}

/* --------------------------------------------------------------------------
   17. LEGAL PAGES (Privacy / Terms)
   -------------------------------------------------------------------------- */
.legal-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--color-text-main);
  line-height: 1.85;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: var(--color-brand-dark);
  margin-bottom: 0.75rem;
}

.legal-section p, .legal-section li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-section ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-section a { color: var(--color-accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  padding: 6rem 5% 2rem;
  position: relative;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  bottom: -50%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, var(--color-brand) 0%, transparent 70%);
  opacity: 0.08;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

/* Main footer CTA */
.footer-main-cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.footer-cta-left p {
  opacity: 0.8;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-email-input {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  flex-grow: 1;
  min-width: 220px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.95);
}

.footer-email-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(141, 208, 188, 0.4);
}

.footer-privacy-note {
  font-size: 0.78rem;
  margin-top: 0.75rem;
  opacity: 0.6;
}
.footer-privacy-note a { color: var(--color-white); text-decoration: underline; }

/* Footer donate column */
.footer-cta-right {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
}

.footer-cta-right h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-cta-right p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Footer bottom */
.footer-bottom {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-org-name {
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-org-details {
  font-size: 0.85rem;
  opacity: 0.55;
  line-height: 1.7;
}
.footer-org-details a { color: var(--color-white); text-decoration: underline; }

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-social a {
  color: var(--color-white);
  opacity: 0.6;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }
.footer-social svg { display: block; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-link {
  color: var(--color-white);
  opacity: 0.6;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity var(--transition-base);
}
.footer-link:hover { opacity: 1; text-decoration: underline; }

.footer-copyright {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  opacity: 0.45;
  color: var(--color-white);
}

/* Compact footer for sub-pages */
.footer-compact {
  padding: 3rem 5% 2rem;
}

/* --------------------------------------------------------------------------
   19. DECORATIVE ELEMENTS
   -------------------------------------------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: var(--color-brand);
}
.blob-2 {
  bottom: 10%; left: -10%;
  width: 500px; height: 500px;
  background: var(--color-accent);
  opacity: 0.12;
}

/* --------------------------------------------------------------------------
   20. ANIMATIONS & REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Hero reveals start visible so LCP is not blocked by JS */
.hero .reveal {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   21. PRELOADER
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: var(--color-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(45, 106, 79, 0.15);
  border-top-color: var(--color-brand-dark);
  border-radius: 50%;
  animation: spin 0.9s infinite linear;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   22. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.cursor-dot {
  width: 6px; height: 6px;
  background-color: var(--color-brand-dark);
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.15s;
}
.cursor-outline {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(45, 106, 79, 0.5);
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}
.cursor-dot.hover-active { opacity: 0; }
.cursor-outline.hover-active {
  width: 50px; height: 50px;
  background-color: rgba(45, 106, 79, 0.08);
  border-color: rgba(45, 106, 79, 0.7);
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-outline { display: none !important; }
}

/* --------------------------------------------------------------------------
   23. SCROLL-TO-TOP BUTTON
   -------------------------------------------------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-brand-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color var(--transition-base);
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--color-accent); transform: translateY(-2px); }
.scroll-to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   24. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-main-cta { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cta-right { text-align: left; padding: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 992px) {
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .split-image { order: -1; min-height: 320px; }
  .hero-title { font-size: 3rem; }
  .page-hero { padding: 0 5% 3rem; height: auto; min-height: 220px; padding-top: 7rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: calc(var(--nav-height) + 1.5rem) 5% 8rem; }
  .navbar { padding: 1.25rem 5%; }
  .section { padding: 5rem 5%; }
  .stats-section { margin: -3rem 4% 0; padding: 2.5rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat-divider { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .impact-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { gap: 1rem; }
  .donate-trust-badges { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-main-cta { gap: 2rem; margin-bottom: 3rem; padding-bottom: 3rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   25. UTILITY CLASSES
   -------------------------------------------------------------------------- */

/* Mission section top padding to clear floating stats card */
.section-mission { padding-top: 10rem; }

/* Card metadata line (e.g. program partner info) */
.card-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-brand-dark);
  font-weight: 500;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   ACCORDION CARD (Village Farm Program expandable toggle)
   -------------------------------------------------------------------------- */
.accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0.85rem 0 0;
  color: var(--color-brand-mid);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s;
}
.accordion-toggle:hover { color: var(--color-brand-dark); }
.accordion-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.accordion-toggle[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-body.open { max-height: 520px; }
.accordion-inner {
  border-top: 1px solid rgba(15, 35, 26, 0.1);
  margin-top: 1rem;
  padding-top: 1.25rem;
}
.accordion-inner p {
  margin-bottom: 0.75rem;
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.accordion-list {
  margin: 0.6rem 0 0.9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.accordion-list li {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}
.accordion-inner .card-meta {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 35, 26, 0.08);
}

/* --------------------------------------------------------------------------
   FORM SUCCESS STATE
   -------------------------------------------------------------------------- */
.form-success {
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.form-success-icon {
  width: 70px;
  height: 70px;
  background: rgba(93, 188, 139, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #2a7a50;
}
.form-success h3 {
  font-size: 1.65rem;
  color: var(--color-brand-dark);
  margin-bottom: 0.6rem;
}
.form-success p {
  color: var(--color-text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Founder section section-level label */
.founder-section .uppercase-label { color: var(--color-brand); margin-bottom: 1.5rem; }

/* Link color helpers */
.link-accent { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.link-accent:hover { text-decoration: underline; }
.link-inherit { color: inherit; text-decoration: none; }
.link-inherit:hover { text-decoration: underline; }

/* Financials data display */
.ein-value { font-weight: 600; color: var(--color-brand-dark); font-size: 0.9rem; }
.status-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* Button width auto (for inline CTAs within text blocks) */
.btn-auto { width: max-content; margin-top: 0.5rem; }

/* Donate page "Why Your Gift Matters" section */
.donate-why-section {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: rgba(141, 208, 188, 0.08);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-md);
}
.donate-why-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-brand-dark);
}
.donate-why-section p {
  color: var(--color-text-main);
  line-height: 1.8;
  font-size: 1rem;
}

/* About Page */
.about-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.about-section {
  margin-bottom: 4rem;
}
.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-brand-dark);
}
.about-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}
.about-section em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 500;
}

/* Founder Profiles */
.founder-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.founder-profile {
  padding: 2rem;
  background: rgba(141, 208, 188, 0.08);
  border-radius: var(--radius-md);
  text-align: center;
}
.founder-profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--color-brand);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.founder-profile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-brand-dark);
}
.founder-profile-role {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.founder-profile p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.value-card {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-brand);
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-brand-dark);
}
.value-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .about-section h2 { font-size: 1.5rem; }
  .founder-profiles { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
