/*
Theme Name: Hazrat Al Fazal Trust
Theme URI: https://hazratalfazaltrust.org
Author: Manoj (Freelance Developer)
Description: A full-featured Islamic charity theme for Hazrat Al Fazal Trust. Includes campaign management, Zakat calculator, donation system, impact stories, and emergency appeals. Built to match almustafatrust.org functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: haf
Tags: charity, islamic, donations, campaigns, non-profit
*/

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

:root {
  --gold:       #C9A84C;
  --gold-l:     #E8C97A;
  --gold-d:     #9A7A2E;
  --deep:       #0A1A0F;
  --forest:     #142318;
  --mid:        #1E3A24;
  --sage:       #3A6B42;
  --sage-l:     #4E8F58;
  --cream:      #FAF7F0;
  --warm:       #F4EDD8;
  --text:       #1A1A18;
  --muted:      #6B6B58;
  --white:      #ffffff;
  --red:        #C0392B;
  --red-l:      #E74C3C;
  --orange:     #E67E22;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.14);
  --tr:         0.28s cubic-bezier(.4,0,.2,1);
  --fw-thin:    300;
  --fw-reg:     400;
  --fw-med:     500;
  --fw-semi:    600;
  --fw-bold:    700;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Outfit', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 4%; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; }
em { font-style: italic; color: var(--gold); }
p { line-height: 1.75; }

/* ── SECTION UTILITIES ── */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 7rem 0; }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm); }
.bg-deep { background: var(--deep); }
.bg-forest { background: var(--forest); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-head p { color: var(--muted); margin-top: .7rem; font-size: .97rem; }
.section-head.left { text-align: left; margin-left: 0; }

.tag-label {
  display: inline-block; font-size: .66rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); padding: 5px 14px; border-radius: 20px;
  margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 13px 28px; border-radius: var(--radius); border: 2px solid transparent; transition: var(--tr); cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.35); }
.btn-deep { background: var(--deep); color: var(--white); border-color: var(--deep); }
.btn-deep:hover { background: var(--mid); }
.btn-outline { background: transparent; color: var(--text); border-color: currentColor; }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: var(--white); color: var(--deep); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-l); }
.btn-sm { padding: 9px 18px; font-size: .74rem; }
.btn-lg { padding: 16px 36px; font-size: .88rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ── BADGES ── */
.badge { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.badge-gold { background: var(--gold); color: var(--deep); }
.badge-green { background: var(--sage); color: var(--white); }
.badge-red { background: var(--red); color: var(--white); }
.badge-orange { background: var(--orange); color: var(--white); }
.badge-dark { background: var(--deep); color: var(--white); }

/* ── TOPBAR ── */
#topbar { background: var(--deep); padding: 7px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
#topbar .tb-left { display: flex; gap: 1.5rem; }
#topbar .tb-left a { color: rgba(255,255,255,.5); font-size: .72rem; transition: color .2s; }
#topbar .tb-left a:hover { color: var(--gold); }
#topbar .tb-right { color: rgba(255,255,255,.35); font-size: .7rem; }
#topbar .tb-right strong { color: var(--gold); }

/* ── NAVBAR ── */
#navbar { position: sticky; top: 0; z-index: 900; background: var(--white); border-bottom: 1px solid rgba(0,0,0,.07); box-shadow: 0 2px 20px rgba(0,0,0,.05); transition: all .3s; }
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.1); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-logo { display: flex; align-items: center; gap: .85rem; }
.nav-logo img.logo-img { width: 52px; height: 52px; object-fit: contain; border-radius: 4px; }
.logo-text .logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 700; color: var(--deep); display: block; line-height: 1.2; }
.logo-text .logo-sub { font-size: .62rem; color: var(--muted); letter-spacing: .1em; display: block; }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 0; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 4px; color: var(--text); font-size: .81rem; font-weight: 500; padding: 0 1rem; height: 74px; transition: color .2s; border-bottom: 3px solid transparent; }
.nav-menu > li > a:hover, .nav-menu > li > a.current { color: var(--sage); border-bottom-color: var(--gold); }
.nav-arrow { font-size: .55rem; transition: transform .2s; }
.has-mega:hover .nav-arrow { transform: rotate(180deg); }

