/* ==========================================================================
   NEVYA - Design System & Modern Responsive Styles
   2026 Modern Fintech & Social-Impact Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Tokens */
  --color-primary: #0f766e;
  --color-primary-hover: #115e59;
  --color-primary-light: #ccfbf1;
  --color-primary-glow: rgba(15, 118, 110, 0.18);
  
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-accent-light: #fef3c7;
  
  /* Neutrals & Surfaces */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.85);
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  
  /* Typography */
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-bg: #fee2e2;
  --color-info: #0284c7;
  --color-info-bg: #e0f2fe;
  
  /* Elevation & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(15, 118, 110, 0.15);
  
  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--color-text-muted);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 760px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  cursor: pointer;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 200;
  box-shadow: -10px 0 25px rgba(0,0,0,0.15);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-links {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.drawer-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-links a.active {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 46px;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--color-primary-glow);
}

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-text-subtle);
}

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

.btn-outline-primary:hover {
  background: var(--color-primary-light);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  min-height: 52px;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(204, 251, 241, 0.5) 0%, rgba(248, 250, 252, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(254, 243, 199, 0.4) 0%, rgba(248, 250, 252, 0) 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.85rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-icon {
  color: var(--color-success);
}

/* Impact Counters (Live Impact Section) */
.impact-section {
  padding: 3rem 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.impact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  opacity: 0.8;
}

.impact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.impact-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.25rem;
}

.impact-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.impact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Cards & Layout Modules */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.3);
}

/* Case Discovery Grid */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
}

.case-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-category-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.badge-medical { background: #fee2e2; color: #b91c1c; }
.badge-education { background: #e0f2fe; color: #0369a1; }
.badge-food_crisis { background: #fef3c7; color: #b45309; }
.badge-elderly { background: #f3e8ff; color: #7e22ce; }
.badge-disability { background: #ccfbf1; color: #0f766e; }
.badge-other { background: #f1f5f9; color: #475569; }

.case-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.case-story {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-progress-wrap {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #0d9488);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-in-out;
}

.case-funding-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.case-funding-stats strong {
  color: var(--color-text-main);
}

/* Central Pool Info Box */
.pool-notice-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.pool-notice-icon {
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.pool-notice-text h4 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: #115e59;
}

.pool-notice-text p {
  font-size: 0.88rem;
  color: #0f766e;
  line-height: 1.45;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--color-danger);
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-top: 0.35rem;
}

/* Donation Preset Grid */
.amount-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  min-height: 52px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.amount-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.amount-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* Switch & Checkbox */
.custom-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.switch-input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.switch-input:checked {
  background: var(--color-primary);
}

.switch-input:checked::after {
  transform: translateX(20px);
}

/* Financial Transparency Tables & Bars */
.transparency-summary-card {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-xl);
  margin-bottom: 2.5rem;
}

.transparency-summary-card h2,
.transparency-summary-card p {
  color: #ffffff;
}

.transparency-stat-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.t-stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.t-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.t-stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 0.35rem;
}

/* Contributors Rank List */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.rank-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.rank-item:nth-child(1) .rank-badge { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.rank-item:nth-child(2) .rank-badge { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.rank-item:nth-child(3) .rank-badge { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }

.rank-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.rank-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  margin-top: auto;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 360px;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .transparency-stat-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   BRAND LOGO IMAGE STYLES
   ========================================================================== */

.nav-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  max-width: 160px;
}

/* On very small screens use icon.png (handled via <picture> srcset) */
@media (max-width: 479px) {
  .nav-logo {
    height: 34px;
    max-width: 34px;
    object-position: center;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

/* Remove old text-badge when logo image is used */
.brand-badge {
  display: none;
}

.footer-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);  /* white logo on dark footer */
  opacity: 0.92;
}

/* ==========================================================================
   SECTION UTILITY HELPERS
   ========================================================================== */

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.impact-section-cta {
  text-align: center;
  margin-top: 2rem;
}

.section-cta-row {
  text-align: center;
  margin-top: 2.5rem;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--color-border);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
}

.case-pct {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.85rem;
}

.case-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.case-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   DRAWER & NAV REFINEMENTS
   ========================================================================== */

.drawer-icon {
  font-size: 1.1rem;
  display: inline-block;
  width: 24px;
  text-align: center;
}

.drawer-cta-stack {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.nav-donate-btn {
  white-space: nowrap;
}

/* ==========================================================================
   HUMAN IMPACT / STORYTELLING SECTION
   ========================================================================== */

.story-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}

.story-image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.story-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-border);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.story-image-card:hover .story-img {
  transform: scale(1.04);
}

.story-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.25) 100%
  );
}

