/* ============================================
   CHARITY WORKS — Non-Profit Fundraising Template
   Palette : Forest Green + Amber
   Fonts   : Josefin Sans (display) · Lora (body)
   Prefix  : cw-
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Green scale */
  --cw-green-dark:    #0f1f18;
  --cw-green-deep:    #1e3a2f;
  --cw-green:         #2d6b4f;
  --cw-green-mid:     #3d9970;
  --cw-green-light:   #86efac;
  --cw-green-pale:    #d1fae5;

  /* Amber accent */
  --cw-amber:         #f59e0b;
  --cw-amber-hover:   #d97706;
  --cw-amber-light:   #fcd34d;

  /* Neutrals */
  --cw-cream:         #f0fdf4;
  --cw-white:         #ffffff;
  --cw-gray:          #5f7a6e;
  --cw-gray-light:    #d4e7dc;

  /* Text */
  --cw-text-dark:     #1a2e22;
  --cw-text-body:     #3d5c4a;
  --cw-text-light:    rgba(255,255,255,0.92);
  --cw-text-muted:    rgba(255,255,255,0.55);

  /* Typography */
  --cw-font-display:  'Josefin Sans', system-ui, -apple-system, sans-serif;
  --cw-font-body:     'Lora', Georgia, 'Times New Roman', serif;

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

  /* Layout */
  --cw-container: 1140px;
  --cw-banner-h:  36px;
  --cw-nav-h:     72px;

  /* Motion */
  --cw-ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --cw-dur-fast:  200ms;
  --cw-dur-med:   400ms;
  --cw-dur-slow:  700ms;

  /* Radius */
  --cw-radius-sm: 6px;
  --cw-radius-md: 10px;
  --cw-radius-lg: 16px;
  --cw-radius-xl: 24px;
  --cw-radius-full: 9999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--cw-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cw-text-body);
  background: var(--cw-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.cw-container {
  width: 100%;
  max-width: var(--cw-container);
  margin: 0 auto;
  padding: 0 var(--cw-space-xl);
}

/* ---------- Section Header ---------- */
.cw-section-header {
  text-align: center;
  margin-bottom: var(--cw-space-3xl);
}
.cw-eyebrow {
  font-family: var(--cw-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cw-green-light);
  margin-bottom: var(--cw-space-sm);
}
.cw-section-title {
  font-family: var(--cw-font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cw-text-dark);
}
.cw-section-title em {
  font-style: italic;
  font-family: var(--cw-font-body);
  color: var(--cw-green);
}
.cw-section-desc {
  max-width: 600px;
  margin: var(--cw-space-md) auto 0;
  font-size: 1.05rem;
  color: var(--cw-gray);
}

/* Light variant (on dark backgrounds) */
.cw-section-header--light .cw-section-title {
  color: var(--cw-white);
}
.cw-section-header--light .cw-section-title em {
  color: var(--cw-green-light);
}
.cw-section-header--light .cw-section-desc {
  color: var(--cw-text-muted);
}

/* ---------- Buttons ---------- */
.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--cw-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 2rem;
  border-radius: var(--cw-radius-full);
  transition: all var(--cw-dur-fast) ease;
  white-space: nowrap;
}
.cw-btn-amber {
  background: var(--cw-amber);
  color: var(--cw-green-dark);
}
.cw-btn-amber:hover {
  background: var(--cw-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}
.cw-btn-outline {
  background: transparent;
  color: var(--cw-white);
  border: 2px solid rgba(255,255,255,0.3);
}
.cw-btn-outline:hover {
  border-color: var(--cw-white);
  background: rgba(255,255,255,0.08);
}
.cw-btn-outline-dark {
  background: transparent;
  color: var(--cw-green);
  border: 2px solid var(--cw-gray-light);
}
.cw-btn-outline-dark:hover {
  border-color: var(--cw-green);
  background: var(--cw-green-pale);
}
.cw-btn-green {
  background: var(--cw-green);
  color: var(--cw-white);
}
.cw-btn-green:hover {
  background: var(--cw-green-mid);
  transform: translateY(-1px);
}
.cw-btn-sm {
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
}

/* ---------- Reveal Animation ---------- */
.cw-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--cw-dur-slow) var(--cw-ease),
              transform var(--cw-dur-slow) var(--cw-ease);
}
.cw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.cw-reveal:nth-child(2) { transition-delay: 100ms; }
.cw-reveal:nth-child(3) { transition-delay: 200ms; }
.cw-reveal:nth-child(4) { transition-delay: 300ms; }