/* MEGA MENU */
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--white); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.14); padding: 2rem; min-width: 620px; display: none; grid-template-columns: 1fr 2fr; gap: 2rem; border-top: 3px solid var(--gold); z-index: 1000; }
.has-mega:hover .mega-menu { display: grid; }
.mega-cats h6, .mega-featured h6 { font-family: 'Outfit', sans-serif; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.mega-cats a { display: flex; align-items: center; gap: .6rem; padding: 7px 10px; font-size: .83rem; color: var(--text); border-radius: 5px; transition: background .2s; margin-bottom: 2px; }
.mega-cats a:hover { background: var(--warm); color: var(--sage); }
.mega-cats a .cat-icon { width: 28px; height: 28px; background: var(--warm); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.mini-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mini-campaign-card { display: flex; gap: .7rem; align-items: center; padding: .65rem; border: 1px solid rgba(0,0,0,.07); border-radius: 6px; transition: var(--tr); }
.mini-campaign-card:hover { border-color: var(--gold); box-shadow: 0 4px 12px rgba(201,168,76,.15); }
.mini-campaign-card img { width: 52px; height: 42px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.mini-campaign-card strong { display: block; font-family: 'Outfit', sans-serif; font-size: .74rem; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.mini-campaign-card span { font-size: .67rem; color: var(--sage); font-weight: 600; }

/* NAV ACTIONS */
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-basket { position: relative; background: var(--warm); border: none; border-radius: var(--radius); padding: 8px 14px; font-size: .79rem; font-weight: 600; color: var(--deep); transition: var(--tr); }
.nav-basket:hover { background: var(--gold); }
.basket-count { position: absolute; top: -7px; right: -7px; background: var(--red); color: var(--white); font-size: .58rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.nav-donate-btn { background: var(--gold); color: var(--deep); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 20px; border-radius: var(--radius); border: none; transition: var(--tr); }
.nav-donate-btn:hover { background: var(--gold-l); }

/* HAMBURGER */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid rgba(0,0,0,.07); background: var(--white); padding: 1rem 5%; gap: .2rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 11px 0; font-size: .94rem; color: var(--text); border-bottom: 1px solid rgba(0,0,0,.04); }
.mobile-nav .mobile-donate { background: var(--gold); color: var(--deep) !important; text-align: center; padding: 13px !important; border-radius: var(--radius); font-weight: 700; margin-top: .6rem; border-bottom: none !important; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }

/* ── EMERGENCY BANNER ── */
.emergency-banner { background: linear-gradient(90deg, var(--red) 0%, #8B0000 100%); padding: 14px 5%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.eb-text { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.eb-pulse { width: 12px; height: 12px; background: var(--white); border-radius: 50%; animation: pulse 1.5s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 50%{ box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.eb-text strong { color: var(--white); font-size: .88rem; }
.eb-text span { color: rgba(255,255,255,.78); font-size: .83rem; }
.eb-progress { display: flex; align-items: center; gap: 1rem; }
.eb-bar { width: 200px; height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.eb-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 1.5s ease; }
.eb-pct { color: var(--gold); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.eb-btn { background: var(--white); color: var(--red); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 9px 20px; border-radius: var(--radius); border: none; transition: var(--tr); white-space: nowrap; }
.eb-btn:hover { background: var(--gold); color: var(--deep); }

/* ── HERO SECTION ── */
.hero-section { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-wrap img.hero-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10,26,15,.92) 0%, rgba(20,35,24,.82) 50%, rgba(10,26,15,.6) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 5%; margin-left: 5%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.35); border-radius: 30px; padding: 7px 18px; margin-bottom: 1.6rem; }
.hero-eyebrow span { color: var(--gold-l); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.hero-eyebrow .he-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-content p { color: rgba(255,255,255,.7); font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 300; margin-bottom: 2.2rem; line-height: 1.85; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-trust span { color: rgba(255,255,255,.55); font-size: .74rem; display: flex; align-items: center; gap: .4rem; }
.hero-trust span::before { content: '✦'; color: var(--gold); }
.hero-stats-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(10,26,15,.9); backdrop-filter: blur(12px); border-top: 1px solid rgba(201,168,76,.1); display: flex; }
.hs-item { flex: 1; text-align: center; padding: 1.3rem 1rem; border-right: 1px solid rgba(255,255,255,.05); }
.hs-item:last-child { border-right: none; }
.hs-number { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 700; color: var(--gold); line-height: 1; }
.hs-label { color: rgba(255,255,255,.4); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* ── MARQUEE ── */
.marquee-bar { background: var(--gold); overflow: hidden; padding: 11px 0; }
.marquee-track { display: flex; gap: 2.5rem; animation: marquee 30s linear infinite; width: max-content; }
.marquee-track span { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--deep); white-space: nowrap; }
.marquee-sep { opacity: .45; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── QUICK DONATE BAR ── */
.quick-donate-bar { background: var(--white); border-bottom: 2px solid rgba(0,0,0,.05); padding: 1.1rem 0; }
.qd-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.qd-label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); white-space: nowrap; flex-shrink: 0; }
.qd-amounts { display: flex; gap: .4rem; }
.qd-amt { background: var(--cream); border: 1.5px solid rgba(0,0,0,.08); color: var(--text); font-size: .85rem; font-weight: 700; padding: 8px 15px; border-radius: var(--radius); transition: var(--tr); }
.qd-amt:hover, .qd-amt.active { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.qd-cause { flex: 1; min-width: 140px; padding: 9px 12px; border: 1.5px solid rgba(0,0,0,.08); border-radius: var(--radius); font-size: .83rem; background: var(--cream); outline: none; }
.qd-freq { display: flex; border: 1.5px solid rgba(0,0,0,.08); border-radius: var(--radius); overflow: hidden; }
.qd-freq-btn { background: var(--cream); border: none; font-size: .75rem; font-weight: 600; padding: 9px 13px; cursor: pointer; color: var(--muted); transition: var(--tr); }
.qd-freq-btn.active { background: var(--deep); color: var(--white); }
.qd-donate-btn { background: var(--gold); color: var(--deep); border: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 22px; border-radius: var(--radius); transition: var(--tr); white-space: nowrap; }
.qd-donate-btn:hover { background: var(--gold-l); }

/* ── CAMPAIGN CARDS ── */
.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.campaign-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.campaign-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.campaign-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); transition: var(--tr); display: flex; flex-direction: column; }
.campaign-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cc-image { position: relative; height: 210px; overflow: hidden; }
.cc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.campaign-card:hover .cc-image img { transform: scale(1.06); }
.cc-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; flex-wrap: wrap; }
.cc-category { position: absolute; top: 12px; right: 12px; }
.cc-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.cc-body h3 { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.3; }
.cc-body p { color: var(--muted); font-size: .82rem; line-height: 1.65; margin-bottom: .9rem; flex: 1; }
.cc-progress { margin-bottom: 1rem; }
.cc-progress-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.cc-progress-row .raised { font-size: .73rem; color: var(--sage); font-weight: 700; }
.cc-progress-row .target { font-size: .7rem; color: var(--muted); }
.cc-pbar { height: 5px; background: rgba(0,0,0,.07); border-radius: 3px; overflow: hidden; }
.cc-pfill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold)); border-radius: 3px; transition: width 1.5s ease; }
.cc-actions { display: flex; gap: .5rem; }
.cc-donate-btn { flex: 1; background: var(--deep); color: var(--white); border: none; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 10px; border-radius: var(--radius); cursor: pointer; transition: var(--tr); }
.cc-donate-btn:hover { background: var(--gold); color: var(--deep); }
.cc-more-btn { background: transparent; color: var(--text); border: 1.5px solid rgba(0,0,0,.1); font-size: .74rem; font-weight: 600; padding: 10px 13px; border-radius: var(--radius); transition: var(--tr); }
.cc-more-btn:hover { border-color: var(--deep); background: var(--deep); color: var(--white); }

