/* ===== Theme ===== */
:root {
  --gold: #d4a853;
  --gold-dark: #b8923f;
  --green: #1a5d3a;
  --green-dark: #0f3d25;
  --blue: #1a2744;
  --midnight: #0d1321;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #5f6b76;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --nav-h: 76px;
  --font-en: 'Cormorant Garamond', Georgia, serif;
  --font-en-head: 'Playfair Display', Georgia, serif;
  --font-ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.js-pending body { opacity: 0; }

body {
  font-family: var(--font-en);
  font-size: 1.2rem;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  transition: opacity 0.2s;
}

h1, h2, h3, h4 {
  font-family: var(--font-en-head);
  font-weight: 600;
  line-height: 1.3;
  color: var(--green);
}

a { color: inherit; text-decoration: none; transition: all 0.25s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Urdu uses Nastaliq, which needs taller line boxes */
html[lang="ur"] body { font-family: var(--font-ur); font-size: 1.05rem; line-height: 2.3; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4,
html[lang="ur"] .btn, html[lang="ur"] .nav-menu a {
  font-family: var(--font-ur);
  line-height: 2;
}
html[lang="ur"] .lang-toggle { font-family: var(--font-en-head); line-height: 1.4; }
html[lang="en"] .lang-toggle { font-family: var(--font-ur); line-height: 2; padding-block: 0; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; width: 100%; }
.section { padding: 80px 0; }
.section--alt { background: var(--white); }
.section--dark { background: linear-gradient(135deg, var(--midnight), var(--blue)); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--gold); }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.4rem; display: inline-block; position: relative; padding-bottom: 14px; }
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 50%;
  width: 80px; height: 3px; background: var(--gold); border-radius: 2px;
  transform: translateX(-50%);
}
html[dir="rtl"] .section-title h2::after { transform: translateX(50%); }
.section-title p { color: var(--text-light); margin-top: 14px; }
.section--dark .section-title h2 { color: var(--gold); }
.section--dark .section-title p { color: rgba(255, 255, 255, 0.75); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 50px; border: 2px solid transparent;
  font-family: var(--font-en-head); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--midnight); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--gold); color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--midnight); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; inset-inline: 0; height: var(--nav-h); z-index: 1000;
  background: var(--midnight); border-bottom: 2px solid var(--gold);
}
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--gold); min-width: 0; }
.nav-logo { height: 58px; width: auto; flex-shrink: 0; }
.hero-logo { height: 190px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5)); }
.footer-logo { height: 80px; width: auto; margin-bottom: 12px; }
@media (max-width: 600px) { .hero-logo { height: 140px; } .nav-brand span { font-size: 0.95rem; } }
.nav-brand span { font-family: var(--font-en-head); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
html[lang="ur"] .nav-brand span { font-family: var(--font-ur); font-size: 1rem; line-height: 1.8; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a { display: block; padding: 8px 16px; border-radius: 30px; color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(212, 168, 83, 0.18); color: var(--gold); }
.nav-menu a.nav-cta { background: var(--gold); color: var(--midnight); }
.nav-menu a.nav-cta:hover { background: var(--gold-dark); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
  padding: 4px 16px; border-radius: 30px; cursor: pointer; font-size: 1rem; font-weight: 700;
}
.lang-toggle:hover { background: var(--gold); color: var(--midnight); }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: var(--nav-h); inset-inline: 0; flex-direction: column; align-items: stretch;
    background: var(--midnight); padding: 12px 24px 20px; gap: 4px;
    border-bottom: 2px solid var(--gold); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { text-align: start; border-radius: 10px; }
}

/* ===== Hero & page headers ===== */
.hero {
  min-height: 78vh; display: flex; align-items: center; text-align: center; color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 168, 83, 0.15), transparent 45%),
    linear-gradient(135deg, var(--midnight) 0%, var(--blue) 50%, var(--green-dark) 100%);
}
.hero .bismillah { font-family: var(--font-ur); color: var(--gold); font-size: 1.8rem; margin-bottom: 10px; line-height: 2.2; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 14px; }
.hero p { font-size: 1.35rem; max-width: 760px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.88); }
.hero .location { color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.page-header {
  text-align: center; color: var(--white); padding: 70px 24px;
  background: linear-gradient(135deg, var(--midnight), var(--blue) 60%, var(--green-dark));
}
.page-header h1 { color: var(--gold); font-size: 2.8rem; }
.page-header p { color: rgba(255, 255, 255, 0.85); font-size: 1.25rem; margin-top: 8px; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px; text-align: center;
  box-shadow: var(--shadow-soft); border-top: 4px solid var(--gold);
}
.section--alt .card { background: var(--cream); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; background: var(--green); color: var(--gold);
}
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--text-light); }

