/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2b2b2b;
  background-color: #f8f9fa;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1b2a4a;
}

.site-logo {
  display: block;
  min-width: 120px;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2e6b40;
}

.btn-donate {
  background-color: #d9534f;
  color: #ffffff;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.btn-donate:hover {
  background-color: #c9302c;
}

.btn-donate-heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: #d9534f;
  border: 2px solid #d9534f;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(217, 83, 79, 0.15);
  transition: all 0.2s ease-in-out;
}

.btn-donate-heart:hover {
  background-color: #d9534f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 83, 79, 0.25);
}

.heart-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger, 
.hamburger::before, 
.hamburger::after {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #1e293b;
  border-radius: 2px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.hamburger::before, 
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(rgba(27, 42, 74, 0.75), rgba(27, 42, 74, 0.75)), 
              url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  max-width: 800px;
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  color: #e2e8f0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
}

.hero-buttons a,
.hero-buttons button {
  width: 80%;
  max-width: 280px;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
}

.btn-primary {
  background-color: #2e6b40;
  color: white;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================
   4. STATS & TRUST/PARTNERS
   ========================================== */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background-color: #1b2a4a;
  color: white;
  padding: 2.5rem 10%;
  text-align: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stats-bar h3 {
  font-size: 2.5rem;
  color: #e6b800;
}

.stats-bar p {
  color: #cbd5e1;
  font-weight: 500;
}

.partners-section {
  background-color: #f8fafc;
  padding: 40px 20px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.partners-container {
  max-width: 1100px;
  margin: 0 auto;
}

.partners-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: center;
}

.partner-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.partner-logo-text {
  font-weight: 600;
  color: #334155;
  font-size: 0.95rem;
}

/* ==========================================
   5. PROGRAMS SECTION
   ========================================== */
.programs-section {
  padding: 4rem 8%;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #1b2a4a;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
}

/* KEY INITIATIVES 5-COLUMN SINGLE-ROW LAYOUT */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 3rem;
}

.program-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-content {
  padding: 12px 10px;
}

.card-content h3 {
  color: #1b2a4a;
  font-size: 1rem;
  margin-bottom: 8px;
}

.card-content p {
  color: #475569;
  font-size: 0.825rem;
  line-height: 1.4;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2e6b40;
  font-weight: 700;
  text-decoration: none;
}

/* RESPONSIVE FALLBACK FOR TABLETS & MOBILE */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

/* ==========================================
   6. ABOUT SECTION
   ========================================== */
.about-section {
  padding: 80px 20px;
  background-color: #f8fafc;
  text-align: center;
}

.about-container {
  max-width: 850px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2.4rem;
  color: #1e293b;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-content p {
  color: #475569;
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 18px;
  text-align: left;
}

.about-content .lead-text {
  font-size: 1.25rem;
  color: #2e6b40;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-content p strong {
  color: #1b2a4a;
}

.thank-you-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1b2a4a;
  text-align: center !important;
  margin-top: 10px;
}

.mitochondria-tag {
  text-align: center !important;
  color: #64748b;
  font-size: 0.95rem;
  margin-top: -5px;
}

.about-cta {
  text-align: center;
  margin-top: 30px;
}

/* RESPONSIVE ADJUSTMENTS FOR ABOUT */
@media (max-width: 768px) {
  .about-section {
    padding: 50px 16px;
  }

  .about-content h2 {
    font-size: 1.9rem;
  }

  .about-content .lead-text {
    font-size: 1.1rem;
  }

  .about-content p {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}

/* ==========================================
   7. TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 40px 30px;
  margin: 30px 0 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: opacity 0.3s ease;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: #64748b;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dot.active {
  background-color: #0284c7;
}

/* ==========================================
   8. CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 5rem 8%;
  background-color: #f1f5f9;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 400px;
}

.contact-info h2 {
  font-size: 2.2rem;
  color: #1b2a4a;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #475569;
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: #1b2a4a;
}

.contact-form-card {
  flex: 1 1 400px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-form-card h3 {
  color: #1b2a4a;
  margin-bottom: 1.2rem;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form-card button {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* ==========================================
   9. FOOTER SECTION
   ========================================== */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-logo {
  height: 45px;
  width: auto;
  max-width: 200px;
  display: block;
  margin-bottom: 15px;
  object-fit: contain;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.85rem;
}

.legal-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  margin: 0 6px;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================
   10. MODALS (DONATION & PROGRAM)
   ========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

.donation-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.donation-tier {
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donation-tier.active,
.donation-tier:hover {
  border-color: #0284c7;
  background-color: #e0f2fe;
  color: #0284c7;
}

.impact-box {
  background-color: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 8px 12px;
  border-radius: 5px;
  margin: 10px 0 15px 0;
  text-align: left;
}

#impactDescription {
  font-size: 0.8rem;
  color: #15803d;
  margin: 0;
  line-height: 1.35;
}

#impactDescription strong {
  color: #166534;
}

.custom-amount-input {
  margin-bottom: 20px;
  text-align: left;
}

.custom-amount-input label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.custom-amount-input input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-donate-now {
  width: 100%;
  padding: 12px;
}

.payment-apps-divider {
  text-align: center;
  margin: 20px 0 15px;
  position: relative;
}

.payment-apps-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e2e8f0;
  z-index: 1;
}

.payment-apps-divider span {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

.payment-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.app-handle {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
}

.app-card.sendwave { background-color: #111827; color: #ffffff; }
.app-card.cashapp  { background-color: #00d632; color: #ffffff; border-color: #00d632; }
.app-card.venmo    { background-color: #008cff; color: #ffffff; border-color: #008cff; }
.app-card.zelle    { background-color: #7414ca; color: #ffffff; border-color: #7414ca; }

.program-modal-content {
  max-width: 600px;
  text-align: left;
  padding: 30px;
}

.modal-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: -5px;
  margin-bottom: 15px;
}

.program-modal-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 15px 0;
}

.program-modal-content h3 {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.program-modal-content ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.program-modal-content li {
  margin-bottom: 10px;
  color: #334155;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================
   11. MEDIA QUERIES (RESPONSIVE FIXES)
   ========================================== */
@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
  }
  .hero-buttons a,
  .hero-buttons button {
    width: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 100%);
    background-color: #ffffff;
    box-shadow: -4px 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    font-size: 1.1rem;
  }

  .btn-donate-heart {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .stats-bar {
    flex-direction: column;
    align-items: center;
  }

  .site-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
  }

  .footer-logo {
    height: 75px;
    width: auto;
  }
}