/* =========================================
   1. CSS Variables & Theme (Amber & Stone)
   ========================================= */
:root {
  /* Amber Palette */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  
  /* Stone Palette */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================
   2. Base Reset & Typography
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Preserved from index.css[cite: 15] */
}

body {
  font-family: var(--font-sans);
  background-color: var(--stone-50);
  color: var(--stone-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* =========================================
   3. Layout Utilities
   ========================================= */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.hidden { display: none !important; }
.text-center { text-align: center; }

/* =========================================
   4. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--amber-600);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background-color: var(--amber-700);
  transform: scale(1.05);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* =========================================
   5. Navbar
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: all 0.5s ease;
}

.navbar.scrolled {
  background-color: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.navbar.scrolled .nav-logo { color: var(--stone-800); }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--amber-600);
  color: white;
  border-radius: 50%;
}

.logo-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--amber-200);
}

.navbar.scrolled .logo-subtitle { color: var(--amber-700); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-100);
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a { color: var(--stone-600); }
.nav-links a:hover { color: var(--amber-500); }

.mobile-only { display: none; color: white; }
.navbar.scrolled .mobile-only { color: var(--stone-800); }

@media (max-width: 1024px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .logo-subtitle { display: none; }
}

/* =========================================
   6. Hero Section
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,25,23,0.7), rgba(28,25,23,0.6), rgba(28,25,23,0.8));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding: 5rem 1rem 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  color: var(--amber-100);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 2.25rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight { color: var(--amber-300); }

.hero-content .subtitle {
  font-size: 1.125rem;
  color: var(--stone-200);
  margin-bottom: 2.5rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-content h1 { font-size: 3rem; }
  .button-group { flex-direction: row; }
}

@media (min-width: 1024px) {
  .hero-content h1 { font-size: 3.75rem; }
}

/* =========================================
   7. Impact Counter
   ========================================= */
.impact-counter-section {
  position: relative;
  z-index: 20;
  margin-top: -3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(28, 25, 23, 0.1);
  overflow: hidden;
  border: 1px solid var(--stone-100);
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--stone-100);
  border-bottom: 1px solid var(--stone-100);
}

.stat-card h3 {
  font-size: 1.5rem;
  color: var(--stone-800);
}

.stat-card p {
  font-size: 0.75rem;
  color: var(--stone-500);
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card { border-bottom: none; font-size: 2.25rem; }
  .stat-card:last-child { border-right: none; }
}

/* =========================================
   8. Donation Form
   ========================================= */
.form-section {
  padding: 6rem 1rem;
  background: linear-gradient(to bottom, var(--stone-50), rgba(254, 243, 199, 0.3));
}

.card-form {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--stone-200);
  background-color: var(--stone-50);
  color: var(--stone-800);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--amber-500);
}

/* =========================================
   9. Footer
   ========================================= */
.site-footer {
  background-color: var(--stone-950);
  color: var(--stone-400);
  padding: 4rem 1rem 3rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
}

.footer-links li, .footer-contact li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--amber-500);
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--stone-800);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =========================================
   10. Animations (Preserved from index.css)
   ========================================= */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out forwards;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }


/* =========================================
   11. Section Utilities & Split Layouts
   ========================================= */
.section-padding {
  padding: 6rem 1rem;
}

.section-badge {
  display: inline-block;
  color: var(--amber-600);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-badge.color-amber {
  color: var(--amber-400);
}

.split-layout {
  display: grid;
  gap: 3rem;
}

.split-layout.align-center {
  align-items: center;
}

@media (min-width: 1024px) {
  .split-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.image-wrapper {
  position: relative;
}

.rounded-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  object-fit: cover;
}

/* Floating Stats on Images */
.floating-stat {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: white;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 16rem;
  display: none;
}

.floating-stat.dark {
  top: -1.5rem;
  bottom: auto;
  left: -1.5rem;
  right: auto;
  background: var(--amber-600);
  color: white;
}

@media (min-width: 640px) {
  .floating-stat { display: block; }
}

.stat-large {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--amber-600);
}

.floating-stat.dark .stat-large {
  color: white;
}

.stat-small {
  font-size: 0.875rem;
  color: var(--stone-500);
  margin-top: 0.25rem;
}

/* =========================================
   12. Component Specifics (How to Help, Schools)
   ========================================= */
.quote-box {
  margin-top: 2rem;
  background-color: var(--amber-50);
  border-left: 4px solid var(--amber-500);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem;
  font-style: italic;
  font-weight: 500;
  color: var(--stone-700);
}

.help-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .help-grid { grid-template-columns: repeat(4, 1fr); } }

.help-card {
  background: var(--stone-50);
  border: 1px solid var(--stone-100);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
}