/* ============================================
   DEMO BANNER
   ============================================ */
.cw-demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--cw-banner-h);
  background: var(--cw-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(134,239,172,0.12);
}
.cw-demo-banner a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cw-font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cw-green-light);
  letter-spacing: 0.02em;
  transition: opacity var(--cw-dur-fast) ease;
}
.cw-demo-banner a:hover { opacity: 0.7; }
.cw-demo-banner svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}


/* ============================================
   NAVIGATION
   ============================================ */
.cw-nav {
  position: fixed;
  top: var(--cw-banner-h);
  left: 0; right: 0;
  height: var(--cw-nav-h);
  display: flex;
  align-items: center;
  z-index: 960;
  transition: background var(--cw-dur-med) ease, box-shadow var(--cw-dur-med) ease;
}
.cw-nav.scrolled {
  background: rgba(30,58,47,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.cw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--cw-container);
  margin: 0 auto;
  padding: 0 var(--cw-space-xl);
}

/* Logo */
.cw-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--cw-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cw-white);
  z-index: 10;
}
.cw-logo em {
  font-style: italic;
  font-family: var(--cw-font-body);
  color: var(--cw-green-light);
}
.cw-logo-icon {
  width: 34px; height: 34px;
  color: var(--cw-green-light);
}

/* Nav Links */
.cw-nav-links {
  display: flex;
  align-items: center;
  gap: var(--cw-space-lg);
}
.cw-nav-links a {
  font-family: var(--cw-font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color var(--cw-dur-fast) ease;
}
.cw-nav-links a:hover { color: var(--cw-white); }

/* Nav Actions */
.cw-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--cw-space-md);
}
.cw-nav-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cw-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: var(--cw-radius-full);
  background: var(--cw-amber);
  color: var(--cw-green-dark);
  transition: all var(--cw-dur-fast) ease;
}
.cw-nav-donate-btn svg {
  width: 16px; height: 16px;
}
.cw-nav-donate-btn:hover {
  background: var(--cw-amber-hover);
  transform: translateY(-1px);
}

/* Hamburger */
.cw-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  z-index: 10;
}
.cw-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cw-white);
  border-radius: 2px;
  transition: all var(--cw-dur-fast) ease;
}
.cw-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.cw-menu-toggle.open span:nth-child(2) { opacity: 0; }
.cw-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.cw-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,31,24,0.97);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--cw-dur-med) ease;
}
.cw-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cw-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cw-space-xl);
}
.cw-menu-content a {
  font-family: var(--cw-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color var(--cw-dur-fast) ease;
}
.cw-menu-content a:hover { color: var(--cw-white); }
.cw-menu-content .cw-menu-donate {
  margin-top: var(--cw-space-md);
  padding: 0.75rem 2.2rem;
  border-radius: var(--cw-radius-full);
  background: var(--cw-amber);
  color: var(--cw-green-dark);
  font-size: 1.1rem;
}


/* ============================================
   HERO — Split: Campaign Card Left + Text Right
   ============================================ */
.cw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--cw-green-deep) 0%, #132b21 50%, var(--cw-green-dark) 100%);
  padding-top: calc(var(--cw-banner-h) + var(--cw-nav-h) + var(--cw-space-2xl));
  padding-bottom: var(--cw-space-3xl);
  overflow: hidden;
}
.cw-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 70%; height: 150%;
  background: radial-gradient(ellipse, rgba(134,239,172,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cw-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--cw-space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--cw-container);
  margin: 0 auto;
  padding: 0 var(--cw-space-xl);
}