.story-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 1rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Second image card: hidden on mobile, shown on tablet+ */
.story-image-card--alt {
  display: none;
}

.story-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.story-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text-main);
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 0;
  font-style: italic;
}

.story-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.story-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.story-point-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-point div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.story-point strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.story-point span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   HOW NEVYA WORKS — 4-STEP SECTION
   ========================================================================== */

.how-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  position: relative;
}

.how-step {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.25);
}

.how-step-number {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.how-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.how-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.how-step-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.how-step-connector {
  display: none;
}

/* ==========================================================================
   ACTIVE CASES SECTION
   ========================================================================== */

.cases-section {
  padding: 5rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   TRANSPARENCY PREVIEW SECTION
   ========================================================================== */

.transparency-preview-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #115e59 60%, #0d4741 100%);
  position: relative;
  overflow: hidden;
}

.transparency-preview-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.transparency-preview-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.transparency-preview-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.transparency-preview-left .section-eyebrow {
  background: rgba(255,255,255,0.15);
  color: #ccfbf1;
}

.t-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.t-preview-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}

.t-preview-stat .t-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #99f6e4;
  margin-bottom: 0.35rem;
}

.t-preview-stat .t-stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.transparency-preview-right {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  color: #ffffff;
}

.t-trust-badge {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccfbf1;
  margin-bottom: 1.25rem;
}

.transparency-preview-right h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.transparency-preview-right p {
  color: #ccfbf1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.t-trust-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.t-trust-item {
  font-size: 0.88rem;
  color: #99f6e4;
  font-weight: 600;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta-section {
  padding: 5rem 0;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(15,118,110,0.25) 0%, transparent 70%);
}

.final-cta-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

.final-cta-subtext {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER BANNER SECTION
   ========================================================================== */

.footer-banner-section {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.footer-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.footer-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 30, 28, 0.88) 0%,
    rgba(15, 118, 110, 0.75) 100%
  );
}

.footer-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 1.25rem;
}

.footer-banner-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-banner-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-banner-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.footer-banner-text {
  color: #ccfbf1;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 520px;
}

.footer-banner-cta {
  min-width: 220px;
}

/* ==========================================================================
   FOOTER REFINEMENTS
   ========================================================================== */

.footer-brand-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

.footer-contact-link {
  color: #94a3b8;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.footer-contact-link:hover {
  color: #ffffff;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748b;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   STICKY MOBILE DONATE CTA
   ========================================================================== */

.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  display: none; /* shown via JS after scroll */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.sticky-mobile-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE RULES FOR NEW SECTIONS
   ========================================================================== */

@media (min-width: 640px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-image-card--alt {
    display: block;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "img1  text"
      "img2  text";
    gap: 1.5rem;
  }

  .story-image-card { grid-area: img1; }
  .story-image-card--alt { grid-area: img2; }
  .story-text-block { grid-area: text; }

  .transparency-preview-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-banner-heading {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .final-cta-heading {
    font-size: 2.75rem;
  }

  .story-section {
    padding: 6rem 0;
  }

  .how-section {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .how-steps {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .how-step-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-border), var(--color-primary-light));
  }

  .story-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-template-areas: "img1 text img2";
  }

  .transparency-preview-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }

  .sticky-mobile-cta {
    display: none !important;
  }
}

/* Show sticky CTA on mobile only — controlled by JS class */
@media (max-width: 1023px) {
  .sticky-mobile-cta.visible {
    display: block;
  }

  /* Add bottom padding to body so content isn't hidden behind sticky bar */
  body.sticky-cta-active {
    padding-bottom: 84px;
  }
}

