/* ===================================================================
   Irth-lil-Jannah — A Legacy for Jannah
   Palette: deep green #1a4a2e · gold #c9a84c · cream #faf7ef · white
   =================================================================== */

:root {
  --green-900: #0f2e1c;
  --green-800: #163d26;
  --green-700: #1a4a2e;   /* primary deep green */
  --green-600: #245c3b;
  --green-500: #2f7049;
  --gold-600: #b8923a;
  --gold-500: #c9a84c;    /* primary gold */
  --gold-300: #e0c987;
  --cream: #faf7ef;
  --cream-200: #f3ecdb;
  --white: #ffffff;
  --ink: #20271f;
  --ink-soft: #4f5a4c;
  --line: rgba(26, 74, 46, 0.12);

  --shadow-sm: 0 2px 8px rgba(15, 46, 28, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 46, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 46, 28, 0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-arabic: "Scheherazade New", "Amiri", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------- Reset ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-800);
}

p { margin: 0 0 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Honeypot — hidden from humans, tempting to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------- Buttons ---------------------------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--green-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }

.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-300); }

.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-600); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ----------------------- Header (banner + nav) ------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

/* --------------------------- Top banner ------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: filter 0.25s var(--ease);
}
.topbar:hover { filter: brightness(1.05); }
.topbar-icon { font-size: 1rem; line-height: 1; }
.topbar-cta {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 480px) {
  .topbar { font-size: 0.8rem; gap: 0.4rem; }
  .topbar-cta { display: none; }
}

/* --------------------------- Navbar ----------------------------- */
.navbar {
  padding: 1.1rem 0;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    padding 0.35s var(--ease);
}
.navbar.scrolled {
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.navbar.scrolled .brand { color: var(--green-700); }
.brand-mark { color: var(--gold-500); display: grid; place-items: center; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; }
.brand-sub {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--white);
  position: relative; transition: color 0.25s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-500); transition: width 0.3s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.navbar.scrolled .nav-links a:not(.btn) { color: var(--green-800); }
.nav-links a.btn { color: var(--green-900); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s;
}
.navbar.scrolled .nav-toggle span { background: var(--green-800); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--green-600) 0%, var(--green-700) 40%, var(--green-900) 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background: url("../img/pattern-gold.svg");
  background-size: 120px 120px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 100% at 50% 30%, #000 30%, transparent 85%);
  animation: drift 60s linear infinite;
}
.hero-glow {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.22) 0%, transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 7rem 0 4rem; }

.hero-arabic {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(2.8rem, 8.5vw, 5.4rem);
  color: #f0d99b;
  margin: 0 0 0.1rem;
  line-height: 1.6;
  /* Crisp dark shadow for definition — keeps each letter sharp on the hero. */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--gold-300);
  margin: 0.5rem 0 0;
}
.hero-tagline::before, .hero-tagline::after { content: "✦"; color: var(--gold-500); margin: 0 0.7rem; font-size: 0.8em; vertical-align: middle; }
.hero-lead {
  max-width: 620px; margin: 1.6rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions {
  margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px; z-index: 2;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; background: var(--gold-300); border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}

/* --------------------------- Sections --------------------------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-alt { background: var(--cream-200); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 0.7rem;
}
.eyebrow::before { content: "✦ "; }
.eyebrow-light { color: var(--gold-300); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

/* --------------------------- Cards ------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.about-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.about-grid .card { text-align: center; }
.about-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.5);
}
.card-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; display: grid; place-items: center;
  font-size: 1.8rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--cream-200), var(--cream));
  border: 1px solid var(--line);
}
.about-grid h3 { font-size: 1.3rem; }
.about-grid p { color: var(--ink-soft); margin: 0; }

.about-statement {
  margin-top: 3rem; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto;
}
.about-statement blockquote {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--green-700); margin: 0 0 1rem; position: relative;
}
.about-statement-body { color: var(--ink-soft); }

/* --------------------------- Donate ----------------------------- */
.section-donate {
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 60%, var(--green-600));
  color: var(--white); overflow: hidden;
}
.donate-pattern, .subscribe-pattern, .footer-pattern, .hadith-pattern {
  position: absolute; inset: 0; background: url("../img/pattern-gold.svg");
  background-size: 90px 90px; opacity: 0.10; pointer-events: none;
}
.donate-card {
  position: relative; z-index: 2; text-align: center; max-width: 660px; margin: 0 auto;
}
.donate-card h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); }
.donate-card p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin-bottom: 1.8rem; }
.donate-meta { margin-top: 1.2rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* --------------------------- Events ----------------------------- */
.events-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.event-card {
  display: flex; gap: 1.2rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.event-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--gold-500), var(--green-600));
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-date {
  flex: 0 0 auto; width: 66px; height: 72px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.event-day { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-300); }
