/* ============================================
   MUTAH BEALE FOUNDATION
   Brand: Gold #B8722A · Cream #FDF8F0 · Dark #1A0805
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================
   VARIABLES
============================================ */
:root {
  --gold:         #B8722A;   /* warm amber — matches the logo exactly */
  --gold-light:   #D4934A;   /* lighter amber */
  --gold-dark:    #8B4A16;   /* deep amber */
  --gold-pale:    #F5EDD6;   /* warm pale cream */
  --cream:        #FDF8F0;   /* warm off-white */
  --dark:         #1A0805;   /* deep chocolate */
  --dark-2:       #2A1005;   /* medium chocolate */
  --dark-3:       #3D1A08;   /* warm dark brown */
  --text:         #1A0A05;   /* near-black warm brown */
  --text-muted:   #7B4A1E;   /* readable warm brown */
  --white:        #FFFFFF;
  --green:        #2D6A4F;
  --green-light:  #d4edda;
  --stripe-color: #635BFF;
  --paypal-color: #003087;

  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', serif;

  --shadow-gold: 0 8px 32px rgba(184,114,42,0.25);
  --shadow-lg:   0 24px 64px rgba(26,8,5,0.2);
  --radius:      16px;
  --radius-sm:   8px;
  --trans:       all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--trans); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ============================================
   LAYOUT HELPERS
============================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.mt-20 { margin-top: 20px; }