/* Hero Campaign Card */
.cw-hero-campaign {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(134,239,172,0.15);
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cw-hero-campaign-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.cw-hero-campaign-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cw-hero-campaign-img .cw-campaign-badge {
  position: absolute;
  top: var(--cw-space-md);
  left: var(--cw-space-md);
  font-family: var(--cw-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--cw-radius-full);
  background: var(--cw-green);
  color: var(--cw-white);
}
.cw-hero-campaign-body {
  padding: var(--cw-space-lg);
}
.cw-hero-campaign-body h3 {
  font-family: var(--cw-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cw-white);
  margin-bottom: var(--cw-space-md);
}

/* Progress Bar */
.cw-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(134,239,172,0.12);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: var(--cw-space-sm);
}
.cw-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cw-green-mid), var(--cw-green-light));
  border-radius: 5px;
  transition: width 1.5s var(--cw-ease);
}
.cw-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--cw-space-sm);
}
.cw-progress-raised {
  font-family: var(--cw-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cw-green-light);
}
.cw-progress-goal {
  font-size: 0.85rem;
  color: var(--cw-text-muted);
}
.cw-progress-percent {
  font-family: var(--cw-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cw-amber);
  margin-left: auto;
}
.cw-hero-campaign-meta {
  display: flex;
  gap: var(--cw-space-lg);
  margin-top: var(--cw-space-sm);
  margin-bottom: var(--cw-space-lg);
  font-size: 0.85rem;
  color: var(--cw-text-muted);
}
.cw-hero-campaign-meta svg {
  width: 14px; height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* Hero Text */
.cw-hero-text .cw-eyebrow {
  text-align: left;
  margin-bottom: var(--cw-space-md);
}
.cw-hero-headline {
  font-family: var(--cw-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cw-white);
  margin-bottom: var(--cw-space-lg);
}
.cw-hero-headline em {
  font-style: italic;
  font-family: var(--cw-font-body);
  color: var(--cw-green-light);
}
.cw-hero-desc {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--cw-text-muted);
  margin-bottom: var(--cw-space-xl);
  max-width: 480px;
}
.cw-hero-actions {
  display: flex;
  gap: var(--cw-space-md);
  flex-wrap: wrap;
}


/* ============================================
   IMPACT STATS BAR
   ============================================ */
.cw-stats {
  background: linear-gradient(135deg, var(--cw-green) 0%, var(--cw-green-deep) 100%);
  padding: var(--cw-space-3xl) 0;
}
.cw-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cw-space-xl);
  text-align: center;
}
.cw-stat {
  position: relative;
}
.cw-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.cw-stat-number {
  font-family: var(--cw-font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cw-amber-light);
  line-height: 1.1;
}
.cw-stat-label {
  font-family: var(--cw-font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--cw-space-xs);
}


/* ============================================
   ACTIVE CAMPAIGNS
   ============================================ */
.cw-campaigns {
  padding: var(--cw-space-4xl) 0;
  background: var(--cw-cream);
}
.cw-campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cw-space-xl);
}
.cw-campaign-card {
  background: var(--cw-white);
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform var(--cw-dur-fast) ease, box-shadow var(--cw-dur-fast) ease;
}
.cw-campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.cw-campaign-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.cw-campaign-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--cw-dur-med) ease;
}
.cw-campaign-card:hover .cw-campaign-card-img img {
  transform: scale(1.05);
}
.cw-campaign-card-img .cw-campaign-badge {
  position: absolute;
  top: var(--cw-space-md);
  left: var(--cw-space-md);
  font-family: var(--cw-font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--cw-radius-full);
  background: var(--cw-green);
  color: var(--cw-white);
}
.cw-campaign-card-body {
  padding: var(--cw-space-lg);
}
.cw-campaign-card-body h3 {
  font-family: var(--cw-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cw-text-dark);
  margin-bottom: var(--cw-space-sm);
}
.cw-campaign-card-body p {
  font-size: 0.9rem;
  color: var(--cw-gray);
  margin-bottom: var(--cw-space-md);
  line-height: 1.6;
}
.cw-campaign-card .cw-progress-bar {
  background: var(--cw-green-pale);
}
.cw-campaign-card .cw-progress-raised {
  color: var(--cw-green);
}
.cw-campaign-card .cw-progress-goal {
  color: var(--cw-gray);
}
.cw-campaign-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--cw-gray);
  margin-top: var(--cw-space-sm);
  padding-top: var(--cw-space-sm);
  border-top: 1px solid var(--cw-gray-light);
}
.cw-campaign-meta svg {
  width: 14px; height: 14px;
  vertical-align: -2px;
  margin-right: 3px;
}
.cw-campaign-meta .cw-days-urgent {
  color: #ef4444;
  font-weight: 600;
}


