/* ============================================================
   HARBOR HOPE — NONPROFIT WEBSITE STYLES
   ============================================================ */

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

:root {
  --orange:       #E8724A;
  --orange-dark:  #C95B35;
  --orange-light: #F5A07A;
  --teal:         #2A7F6F;
  --teal-light:   #3AA890;
  --teal-pale:    #EAF5F2;
  --cream:        #faf9f7;
  --sand:         #F4EFE6;
  --warm-gray:    #8D8279;
  --text:         #1E1A17;
  --text-muted:   #6B6460;
  --border:       #E4DDD6;
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --nav-h:        72px;
  --sticky-bar-h: 0px;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
address { font-style: normal; }
ul { list-style: none; }

/* ------ SKIP LINK (#23) ------ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--teal);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ------ CONTAINER ------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------ SECTIONS ------ */
.section { padding: 96px 0; position: relative; }

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--orange-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-title em { color: var(--orange); font-style: italic; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-header--center .section-subtitle { margin: 0 auto; }
.section-subtitle--light { color: rgba(255,255,255,0.78); }

/* ------ REQUIRED STAR ------ */
.req-star { color: var(--orange); }

/* ------ BUTTONS ------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(42,127,111,.35); }

.btn-donate {
  background: var(--orange);
  color: var(--white);
}
.btn-donate:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,114,74,.4); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.8); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ------ NAVIGATION ------ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}
.logo strong { font-weight: 800; color: var(--orange); }
.logo--light { color: rgba(255,255,255,0.9); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--sand); }
.nav-links .btn { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------ THEME TOGGLE ------ */
.theme-toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 50px;
  margin-right: 4px;
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 50px;
}

.theme-track {
  display: block;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  background: var(--sand);
  border: 1.5px solid var(--border);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              background 0.3s ease,
              box-shadow 0.3s ease;
  color: var(--warm-gray);
}

/* Sun hidden by default (light mode) */
.t-sun { display: none; }

/* Dark mode: slide thumb right, swap icons */
html.dark .theme-track {
  background: #1A3530;
  border-color: var(--teal);
}
html.dark .theme-thumb {
  transform: translateX(24px);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 1px 6px rgba(42,127,111,.5);
}
html.dark .t-moon { display: none; }
html.dark .t-sun  { display: block; }

/* ------ STICKY DONATION BAR (#1) ------ */
.sticky-donate-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--teal);
  color: white;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.sticky-donate-bar.visible { transform: translateY(0); }