/* ── CATEGORY FILTER TABS ── */
.category-tabs { display: flex; border-bottom: 2px solid rgba(0,0,0,.06); margin-bottom: 2.8rem; overflow-x: auto; gap: 0; }
.cat-tab { background: none; border: none; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding: 11px 18px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: var(--tr); }
.cat-tab.active, .cat-tab:hover { color: var(--sage); border-bottom-color: var(--gold); }

/* ── IMPACT SECTION ── */
.impact-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.impact-card { background: var(--white); border-radius: 10px; padding: 1.8rem 1rem; text-align: center; border: 1px solid rgba(0,0,0,.06); position: relative; overflow: hidden; }
.impact-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-d), var(--gold)); }
.impact-number { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem, 3vw, 2.9rem); font-weight: 700; color: var(--deep); line-height: 1; margin-bottom: .4rem; }
.impact-label { color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* ── ZAKAT CALCULATOR ── */
.zakat-calculator { background: var(--white); border-radius: 14px; padding: 2.5rem; border: 1px solid rgba(0,0,0,.07); box-shadow: var(--shadow); }
.zakat-calculator h3 { margin-bottom: .4rem; }
.zakat-calculator > p { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }
.zakat-tabs { display: flex; background: var(--cream); border-radius: var(--radius); padding: 4px; margin-bottom: 2rem; gap: 4px; }
.zakat-tab { flex: 1; background: none; border: none; font-size: .78rem; font-weight: 600; padding: 9px; border-radius: 6px; cursor: pointer; color: var(--muted); transition: var(--tr); text-align: center; }
.zakat-tab.active { background: var(--white); color: var(--deep); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.zakat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.zakat-field label { display: block; font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: .45rem; }
.zakat-field input, .zakat-field select { width: 100%; padding: 10px 14px; border: 1.5px solid rgba(0,0,0,.1); border-radius: var(--radius); font-size: .9rem; background: var(--cream); outline: none; transition: border .2s; }
.zakat-field input:focus { border-color: var(--gold); }
.zakat-nisab-info { background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; font-size: .8rem; color: var(--muted); line-height: 1.65; }
.zakat-nisab-info strong { color: var(--deep); }
.zakat-result { background: linear-gradient(135deg, var(--forest), var(--mid)); border-radius: 10px; padding: 1.5rem; text-align: center; }
.zakat-result-label { color: rgba(255,255,255,.55); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.zakat-result-amount { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: .6rem; }
.zakat-result-note { color: rgba(255,255,255,.5); font-size: .76rem; margin-bottom: 1.2rem; }
.zakat-donate-now { display: inline-block; background: var(--gold); color: var(--deep); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 12px 28px; border-radius: var(--radius); border: none; cursor: pointer; transition: var(--tr); }
.zakat-donate-now:hover { background: var(--gold-l); }

/* ── DONATION FORM ── */
.donation-form-wrap { background: var(--white); border-radius: 14px; padding: 2.5rem; border: 1px solid rgba(0,0,0,.07); }
.donation-form-wrap h2 { margin-bottom: .3rem; }
.donation-form-wrap > p { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .8rem; }
.dam { background: var(--cream); border: 1.5px solid rgba(0,0,0,.09); color: var(--text); font-size: .9rem; font-weight: 700; padding: 12px 8px; border-radius: var(--radius); cursor: pointer; transition: var(--tr); text-align: center; }
.dam:hover, .dam.active { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.freq-toggle { display: flex; border: 1.5px solid rgba(0,0,0,.09); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.dfreq { flex: 1; background: var(--cream); border: none; font-size: .83rem; font-weight: 600; padding: 11px; cursor: pointer; transition: var(--tr); color: var(--muted); text-align: center; }
.dfreq.active { background: var(--deep); color: var(--white); }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: .45rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid rgba(0,0,0,.09); border-radius: var(--radius); font-size: .9rem; background: var(--cream); outline: none; transition: border .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.donation-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.dtype { background: var(--cream); border: 1.5px solid rgba(0,0,0,.09); color: var(--text); font-size: .74rem; font-weight: 600; padding: 9px 6px; border-radius: var(--radius); cursor: pointer; transition: var(--tr); text-align: center; }
.dtype:hover, .dtype.active { background: var(--deep); border-color: var(--deep); color: var(--white); }
.gift-aid-wrap { background: rgba(58,107,66,.06); border: 1px solid rgba(58,107,66,.18); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.gift-aid-label { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.gift-aid-label input { margin-top: 3px; accent-color: var(--sage); width: 16px; height: 16px; flex-shrink: 0; }
.gift-aid-label span { font-size: .83rem; line-height: 1.65; }
.gift-aid-label strong { color: var(--sage); }
.gift-aid-details { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,.07); }
.gift-aid-details.show { display: block; }
.total-display { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--warm); border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid rgba(201,168,76,.18); }
.total-display span { font-size: .84rem; font-weight: 600; color: var(--muted); }
.total-display strong { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--deep); }
.submit-donate-btn { width: 100%; background: var(--gold); color: var(--deep); border: none; font-size: .92rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 16px; border-radius: var(--radius); cursor: pointer; transition: var(--tr); margin-bottom: .8rem; }
.submit-donate-btn:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.3); }
.payment-icons { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: .6rem; }
.payment-icons img { height: 22px; opacity: .55; }
.payment-note { text-align: center; font-size: .72rem; color: var(--muted); }

/* ── BANK DETAILS ── */
.bank-card { background: var(--deep); border-radius: 10px; padding: 1.8rem; }
.bank-card h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 1.1rem; }
.bank-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.bank-row:last-child { border-bottom: none; }
.bank-row span { color: rgba(255,255,255,.4); font-size: .8rem; }
.bank-row strong { color: var(--white); font-size: .83rem; }
.bank-row .highlight { color: var(--gold); font-size: .9rem; font-weight: 700; }

/* ── IMPACT STORIES ── */
.story-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.story-image { height: 220px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-card:hover .story-image img { transform: scale(1.04); }
.story-body { padding: 1.5rem; }
.story-category { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.story-body h3 { font-size: 1.1rem; margin-bottom: .6rem; line-height: 1.3; }
.story-body p { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.story-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,.06); font-size: .73rem; color: var(--muted); }
.story-read-more { color: var(--sage); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .71rem; }

/* ── POLICY BAR ── */
.policy-bar { background: var(--gold); padding: 1.4rem 5%; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.policy-item { display: flex; align-items: center; gap: .7rem; }
.policy-icon { font-size: 1.4rem; }
.policy-item strong { display: block; font-size: .83rem; font-weight: 700; color: var(--deep); }
.policy-item small { font-size: .68rem; color: rgba(10,26,15,.55); }

/* ── ABOUT STRIP ── */
.about-content-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-images { position: relative; }
.about-main-img { width: 100%; height: 480px; object-fit: cover; border-radius: 12px; }
.about-float-img { position: absolute; bottom: -20px; right: -20px; width: 170px; height: 130px; object-fit: cover; border-radius: 8px; border: 3px solid var(--gold); }
.about-float-stat { position: absolute; top: 20px; left: -20px; background: var(--gold); border-radius: 10px; padding: 1rem 1.4rem; text-align: center; }
.about-float-stat .stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--deep); line-height: 1; }
.about-float-stat .stat-lbl { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); opacity: .7; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--muted); font-size: .95rem; line-height: 1.85; margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.5rem 0; }
.about-feature { font-size: .84rem; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.about-feature::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ── VIDEO SECTION ── */
.video-section { padding: 5rem 0; background: var(--forest); position: relative; overflow: hidden; }
.video-section::before { content: ''; position: absolute; inset: 0; opacity: .04; background: repeating-linear-gradient(0deg,transparent,transparent 50px,rgba(201,168,76,1) 50px,rgba(201,168,76,1) 51px),repeating-linear-gradient(90deg,transparent,transparent 50px,rgba(201,168,76,1) 50px,rgba(201,168,76,1) 51px); }
.video-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.video-embed { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.video-embed video { width: 100%; display: block; border-radius: 12px; }
.video-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,26,15,.4); cursor: pointer; transition: var(--tr); border-radius: 12px; }
.video-play-overlay:hover { background: rgba(10,26,15,.2); }
.play-btn { width: 72px; height: 72px; background: rgba(201,168,76,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: var(--tr); }
.play-btn:hover { transform: scale(1.1); background: var(--gold); }
.video-text h2 { color: var(--white); margin-bottom: 1rem; }
.video-text p { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.85; margin-bottom: 1.5rem; }
.video-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.vs-item { text-align: center; padding: 1.2rem; background: rgba(255,255,255,.04); border-radius: 8px; border: 1px solid rgba(255,255,255,.07); }
.vs-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.vs-lbl { color: rgba(255,255,255,.45); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }

/* ── GALLERY GRID ── */
.gallery-flex { display: flex; height: 240px; overflow: hidden; gap: 4px; }
.gallery-flex img { flex: 1; min-width: 0; object-fit: cover; transition: flex .4s ease; cursor: pointer; }
.gallery-flex img:hover { flex: 3; }

/* ── TESTIMONIALS ── */
.testimonial-card { background: var(--white); border-radius: 12px; padding: 1.8rem; border: 1px solid rgba(0,0,0,.06); }
.tc-stars { color: var(--gold); font-size: .8rem; letter-spacing: 2px; margin-bottom: .7rem; }
.tc-quote { color: var(--muted); font-size: .88rem; line-height: 1.8; font-style: italic; margin-bottom: 1.3rem; }
.tc-author { display: flex; align-items: center; gap: .8rem; }
.tc-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--forest), var(--sage)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.tc-author strong { display: block; font-size: .85rem; font-weight: 700; }
.tc-author span { font-size: .72rem; color: var(--muted); }