/* ============================================
   DONOR IMPACT
   ============================================ */
.cw-impact {
  padding: var(--cw-space-4xl) 0;
  background: var(--cw-white);
}
.cw-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cw-space-xl);
}
.cw-impact-card {
  text-align: center;
  padding: var(--cw-space-2xl) var(--cw-space-lg);
  border: 1px solid var(--cw-gray-light);
  border-radius: var(--cw-radius-lg);
  transition: all var(--cw-dur-fast) ease;
}
.cw-impact-card:hover {
  border-color: var(--cw-green);
  box-shadow: 0 4px 20px rgba(45,107,79,0.1);
}
.cw-impact-icon {
  width: 52px; height: 52px;
  margin: 0 auto var(--cw-space-md);
  color: var(--cw-green);
}
.cw-impact-amount {
  font-family: var(--cw-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cw-amber);
  margin-bottom: var(--cw-space-sm);
}
.cw-impact-desc {
  font-size: 0.95rem;
  color: var(--cw-gray);
  line-height: 1.6;
}


/* ============================================
   ABOUT / MISSION
   ============================================ */
.cw-about {
  padding: var(--cw-space-4xl) 0;
  background: var(--cw-cream);
}
.cw-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cw-space-3xl);
  align-items: center;
}
.cw-about-text .cw-eyebrow {
  text-align: left;
}
.cw-about-title {
  font-family: var(--cw-font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--cw-text-dark);
  line-height: 1.2;
  margin-bottom: var(--cw-space-lg);
}
.cw-about-title em {
  font-style: italic;
  font-family: var(--cw-font-body);
  color: var(--cw-green);
}
.cw-about-text p {
  color: var(--cw-gray);
  margin-bottom: var(--cw-space-md);
  font-size: 1.02rem;
}
.cw-about-text .cw-btn {
  margin-top: var(--cw-space-md);
}
.cw-about-img {
  position: relative;
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
}
.cw-about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.cw-about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--cw-radius-lg);
  border: 1px solid rgba(134,239,172,0.2);
  pointer-events: none;
}


/* ============================================
   IMPACT REPORTS (Dark section)
   ============================================ */
.cw-reports {
  padding: var(--cw-space-4xl) 0;
  background: linear-gradient(160deg, var(--cw-green-deep) 0%, var(--cw-green-dark) 100%);
}

/* Year Tabs */
.cw-report-tabs {
  display: flex;
  justify-content: center;
  gap: var(--cw-space-sm);
  margin-bottom: var(--cw-space-2xl);
}
.cw-report-tab {
  font-family: var(--cw-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.6rem;
  border-radius: var(--cw-radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all var(--cw-dur-fast) ease;
}
.cw-report-tab:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--cw-white);
}
.cw-report-tab.active {
  background: var(--cw-amber);
  border-color: var(--cw-amber);
  color: var(--cw-green-dark);
}

