/* Global Typography Improvements */
:root {
  --brand: #dc2626; /* red-600 */
  --brand-dark: #b91c1c; /* red-700 */
  --brand-light: #fca5a5; /* red-300 */
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #374151;
  --muted: #6b7280;
  --card: #f7f7f7;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-large: 0 10px 30px rgba(0,0,0,0.15);
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: "Georgia", serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Header */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  background: rgba(220, 38, 38, 0.95);
}
.container {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand a { color: #fff; text-decoration: none; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 16px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.nav > ul > li { position: relative; }
.nav a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 6px; display: inline-block; transition: background 0.2s ease; }
.nav a:hover { background: rgba(255,255,255,0.12); }

/* Dropdowns */
.dropdown > a:after { content: " \25BE"; font-size: 0.8em; margin-left: 4px; }
.nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  color: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  z-index: 9999;
  display: none !important;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav > ul > li.dropdown:hover > .dropdown-menu { 
  display: block !important; 
  opacity: 1;
  transform: translateY(0);
}
.nav > ul > li.dropdown:nth-last-child(-n+2) > .dropdown-menu {
  left: auto;
  right: 0;
}
.dropdown-menu a { color: var(--text); display: block; padding: 8px 10px; border-radius: 6px; transition: background 0.2s ease; }
.dropdown-menu a:hover { background: #f1f5f9; }

/* CTA Button */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: #333; }
.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-top: 0;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }
h5 { font-size: 1.125rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

/* Enhanced Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
/* Banner / Hero */
.banner-area {
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
  background: transparent;
  height: 70vh;
  min-height: 500px;
}
.header-text { position: absolute; top: 50%; transform: translateY(-55%); text-align: center; width: 100%; }
.header-text .hero-panel {
  background: transparent;
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  animation: fadeInUp 1s ease-out;
  max-width: 700px;
  margin: 0 auto;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-text h1 { 
  color: var(--brand); 
  margin: 0 0 1.5rem; 
  font-size: 3rem; 
  line-height: 1.2;
  text-shadow: none;
  font-weight: 700;
  font-family: var(--font-heading);
}
.header-text p { 
  color: var(--text-light); 
  margin: 0 0 2rem; 
  font-size: 1.25rem;
  text-shadow: none;
  line-height: 1.8;
  font-weight: 400;
}

/* Home Sections */
.home-sections {
  margin: 40px auto;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.section-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  width: 240px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.section-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.section-card a { text-decoration: none; color: var(--brand); font-weight: 700; font-size: 1.08rem; }
.section-card p { color: var(--muted); margin-top: 6px; font-size: 0.98rem; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.footer-col h5 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.footer-col a { color: #cbd5e1; text-decoration: none; display: block; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 24px; font-size: 0.92rem; color: #94a3b8; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hide-on-mobile { display: none; }

.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 28px; }

/* Inner Pages */
.page { padding: 28px 0; }
.page h1, .page h2, .page h3, .page h4 { margin-top: 0; }

/* Content Images */
.content-img-right { width: 340px; max-width: 40%; height: auto; float: right; margin: 0 0 10px 20px; }
@media (max-width: 640px) {
  .content-img-right { float: none; max-width: 100%; width: 100%; margin: 10px 0; }
}

/* Forms */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }

/* Cards with images */
.section-card img { border-radius: 8px; width: 100%; height: auto; margin-bottom: 10px; border: 1px solid #fff; }

/* Hero Buttons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-buttons .btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Enhanced Page Sections */
.page-section {
  padding: 80px 0;
}
.page-section.bg-light {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

/* Enhanced Statistics */
.impact-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 2rem;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  line-height: 1;
}
.stat-label {
  font-size: 1.125rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.value-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--card), #ffffff);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.value-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.value-item:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-large);
}
.value-item:hover:before {
  transform: scaleX(1);
}
.value-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.value-item:hover .value-icon {
  transform: scale(1.1);
}
.value-item h3 {
  color: var(--brand);
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
}
.value-item p {
  color: var(--text-light);
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Enhanced Initiatives Grid */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.initiative-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}
.initiative-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-large);
}
.initiative-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.initiative-card:hover .initiative-icon {
  transform: scale(1.1) rotate(5deg);
}
.initiative-card h3 {
  color: var(--brand);
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
}
.initiative-card p {
  color: var(--text-light);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}
.btn-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
  font-size: 1rem;
}
.btn-link:after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn-link:hover {
  color: var(--brand-dark);
}
.btn-link:hover:after {
  transform: translateX(4px);
}

/* Fundraiser CTA */
.fundraiser-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Stories Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.story-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.story-card blockquote {
  margin: 0 0 16px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}
.story-card cite {
  color: var(--muted);
  font-weight: 600;
  font-style: normal;
}

/* Join Grid */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.join-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.join-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.join-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.join-card h3 {
  color: var(--brand);
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.join-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

/* Connection Options */
.connection-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.newsletter-form h3,
.contact-quick h3 {
  color: var(--brand);
  margin: 0 0 16px;
  font-size: 1.3rem;
}
.newsletter-form p,
.contact-quick p {
  color: var(--muted);
  margin: 0 0 20px;
}
.newsletter-form form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--brand);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav > ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav > ul > li {
    width: 100%;
  }
  
  .nav a {
    display: block;
    padding: 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    display: block !important;
    background: rgba(255,255,255,0.1);
    margin-top: 0;
    padding-left: 20px;
  }
  
  .dropdown-menu a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .btn-primary.hide-on-mobile {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }
  
  .impact-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .values-grid,
  .initiatives-grid,
  .join-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    justify-content: center;
  }
  .fundraiser-cta {
    justify-content: center;
  }
  .header-text h1 {
    font-size: 2rem;
  }
  .header-text p {
    font-size: 1rem;
  }
  .header-text .hero-panel {
    padding: 30px 20px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: var(--shadow-hover);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enhanced Footer */
.site-footer { 
  background: linear-gradient(135deg, #0f172a, #1e293b); 
  color: #cbd5e1; 
  padding: 60px 0 30px; 
  margin-top: 48px; 
  position: relative;
  overflow: hidden;
}
.site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.footer-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 40px; 
  margin-bottom: 40px;
}
.footer-col h5 { 
  color: #fff; 
  margin: 0 0 20px; 
  font-size: 1.1rem;
  position: relative;
}
.footer-col h5:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brand);
}
.footer-col a { 
  color: #cbd5e1; 
  text-decoration: none; 
  display: block; 
  padding: 8px 0; 
  transition: all 0.2s ease;
  position: relative;
}
.footer-col a:hover { 
  color: #fff; 
  padding-left: 8px;
}
.footer-col a:before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.2s ease;
}
.footer-col a:hover:before {
  left: -15px;
  opacity: 1;
}
.footer-bottom { 
  text-align: center; 
  margin-top: 40px; 
  font-size: 0.92rem; 
  color: #94a3b8; 
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.2s ease;
}
.social-links a:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: #f8fafc;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-list a:hover {
  color: var(--brand);
}
.breadcrumb-list .separator {
  color: var(--muted);
}
.breadcrumb-list .current {
  color: var(--brand);
  font-weight: 600;
}
