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

:root {
  --green: #2D7A4C;
  --green-dark: #1f5a37;
  --green-light: #e8f5ee;
  --gold: #C8A165;
  --gold-dark: #a67c45;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #fff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--green);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-title { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.2; }
.logo-sub { display: block; font-size: 11px; color: var(--text-light); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--text); }
.main-nav a:hover, .main-nav a.active { background: var(--green-light); color: var(--green); }

.btn-donate {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.btn-donate:hover { background: var(--gold-dark) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ';
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font-size: 18px; opacity: 0.25; white-space: nowrap;
}

.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: clamp(16px, 2vw, 20px); opacity: 0.9; max-width: 600px; margin: 0 auto 36px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: #f9fafb; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(26px, 4vw, 38px); color: var(--text); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 17px; max-width: 580px; margin: 0 auto; }

.section-label {
  display: inline-block; background: var(--green-light); color: var(--green);
  font-size: 13px; font-weight: 600; padding: 4px 14px; border-radius: 20px;
  margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ===== STATS ===== */
.stats-bar { background: var(--green); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 42px; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 6px; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.card {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  padding: 28px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--green); }

.card-icon {
  background: var(--green-light);
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--green); margin-bottom: 20px;
}

.card-body { padding: 0; }
.card-body h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.card-body p { color: var(--text-light); font-size: 15px; line-height: 1.6; }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-image-placeholder { background: var(--green-light); height: 380px; display: flex; align-items: center; justify-content: center; font-size: 80px; border-radius: var(--radius); }

/* ===== HADITH QUOTE ===== */
.hadith-section { background: var(--green); color: #fff; padding: 60px 0; text-align: center; }
.hadith-arabic { font-size: clamp(20px, 3vw, 28px); margin-bottom: 16px; opacity: 0.9; direction: rtl; }
.hadith-text { font-size: clamp(16px, 2vw, 20px); font-style: italic; max-width: 700px; margin: 0 auto 12px; }
.hadith-source { font-size: 14px; opacity: 0.7; color: var(--gold); }

/* ===== DONATE SECTION ===== */
.donate-section { background: linear-gradient(135deg, #fff9f0, #fff); }
.donate-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 48px; text-align: center; max-width: 600px; margin: 0 auto; border-top: 4px solid var(--gold); }
.donate-card h2 { font-size: 30px; margin-bottom: 12px; }
.donate-card p { color: var(--text-light); margin-bottom: 28px; }
.donate-amounts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.donate-amount {
  padding: 10px 24px; border: 2px solid var(--border); border-radius: 8px;
  font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.2s; background: #fff;
}
.donate-amount:hover, .donate-amount.active { border-color: var(--gold); background: #fff9f0; color: var(--gold-dark); }

.zeffy-btn {
  padding: 16px 10px; border: 2px solid var(--green); border-radius: 10px;
  font-weight: 700; font-size: 20px; cursor: pointer; transition: all 0.2s;
  background: #fff; color: var(--green); font-family: 'Poppins', sans-serif;
}
.zeffy-btn:hover { background: var(--green); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45,122,76,0.25); }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--green); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.page-hero p { opacity: 0.85; margin-top: 10px; font-size: 17px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 22px; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item-icon { width: 44px; height: 44px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item-text h4 { font-size: 14px; color: var(--text-light); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item-text p, .contact-item-text a { font-size: 16px; font-weight: 500; color: var(--text); }

.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 15px; transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ===== MAP ===== */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 48px; }
.map-wrap iframe { width: 100%; height: 320px; border: none; display: block; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 48px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ===== EVENTS ===== */
.event-card { display: flex; gap: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; transition: transform 0.2s; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.event-date { background: var(--green); color: #fff; border-radius: 10px; padding: 14px 18px; text-align: center; min-width: 72px; flex-shrink: 0; }
.event-date .day { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.event-info h3 { font-size: 20px; margin-bottom: 8px; }
.event-info p { color: var(--text-light); font-size: 15px; }
.event-tag { display: inline-block; background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-top: 10px; }

/* ===== FOOTER ===== */
.site-footer { background: #111827; color: #d1d5db; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col .logo-title { color: #fff; }
.footer-col .logo-sub { color: #9ca3af; }
.footer-col .logo-icon-img { width: 40px; height: 40px; }
.footer-col p { font-size: 14px; margin-top: 14px; line-height: 1.7; color: #9ca3af; }
.charity-no { color: var(--gold) !important; font-weight: 500; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9ca3af; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address { font-style: normal; }
.footer-col address p { margin-bottom: 8px; }
.footer-col address a { color: #9ca3af; font-size: 14px; }
.footer-col address a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1f2937; margin-top: 40px; padding: 20px 0; text-align: center; font-size: 13px; color: #6b7280; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: #fff;
    padding: 16px 24px; border-bottom: 2px solid var(--green);
    box-shadow: var(--shadow); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }
  .btn-donate { margin-left: 0 !important; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .hero { padding: 60px 0; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; gap: 16px; }
}