.help-card:hover {
  background: white;
  border-color: var(--amber-200);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.help-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--amber-100);
  color: var(--amber-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.help-card:hover .help-icon {
  background: var(--amber-600);
  color: white;
}

.checklist-box {
  background: rgba(41, 37, 36, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid var(--stone-700);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.checklist-title {
  color: var(--amber-300);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
}

@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--stone-200);
  font-size: 0.875rem;
}

.checklist i {
  color: var(--amber-400);
  background: rgba(217, 119, 6, 0.2);
  border-radius: 50%;
  padding: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

/* =========================================
   13. Modals & Widgets (DonateWidget)
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 28rem;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scale-in 0.3s ease-out forwards;
}

.modal-header {
  background: linear-gradient(to right, var(--amber-600), var(--amber-700));
  padding: 1.25rem 1.5rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 { font-size: 1.125rem; font-weight: 700; }
.modal-header p { font-size: 0.75rem; color: var(--amber-100); }
.close-donate { color: rgba(255, 255, 255, 0.8); }
.close-donate:hover { color: white; }

.modal-body { padding: 1.5rem; }

.qr-placeholder {
  width: 12rem;
  height: 12rem;
  background: var(--stone-100);
  border: 2px dashed var(--stone-300);
  border-radius: 1rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-400);
  font-size: 0.75rem;
}

.upi-box {
  background: var(--stone-50);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.upi-label { font-size: 0.75rem; color: var(--stone-400); margin-bottom: 0.25rem; }
.upi-id { font-family: monospace; font-weight: 600; color: var(--stone-800); }
.copy-btn { font-size: 0.875rem; color: var(--amber-600); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }
.copy-btn:hover { color: var(--amber-700); }

.modal-footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--stone-400);
  margin-top: 1.25rem;
}

.floating-donate {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  background: var(--amber-600);
  color: white;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(217, 119, 6, 0.4);
  transition: transform 0.3s ease;
}

.floating-donate:hover { transform: scale(1.05); }

.floating-donate .text-content { text-align: left; }
.floating-donate .small { display: block; font-size: 0.75rem; color: var(--amber-100); }
.floating-donate .large { display: block; font-size: 0.875rem; font-weight: 700; }

@media (max-width: 1024px) {
  .floating-donate {
    right: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    justify-content: center;
    padding: 1rem;
  }
}

/* =========================================
   14. Missing Section Styles
   ========================================= */
.timeline-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) { .timeline-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }

.timeline-step { display: flex; flex-direction: column; align-items: center; }
.step-circle {
  width: 6rem; height: 6rem; border-radius: 50%;
  background: white; border: 4px solid var(--amber-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: bold; color: var(--amber-600);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.timeline-step:hover .step-circle { border-color: var(--amber-400); transform: scale(1.1); }

.donation-tiers-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .donation-tiers-grid { grid-template-columns: repeat(3, 1fr); } }

.tier-card {
  background: var(--stone-50); border: 1px solid var(--stone-100);
  border-radius: 1rem; padding: 1.5rem; transition: all 0.3s ease;
}
.tier-card:hover { border-color: var(--amber-200); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.tier-amount { font-size: 1.875rem; font-weight: bold; color: var(--amber-600); margin-bottom: 0.5rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item { position: relative; border-radius: 1rem; overflow: hidden; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 14rem; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
@media (min-width: 1024px) { .gallery-item.large { grid-column: span 2; } }

.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,25,23,0.7), transparent);
  opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: white; font-size: 0.875rem; font-weight: 500; text-align: left; }

.lightbox-content-wrapper { max-width: 48rem; width: 100%; }
.lightbox-content-wrapper img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 1rem; }
.lightbox-caption { color: white; text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.lightbox-btn { position: absolute; color: rgba(255,255,255,0.8); z-index: 10; padding: 1rem; }
.lightbox-btn:hover { color: white; }
.lightbox-btn.top-right { top: 1rem; right: 1rem; }
.lightbox-btn.left { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-btn.right { right: 1rem; top: 50%; transform: translateY(-50%); }

.closing-section { background: linear-gradient(to bottom, rgba(254, 243, 199, 0.3), var(--stone-900)); }
.closing-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .closing-grid { grid-template-columns: repeat(2, 1fr); } }

.closing-card {
  background: rgba(41, 37, 36, 0.5); backdrop-filter: blur(4px);
  border: 1px solid var(--stone-700); border-radius: 1rem; padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem; text-align: left; transition: border-color 0.3s ease;
}
.closing-card:hover { border-color: rgba(217, 119, 6, 0.5); }
.closing-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: rgba(217, 119, 6, 0.2); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.closing-card p { color: var(--stone-200); font-size: 0.875rem; line-height: 1.5; }
.closing-quote { font-size: 1.25rem; color: var(--amber-200); }
@media (min-width: 640px) { .closing-quote { font-size: 1.5rem; } }