/* Report Panel */
.cw-report-panel {
  display: none;
}
.cw-report-panel.active {
  display: block;
}
.cw-report-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cw-space-xl);
  margin-bottom: var(--cw-space-2xl);
}
.cw-report-metric {
  text-align: center;
  padding: var(--cw-space-2xl) var(--cw-space-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(134,239,172,0.1);
  border-radius: var(--cw-radius-md);
}
.cw-report-metric-number {
  font-family: var(--cw-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--cw-green-light);
  margin-bottom: var(--cw-space-xs);
}
.cw-report-metric-label {
  font-family: var(--cw-font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Allocation Bar */
.cw-allocation {
  margin-bottom: var(--cw-space-2xl);
}
.cw-allocation-label {
  font-family: var(--cw-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cw-white);
  margin-bottom: var(--cw-space-md);
  text-align: center;
}
.cw-allocation-bar {
  display: flex;
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: var(--cw-space-md);
}
.cw-alloc-programs {
  background: var(--cw-green-light);
  flex: 85;
}
.cw-alloc-admin {
  background: var(--cw-amber);
  flex: 10;
}
.cw-alloc-fundraising {
  background: var(--cw-green-mid);
  flex: 5;
}
.cw-allocation-legend {
  display: flex;
  justify-content: center;
  gap: var(--cw-space-xl);
  flex-wrap: wrap;
}
.cw-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cw-font-display);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.cw-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.cw-legend-dot--programs { background: var(--cw-green-light); }
.cw-legend-dot--admin { background: var(--cw-amber); }
.cw-legend-dot--fundraising { background: var(--cw-green-mid); }

/* Trust Signals */
.cw-trust-row {
  display: flex;
  justify-content: center;
  gap: var(--cw-space-2xl);
  flex-wrap: wrap;
  margin-top: var(--cw-space-xl);
}
.cw-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cw-font-display);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.cw-trust-item svg {
  width: 18px; height: 18px;
  color: var(--cw-green-light);
}

.cw-report-actions {
  text-align: center;
  margin-top: var(--cw-space-xl);
}


/* ============================================
   DONOR STORIES / TESTIMONIALS
   ============================================ */
.cw-stories {
  padding: var(--cw-space-4xl) 0;
  background: var(--cw-cream);
}
.cw-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cw-space-xl);
}
.cw-story-card {
  background: var(--cw-white);
  border-radius: var(--cw-radius-lg);
  padding: var(--cw-space-2xl);
  border-left: 4px solid var(--cw-green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform var(--cw-dur-fast) ease;
}
.cw-story-card:hover {
  transform: translateY(-3px);
}
.cw-story-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--cw-text-body);
  margin-bottom: var(--cw-space-lg);
  line-height: 1.7;
}
.cw-story-author {
  display: flex;
  align-items: center;
  gap: var(--cw-space-md);
}
.cw-story-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cw-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cw-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cw-white);
  flex-shrink: 0;
}
.cw-story-name {
  font-family: var(--cw-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cw-text-dark);
}
.cw-story-role {
  font-size: 0.82rem;
  color: var(--cw-gray);
}


/* ============================================
   GIVING SECTION
   ============================================ */
.cw-giving {
  padding: var(--cw-space-4xl) 0;
  background: var(--cw-white);
}
.cw-giving-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cw-space-3xl);
  align-items: start;
}
.cw-giving-text .cw-eyebrow {
  text-align: left;
}
.cw-giving-title {
  font-family: var(--cw-font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--cw-text-dark);
  line-height: 1.2;
  margin-bottom: var(--cw-space-lg);
}
.cw-giving-title em {
  font-style: italic;
  font-family: var(--cw-font-body);
  color: var(--cw-green);
}
.cw-giving-text p {
  color: var(--cw-gray);
  font-size: 1.02rem;
  margin-bottom: var(--cw-space-lg);
}

/* Scripture */
.cw-giving-scripture {
  border-left: 3px solid var(--cw-green);
  padding: var(--cw-space-md) var(--cw-space-lg);
  margin-bottom: var(--cw-space-xl);
  font-style: italic;
  color: var(--cw-text-body);
}
.cw-giving-scripture cite {
  display: block;
  font-style: normal;
  font-family: var(--cw-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cw-green);
  margin-top: var(--cw-space-sm);
}