/* ===== Split layout ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-visual {
  min-height: 340px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 7rem; color: var(--gold); box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}
.split h2 { font-size: 2.2rem; margin-bottom: 16px; }
.split p { margin-bottom: 14px; }
.check-list li { padding-block: 4px; }
.check-list i { color: var(--gold-dark); margin-inline-end: 10px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ===== News ===== */
.news-list { display: grid; gap: 24px; max-width: 900px; margin-inline: auto; }
.news-card {
  display: flex; gap: 24px; background: var(--white); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft); border-inline-start: 5px solid var(--gold);
}
.section--alt .news-card { background: var(--cream); }
.news-date {
  flex: 0 0 120px; text-align: center; background: var(--green); color: var(--gold);
  border-radius: 12px; padding: 12px 8px; font-weight: 700; align-self: flex-start;
}
.news-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.news-source { color: var(--text-light); font-size: 0.95rem; text-align: center; margin-top: 30px; }
@media (max-width: 600px) { .news-card { flex-direction: column; } .news-date { flex-basis: auto; } }

/* ===== Leadership ===== */
.person-card { max-width: 760px; margin: 0 auto 28px; display: flex; gap: 24px; align-items: center; text-align: start;
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.person-card .avatar { flex: 0 0 84px; height: 84px; border-radius: 50%; background: var(--green); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.person-card h3 { font-size: 1.4rem; }
.person-card .role { color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
@media (max-width: 600px) { .person-card { flex-direction: column; text-align: center; } }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 40px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 24px;
  border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.contact-item .icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.contact-item h4 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-item a:hover { color: var(--gold-dark); }
.map-frame { width: 100%; height: 400px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Donations ===== */
.bank-card { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-soft); border-top: 4px solid var(--gold); }
.bank-card h3 { font-size: 1.5rem; margin-bottom: 18px; text-align: center; }
.bank-card h3 i { color: var(--gold-dark); margin-inline-end: 8px; }
.bank-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { font-weight: 700; color: var(--green); }
.bank-row dd { margin: 0; word-break: break-word; }
.bank-iban { font-weight: 700; letter-spacing: 0.04em; margin-inline-end: 12px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 14px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--gold); font: inherit; font-size: 0.95rem; cursor: pointer; }
.copy-btn:hover { background: var(--green-dark); }
.bank-note { margin-top: 18px; color: var(--text-light); text-align: center; font-size: 0.98rem; }
@media (max-width: 600px) { .bank-row { grid-template-columns: 1fr; gap: 4px; } }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta h2 { font-size: 2.4rem; margin-bottom: 12px; }
.cta p { max-width: 700px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.85); }

/* ===== Footer ===== */
.footer { background: var(--midnight); color: rgba(255, 255, 255, 0.8); padding: 60px 0 0; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer h3, .footer h4 { color: var(--gold); margin-bottom: 14px; }
.footer li { padding-block: 3px; }
.footer a:hover { color: var(--gold); }
.footer i { color: var(--gold); margin-inline-end: 8px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold); }
.footer-social a:hover { background: var(--gold); color: var(--midnight); }
.footer-social i { margin: 0; color: inherit; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; text-align: center; font-size: 0.95rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-title h2, .page-header h1, .cta h2 { font-size: 1.9rem; }
}