.event-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.event-meta { list-style: none; margin: 0 0 0.7rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.event-meta li { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.35rem; }
.event-body p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* --------------------------- Messages --------------------------- */
.messages-layout {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.messages-list { display: flex; flex-direction: column; gap: 1rem; max-height: 540px; overflow-y: auto; padding-right: 0.3rem; }
.message-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold-500);
  animation: fadeInUp 0.5s var(--ease) both;
}
.message-item .m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-bottom: 0.3rem; }
.message-item .m-name { font-weight: 700; color: var(--green-700); }
.message-item .m-date { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; }
.message-item .m-body { margin: 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.messages-empty { color: var(--ink-soft); text-align: center; padding: 2rem; font-style: italic; }

/* ----------------------------- Forms ---------------------------- */
.form h3 { font-size: 1.35rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--green-800); margin-bottom: 0.4rem; }
.field .optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
}
.form-status { margin: 0.9rem 0 0; font-size: 0.9rem; min-height: 1.2em; font-weight: 500; }
.form-status.ok { color: var(--green-600); }
.form-status.err { color: #b3402e; }
.form-status-light.ok { color: var(--gold-300); }
.form-status-light.err { color: #ffd2c7; }

/* --------------------------- Volunteer -------------------------- */
.split {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.split-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.split-text p { color: var(--ink-soft); font-size: 1.05rem; }
.tick-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.tick-list li { position: relative; padding-left: 2rem; color: var(--ink); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  color: var(--green-700); background: var(--gold-300); border-radius: 50%;
}

/* --------------------------- Subscribe -------------------------- */
.section-subscribe {
  background: radial-gradient(120% 120% at 50% 0%, var(--green-700), var(--green-900));
  color: var(--white); overflow: hidden;
}
.subscribe-card { position: relative; z-index: 2; text-align: center; max-width: 620px; margin: 0 auto; }
.subscribe-card h2 { color: var(--white); }
.subscribe-card p { color: rgba(255, 255, 255, 0.85); }
.subscribe-form {
  display: flex; gap: 0.7rem; max-width: 480px; margin: 1.8rem auto 0; flex-wrap: wrap;
}
.subscribe-form input {
  flex: 1 1 220px; padding: 0.9rem 1.1rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; background: rgba(255, 255, 255, 0.95); font-size: 1rem; color: var(--ink);
}
.subscribe-form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.35); }

/* ------------------------- Subscribe popup ---------------------- */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(15, 46, 28, 0.58); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s var(--ease);
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }

.modal-card {
  position: relative; width: 100%; max-width: 430px;
  background: var(--white); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15, 46, 28, 0.35);
  overflow: hidden;
  transform: translateY(22px) scale(0.97);
  opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

/* Branded green header — gives the popup instant, trustworthy identity. */
.modal-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 2rem 1.8rem 1.6rem;
  background:
    radial-gradient(120% 140% at 50% -20%, var(--green-600), var(--green-800) 65%, var(--green-900));
  color: var(--white);
}
.modal-hero-pattern {
  position: absolute; inset: 0; background: url("../img/pattern-gold.svg");
  background-size: 78px 78px; opacity: 0.12; pointer-events: none;
}
.modal-hero > * { position: relative; z-index: 1; }
.modal-mark {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  margin: 0 auto 0.7rem; border-radius: 50%;
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(224, 201, 135, 0.45);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.15);
}
.modal-hero .eyebrow { margin: 0; }
.modal-hero h2 {
  color: var(--white); margin: 0.35rem 0 0; font-size: 1.7rem; letter-spacing: 0.01em;
}