/* Trust Badges (light) */
.cw-giving-trust {
  display: flex;
  gap: var(--cw-space-xl);
  flex-wrap: wrap;
}
.cw-giving-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cw-font-display);
  font-size: 0.82rem;
  color: var(--cw-gray);
}
.cw-giving-trust-item svg {
  width: 18px; height: 18px;
  color: var(--cw-green);
}

/* Giving Cards */
.cw-giving-cards {
  display: flex;
  flex-direction: column;
  gap: var(--cw-space-md);
}
.cw-giving-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: var(--cw-space-md);
  padding: var(--cw-space-lg);
  border: 1px solid var(--cw-gray-light);
  border-radius: var(--cw-radius-md);
  transition: all var(--cw-dur-fast) ease;
}
.cw-giving-card:hover {
  border-color: var(--cw-green);
  box-shadow: 0 4px 16px rgba(45,107,79,0.08);
}
.cw-giving-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--cw-radius-md);
  background: var(--cw-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cw-green);
}
.cw-giving-card-icon svg {
  width: 24px; height: 24px;
}
.cw-giving-card-title {
  font-family: var(--cw-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cw-text-dark);
}
.cw-giving-card-desc {
  font-size: 0.82rem;
  color: var(--cw-gray);
}

/* Featured Giving Card */
.cw-giving-card.featured {
  border-color: var(--cw-green);
  background: var(--cw-green-pale);
  position: relative;
}
.cw-giving-card.featured .cw-giving-badge {
  position: absolute;
  top: -10px; right: var(--cw-space-lg);
  font-family: var(--cw-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--cw-radius-full);
  background: var(--cw-amber);
  color: var(--cw-green-dark);
}


/* ============================================
   FOOTER
   ============================================ */
.cw-footer {
  background: var(--cw-green-dark);
  padding: var(--cw-space-4xl) 0 0;
}
.cw-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: var(--cw-space-2xl);
  padding-bottom: var(--cw-space-3xl);
  border-bottom: 1px solid rgba(134,239,172,0.1);
}

/* Brand Column */
.cw-footer-brand .cw-logo {
  margin-bottom: var(--cw-space-md);
}
.cw-footer-brand p {
  color: var(--cw-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--cw-space-md);
}
.cw-footer-contact {
  font-size: 0.85rem;
  color: var(--cw-text-muted);
  line-height: 1.8;
}

/* Link Columns */
.cw-footer-heading {
  font-family: var(--cw-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cw-amber);
  margin-bottom: var(--cw-space-lg);
}
.cw-footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--cw-space-sm);
}
.cw-footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--cw-dur-fast) ease;
}
.cw-footer-links a:hover { color: var(--cw-white); }

/* Newsletter */
.cw-footer-newsletter p {
  color: var(--cw-text-muted);
  font-size: 0.88rem;
  margin-bottom: var(--cw-space-md);
}
.cw-newsletter-form {
  display: flex;
  border-radius: var(--cw-radius-full);
  overflow: hidden;
  border: 1px solid rgba(134,239,172,0.2);
}
.cw-newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  background: rgba(255,255,255,0.05);
  color: var(--cw-white);
  font-family: var(--cw-font-body);
  font-size: 0.88rem;
  outline: none;
  min-width: 0;
}
.cw-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}
.cw-newsletter-form button {
  padding: 0.7rem 1.2rem;
  background: var(--cw-amber);
  color: var(--cw-green-dark);
  font-family: var(--cw-font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--cw-dur-fast) ease;
}
.cw-newsletter-form button:hover {
  background: var(--cw-amber-hover);
}

/* Social Icons */
.cw-social {
  display: flex;
  gap: var(--cw-space-md);
  margin-top: var(--cw-space-lg);
}
.cw-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  transition: all var(--cw-dur-fast) ease;
}
.cw-social a:hover {
  border-color: var(--cw-green-light);
  color: var(--cw-green-light);
}
.cw-social svg {
  width: 16px; height: 16px;
}