/* ── VERSE BANNER ── */
.verse-banner { background: linear-gradient(135deg, var(--mid), var(--forest)); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.verse-banner::before { content: ''; position: absolute; inset: 0; background: url('images/mosque-interior.jpg') center/cover; opacity: .06; }
.verse-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.verse-arabic { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 2.5vw, 2rem); color: var(--gold); font-style: italic; line-height: 1.75; margin-bottom: 1rem; }
.verse-english { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 2vw, 1.45rem); color: rgba(255,255,255,.75); font-style: italic; line-height: 1.75; margin-bottom: .8rem; }
.verse-ref { color: var(--gold); font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2rem; }
.verse-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── BASKET DRAWER ── */
.basket-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1100; display: none; }
.basket-overlay.open { display: block; }
.basket-drawer { position: fixed; top: 0; right: -440px; width: 440px; max-width: 100vw; height: 100vh; background: var(--white); z-index: 1101; transition: right .34s ease; overflow-y: auto; display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,.16); }
.basket-drawer.open { right: 0; }
.bd-header { padding: 1.4rem; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; justify-content: space-between; align-items: center; }
.bd-header h4 { font-size: 1.2rem; }
.bd-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.bd-items { flex: 1; padding: 1.2rem; }
.bd-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.bd-empty .empty-icon { font-size: 3rem; opacity: .3; margin-bottom: .8rem; }
.basket-item { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.bi-icon { width: 44px; height: 44px; background: var(--warm); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.bi-info { flex: 1; }
.bi-info strong { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.bi-info span { font-size: .74rem; color: var(--muted); }
.bi-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; }
.bi-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .95rem; transition: color .2s; }
.bi-remove:hover { color: var(--red); }
.bd-footer { padding: 1.4rem; border-top: 1px solid rgba(0,0,0,.07); background: var(--cream); }
.bd-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.bd-total-row span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.bd-total-row strong { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--deep); }
.bd-checkout-btn { display: block; width: 100%; background: var(--gold); color: var(--deep); text-align: center; font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 15px; border-radius: var(--radius); transition: var(--tr); }
.bd-checkout-btn:hover { background: var(--gold-l); }