.modal-body { padding: 1.6rem 1.8rem 1.8rem; }
.modal-lead {
  color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6;
  text-align: center; margin: 0 0 1.4rem;
}

/* Larger, calmer inputs inside the modal for a premium, low-friction feel. */
.modal-body .field { margin-bottom: 0.9rem; }
.modal-body .field input { padding: 0.85rem 1rem; border-radius: 12px; font-size: 1rem; }
.modal-body .sub-submit { margin-top: 0.4rem; }

/* Reassurance row — the small signals that make people comfortable sharing. */
.modal-trust {
  list-style: none; margin: 1.3rem 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.modal-trust li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; color: var(--ink-soft);
}
.modal-trust svg { flex: 0 0 auto; color: var(--green-600); }

.modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 3;
  width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.15); color: var(--white);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }

@media (max-width: 420px) {
  .modal-hero { padding: 1.7rem 1.4rem 1.4rem; }
  .modal-hero h2 { font-size: 1.45rem; }
  .modal-body { padding: 1.4rem 1.4rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card, .modal-close { transition: opacity 0.2s linear; }
}

/* ----------------------------- Footer --------------------------- */
.footer { position: relative; background: var(--green-900); color: rgba(255,255,255,0.78); overflow: hidden; padding-top: 3.5rem; }
.footer-inner {
  position: relative; z-index: 2; display: grid; gap: 2rem; padding-bottom: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer .brand { color: var(--white); }
.footer-blurb { margin-top: 1rem; max-width: 280px; font-size: 0.92rem; }
.footer-org {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.4); padding: 0.4rem 0.9rem; border-radius: 999px;
}
.footer-org strong { color: var(--gold-300); font-weight: 700; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-links a, .footer-links li { font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--gold-300); }
.social-row { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.social {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s;
}
.social:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-3px); }
.footer-donate { margin-top: 0.2rem; }
.footer-bottom { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 1.2rem; padding-bottom: 1.2rem; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; }
.footer-bottom a { color: var(--gold-300); }

/* ----------------- Orphanage project components ----------------- */
/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201, 168, 76, 0.16); border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold-300); padding: 0.4rem 1.1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1.4rem;
}

/* Our Story */
.story-layout { max-width: 820px; margin: 0 auto; }
.story-layout p { font-size: 1.07rem; color: var(--ink-soft); }
.story-greeting {
  font-family: var(--font-head); font-style: italic; font-size: 1.2rem;
  color: var(--green-700); margin-bottom: 1.2rem;
}
.story-layout strong { color: var(--green-700); }
.highlight-box {
  margin: 2rem 0 0; padding: 1.7rem 1.9rem; background: var(--white);
  border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-foot {
  margin-top: 1rem !important; font-style: italic; color: var(--green-600) !important;
  font-size: 0.98rem !important;
}

/* Stats band */
.stats-band {
  display: grid; gap: 1.4rem; margin-top: 3.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-pill {
  text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stat-pill:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-pill .num {
  font-family: var(--font-head); font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 700; color: var(--green-700); line-height: 1;
}
.stat-pill .num span { color: var(--gold-600); }
.stat-pill .lbl { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }

/* Phase 1 highlighted card */
.phase1-card {
  position: relative; max-width: 760px; margin: 0 auto 2.8rem;
  background: var(--white); border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-md);
}
.phase1-card h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0.4rem 0 0.8rem; }
.phase1-card > p { color: var(--ink-soft); }
.phase1-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 0.35rem 0.9rem; border-radius: 999px;
  background: var(--gold-300); color: var(--green-900);
}
.phase1-note { font-size: 0.96rem; color: var(--ink-soft); margin: 1.2rem 0 1.6rem; }