/* Footer Bottom */
.cw-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cw-space-md);
  padding: var(--cw-space-lg) var(--cw-space-xl);
  max-width: var(--cw-container);
  margin: 0 auto;
  font-family: var(--cw-font-display);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.cw-footer-bottom a {
  color: var(--cw-green-light);
  transition: opacity var(--cw-dur-fast) ease;
}
.cw-footer-bottom a:hover { opacity: 0.7; }


/* ============================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Nav */
  .cw-nav-links { display: none; }
  .cw-menu-toggle { display: flex; }
  .cw-nav-actions .cw-nav-donate-btn { display: none; }

  /* Hero */
  .cw-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--cw-space-2xl);
  }
  .cw-hero-text { order: 1; }
  .cw-hero-campaign { order: 2; max-width: 520px; margin: 0 auto; }
  .cw-hero-text .cw-eyebrow { text-align: center; }
  .cw-hero-desc { margin: 0 auto var(--cw-space-xl); }
  .cw-hero-actions { justify-content: center; }

  /* Stats */
  .cw-stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--cw-space-2xl); }
  .cw-stat:nth-child(2)::after { display: none; }

  /* Campaigns */
  .cw-campaign-grid { grid-template-columns: repeat(2, 1fr); }

  /* Impact */
  .cw-impact-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .cw-about-grid { grid-template-columns: 1fr; gap: var(--cw-space-2xl); }
  .cw-about-text { text-align: center; }
  .cw-about-text .cw-eyebrow { text-align: center; }
  .cw-about-img { max-width: 560px; margin: 0 auto; }

  /* Reports */
  .cw-report-content { grid-template-columns: repeat(2, 1fr); }

  /* Stories */
  .cw-stories-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-stories-grid > :last-child { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }

  /* Giving */
  .cw-giving-grid { grid-template-columns: 1fr; gap: var(--cw-space-2xl); }
  .cw-giving-text { text-align: center; }
  .cw-giving-text .cw-eyebrow { text-align: center; }
  .cw-giving-trust { justify-content: center; }

  /* Footer */
  .cw-footer-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .cw-container { padding: 0 var(--cw-space-lg); }

  /* Hero */
  .cw-hero { padding-bottom: var(--cw-space-2xl); }
  .cw-hero-headline { font-size: 2rem; }
  .cw-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .cw-hero-actions .cw-btn { width: 100%; justify-content: center; }

  /* Stats */
  .cw-stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--cw-space-lg); }
  .cw-stat::after { display: none; }

  /* Campaigns */
  .cw-campaign-grid { grid-template-columns: 1fr; }

  /* Impact */
  .cw-impact-grid { grid-template-columns: repeat(2, 1fr); gap: var(--cw-space-md); }

  /* Reports */
  .cw-report-content { grid-template-columns: 1fr; }
  .cw-report-tabs { flex-wrap: wrap; justify-content: center; }

  /* Stories */
  .cw-stories-grid { grid-template-columns: 1fr; }
  .cw-stories-grid > :last-child { max-width: none; }

  /* Giving */
  .cw-giving-card { grid-template-columns: 44px 1fr; }
  .cw-giving-card .cw-btn-sm { grid-column: 1 / -1; width: 100%; }

  /* Footer */
  .cw-footer-grid { grid-template-columns: 1fr; gap: var(--cw-space-2xl); }
  .cw-footer-bottom { justify-content: center; text-align: center; }
}


/* ============================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .cw-container { padding: 0 var(--cw-space-md); }

  /* Impact cards single col */
  .cw-impact-grid { grid-template-columns: 1fr; }

  /* Stats 2x2 tighter */
  .cw-stats-grid { gap: var(--cw-space-md); }
  .cw-stat-number { font-size: 1.6rem; }

  /* Allocation legend wrap */
  .cw-allocation-legend { gap: var(--cw-space-md); }
}