/* ============================================
   TYPOGRAPHY
============================================ */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}
.section-title em { color: var(--gold); font-style: italic; }
.section-title.white { color: var(--white); }
.section-title.white em { color: var(--gold-light); }
.section-title.centered { text-align: center; }
.section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 56px;
  line-height: 1.75;
}
.block-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 28px;
}
.block-title.center { text-align: center; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--trans);
  cursor: pointer;
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  display: inline-flex;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-card {
  background: var(--stripe-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  width: 100%;
  padding: 15px;
  font-size: 0.95rem;
  border: none;
}
.btn-card:hover {
  background: #4f48e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,91,255,0.35);
}
.btn-paypal {
  background: var(--paypal-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  width: 100%;
  padding: 15px;
  font-size: 0.95rem;
  border: none;
}
.btn-paypal:hover {
  background: #002166;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,48,135,0.35);
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--trans);
}
.navbar.scrolled {
  background: var(--dark);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img { height: 42px; width: auto; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--white) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.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 {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark-3) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient( 45deg, transparent, transparent 60px, rgba(184,114,42,0.035) 60px, rgba(184,114,42,0.035) 120px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(184,114,42,0.035) 60px, rgba(184,114,42,0.035) 120px);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(184,114,42,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 130px 24px 80px;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,114,42,0.18);
  border: 1px solid rgba(184,114,42,0.4);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-title em {
  color: var(--gold-light);
  font-style: italic;
  display: block;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}
/* Hero fundraiser widget */
.hero-fundraiser {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  max-width: 460px;
}
.hero-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.h-raised {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}
.h-goal {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.h-bar-wrap {
  height: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 11px;
}
.h-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.h-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.h-meta i { color: var(--gold-light); margin-right: 4px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Mosque SVG visual */
.hero-visual {
  flex: 0 0 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mosque-svg-wrap { width: 100%; opacity: 0.9; }
.mosque-svg { width: 100%; height: auto; }
/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: heroScroll 2.2s ease-in-out infinite;
  z-index: 3;
}
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(7px); opacity: 0.7; }
}

/* ============================================
   TRUST BAR
============================================ */
.trust-bar {
  background: var(--dark);
  border-top: 1px solid rgba(184,114,42,0.25);
  padding: 0;
}
.trust-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  color: rgba(255,255,255,0.75);
  font-size: 0.83rem;
  font-weight: 500;
}
.trust-item i { color: var(--gold-light); font-size: 0.95rem; }
.trust-sep {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
  align-self: stretch;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
.photo-frame { margin-bottom: 20px; }
.mutah-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-lg);
}
.mutah-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--dark-2), var(--dark));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.photo-logo {
  width: 120px;
  height: 120px;
  opacity: 0.85;
  filter: brightness(1.1);
}
.mutah-photo-placeholder span {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
}
.mutah-photo-placeholder small {
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pull-quote {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px;
  box-shadow: var(--shadow-gold);
}
.quote-icon { color: var(--gold); font-size: 1.2rem; margin-bottom: 12px; display: block; }
.pull-quote blockquote {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.pull-quote cite { font-size: 0.82rem; font-weight: 600; color: var(--gold); }
.about-right { padding-top: 6px; }
.lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.about-right p {
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 16px;
}
.about-right p strong { color: var(--text); }
.about-right p em { font-style: italic; }
.about-socials {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.about-socials span { font-size: 0.82rem; color: var(--text-muted); }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid rgba(184,114,42,0.35);
  color: var(--gold-dark);
  padding: 7px 15px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}
.social-pill:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ============================================
   SADAQAH JARIYAH SECTION
============================================ */
.sadaqah-section {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark-3) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.sadaqah-glow-left {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at left center, rgba(184,114,42,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.sadaqah-glow-right {
  position: absolute;
  bottom: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at right bottom, rgba(184,114,42,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.sadaqah-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.arabic-title {
  font-family: var(--font-arabic);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold-light);
  margin-bottom: 14px;
  opacity: 0.9;
  letter-spacing: 0.04em;
}
.hadith-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(184,114,42,0.25);
  border-radius: var(--radius);
  padding: 36px 44px;
  margin: 36px 0;
  backdrop-filter: blur(12px);
}
.hadith-icon {
  width: 52px;
  height: 52px;
  background: rgba(184,114,42,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold-light);
  font-size: 1.3rem;
}
.hadith-text {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--white);
  line-height: 1.72;
  font-style: italic;
  margin-bottom: 16px;
}
.hadith-text strong { color: var(--gold-light); font-style: normal; }
.hadith-card cite {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.sadaqah-body {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.sadaqah-body strong { color: var(--white); }
.sadaqah-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.s-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(184,114,42,0.2);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: var(--trans);
}
.s-card:hover {
  background: rgba(184,114,42,0.1);
  border-color: rgba(184,114,42,0.4);
  transform: translateY(-5px);
}
.s-card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.s-card h3 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.s-card p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.65; }

/* ============================================
   PROJECT SECTION
============================================ */
.project-section { background: var(--white); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}
.stat-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--trans);
}
.stat-box:hover { border-color: rgba(184,114,42,0.3); transform: translateY(-4px); }
.stat-box.featured { background: var(--dark); }
.stat-box.featured .stat-num { color: var(--gold-light); }
.stat-box.featured .stat-lbl { color: rgba(255,255,255,0.6); }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-num i { font-size: 2rem; }
.stat-lbl { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; line-height: 1.4; }
.services-block { margin-bottom: 64px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-card {
  display: flex;
  gap: 18px;
  background: var(--cream);
  padding: 26px;
  border-radius: var(--radius);
  transition: var(--trans);
  border: 2px solid transparent;
}
.service-card:hover { border-color: rgba(184,114,42,0.25); transform: translateY(-3px); }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.service-text h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.service-text p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.location-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.location-info h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 16px;
}
.location-info p { color: var(--text-muted); line-height: 1.78; margin-bottom: 14px; }
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  margin-top: 6px;
}
.map-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-gold);
}
.map-iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-gold);
}