/* Phase roadmap */
.phases {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.phase-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.phase-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.phase-card.active { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.phase-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  background: var(--cream-200); color: var(--green-700); margin-bottom: 1rem;
}
.phase-card.active .phase-num { background: var(--green-700); color: var(--white); }
.phase-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.phase-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.phase-status {
  display: inline-block; margin-top: 1rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 0.25rem 0.7rem;
  border-radius: 999px; background: var(--cream-200); color: var(--ink-soft);
}
.phase-card.active .phase-status { background: var(--gold-300); color: var(--green-900); }

/* Hadith band */
.section-hadith {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white); overflow: hidden; text-align: center;
}
.hadith-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hadith-mark { font-family: var(--font-head); font-size: 3rem; color: var(--gold-500); line-height: 1; }
.hadith-quote {
  font-family: var(--font-head); font-style: italic; color: var(--white);
  font-size: clamp(1.4rem, 3.6vw, 2.1rem); margin: 0.6rem 0 1.2rem;
}
.hadith-desc { color: rgba(255, 255, 255, 0.82); }
.hadith-desc .pbuh, .hadith-quote .pbuh { color: var(--gold-300); }
.hadith-source {
  color: var(--gold-300); font-weight: 600; letter-spacing: 0.03em; margin-top: 1rem; margin-bottom: 0;
}

/* -------------------- Featured event banner --------------------- */
.featured {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 55%, var(--green-600));
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.featured-pattern {
  position: absolute; inset: 0; background: url("../img/pattern-gold.svg");
  background-size: 80px 80px; opacity: 0.10; pointer-events: none;
}
.featured-inner {
  position: relative; z-index: 2; display: grid; gap: 2.2rem;
  grid-template-columns: 0.85fr 1.15fr; align-items: center;
}

/* Left poster image (the real event flyer) */
.featured-poster { position: relative; }
.featured-poster-img {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--gold-500); box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.featured-poster-img:hover { transform: translateY(-5px); box-shadow: 0 30px 70px rgba(15, 46, 28, 0.34); }
.featured-poster-img img { display: block; width: 100%; height: auto; }

/* Right content */
.featured-content h2 {
  color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin: 0.3rem 0 0.7rem;
}
.featured-sub { color: rgba(255, 255, 255, 0.86); font-size: 1.06rem; max-width: 48ch; }
.featured-facts { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: 0.55rem; }
.featured-facts li { font-size: 1rem; color: rgba(255, 255, 255, 0.92); }
.featured-facts b { color: var(--gold-300); font-weight: 600; }
.featured-onday {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7); margin: 0 0 0.6rem;
}
.featured-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.7rem; }
.featured-tags span {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white); font-size: 0.84rem; font-weight: 500; padding: 0.42rem 0.85rem;
  border-radius: 999px; transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.featured-tags span:hover { background: rgba(201, 168, 76, 0.28); transform: translateY(-2px); }
.featured-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

@media (max-width: 820px) {
  .featured-inner { grid-template-columns: 1fr; }
  .featured-poster { max-width: 380px; margin: 0 auto; }
  .featured-content { text-align: center; }
  .featured-sub { margin-left: auto; margin-right: auto; }
  .featured-facts { justify-items: center; }
  .featured-tags, .featured-actions { justify-content: center; }
}