/* ── DONATION CONFIRMATION ── */
.donation-confirm { display: none; position: fixed; inset: 0; background: rgba(10,26,15,.88); z-index: 2000; align-items: center; justify-content: center; padding: 2rem; }
.donation-confirm.show { display: flex; }
.dc-box { background: var(--white); border-radius: 14px; padding: 3rem; text-align: center; max-width: 480px; width: 100%; }
.dc-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.dc-box h2 { margin-bottom: .6rem; }
.dc-box > p { color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }
.dc-details { background: var(--warm); border-radius: var(--radius); padding: 1.2rem; text-align: left; margin-bottom: 1.8rem; }
.dc-details p { font-size: .84rem; margin-bottom: .4rem; }
.dc-details strong { color: var(--deep); }

/* ── NEWS CARDS ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); transition: var(--tr); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-image { height: 200px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-body { padding: 1.4rem; }
.news-date { font-size: .68rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.news-body h3 { font-size: 1.05rem; margin-bottom: .55rem; line-height: 1.3; }
.news-body p { color: var(--muted); font-size: .82rem; line-height: 1.65; margin-bottom: .8rem; }
.news-read { font-size: .74rem; font-weight: 700; color: var(--sage); letter-spacing: .08em; text-transform: uppercase; }

/* ── FOOTER ── */
.site-footer { background: var(--deep); }
.footer-top { padding: 4.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer-logo-img { width: 60px; height: 60px; object-fit: contain; border-radius: 6px; margin-bottom: .9rem; }
.footer-about p { color: rgba(255,255,255,.35); font-size: .82rem; line-height: 1.8; margin-bottom: 1.3rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(201,168,76,.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: .72rem; font-weight: 700; transition: var(--tr); }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 { font-family: 'Outfit', sans-serif; color: var(--gold); font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.35); font-size: .82rem; margin-bottom: .55rem; transition: color .2s; line-height: 1.65; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(201,168,76,.06); padding: 1.4rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { color: rgba(255,255,255,.18); font-size: .72rem; }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(110deg, rgba(10,26,15,.95), rgba(30,58,36,.85)), url('images/hero-building.jpg') center/cover; padding: 4.5rem 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.6); margin-top: .9rem; max-width: 580px; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; font-size: .75rem; color: rgba(255,255,255,.4); }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.25); }

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: translate(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; } .d6 { transition-delay: .48s; }

/* ── NOTIFICATION TOAST ── */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--deep); color: var(--white); padding: 1rem 1.4rem; border-radius: 10px; border-left: 4px solid var(--gold); font-size: .84rem; z-index: 3000; transform: translateX(120%); transition: transform .35s ease; box-shadow: var(--shadow-lg); }
.toast.show { transform: translateX(0); }
.toast strong { display: block; margin-bottom: .2rem; color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-content-wrap { gap: 3rem; }
}
@media (max-width: 900px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mega-menu { min-width: auto; }
  .about-content-wrap { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats-bar { flex-wrap: wrap; }
  .hs-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.04); }
  .zakat-fields { grid-template-columns: 1fr; }
  .policy-bar { gap: 1.5rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  #topbar { display: none; }
  .emergency-banner { flex-direction: column; align-items: flex-start; }
  .eb-progress { width: 100%; }
  .eb-bar { flex: 1; }
}
@media (max-width: 640px) {
  .campaign-grid, .campaign-grid.cols-4, .campaign-grid.cols-2 { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-type-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .qd-inner { flex-direction: column; align-items: stretch; }
  .zakat-calculator { padding: 1.5rem; }
  .donation-form-wrap { padding: 1.5rem; }
  .gallery-flex { height: 160px; }
}