/* ============================================
   DONATE SECTION
============================================ */
.donate-section { background: var(--cream); }
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-gold);
}
.panel-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gold-pale);
}
/* Progress panel */
.campaign-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}
.currency-sym { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.counter {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
}
.campaign-goal-text { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.campaign-bar-wrap {
  height: 10px;
  background: var(--cream);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}
.campaign-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 5px;
  transition: width 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.campaign-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.campaign-meta i { color: var(--gold); margin-right: 4px; }
.milestones { margin-bottom: 24px; }
.milestones-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cream);
}
.milestone:last-child { border-bottom: none; }
.ms-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.milestone.done .ms-dot { background: var(--green-light); color: var(--green); }
.milestone.current .ms-dot { background: rgba(184,114,42,0.15); color: var(--gold); border: 2px solid var(--gold); }
.milestone.pending .ms-dot { background: var(--cream); color: rgba(0,0,0,0.2); font-size: 0.55rem; }
.ms-body { flex: 1; }
.ms-name { display: block; font-size: 0.88rem; font-weight: 500; color: var(--dark); }
.ms-detail { font-size: 0.78rem; color: var(--text-muted); }
.tax-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.tax-badge i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.tax-badge p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
/* Donation form */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.amt-btn {
  padding: 13px 8px;
  border: 2px solid var(--cream);
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--trans);
}
.amt-btn:hover, .amt-btn.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--gold);
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.input-with-prefix { position: relative; }
.input-with-prefix span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}
.input-with-prefix input,
.form-field > input {
  width: 100%;
  padding: 12px 13px 12px 30px;
  border: 2px solid var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--trans);
  outline: none;
}
.form-field > input { padding-left: 13px; }
.input-with-prefix input:focus,
.form-field > input:focus { border-color: var(--gold); }
.form-field small { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; }
.donation-frequency {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}
.freq-option { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.freq-option input { accent-color: var(--gold); }
.freq-label { font-size: 0.88rem; color: var(--text-muted); }
.payment-btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.gofundme-alt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
  margin-bottom: 14px;
}
.gofundme-alt span { font-size: 0.8rem; color: var(--text-muted); }
.gfm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}
.gfm-link:hover { color: var(--gold-dark); }
.secure-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.secure-line i { color: var(--green); font-size: 0.85rem; }

