:root {
  --ink: #102a30;
  --forest: #0c3d38;
  --forest-light: #16564f;
  --emerald: #14b8a6;
  --emerald-dark: #0f766e;
  --gold: #d9a83c;
  --gold-light: #f7d788;
  --gold-hover: #efc261;
  --cream: #faf7f2;
  --sand: #f0eae1;
  --muted: #5d6e70;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 4px 12px rgba(16, 42, 48, 0.05);
  --shadow-md: 0 10px 25px rgba(16, 42, 48, 0.08);
  --shadow-lg: 0 20px 40px rgba(16, 42, 48, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #ffffff;
  overflow-x: hidden;
}

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s linear;
}

/* Topbar */
.topbar {
  background: var(--forest);
  color: #d8ebe5;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.topbar a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.topbar a:hover {
  color: var(--gold-light);
}

.topbar span {
  color: var(--gold);
}

/* Header & Navigation */
.site-header {
  height: 88px;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  height: 74px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(12, 61, 56, 0.08);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: rotate(5deg) scale(1.05);
}

.brand span {
  line-height: 1;
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand strong {
  font-weight: 700;
  color: var(--forest);
}

.brand em {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav > a:not(.donate):not(.app-nav-btn) {
  padding: 10px 0;
  position: relative;
  color: var(--ink);
}

.main-nav > a:not(.donate):not(.app-nav-btn):after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav > a:hover:after,
.main-nav .active:after {
  width: 100%;
}

.main-nav .active {
  color: var(--forest);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donate,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
}

.donate {
  background: linear-gradient(135deg, var(--gold), #e8b340);
  color: #173235;
  padding: 11px 18px;
  box-shadow: 0 4px 14px rgba(217, 168, 60, 0.28);
}

.donate:hover {
  background: linear-gradient(135deg, #efc261, #f5cc6f);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 168, 60, 0.38);
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.app-badge-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  border-color: var(--emerald);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.app-badge-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 126px);
  background: #0d2829;
  position: relative;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo {
  background: url('https://images.unsplash.com/photo-1489493887464-892be6d1daae?auto=format&fit=crop&w=1920&q=85') center 45%/cover no-repeat;
  transform: scale(1.02);
  transition: transform 12s ease-out;
}

.hero:hover .hero-photo {
  transform: scale(1.08);
}

.hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(10, 38, 38, 0.94) 0%,
    rgba(12, 50, 48, 0.82) 45%,
    rgba(10, 40, 40, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  padding: 80px 0 100px;
  z-index: 2;
  max-width: 800px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f7d788;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  color: #c4942c;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
}

.eyebrow.light {
  color: #f4c760;
}

.hero h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 700;
}

.hero h1 i,
h2 i {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #ffe194, #f4c760);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 540px;
  color: #e2ede8;
  margin: 24px 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.button-gold {
  background: linear-gradient(135deg, var(--gold), #e8b340);
  color: #173134;
  padding: 14px 26px;
  box-shadow: 0 6px 20px rgba(217, 168, 60, 0.35);
}

.button-gold:hover {
  background: linear-gradient(135deg, #efc261, #f8d578);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 168, 60, 0.45);
}

.watch {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  transition: var(--transition);
  cursor: pointer;
}

.watch:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.watch b {
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 0.65rem;
  color: var(--gold);
  background: rgba(217, 168, 60, 0.12);
}

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: var(--transition);
}

.hero-app-badge:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-app-badge img {
  height: 34px;
  width: auto;
  display: block;
}

.hero-app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-app-badge-text small {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.hero-app-badge-text strong {
  font-size: 0.88rem;
  color: #ffffff;
}

/* Floating Badges in Hero */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  color: #fff;
  z-index: 3;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  animation: float 6s ease-in-out infinite;
  display: none;
}

@media (min-width: 1024px) {
  .hero-floating-card {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .hero-card-1 {
    right: 8%;
    top: 25%;
    animation-delay: 0s;
  }
  .hero-card-2 {
    right: 14%;
    bottom: 20%;
    animation-delay: 3s;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #b5831e);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #173235;
}

.floating-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.floating-text span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  right: max(24px, calc((100vw - 1180px) / 2));
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2ede8;
}

.scroll-cue span {
  height: 40px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Dynamic Stats Bar */
.stats-bar {
  background: var(--forest);
  color: #ffffff;
  padding: 42px 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(12, 61, 56, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: #d1e1dc;
  font-weight: 500;
}

/* Sections General */
.section {
  padding: 100px 0;
  position: relative;
}

.intro {
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro h2,
.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.intro-copy {
  color: var(--muted);
}

.intro-copy p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 12px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--emerald-dark);
  gap: 14px;
}

.text-link span {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Pillars Section */
.pillars {
  padding: 100px 0;
  background: #ffffff;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 50px;
}

.section-heading > p {
  color: var(--muted);
  max-width: 380px;
  margin: 0;
  font-size: 1.02rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  position: relative;
  padding: 40px 32px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e5ebe8;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald);
}

.pillar-card .number {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
}

.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--forest);
  margin: 24px 0 20px;
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
  background: var(--forest);
  color: var(--gold);
  transform: scale(1.08);
}

.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.pillar-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* Interactive Filterable Programs */
.programs {
  background: #f4f0e8;
}

.programs-tabs {
  display: flex;
  gap: 10px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

.program-tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #d9e2de;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.program-tab:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.program-tab.active {
  background: var(--forest);
  color: #ffffff;
  border-color: var(--forest);
  box-shadow: 0 4px 14px rgba(12, 61, 56, 0.2);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.program-card {
  height: 390px;
  color: #ffffff;
  position: relative;
  padding: 30px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-card:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(5, 34, 31, 0.95) 0%,
    rgba(7, 34, 31, 0.5) 50%,
    rgba(7, 34, 31, 0.1) 100%
  );
  transition: opacity 0.3s ease;
}

.program-card:hover:before {
  background: linear-gradient(
    0deg,
    rgba(5, 34, 31, 0.98) 0%,
    rgba(7, 34, 31, 0.65) 60%,
    rgba(7, 34, 31, 0.2) 100%
  );
}

.program-card > div,
.program-card > a {
  position: relative;
  z-index: 2;
}

.program-card span {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 10px 0 8px;
}

.program-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: #e2ede8;
}

.program-card-metrics {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
}

.program-card > a {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.program-card:hover > a {
  background: var(--gold);
  color: #173235;
  transform: rotate(45deg);
}

.education {
  background-image: url('https://images.unsplash.com/photo-1594708767771-a7502209ff51?auto=format&fit=crop&w=700&q=80');
}
.livelihood {
  background-image: url('https://images.unsplash.com/photo-1485217988980-11786ced9454?auto=format&fit=crop&w=700&q=80');
}
.health {
  background-image: url('https://images.unsplash.com/photo-1509099836639-18ba1795216d?auto=format&fit=crop&w=700&q=80');
}
.climate {
  background-image: url('https://images.unsplash.com/photo-1472396961693-142e6e269027?auto=format&fit=crop&w=700&q=80');
}

/* Impact Section */
.impact {
  background: var(--forest);
  color: #ffffff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.impact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.impact h2 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.impact-grid > div > p:not(.eyebrow) {
  color: #d1e1dc;
  max-width: 440px;
  margin: 24px 0 32px;
  font-size: 1.05rem;
}

.impact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button-outline {
  border: 1.5px solid #7ba79a;
  color: #ffffff;
  padding: 13px 24px;
}

.button-outline:hover {
  background: #ffffff;
  color: var(--forest);
}

.impact-image-wrapper {
  position: relative;
}

.impact-image {
  height: 440px;
  background: url('https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1100&q=85') center/cover;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--gold), #d19f30);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  border-top-right-radius: var(--radius-md);
}

.image-caption strong {
  font-size: 1.1rem;
}

/* Interactive Donation / Impact Calculator Section */
.calculator-section {
  background: #ffffff;
  padding: 90px 0;
  border-bottom: 1px solid #eef2f0;
}

.calculator-card {
  background: linear-gradient(135deg, #f7f5ed 0%, #edf4f1 100%);
  border: 1px solid #dce8e3;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calculator-presets {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.calc-preset-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1.5px solid #c9d8d2;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--forest);
}

.calc-preset-btn:hover,
.calc-preset-btn.active {
  background: var(--forest);
  color: #ffffff;
  border-color: var(--forest);
  transform: translateY(-2px);
}

.calc-slider-wrapper {
  margin: 28px 0;
}

.calc-slider-wrapper label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbdcd5;
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid #d7e4df;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calc-result-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}

.calc-result-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emerald-dark);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.calc-result-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--forest);
  margin: 0 0 12px;
}

.calc-result-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Stories Section */
.stories {
  padding: 100px 0;
  background: #ffffff;
}

.story-carousel {
  position: relative;
  margin-top: 40px;
}

.story-slides {
  position: relative;
  min-height: 400px;
}

.story-slide {
  display: none;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.story-slide.active {
  display: grid;
  opacity: 1;
}

.story-feature {
  background: #f8f5ee;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-sm);
}

.story-photo {
  background-position: center;
  background-size: cover;
  min-height: 380px;
}

.story-content {
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-label {
  margin: 0;
  color: #a77a18;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.story-content blockquote {
  margin: 20px 0;
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  font-size: 1.65rem;
  line-height: 1.3;
}

.story-content > p:not(.story-label) {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.quote-card {
  background: linear-gradient(135deg, var(--gold), #c99320);
  border-radius: var(--radius-md);
  padding: 38px;
  color: #173235;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
}

.quote-card span {
  font-family: Georgia, serif;
  font-size: 5rem;
  height: 60px;
  line-height: 1;
  opacity: 0.7;
}

.quote-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 20px;
}

.quote-card small {
  font-weight: 700;
  font-size: 0.88rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbdcd5;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  width: 32px;
  border-radius: var(--radius-full);
  background: var(--forest);
}

.arrows {
  display: flex;
  gap: 10px;
}

.arrows button {
  background: #ffffff;
  border: 1.5px solid #cbd5d0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--forest);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.arrows button:hover {
  background: var(--forest);
  color: #ffffff;
  border-color: var(--forest);
  transform: translateY(-2px);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 90px 0;
  background: #faf8f5;
  border-top: 1px solid #ede8de;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e1e9e5;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
  user-select: none;
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-body {
  padding: 0 24px 22px;
  max-height: 300px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #103635 0%, #0d2829 100%);
  color: #ffffff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.cta p:not(.eyebrow) {
  color: #d5e3de;
  margin: 16px 0 0;
  font-size: 1.1rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: #091e21;
  color: #dce8e4;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr 1.4fr;
  gap: 45px;
  padding: 70px 0 50px;
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand p {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #bacdc7;
  margin: 20px 0;
}

.footer-main h4 {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  margin: 7px 0 20px;
}

.footer-main div:not(.footer-brand) a {
  display: block;
  color: #c8d8d3;
  font-size: 0.9rem;
  margin: 10px 0;
}

.footer-main div:not(.footer-brand) a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer-main div:not(.footer-brand) p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 16px;
  color: #a4bab4;
}

.footer-main .social {
  color: #ffffff !important;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.78rem;
  color: #a9bfba;
}

.footer-bottom a {
  color: var(--gold);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Modal Popup for "Discover Risecare" */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: grid;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: #000000;
  transform: scale(1.1);
}

.modal-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 30px;
}

.modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: var(--forest);
}

.modal-body p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Scroll-to-Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  color: #173235;
  transform: translateY(-4px);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .main-nav {
    gap: 15px;
  }
  .main-nav > a:not(.donate):not(.app-nav-btn) {
    display: none;
  }
  .intro-grid,
  .impact-grid {
    gap: 45px;
  }
  .footer-main {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .footer-main > div:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }
  .topbar {
    display: none;
  }
  .site-header {
    height: 72px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle i {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
  }
  .nav-toggle[aria-expanded="true"] i:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] i:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 24px 30px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav > a:not(.donate):not(.app-nav-btn) {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #edf2f0;
  }
  .nav-actions {
    margin-top: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .hero-content {
    padding: 60px 0 80px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions > * {
    width: 100%;
    justify-content: center;
  }
  .scroll-cue {
    display: none;
  }
  .section {
    padding: 70px 0;
  }
  .intro-grid,
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 15px;
  }
  .pillar-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }
  .story-slide {
    grid-template-columns: 1fr;
  }
  .story-feature {
    grid-template-columns: 1fr;
  }
  .story-photo {
    min-height: 250px;
  }
  .story-content {
    padding: 28px 24px;
  }
  .cta-inner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 50px 0 35px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