.sticky-donate-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 24px;
  flex-wrap: wrap;
}
.sticky-donate-msg {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.92;
}
.sticky-donate-amounts {
  display: flex;
  gap: 8px;
}
.sticky-amt-btn {
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.sticky-amt-btn:hover,
.sticky-amt-btn.active {
  background: white;
  color: var(--teal);
  border-color: white;
}
.sticky-donate-cta { font-size: 0.875rem; padding: 8px 20px; }

/* ------ HERO ------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero parallax bg (#21) - no external image */
.hero-image-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(160,70,20,.7) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(25,90,70,.6) 0%, transparent 50%),
    linear-gradient(160deg, #1A0C06 0%, #2D1A0A 35%, #0D2420 100%);
  will-change: transform;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-image-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,12,6,0.55) 0%,
    rgba(42,127,111,0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  color: var(--white);
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(232,114,74,0.2);
  border-radius: 50px;
  border: 1px solid rgba(232,114,74,0.4);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-headline em {
  color: var(--orange-light);
  font-style: italic;
}

.hero-mission {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

/* Hero play button (#13) */
.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.hero-play-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ------ PRESS BAR (#12) ------ */
.press-bar {
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.press-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.press-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.press-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.press-pill {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.press-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ------ MISSION ------ */
.mission-section { background: var(--cream); }

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

.mission-img-wrap {
  position: relative;
  padding-bottom: 60px;
  padding-right: 40px;
}

.mission-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.mission-img-1 {
  width: 80%;
  aspect-ratio: 4/5;
  background: linear-gradient(175deg, #8B5A2B 0%, #C4906A 40%, #E8C49A 70%, #D4956A 100%);
  border-radius: var(--radius-lg);
  position: relative;
}
.mission-img-2 {
  width: 55%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1A4A3A 0%, #2E7060 50%, #5AA080 100%);
  border-radius: var(--radius-md);
  position: absolute;
  bottom: 0;
  right: 0;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.mission-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mission-badge {
  position: absolute;
  top: 32px;
  right: 0;
  background: var(--orange);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.mission-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.mission-badge span { font-size: 0.75rem; opacity: 0.9; }

.mission-text-col .section-eyebrow { display: block; margin-bottom: 8px; }
.mission-text-col .section-title { margin-bottom: 20px; }
.mission-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.mission-text-col p { color: var(--text-muted); margin-bottom: 16px; }
.mission-text-col p strong { color: var(--text); }

.mission-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.value-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ------ IMPACT ------ */
.impact-section { padding: 96px 0; overflow: hidden; }
.impact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, #1A5247 100%);
}

.impact-section .section-header { margin-bottom: 56px; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Impact card micro-interaction (#22) */
.impact-card {
  background: rgba(255,255,255,0.07);
  padding: 48px 32px;
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.impact-card:hover {
  background: rgba(255,255,255,0.13);
  transform: scale(1.02);
  box-shadow: 0 0 0 2px rgba(232,114,74,0.4);
  z-index: 1;
}

.impact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--orange-light);
}
.impact-icon svg { width: 100%; height: 100%; }

.impact-counter {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: inline;
}

.impact-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  display: inline;
}

.impact-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  line-height: 1.4;
}

/* ------ PROGRAMS ------ */
.programs-section { background: var(--cream); }

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

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Program icon micro-interaction (#22) */
.program-card:hover .program-icon svg {
  transform: translateY(-4px) scale(1.1);
}
.program-icon svg {
  transition: transform 0.3s ease;
}

.program-card--featured {
  grid-column: span 1;
  background: linear-gradient(145deg, var(--teal) 0%, #1A5247 100%);
  color: var(--white);
  border-color: transparent;
}
.program-card--featured h3, .program-card--featured p { color: rgba(255,255,255,0.92); }
.program-card--featured .program-icon { color: var(--orange-light); }

.program-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--teal);
}
.program-icon svg { width: 100%; height: 100%; }

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.program-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.program-card--featured p { color: rgba(255,255,255,0.78); }

.program-features {
  margin-bottom: 20px;
  list-style: none;
}
.program-features li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.program-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-light);
  font-weight: 700;
}

.program-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}
.program-card--featured .program-link { color: var(--orange-light); }
.program-link:hover { text-decoration: underline; }

/* ------ FINANCIAL TRANSPARENCY (#10) ------ */
.financial-section { background: var(--sand); }

.financial-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.donut-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.donut-chart {
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

.donut-ring {
  stroke: rgba(0,0,0,0.08);
  fill: none;
}

.donut-seg {
  fill: none;
  stroke-linecap: butt;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4,0,0.2,1);
}
/* Initial state: collapsed */
.donut-seg--programs  { stroke: var(--orange); stroke-dasharray: 0 439.8; }
.donut-seg--admin     { stroke: var(--teal); stroke-dasharray: 0 439.8; }
.donut-seg--fundraising { stroke: var(--warm-gray); stroke-dasharray: 0 439.8; }

/* Animated state (JS adds .animated class to parent) */
.donut-chart.animated .donut-seg--programs  { stroke-dasharray: 360.6 439.8; }
.donut-chart.animated .donut-seg--admin     { stroke-dasharray: 48.4 439.8; }
.donut-chart.animated .donut-seg--fundraising { stroke-dasharray: 30.8 439.8; }

.donut-pct-label {
  font-family: var(--font-display);
}

.financial-legend {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.financial-stat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.fin-dot--programs    { background: var(--orange); }
.fin-dot--admin       { background: var(--teal); }
.fin-dot--fundraising { background: var(--warm-gray); }

.financial-stat strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}
.financial-stat p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.financial-report-link { margin-top: 8px; }

/* ------ GET HELP ------ */
.get-help-section { background: var(--cream); }

.get-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.get-help-text .section-eyebrow { display: block; margin-bottom: 8px; }
.get-help-text .section-title { margin-bottom: 16px; }
.get-help-text > p { color: var(--text-muted); margin-bottom: 40px; }

.help-steps { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }

.help-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.help-step > div p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.help-step > div strong { font-size: 0.95rem; }

.help-phone {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.help-phone svg { color: var(--teal); flex-shrink: 0; }
.help-phone strong { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.help-phone a { font-size: 1.3rem; font-weight: 700; color: var(--teal); }

/* ------ CSS MAP PLACEHOLDER (#25) ------ */
.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
}
.map-svg { width: 100%; height: auto; display: block; }
.map-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px solid var(--border);
}
.map-address svg { flex-shrink: 0; color: var(--orange); }

/* ------ FORMS ------ */
.intake-form, .volunteer-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.intake-form h3, .volunteer-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,127,111,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #B8B2AC; }
.form-group textarea { resize: vertical; }

/* Form validation states (#7) */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #22A05B;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322A05B' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #D9362A;
  box-shadow: 0 0 0 3px rgba(217,54,42,0.1);
}
.field-error {
  font-size: 0.78rem;
  color: #D9362A;
  font-weight: 500;
  min-height: 1em;
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ------ TEAM SECTION (#11) ------ */
.team-section { background: var(--sand); }

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

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  letter-spacing: 0.03em;
}
.team-avatar--mr { background: linear-gradient(135deg, #C45A3A, #8B3020); }
.team-avatar--jo { background: linear-gradient(135deg, #2A7F6F, #1A4A40); }
.team-avatar--sc { background: linear-gradient(135deg, #5A7AC4, #3A508B); }
.team-avatar--dt { background: linear-gradient(135deg, #8B6A3A, #5C4020); }
.team-avatar--pm { background: linear-gradient(135deg, #9A5AB8, #6A3A88); }
.team-avatar--cr { background: linear-gradient(135deg, #3A9A6A, #1A6A4A); }

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.team-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.team-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------ TESTIMONIALS ------ */
.testimonials-section { background: var(--cream); }

.testimonials-carousel-wrap { position: relative; }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card--featured {
  background: linear-gradient(145deg, #FFF5F0, #FFF8F5);
  border-color: #F5C4B0;
  grid-column: 1;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--orange-light);
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-card--featured blockquote { font-size: 1.02rem; color: var(--text); }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Initials-based CSS avatars (no images) */
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
}
.author-avatar--1 { background: linear-gradient(135deg, #D4908A, #A8584E); } /* DM - warm rose */
.author-avatar--2 { background: linear-gradient(135deg, #7A9AB4, #4A6A8A); } /* MT - steel blue */
.author-avatar--3 { background: linear-gradient(135deg, #7A9870, #4A6840); } /* RJ - sage green */

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

.testimonials-cta { text-align: center; margin-top: 40px; color: var(--text-muted); font-size: 0.95rem; }
.testimonials-cta a { color: var(--teal); font-weight: 600; }

/* Carousel dots (mobile, #16) */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  border: 2px solid transparent;
}
.carousel-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}

/* ------ IMPACT CALCULATOR (#14) ------ */
.calculator-section { background: var(--sand); }

.calculator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.calculator-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.calc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.calc-slider-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--orange) 0%, var(--orange) 18%, var(--border) 18%, var(--border) 100%);
  outline: none;
  margin-bottom: 8px;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232,114,74,0.4);
  border: 3px solid white;
  transition: box-shadow var(--transition);
}
.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 16px rgba(232,114,74,0.6);
}
.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232,114,74,0.4);
  border: 3px solid white;
}
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-amt-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.calc-amt-btn:hover { border-color: var(--orange); color: var(--orange); }
.calc-amt-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(232,114,74,0.3);
}

.calculator-output {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(135deg, var(--teal) 0%, #1A5247 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  color: white;
}

.calc-total { text-align: center; }
.calc-total-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 8px;
}
.calc-total-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}
.calc-total-sub {
  font-size: 0.78rem;
  opacity: 0.7;
}

.calc-impacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-impact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.calc-impact-num {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--orange-light);
  min-width: 60px;
  transition: all 0.3s ease;
}

.calculator-cta { text-align: center; }

/* ------ DONATE ------ */
.donate-section { padding: 96px 0; overflow: hidden; }
.donate-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1E1A17 0%, #2A1810 60%, #1A5247 100%);
}

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

.donate-header { text-align: center; margin-bottom: 40px; }

/* Welcome-back message (#20) */
.donor-welcome {
  background: rgba(42,127,111,0.15);
  border: 1.5px solid rgba(42,127,111,0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.donate-type-tabs {
  display: flex;
  background: var(--sand);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 24px;
}
.donate-tab {
  flex: 1;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.donate-tab.active {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Donation progress meter (#2) */
.donate-progress-wrap {
  margin-bottom: 24px;
}
.donate-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.donate-progress-pct strong { color: var(--teal); }
.donate-progress-bar-bg {
  background: var(--sand);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
}
.donate-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 50px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.amount-btn:hover { border-color: var(--orange); color: var(--orange); }
.amount-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(232,114,74,.35);
}

.custom-amount-wrap {
  grid-column: span 3;
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0 14px;
  gap: 4px;
  transition: border-color var(--transition);
}
.custom-amount-wrap:focus-within { border-color: var(--orange); }
.custom-amount-wrap span { font-weight: 700; color: var(--text-muted); }
.custom-amount-wrap input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  background: transparent;
}

/* Monthly upsell (#4) */
.monthly-upsell {
  background: linear-gradient(135deg, #EAF5F2, #F0FAF7);
  border: 1.5px solid var(--teal-pale);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.87rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.upsell-switch-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--teal);
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background var(--transition);
}
.upsell-switch-btn:hover { background: var(--teal-light); }

.donate-impact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--teal);
}
.donate-impact svg { flex-shrink: 0; }

.card-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.card-input-wrap input { flex: 1; }
.card-icons {
  display: flex;
  gap: 6px;
  position: absolute;
  right: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
}
.checkbox-label input { margin-top: 2px; flex-shrink: 0; accent-color: var(--teal); width: 16px; height: 16px; }

.donate-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.donate-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.donate-footer-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.donate-footer-note a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* Impact ticker (#3) */
.impact-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  min-height: 48px;
  overflow: hidden;
}
.impact-ticker svg { color: var(--orange-light); flex-shrink: 0; }
.ticker-message {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ticker-message.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
.ticker-message.fade-in-up {
  opacity: 0;
  transform: translateY(8px);
}
.ticker-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------ VOLUNTEER ------ */
.volunteer-section { background: var(--sand); }

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.volunteer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.volunteer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Volunteer icon micro-interaction (#22) */
.volunteer-card:hover .volunteer-icon {
  transform: scale(1.2) rotate(8deg);
}
.volunteer-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.volunteer-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.volunteer-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.volunteer-meta { font-size: 0.8rem; font-weight: 600; color: var(--teal); }

.volunteer-cta {
  max-width: 700px;
  margin: 0 auto;
}
.volunteer-form { text-align: left; }
.volunteer-form h3 { margin-bottom: 6px; }
.volunteer-form p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }

/* ------ EVENTS ------ */
.events-section { background: var(--cream); }
.events-section .section-header { margin-bottom: 48px; }
.events-section .section-subtitle { margin: 0; }

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

.event-card--featured {
  background: linear-gradient(145deg, var(--teal) 0%, #1A5247 100%);
  border-color: transparent;
  color: white;
}
.event-card--featured h3 { color: white; }
.event-card--featured p { color: rgba(255,255,255,0.8); }
.event-card--featured .event-meta { color: rgba(255,255,255,0.7); }
.event-card--featured .event-tag { background: rgba(255,255,255,0.2); color: white; }
.event-card--featured .event-countdown { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

.event-date-badge {
  flex-shrink: 0;
  background: var(--orange);
  color: white;
  border-radius: var(--radius-sm);
  width: 60px;
  text-align: center;
  padding: 10px 8px;
}
.event-month { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.event-day { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }

.event-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.event-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.event-content p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; }

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Countdown badge (#15) */
.event-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-pale);
  border: 1px solid rgba(42,127,111,0.2);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.events-footer { text-align: center; }

/* ------ PARTNERS ------ */
.partners-section { background: var(--sand); }

.partners-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.partner-logo {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  min-height: 90px;
}
.partner-logo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.partner-logo-placeholder {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warm-gray);
  text-align: center;
  letter-spacing: 0.02em;
}

.partners-cta { text-align: center; }
.partners-cta p { color: var(--text-muted); margin-bottom: 16px; }

/* ------ BLOG ------ */
.blog-section { background: var(--cream); }
.blog-section .section-header { margin-bottom: 48px; }

.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* CSS gradient blog images (no external URLs) */
.blog-img {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.blog-img--1 { background: linear-gradient(135deg, #C85A2A 0%, #8B2E0E 100%); }
.blog-img--2 { background: linear-gradient(135deg, #2A7060 0%, #1A4A3A 100%); }
.blog-img--3 { background: linear-gradient(135deg, #8B5E3C 0%, #5C3420 100%); }

/* Skeleton shimmer (#8) */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.shimmer {
  background: linear-gradient(90deg, #E8E0D8 0%, #F5EFE6 50%, #E8E0D8 100%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card { pointer-events: none; }
.skeleton-img {
  aspect-ratio: 16/9;
  border-radius: 0;
}
.skeleton-content { padding: 24px; }
.skeleton-line {
  border-radius: 4px;
  height: 14px;
  margin-bottom: 0;
}

.blog-content { padding: 24px; }

.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-content h3 a { color: var(--text); transition: color var(--transition); }
.blog-content h3 a:hover { color: var(--teal); }

.blog-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.blog-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--warm-gray); }

.blog-footer { text-align: center; }

/* ------ NEWSLETTER ------ */
.newsletter-section {
  background: var(--teal-pale);
  padding: 64px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.newsletter-text p { color: var(--text-muted); font-size: 0.95rem; }
.newsletter-form {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 480px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  background: white;
}
.newsletter-form input:focus { border-color: var(--teal); }

/* ------ FOOTER ------ */
.site-footer {
  background: #0F0D0B;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 24px; max-width: 260px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-link:hover { background: var(--orange); color: white; }

/* Charity Seal Widgets (#17) */
.footer-seals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.charity-seal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  transition: all var(--transition);
}
.charity-seal:hover {
  border-color: rgba(232,114,74,0.35);
  background: rgba(255,255,255,0.07);
}
.seal-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.seal-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.seal-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--orange-light);
  letter-spacing: 0.01em;
}
.seal-rating-text { color: rgba(255,255,255,0.5); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-contact address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-contact address svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact address a { color: rgba(255,255,255,0.7); }
.footer-contact address a:hover { color: white; }

.footer-hours { margin-top: 20px; }
.footer-hours strong { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 2px; }
.footer-hours p { font-size: 0.8rem; margin-bottom: 12px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ------ MODAL (shared) ------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  z-index: 2001;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  max-width: 440px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal.open,
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal.open { transform: translate(-50%, -50%) scale(1); }
.modal-icon { margin-bottom: 20px; }
.modal h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.modal p { color: var(--text-muted); margin-bottom: 28px; }

/* ------ VIDEO MODAL (#13) ------ */
.video-modal {
  max-width: 720px;
  width: calc(100% - 48px);
  padding: 0;
  overflow: hidden;
  background: #0a0807;
  border-radius: var(--radius-lg);
}
.video-modal.open { transform: translate(-50%, -50%) scale(1); }

.video-modal-content { position: relative; width: 100%; }
.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.video-modal-close:hover { color: white; background: rgba(0,0,0,0.7); }

.video-player { position: relative; }
.video-thumbnail { position: relative; line-height: 0; }
.video-scene { width: 100%; height: auto; }

.video-controls {
  padding: 16px 20px;
  background: #1a1510;
}
.video-progress-wrap { margin-bottom: 12px; }
.video-progress-bg {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.video-progress-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.5s linear;
}
.video-ctrl-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.video-play-ctrl {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  transition: background var(--transition);
}
.video-play-ctrl:hover { background: var(--orange-dark); }
.video-time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  white-space: nowrap;
}
.video-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  flex: 1;
  text-align: right;
}

/* ------ EXIT INTENT POPUP (#5) ------ */
.exit-intent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 3000;
  backdrop-filter: blur(3px);
}
.exit-intent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3001;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 460px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  animation: exitModalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes exitModalIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.exit-intent-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.exit-intent-close:hover { color: var(--text); }
.exit-intent-heart { margin-bottom: 16px; }
.exit-intent-modal h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
}
.exit-intent-modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
}
.exit-intent-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.exit-amt-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.exit-amt-btn:hover { border-color: var(--orange); color: var(--orange); }
.exit-amt-btn--featured {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
.exit-amt-btn--featured:hover { background: var(--orange-dark); color: white; }
.exit-intent-dismiss {
  display: block;
  margin: 16px auto 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.exit-intent-dismiss:hover { color: var(--text); }

/* ------ SCROLL ANIMATIONS ------ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------ DARK MODE — class-based (manual toggle + system fallback) ------ */

/* 1. Custom property overrides: applied by .dark class (set by JS on <html>) */
html.dark {
  --cream:      #111009;
  --sand:       #181510;
  --white:      #1E1B17;
  --text:       #EDE8E2;
  --text-muted: #9E9590;
  --border:     #2A2520;
  --teal-pale:  #0D1F1C;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.5);
}

/* 2. Component overrides */
html.dark .nav-header { background: rgba(17,16,9,0.93); }
html.dark .hero-wave svg path { fill: var(--cream); }
html.dark .press-bar { background: var(--sand); border-bottom-color: var(--border); }
html.dark .press-pill { background: var(--white); border-color: var(--border); }
html.dark .testimonial-card--featured { background: linear-gradient(145deg, #2A1E18, #231810); border-color: #3A2820; }
html.dark .donate-card { background: var(--white); }
html.dark .donate-type-tabs { background: var(--sand); }
html.dark .donate-tab.active { background: #2A2520; }
html.dark .donate-progress-bar-bg { background: var(--sand); }
html.dark .intake-form,
html.dark .volunteer-form { background: var(--white); }
html.dark .monthly-upsell { background: #0D1F1C; border-color: #1A3530; }
html.dark .blog-img--1 { background: linear-gradient(135deg, #A04020 0%, #6B1E00 100%); }
html.dark .blog-img--2 { background: linear-gradient(135deg, #1A5040 0%, #0D2A20 100%); }
html.dark .blog-img--3 { background: linear-gradient(135deg, #6B4028 0%, #3C1E10 100%); }
html.dark .shimmer { background: linear-gradient(90deg, #222018 0%, #2E2A22 50%, #222018 100%); background-size: 800px 100%; }
html.dark .newsletter-section { background: var(--sand); }
html.dark .newsletter-form input { background: var(--white); }
html.dark .map-placeholder { border-color: var(--border); }
html.dark .map-address { background: var(--white); border-top-color: var(--border); color: var(--text-muted); }
html.dark .calculator-card { background: var(--white); border-color: var(--border); }
html.dark .calc-slider { background: linear-gradient(to right, var(--orange) 0%, var(--orange) 18%, var(--border) 18%, var(--border) 100%); }
html.dark .calc-amt-btn { background: var(--white); color: var(--text); border-color: var(--border); }
html.dark .calc-amounts .calc-amt-btn.active { background: var(--orange); color: white; }
html.dark .amount-btn { background: var(--white); color: var(--text); border-color: var(--border); }
html.dark .amount-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
html.dark .custom-amount-wrap { border-color: var(--border); }
html.dark .custom-amount-wrap input { background: transparent; color: var(--text); }
html.dark .modal { background: var(--white); }
html.dark .exit-intent-modal { background: var(--white); }
html.dark .financial-section { background: var(--sand); }
html.dark .team-section { background: var(--sand); }
html.dark .team-card { background: var(--white); }
html.dark .partner-logo { background: var(--white); }
html.dark .charity-seal { border-color: rgba(255,255,255,0.08); }
html.dark .value-chip { background: var(--teal-pale); }
html.dark .help-phone { background: var(--white); }
html.dark .map-svg text { fill: var(--text-muted); }
html.dark .donut-ring { stroke: rgba(255,255,255,0.06); }
/* Mobile nav background in dark mode */
html.dark .nav-links { background: rgba(17,16,9,0.97) !important; }
/* Sticky bar in dark mode */
html.dark .sticky-donate-bar { background: #0D2820; }

/* ------ RESPONSIVE ------ */
@media (max-width: 1024px) {
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .mission-image-col { order: -1; }
  .mission-img-wrap { padding-bottom: 48px; padding-right: 32px; max-width: 480px; }

  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .testimonials-grid .testimonial-card--featured { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: 1; }
  .blog-img { aspect-ratio: 16/7; }
  .partners-logos { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .financial-grid { grid-template-columns: 1fr; gap: 40px; }
  .donut-wrap { justify-content: flex-start; }
  .calculator-controls { grid-template-columns: 1fr; gap: 32px; }
  .calculator-output { grid-template-columns: 1fr; gap: 24px; }
}

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

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(250,249,247,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 32px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; border-radius: var(--radius-sm); text-align: center; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; justify-content: center; }

  .hero-content { max-width: 100%; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 16px; }
  .hero-stat strong { font-size: 1.25rem; }

  .programs-grid { grid-template-columns: 1fr; }
  .program-card--featured { grid-column: 1; }

  .get-help-grid { grid-template-columns: 1fr; }

  .volunteer-grid { grid-template-columns: 1fr 1fr; }

  .events-grid { grid-template-columns: 1fr; }
  .event-card--featured { grid-column: 1; }

  .partners-logos { grid-template-columns: repeat(2, 1fr); }

  .donate-card { padding: 32px 24px; }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); }
  .custom-amount-wrap { grid-column: span 3; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .newsletter-form input { min-width: 0; }

  .mission-img-wrap { max-width: 100%; }

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

  .testimonials-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile carousel (#16) */
  .testimonials-carousel-wrap { overflow: hidden; }
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 8px;
    scrollbar-width: none;
    max-width: 100%;
    margin: 0;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial-card {
    flex: 0 0 min(85vw, 380px);
    scroll-snap-align: start;
  }
  .carousel-dots { display: flex; }

  .sticky-donate-inner {
    gap: 10px;
    padding: 8px 16px;
  }
  .sticky-donate-msg { display: none; }

  .financial-grid { grid-template-columns: 1fr; text-align: center; }
  .financial-stat { text-align: left; }
  .donut-wrap { justify-content: center; }

  .calculator-card { padding: 32px 24px; }
  .calculator-output { padding: 24px 20px; }

  .video-modal { max-width: calc(100% - 24px); }
  .video-title { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 0; }

  .volunteer-grid { grid-template-columns: 1fr; }
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
  .custom-amount-wrap { grid-column: span 2; }

  .donate-trust { gap: 12px; }

  .impact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }

  .partners-logos { grid-template-columns: repeat(2, 1fr); }

  .newsletter-form { flex-direction: column; }

  .team-grid { grid-template-columns: 1fr; }

  .calc-amounts { gap: 8px; }
  .calc-amt-btn { padding: 8px 14px; font-size: 0.85rem; }

  .calculator-output { grid-template-columns: 1fr; }
  .calc-impacts { gap: 12px; }

  .press-logos { gap: 8px; }
  .press-pill { font-size: 0.72rem; padding: 5px 12px; }

  .exit-intent-amounts { gap: 8px; }
  .exit-amt-btn { padding: 10px 16px; font-size: 0.9rem; }
}

/* ------ INNER PAGE HERO ------ */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: linear-gradient(160deg, #1A0C06 0%, #2D1A0A 35%, #0D2420 100%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  /* set per-page via inline style on the element */
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span[aria-current] { color: rgba(255,255,255,0.8); }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  color: white;
}
.page-hero-title em { color: var(--orange-light); font-style: italic; }

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
}

/* Active nav link */
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--teal) !important;
  background: var(--teal-pale);
  border-radius: 8px;
}
html.dark .nav-links a[aria-current="page"]:not(.btn) {
  color: var(--teal-light) !important;
  background: rgba(42,127,111,0.15);
}

/* Donate page: active donate button gets orange tint */
.nav-links a.btn[aria-current="page"] {
  background: var(--orange-dark) !important;
  box-shadow: 0 0 0 3px rgba(232,114,74,0.3);
}

/* Page-specific CTA strips */
.inner-cta-strip {
  background: var(--teal);
  color: white;
  padding: 64px 0;
  text-align: center;
}
.inner-cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  color: white;
}
.inner-cta-strip p { color: rgba(255,255,255,0.78); margin-bottom: 28px; font-size: 1.05rem; }
.inner-cta-strip .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FAQ Section */
.faq-grid { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px 24px; font-size: 1rem; font-weight: 600; background: var(--white); color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.faq-question:hover { background: var(--sand); }
.faq-icon { flex-shrink: 0; transition: transform .25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 200px; }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
html.dark .faq-question { background: var(--white); }
html.dark .faq-question:hover { background: var(--sand); }

/* Other Ways to Give */
.other-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.other-way-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.other-way-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--teal);
}
.other-way-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.other-way-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 768px) {
  .other-ways-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 260px; padding-bottom: 40px; }
  .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* ============================================================
   NEW FEATURES — BATCH 3
   ============================================================ */

/* ------ PAGE TRANSITIONS (View Transitions API) ------ */
::view-transition-old(root) {
  animation: 220ms ease both vt-fade-out;
}
::view-transition-new(root) {
  animation: 280ms ease both vt-fade-in;
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
}
/* Logo and nav stay fixed during transitions */
.nav-header { view-transition-name: site-nav; }
::view-transition-old(site-nav),
::view-transition-new(site-nav) { animation: none; }

/* ------ TOAST NOTIFICATIONS ------ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast-icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  font-size: 1.1rem;
}
.toast-close:hover { opacity: 1; }
.toast--success .toast-icon { color: #4CAF50; }
.toast--info .toast-icon { color: var(--teal-light); }
html.dark .toast { background: #2A2520; color: var(--text); }

/* ------ CONFETTI CANVAS ------ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ------ DONOR WALL ------ */
.donor-wall {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}
.donor-wall::before,
.donor-wall::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.donor-wall::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.donor-wall::after  { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
html.dark .donor-wall::before { background: linear-gradient(to right, var(--cream), transparent); }
html.dark .donor-wall::after  { background: linear-gradient(to left,  var(--cream), transparent); }
.donor-wall-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: donor-scroll 40s linear infinite;
}
.donor-wall-track:hover { animation-play-state: paused; }
@keyframes donor-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.donor-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  white-space: nowrap;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.donor-pill-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: white;
  flex-shrink: 0;
}
.donor-pill strong { font-weight: 600; }
.donor-pill span { color: var(--text-muted); font-size: 0.78rem; }
.donor-wall-heading {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ------ EMPLOYER MATCHING ------ */
.matching-widget {
  background: var(--teal-pale);
  border: 1.5px solid rgba(42,127,111,.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.matching-widget label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--teal);
}
.matching-input-row {
  display: flex;
  gap: 10px;
}
.matching-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(42,127,111,.3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.matching-input-row input:focus { border-color: var(--teal); }
.matching-input-row button {
  padding: 10px 16px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.matching-input-row button:hover { background: var(--teal-light); }
.matching-result {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 600;
  display: none;
}
.matching-result.show { display: block; }
html.dark .matching-widget { background: rgba(13,31,28,0.8); }
html.dark .matching-input-row input { background: var(--white); }

/* ------ SCROLL PROGRESS BAR (Blog) ------ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ------ ANIMATED SVG HERO CITYSCAPE ------ */
.hero-cityscape {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
}
.hero-cityscape svg { width: 100%; height: auto; }
.city-bld-1 { animation: city-float 8s ease-in-out infinite; }
.city-bld-2 { animation: city-float 11s ease-in-out infinite 1s; }
.city-bld-3 { animation: city-float 9s ease-in-out infinite 2.5s; }
.city-star  { animation: city-twinkle 3s ease-in-out infinite; }
@keyframes city-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes city-twinkle {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ------ HIGH CONTRAST MODE ------ */
html.hc {
  --cream:      #FFFFFF;
  --sand:       #F0F0F0;
  --white:      #FFFFFF;
  --text:       #000000;
  --text-muted: #222222;
  --border:     #000000;
  --teal:       #005A4A;
  --teal-light: #007A64;
  --teal-pale:  #D0EDE8;
  --orange:     #C04000;
  --orange-dark:#A03000;
  --shadow-sm:  0 0 0 2px #000;
  --shadow-md:  0 0 0 2px #000;
  --shadow-lg:  0 0 0 3px #000;
}
html.hc .nav-header { border-bottom: 2px solid #000; }
html.hc .btn { border: 2px solid currentColor !important; }
html.hc .program-card,
html.hc .volunteer-card,
html.hc .event-card,
html.hc .blog-card,
html.hc .team-card,
html.hc .testimonial-card { border: 2px solid #000 !important; }
html.hc a:focus,
html.hc button:focus { outline: 3px solid #000 !important; outline-offset: 3px !important; }
html.hc .impact-section { background: none; }
html.hc .impact-bg { background: #005A4A; }
html.hc .hero-overlay { background: rgba(0,0,0,0.75); }

/* Third theme toggle state */
.theme-toggle[data-state="hc"] .t-moon { display: none; }
.theme-toggle[data-state="hc"] .t-sun  { display: none; }
.theme-toggle[data-state="hc"] .t-hc   { display: block; }
.theme-toggle .t-hc { display: none; }
html.hc .theme-track { background: #000; border-color: #000; }
html.hc .theme-thumb { background: #FFF; color: #000; transform: translateX(12px); }

/* ------ MOBILE BOTTOM NAV ------ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.mob-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.mob-nav-item.active { color: var(--teal); }
.mob-nav-item.mob-donate {
  background: var(--orange);
  color: white;
  border-radius: 50px;
  padding: 6px 16px;
}
.mob-nav-item.mob-donate:hover { background: var(--orange-dark); }
html.dark .mobile-bottom-nav { background: var(--white); border-top-color: var(--border); }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  /* Push main content up so it's not hidden behind the bottom nav */
  body { padding-bottom: 72px; }
  /* Toast shifts up too */
  .toast-container { bottom: 90px; }
}

/* ------ MOBILE TOUCH & INPUT FIXES ------ */
/* Prevent iOS font zoom on input focus */
input, select, textarea {
  font-size: max(16px, 1em) !important;
}
/* Better tap targets throughout */
.btn { min-height: 44px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
/* Tap highlight */
* { -webkit-tap-highlight-color: rgba(232,114,74,0.15); }
a, button { touch-action: manipulation; }
/* iOS momentum scrolling */
.testimonials-grid { -webkit-overflow-scrolling: touch; }
/* Better mobile spacing */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .page-hero { min-height: 260px; padding-bottom: 48px; }
}

/* ------ PREFERS REDUCED MOTION ------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .donor-wall-track { animation: none; }
  .city-bld-1, .city-bld-2, .city-bld-3, .city-star { animation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  .hero-image-bg { transform: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ------ PRINT STYLESHEET ------ */
@media print {
  .nav-header, .sticky-donate-bar, .mobile-bottom-nav,
  .hero-actions, .scroll-progress-bar, .toast-container,
  .modal, .modal-overlay, .exit-intent-modal, .exit-intent-overlay,
  .hero-play-btn, .theme-toggle, .hamburger,
  .newsletter-section, .site-footer .footer-social,
  .back-to-top { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; padding-bottom: 0 !important; }
  .site-footer { border-top: 2pt solid #000; padding: 16pt 0; }
  .footer-bottom { color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .btn::after { content: none !important; }
  .section { padding: 24pt 0; }
  .page-hero { min-height: auto; padding: 16pt 0; background: none !important; color: #000; }
  .page-hero-overlay { display: none; }
  .page-hero-title, .page-hero-sub { color: #000; }
  .breadcrumb a, .breadcrumb span { color: #555; }
  .intake-form, .volunteer-form, .donate-card { box-shadow: none; border: 1pt solid #ccc; }
  h1, h2, h3 { page-break-after: avoid; }
  .program-card, .event-card, .blog-card { break-inside: avoid; }
}

/* ------ 404 PAGE ------ */
.not-found-section {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.not-found-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.not-found-illustration { width: 200px; margin: 0 auto 40px; color: var(--border); }
.not-found-inner h1 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); margin-bottom: 16px; }
.not-found-inner p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; }
.not-found-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}
.not-found-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .2s;
  color: var(--text);
}
.not-found-link-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.not-found-link-card svg { color: var(--teal); flex-shrink: 0; }
.not-found-link-card strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.not-found-link-card span { font-size: 0.8rem; color: var(--text-muted); }
.not-found-search {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 24px;
}
.not-found-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}
.not-found-search input:focus { border-color: var(--teal); }
@media (max-width: 480px) {
  .not-found-links { grid-template-columns: 1fr; }
}

/* ------ ANNUAL REPORT ------ */
.report-hero {
  background: linear-gradient(160deg, #1A0C06 0%, #2D1A0A 35%, #0D2420 100%);
  padding: 120px 0 80px;
  text-align: center;
  color: white;
  position: relative;
}
.report-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.8rem); margin-bottom: 16px; }
.report-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 32px; }
.report-hero-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.report-year-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.founder-letter {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  padding: 64px 24px;
}
.founder-avatar-lg {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(232,114,74,.4);
}
.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding-left: 28px;
}
.founder-quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 0.6;
  color: var(--orange);
  opacity: 0.3;
  position: absolute;
  left: 0;
  top: 8px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.9rem;
}
.report-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sand);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.report-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.report-table tr:last-child td { border-bottom: 2px solid var(--text); font-weight: 700; }
.report-table .amount { text-align: right; font-variant-numeric: tabular-nums; }
.report-goal-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.report-goal-fill { height: 100%; background: var(--teal); border-radius: 4px; width: 0; transition: width 1s ease; }
.goal-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.goal-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.goal-card .goal-target { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
@media (max-width: 768px) {
  .founder-letter { grid-template-columns: 1fr; }
  .founder-avatar-lg { margin: 0 auto; }
}

/* ------ BLOG ARTICLE ------ */
.article-header { max-width: 760px; margin: 0 auto; padding: 48px 24px 32px; }
.article-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--teal-pale); color: var(--teal);
  padding: 3px 10px; border-radius: 50px;
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2; margin-bottom: 16px;
}
.article-subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.article-byline {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.85rem; color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #6B8FB5;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  flex-shrink: 0;
}
.article-hero-img {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
  aspect-ratio: 16/6;
  background: linear-gradient(135deg, #8B5E3C 0%, #5C3420 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 64px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 40px 0 16px; }
.article-pull-quote {
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-pull-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}
.article-cta-box {
  background: linear-gradient(135deg, var(--teal) 0%, #1A5247 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-cta-box p { color: rgba(255,255,255,.85); margin: 0; font-size: 0.95rem; }
.article-share {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.article-share h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}
.share-btn:hover { border-color: var(--teal); color: var(--teal); }
.share-btn svg { width: 16px; height: 16px; }
.article-author-card {
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 28px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-left: 24px;
  margin-right: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.article-org-avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.article-author-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.related-articles {
  background: var(--sand);
  padding: 64px 24px;
}
.related-articles h2 { text-align: center; font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-cta-box { flex-direction: column; }
  .article-author-card { flex-direction: column; }
}

/* ============================================================
   DEMO FLOW — Processing state, demo notice, confirmation page
   ============================================================ */

/* ------ Demo notice in donate card ------ */
.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(42,127,111,.08);
  border: 1.5px solid rgba(42,127,111,.22);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--teal);
  line-height: 1.5;
}
.demo-notice svg { flex-shrink: 0; margin-top: 1px; }
.demo-notice strong { font-weight: 700; }
.test-card-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.test-card-hint code {
  background: var(--sand);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text);
}
html.dark .demo-notice { background: rgba(42,127,111,.12); border-color: rgba(42,127,111,.3); }
html.dark .test-card-hint code { background: var(--sand); color: var(--text); }

/* ------ Processing button state ------ */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@keyframes btn-pulse-bg {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}
.btn-donate.processing {
  background: var(--teal) !important;
  pointer-events: none;
  animation: btn-pulse-bg 1.4s ease-in-out infinite;
}
.spin-icon {
  display: inline-block;
  animation: btn-spin 0.75s linear infinite;
  vertical-align: middle;
}

/* ------ Confirmation page ------ */
.confirmation-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding-top: var(--nav-h);
}

.confirmation-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
}

.confirmation-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0; /* JS sets to 1 after populating */
  transition: opacity 0.4s ease;
}

.confirmation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
}

.confirmation-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 28px rgba(42,127,111,.35);
}
.confirmation-check svg { color: white; }

.confirmation-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.confirmation-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Receipt box */
.receipt-box {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 0;
  text-align: left;
  margin-bottom: 24px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .r-label { color: var(--text-muted); white-space: nowrap; }
.receipt-row .r-value { font-weight: 600; text-align: right; }
.receipt-row.receipt-total {
  background: var(--teal-pale);
  font-size: 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-bottom: none;
}
.receipt-row.receipt-total .r-label { color: var(--teal); font-weight: 600; }
.receipt-row.receipt-total .r-value { color: var(--teal); font-size: 1.1rem; }

.confirm-num {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--teal);
}

/* Impact callout */
.rcpt-impact-box {
  background: var(--teal-pale);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  text-align: left;
}
.rcpt-impact-box h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}
.rcpt-impact-box p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

/* Recurring note */
.rcpt-recurring-note {
  display: none;
  background: rgba(232,114,74,.08);
  border: 1px solid rgba(232,114,74,.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--orange-dark);
  margin-bottom: 20px;
  text-align: left;
}

/* Tax note */
.rcpt-tax-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
  text-align: left;
  padding: 0 4px;
}
.rcpt-tax-note strong { color: var(--text); }

/* What's next */
.rcpt-next-steps {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 28px;
  text-align: left;
}
.rcpt-next-steps h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.rcpt-next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.rcpt-next-step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sand);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  color: var(--teal);
  margin-top: 1px;
}

/* Actions */
.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Social share row */
.rcpt-share {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.rcpt-share p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Minimal nav for confirmation */
.confirm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,249,247,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.confirm-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
html.dark .confirmation-card { background: var(--white); }
html.dark .receipt-box { background: var(--sand); }
html.dark .confirm-nav { background: rgba(17,16,9,.95); }

@media (max-width: 600px) {
  .confirmation-card { padding: 36px 24px; }
  .receipt-row { flex-direction: column; gap: 2px; }
  .receipt-row .r-value { text-align: left; }
  .confirmation-actions { flex-direction: column; }
  .confirmation-actions .btn { width: 100%; justify-content: center; }
}