/* ============================================
   UPDATES / TIMELINE
============================================ */
.updates-section { background: var(--white); }
.timeline { max-width: 680px; margin: 0 auto 64px; }
.tl-item {
  display: flex;
  gap: 22px;
  padding-bottom: 36px;
  position: relative;
}
.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--cream);
}
.tl-done::after { background: var(--green-light) !important; }
.tl-active::after { background: linear-gradient(to bottom, rgba(184,114,42,0.4), var(--cream)) !important; }
.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tl-done .tl-dot { background: var(--green-light); color: var(--green); }
.tl-active .tl-dot { background: rgba(184,114,42,0.15); color: var(--gold); border: 2px solid var(--gold); }
.tl-upcoming .tl-dot { background: var(--cream); color: var(--text-muted); }
.tl-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 5px;
}
.tl-body h4 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--dark);
  margin-bottom: 7px;
}
.tl-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.gallery-block { margin-top: 16px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.gallery-item {
  background: var(--cream);
  border: 2px dashed rgba(184,114,42,0.3);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
}
.gallery-item i { font-size: 2rem; color: var(--gold-light); opacity: 0.5; }
.gallery-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   TRANSPARENCY
============================================ */
.transparency-section { background: var(--cream); }
.funds-viz {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 52px;
  margin-top: 56px;
}
.fund-bar-item { text-align: center; }
.f-bar-wrap {
  height: 200px;
  width: 64px;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-gold);
}
.f-bar {
  width: 100%;
  background: linear-gradient(to top, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-sm);
  transition: height 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.f-pct {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.f-lbl { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; max-width: 80px; line-height: 1.35; display: block; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--dark);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-bg-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(184,114,42,0.025) 50px, rgba(184,114,42,0.025) 100px);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
  position: relative;
}
.footer-logo { height: 58px; width: auto; margin-bottom: 18px; }
.footer-brand-col p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--trans);
}
.footer-socials a:hover { background: var(--gold); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-contact-list i { color: var(--gold-light); width: 14px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  position: relative;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.78rem; margin-bottom: 4px; }

/* ============================================
   MODAL
============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: modalIn 0.35s ease;
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-heart {
  width: 68px;
  height: 68px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.modal-heart i { font-size: 1.8rem; color: var(--gold); }
.modal-box h3 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 14px; }
.modal-box p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; margin-bottom: 26px; }

/* ============================================
   SCROLL ANIMATIONS
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET
============================================ */
@media (max-width: 960px) {
  .section { padding: 80px 0; }

  .hero-inner { flex-direction: column; gap: 32px; padding-top: 120px; }
  .hero-content { max-width: 100%; }
  .hero-visual { flex: unset; width: 100%; max-width: 380px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-placeholder { aspect-ratio: 4/3; max-width: 400px; }

  .sadaqah-cards-row { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .location-block { grid-template-columns: 1fr; }

  .donate-grid { grid-template-columns: 1fr; }

  .trust-row { flex-direction: column; align-items: center; }
  .trust-sep { width: 80px; height: 1px; margin: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }

  .funds-viz { gap: 28px; }
  .f-bar-wrap { width: 50px; }
}

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 680px) {
  .navbar {
    background: #0d0603;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 14px 0;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 82%;
    max-width: 300px;
    background: #0d0603;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 28px 32px;
    gap: 4px;
    box-shadow: -6px 0 32px rgba(0,0,0,0.85);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2001;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
    transform: translateX(0);
  }
  .nav-links a {
    color: #f5f5f5;
    font-size: 1rem;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }
  .nav-toggle { display: flex; }

  #mobile-masjid-img { display: block !important; }
  .hero-inner { padding-top: 100px; padding-bottom: 160px; gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-visual { display: none; }

  .amount-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .funds-viz { flex-wrap: wrap; gap: 24px; justify-content: center; }

  .hadith-card { padding: 24px 22px; }

  /* About section — center social buttons on mobile */
  .about-socials {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .about-socials-btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .social-pill {
    font-size: 0.76rem;
    padding: 6px 12px;
    gap: 5px;
  }
  .about-right .btn-outline-gold {
    display: block;
    text-align: center;
  }
}

/* ============================================
   ARABIC / RTL SUPPORT
============================================ */

/* Arabic body font — Amiri is already loaded */
body.lang-ar,
body.lang-ar p,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6,
body.lang-ar span,
body.lang-ar a,
body.lang-ar li,
body.lang-ar button,
body.lang-ar label,
body.lang-ar cite,
body.lang-ar blockquote {
  font-family: 'Amiri', 'Noto Sans Arabic', serif;
  letter-spacing: 0;
}

/* 3-button lang toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
}

/* RTL layout flips */
[dir="rtl"] .nav-container { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-inner { flex-direction: row-reverse; }
[dir="rtl"] .about-grid { direction: rtl; }
[dir="rtl"] .trust-row { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .section-eyebrow { text-align: right; }
[dir="rtl"] .hadith-card { direction: rtl; text-align: right; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-actions { justify-content: flex-end; }
[dir="rtl"] .hero-fundraiser { text-align: right; }
[dir="rtl"] .hero-badge { justify-content: flex-end; }
[dir="rtl"] .about-socials { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .sadaqah-inner { text-align: right; }
[dir="rtl"] .sadaqah-cards-row { direction: rtl; }
[dir="rtl"] .s-card { text-align: right; }
[dir="rtl"] .milestones { direction: rtl; }
[dir="rtl"] .ms-body { text-align: right; }
[dir="rtl"] .story-timeline { direction: rtl; }
[dir="rtl"] .story-tl-item { flex-direction: row-reverse; }
[dir="rtl"] .story-tl-body { text-align: right; }
[dir="rtl"] .donate-grid { direction: rtl; }
[dir="rtl"] .amount-grid { direction: rtl; }
[dir="rtl"] .payment-btns { flex-direction: row-reverse; }
[dir="rtl"] .nav-dropdown .dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .page-hero { text-align: right; }
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .values-grid { direction: rtl; }
[dir="rtl"] .needs-grid { direction: rtl; }
[dir="rtl"] .services-grid { direction: rtl; }

/* Arabic Quran/hadith text always right-aligned */
[dir="rtl"] .arabic-title,
.arabic-title {
  font-family: 'Amiri', serif;
  direction: rtl;
  text-align: center;
}

/* Centered sections stay centered */
[dir="rtl"] .section-title.centered,
[dir="rtl"] .section-sub,
[dir="rtl"] .sadaqah-section .section-title {
  text-align: center;
}

/* Nav toggle stays LTR on mobile */
[dir="rtl"] .nav-toggle { order: -1; }