/* Live featured-event nav highlight */
.nav-live { color: var(--gold-300) !important; font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; }
.nav-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6); animation: livePulse 2s infinite;
}
.navbar.scrolled .nav-live { color: var(--gold-600) !important; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

/* --------------------- Event posters ---------------------------- */
.poster-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.poster {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.poster:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.poster-img { position: relative; display: block; overflow: hidden; line-height: 0; }
.poster-img img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.poster:hover .poster-img img { transform: scale(1.04); }

.poster-tbc {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.32rem 0.72rem; border-radius: 999px;
  background: var(--gold-500); color: var(--green-900);
  transform: rotate(3deg); box-shadow: var(--shadow-md);
}

.poster-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.35rem 1.4rem; }
.poster-body h3 { font-size: 1.15rem; margin: 0 0 0.45rem; }
.poster-desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.poster-meta { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: 0.45rem; }
.poster-meta li { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.poster-meta b { color: var(--green-700); font-weight: 600; }
.poster-meta .tbc { color: var(--gold-600); font-weight: 700; font-style: italic; }
.poster-notify { margin-top: auto; }

/* ------------------------ Scroll reveal ------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Gentle stagger for grids */
.about-grid .reveal:nth-child(2), .events-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.about-grid .reveal:nth-child(3), .events-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ------------------------- Animations --------------------------- */
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 480px 480px; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .messages-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; gap: 0.4rem; align-items: stretch;
    background: var(--green-800); padding: 7.5rem 1.5rem 2rem;
    transform: translateY(-100%); transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--white); padding: 0.7rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a:not(.btn)::after { display: none; }
  .navbar.scrolled .nav-links a:not(.btn) { color: var(--white); }
  .nav-links a.btn { margin-top: 0.8rem; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding: 0 1.1rem; }
  .card { padding: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ----------------------- Accessibility -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================================================================
   Make a Pledge — homepage section + standalone /pledge page
   =================================================================== */

/* Shared Qur'an reminder styling (used on a dark green panel) */
.pledge-quote-mark { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold-300); line-height: 0.4; }
.pledge-ayah {
  font-family: var(--font-head); font-style: italic; color: var(--white);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin: 0.7rem 0 0.6rem;
}
.pledge-ayah-src { color: var(--gold-300); font-weight: 600; font-size: 0.9rem; margin: 0; letter-spacing: 0.02em; }

/* Homepage CTA block */
.pledge-cta {
  display: grid; gap: 1.6rem; align-items: stretch; max-width: 1000px; margin: 0 auto;
  grid-template-columns: 1.05fr 0.95fr;
}
.pledge-cta-reminder {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 60%, var(--green-600));
  border-radius: var(--radius); padding: 2rem 2.1rem; box-shadow: var(--shadow-md);
}
.pledge-cta-note { color: rgba(255, 255, 255, 0.86); font-size: 0.96rem; margin: 1.1rem 0 0; }
.pledge-cta-note em { color: var(--gold-300); font-style: italic; }
.pledge-cta-note .pbuh { color: var(--gold-300); }
.pledge-cta-action {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.5); border-radius: var(--radius);
  padding: 2rem 2.1rem; box-shadow: var(--shadow-sm);
}
.pledge-cta-action h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-bottom: 0.4rem; }
.pledge-cta-action .tick-list { margin-top: 0.4rem; margin-bottom: 1.8rem; }
.pledge-cta-action .btn { margin-top: auto; align-self: flex-start; }

/* Standalone /pledge page */
.pledge-body { background: var(--cream); }
.pledge-topbar {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  padding: 0.9rem 0;
}
.pledge-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pledge-topbar .brand { color: var(--white); }
.pledge-topbar .brand-mark { color: var(--gold-500); }
.pledge-back { flex: 0 0 auto; }

.pledge-main { position: relative; overflow: hidden; padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.pledge-pattern {
  position: absolute; inset: 0; background: url("../img/pattern-green.svg");
  background-size: 120px 120px; opacity: 0.05; pointer-events: none;
}
.pledge-layout {
  position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: start;
  grid-template-columns: 1fr 1fr;
}
.pledge-intro h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0.3rem 0 0.8rem; }
.pledge-lead { color: var(--ink-soft); font-size: 1.08rem; }
.pledge-reminder {
  position: relative; margin: 1.8rem 0 0; padding: 1.6rem 1.8rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 60%, var(--green-600));
  box-shadow: var(--shadow-md);
}
.pledge-points { margin-top: 1.8rem; }

.pledge-form-wrap { position: relative; }
.pledge-form { box-shadow: var(--shadow-md); }
.pledge-privacy { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.pledge-back-bottom {
  display: inline-block; margin-top: 1.3rem; color: var(--green-700);
  font-weight: 600; font-size: 0.92rem; transition: color 0.25s var(--ease);
}
.pledge-back-bottom:hover { color: var(--gold-600); }

/* Amount input with currency prefix */
.amount-input { position: relative; }
.amount-prefix {
  position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--green-700); pointer-events: none; font-size: 1rem;
}
.amount-input input { padding-left: 1.9rem; }

/* Radio / checkbox "pill" choices */
.choice-field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.choice-field legend {
  padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--green-800); margin-bottom: 0.5rem;
}
.choice-group { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); font-size: 0.92rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice input { accent-color: var(--green-700); width: 1.05rem; height: 1.05rem; margin: 0; cursor: pointer; }
.choice:hover { border-color: var(--gold-500); }
.choice:has(input:checked) {
  border-color: var(--gold-500); background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

@media (max-width: 820px) {
  .pledge-cta { grid-template-columns: 1fr; }
  .pledge-cta-action .btn { align-self: stretch; }
  .pledge-layout { grid-template-columns: 1fr; }
}
