/* =========================================================================
   Joliet Islamic Center — Main Stylesheet
   -------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography & utilities
   4.  Buttons
   5.  Preloader
   6.  Header, navigation & mobile menu
   7.  Home hero
   8.  Inner page hero
   9.  Marquee
   10. Story
   11. Services
   12. Prayer times
   13. Campaign (Qard-e-Hasna)
   14. Gallery & lightbox
   15. Quote
   16. Visit / map
   17. Call to action
   18. Forms
   19. Inner page layouts (Quran, Volunteer, Donate, Contact)
   20. Footer
   21. Floating UI (back to top, toast)
   22. Craft details (ornaments, grain, rosette, sun arc)
   23. Responsive
   Animations live in animations.css
   ========================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand — sampled from the JIC logo */
  --navy-950: #020f1c;
  --navy-900: #051a2d;
  --navy-800: #0a2740;
  --navy-700: #12365a;
  --blue-700: #0858a0;
  --blue-600: #0a6cb4;
  --blue-500: #2584d0;
  --blue-300: #7fb3e0;
  --blue-200: #a9cbe5;
  --blue-100: #dae9f4;
  --blue-50:  #eef5fb;
  --gold-600: #b98d3e;
  --gold-500: #daaf60;
  --gold-400: #e6c27f;
  --gold-200: #f3e1bb;
  --cream:    #f7ecd9;

  /* Neutrals */
  --bg:       #fdfbf7;
  --bg-alt:   #f6f1e7;
  --surface:  #ffffff;
  --ink:      #051a2d;
  --text:     #263a50;
  --muted:    #5d6d80;
  --line:     rgba(5, 26, 45, .10);
  --line-strong: rgba(5, 26, 45, .18);
  --on-dark:  #e9f1f8;
  --on-dark-muted: rgba(233, 241, 248, .74);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Cinzel", "Trajan Pro", serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;

  --fs-hero: clamp(2.7rem, 1.6rem + 4.3vw, 5.4rem);
  --fs-h1: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.3vw, 3.4rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.65rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.28rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 9vw, 150px);
  --header-h: 84px;

  /* Shape & depth */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-arch: 999px 999px var(--r-lg) var(--r-lg);
  --shadow-sm: 0 2px 8px rgba(5, 26, 45, .06);
  --shadow-md: 0 14px 40px -12px rgba(5, 26, 45, .18);
  --shadow-lg: 0 40px 80px -30px rgba(5, 26, 45, .35);
  --shadow-gold: 0 18px 40px -14px rgba(218, 175, 96, .65);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Islamic geometric pattern (8-point star lattice) */
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23daaf60' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3Cpath d='M0 0l24 24M96 0L72 24M0 96l24-24M96 96L72 72M48 0v14M48 96V82M0 48h14M96 48H82'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23051a2d' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3Cpath d='M0 0l24 24M96 0L72 24M0 96l24-24M96 96L72 72M48 0v14M48 96V82M0 48h14M96 48H82'/%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth cross-page transitions in supporting browsers */
@view-transition { navigation: auto; }

/* 2. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 0, "calt" 0;
  overflow-x: clip;
}
main { overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-400); color: var(--navy-900); }

site-header, site-footer { display: block; }

/* 3. TYPOGRAPHY & UTILITIES --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-600), var(--gold-500) 45%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.on-dark .accent, .section--dark .accent, .hero .accent, .page-hero .accent, .cta .accent, .donate-card--featured .accent {
  background-image: linear-gradient(100deg, var(--gold-500), #f6dfab 45%, var(--gold-500));
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 900px); margin-inline: auto; }

.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  flex: none;
  background: var(--gold-500);
}
.section--dark .eyebrow, .on-dark .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--gold-400); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--muted); }
.section--dark .section-head p { color: var(--on-dark-muted); }

.lead { font-size: var(--fs-lead); line-height: 1.65; }
.muted { color: var(--muted); }
.arabic { font-family: var(--font-arabic); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  background: var(--gold-500); color: var(--navy-900); font-weight: 700;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* 4. BUTTONS ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.7rem;
  min-height: 52px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  line-height: 1;
  isolation: isolate;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }
.btn .icon { transition: transform .4s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:hover .icon--heart { animation: heartbeat .9s ease-in-out; }

.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold-400), var(--gold-500) 50%, var(--gold-600)); --btn-fg: var(--navy-900); }
.btn--gold:hover { box-shadow: var(--shadow-gold); }
.btn--blue { --btn-bg: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor, var(--shadow-md); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--sm { min-height: 44px; padding: .75rem 1.25rem; font-size: .9rem; }
.btn--lg { min-height: 60px; padding: 1.2rem 2.1rem; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--blue-600);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s var(--ease-out), gap .3s var(--ease-out), color .5s;
}
.link-arrow:hover { background-size: 100% 1.5px; gap: .8rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

/* 5. PRELOADER ----------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--navy-800), var(--navy-950) 70%);
  transition: opacity .7s var(--ease-out), visibility .7s;
}
.preloader__inner { position: relative; display: grid; justify-items: center; }
.preloader__stage { position: relative; display: grid; place-items: center; width: 190px; height: 190px; }
.preloader__mark { width: 104px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(10,108,180,.6)); }
.preloader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(218,175,96,.2);
  border-top-color: var(--gold-500);
  animation: spin 1.3s linear infinite;
}
.preloader__text { font-family: var(--font-mark); letter-spacing: .45em; font-size: .8rem; color: var(--gold-400); margin-top: 1.6rem; padding-left: .45em; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.no-preload .preloader { display: none; }

/* 6. HEADER, NAVIGATION & MOBILE MENU ----------------------------------- */
/* Transparent over the dark hero; solid white after scrolling (.is-scrolled). */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 15, 28, .55), rgba(2, 15, 28, 0));
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out), color .35s, transform .5s var(--ease-out);
}
.site-header.is-scrolled {
  color: var(--navy-900);
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(2, 15, 28, .35);
}
.site-header.menu-open { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.topbar {
  font-size: .8rem;
  color: rgba(233, 241, 248, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .45s var(--ease-out);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 40px; }
.topbar__hijri { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-400); font-weight: 600; }
.topbar__links { display: flex; gap: 1.75rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .45rem; transition: color .25s; }
.topbar__links a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; opacity: .8; }
/* Announcement bar stays visible; it turns solid navy once the header goes white */
.site-header.is-scrolled .topbar, .site-header.menu-open .topbar { background: var(--navy-950); border-color: transparent; }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 84px;
  transition: height .4s var(--ease-out);
}
.site-header.is-scrolled .nav { height: 72px; }

.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand__mark { width: 40px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); transition: transform .5s var(--ease-out); }
.site-header.is-scrolled .brand__mark { filter: none; }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__text { display: grid; gap: .3rem; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; color: currentColor; white-space: nowrap; }
.brand__sub { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.site-header.is-scrolled .brand__sub { color: var(--blue-600); }

.nav__links { display: flex; align-items: center; gap: 2.1rem; list-style: none; padding: 0; margin-left: auto; }
.nav__link {
  position: relative; display: block; padding: .5rem 0;
  font-weight: 600; font-size: .94rem;
  color: currentColor; opacity: .82;
  transition: opacity .25s, color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header.is-scrolled .nav__link:hover, .site-header.is-scrolled .nav__link[aria-current="page"] { color: var(--blue-700); }

.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__toggle {
  display: none; position: relative;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  color: currentColor;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled .nav__toggle { border-color: var(--line-strong); }
.nav__toggle span {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin-left: -10px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out);
}
.nav__toggle span:nth-child(1) { transform: translateY(-4px); }
.nav__toggle span:nth-child(2) { transform: translateY(4px); width: 14px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); width: 20px; }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  transform-origin: left; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--blue-500), var(--gold-500));
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 90px) var(--gutter) 40px;
  background: var(--navy-900);
  color: #fff;
  clip-path: circle(0 at calc(100% - 50px) 50px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
  overflow-y: auto;
  isolation: isolate;
}
.mobile-menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold); background-size: 80px; opacity: .07;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mobile-menu__links { list-style: none; padding: 0; display: grid; gap: .2rem; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.25;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .6s var(--ease-out), color .3s;
}
.mobile-menu__links a small { font-family: var(--font-body); font-size: .8rem; color: var(--gold-500); letter-spacing: .1em; }
.mobile-menu__links a[aria-current="page"] { color: var(--gold-400); }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.mobile-menu__foot { display: grid; gap: 1rem; margin-top: 2.5rem; color: var(--on-dark-muted); opacity: 0; transition: opacity .6s .6s; }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__foot a { display: inline-flex; gap: .6rem; align-items: center; }
.mobile-menu__foot .btn { justify-self: start; margin-top: .6rem; }
.mobile-menu__foot .icon { color: var(--gold-500); }

/* 7. HOME HERO ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - 56px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(70px, 11vh, 120px)) 0 150px;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(10,108,180,.55), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(218,175,96,.16), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__pattern {
  position: absolute; inset: -10%; z-index: -2;
  background-image: var(--pattern-gold); background-size: 96px;
  opacity: .12;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 75%);
  animation: pattern-drift 80s linear infinite;
}
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%;
  background: #fff; opacity: .2;
  animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--d, 0s);
}
.star--gold { background: var(--gold-400); box-shadow: 0 0 8px var(--gold-400); }
.hero__moon {
  position: absolute; top: 18%; right: 5%; z-index: -1;
  width: clamp(120px, 14vw, 220px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset clamp(-28px, -2.4vw, -18px) clamp(-8px, -.8vw, -6px) 0 0 var(--gold-500);
  filter: drop-shadow(0 0 30px rgba(218,175,96,.45));
  transform: rotate(-20deg);
  animation: moon-float 9s ease-in-out infinite;
  opacity: .9;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 6vw, 90px);
}
.hero__bismillah { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--gold-400); margin-bottom: 1.2rem; line-height: 1.7; }
.hero h1 { font-size: var(--fs-hero); color: #fff; line-height: .98; letter-spacing: -.035em; }
.hero h1 .accent { padding-right: .08em; }
.hero__text { margin-top: 1.8rem; max-width: 560px; font-size: var(--fs-lead); color: var(--on-dark-muted); }
.hero .btn-group { margin-top: 2.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.6rem; color: var(--on-dark-muted); font-size: .9rem; font-weight: 600; list-style: none; padding: 0; }
.hero__badges li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__badges .icon { color: var(--gold-500); width: 18px; height: 18px; }

.hero__visual { position: relative; justify-self: end; width: min(100%, 460px); }
.arch-frame {
  position: relative;
  border-radius: var(--r-arch);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  background: var(--navy-800);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.arch-frame:hover img { transform: scale(1.14); }
.arch-outline {
  position: absolute; inset: -18px -18px 18px 18px; z-index: -1;
  border: 1.5px solid rgba(218,175,96,.55); border-radius: var(--r-arch);
  pointer-events: none;
}
.hero__visual .arch-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2,15,28,.6));
}
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: rgba(10, 39, 64, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.float-card--prayer { left: -64px; bottom: 48px; min-width: 260px; }
.float-card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900);
}
.float-card__icon .icon { width: 24px; height: 24px; }
.float-card__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); font-weight: 700; }
.float-card__value { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.float-card__meta { font-size: .82rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted);
}
.scroll-cue__mouse { width: 24px; height: 38px; border: 1.5px solid currentColor; border-radius: 14px; position: relative; }
.scroll-cue__mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--gold-500); animation: scroll-wheel 1.8s var(--ease-in-out) infinite;
}

/* 8. INNER PAGE HERO ----------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 130px) 0 clamp(110px, 12vw, 170px);
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(10,108,180,.55), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(218,175,96,.14), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero__pattern {
  -webkit-mask-image: radial-gradient(60% 90% at 85% 20%, #000, transparent 75%);
  mask-image: radial-gradient(60% 90% at 85% 20%, #000, transparent 75%);
}
.page-hero h1 { color: #fff; max-width: 880px; }
.page-hero__lead { margin-top: 1.5rem; max-width: 680px; font-size: var(--fs-lead); color: var(--on-dark-muted); }
.page-hero__arch {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); bottom: 0; z-index: -1;
  width: clamp(160px, 20vw, 280px); aspect-ratio: 3/4;
  border: 1.5px solid rgba(218,175,96,.35); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.page-hero__arch::before {
  content: ""; position: absolute; inset: 22px 22px 0; border: 1px solid rgba(218,175,96,.2); border-bottom: 0; border-radius: inherit;
}
.page-hero__arch::after {
  content: ""; position: absolute; left: 33%; top: 24%; width: 34%; aspect-ratio: 1;
  border-radius: 50%; box-shadow: inset -12px -4px 0 0 var(--gold-500); opacity: .85; animation: moon-float 8s ease-in-out infinite;
}
.breadcrumb { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.6rem; font-size: .88rem; color: var(--on-dark-muted); list-style: none; padding: 0; }
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb li + li::before { content: "✦"; color: var(--gold-500); margin-right: .6rem; font-size: .7em; }
.breadcrumb [aria-current] { color: #fff; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); color: var(--bg); pointer-events: none; }
.wave svg { width: 100%; height: 100%; }
.wave--alt { color: var(--bg-alt); }

/* 9. TODAY'S PRAYER TIMES BAR (overlaps the bottom of the hero) ------ */
.hero-times { position: relative; z-index: 3; margin-top: -64px; }
.hero-times__card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-times__head {
  display: grid; align-content: center; gap: .3rem;
  padding: 1.3rem 1.7rem;
  background: var(--navy-800); color: #fff;
}
.hero-times__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.hero-times__date { font-size: .8rem; font-weight: 600; color: var(--gold-400); white-space: nowrap; }
.hero-times__list { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; padding: 0; }
.hero-times__item {
  position: relative;
  display: grid; align-content: center; justify-items: center; gap: .25rem;
  padding: 1.15rem .5rem;
  border-left: 1px solid var(--line);
  transition: background .4s;
}
.hero-times__item:first-child { border-left: 0; }
.hero-times__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-500);
  transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.hero-times__name { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-times__time { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; color: var(--navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-times__item.is-next { background: linear-gradient(180deg, rgba(218,175,96,.18), rgba(218,175,96,0)); }
.hero-times__item.is-next::before { transform: scaleX(1); }
.hero-times__item.is-next .hero-times__name { color: var(--gold-600); }
.hero-times__more {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 0 1.6rem;
  border-left: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--blue-700); white-space: nowrap;
  transition: background .3s;
}
.hero-times__more strong { color: var(--navy-900); }
.hero-times__more:hover { background: var(--blue-50); }
.hero-times__more .icon { transition: transform .3s var(--ease-out); }
.hero-times__more:hover .icon { transform: translateX(4px); }

/* 10. STORY -------------------------------------------------------------- */
.story { padding-top: calc(var(--section-y) + 40px); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.story__media { position: relative; padding: 0 60px 60px 0; }
.story__media .arch-frame { aspect-ratio: 4/5; }
.story__inset {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border-radius: var(--r-lg); overflow: hidden;
  border: 8px solid var(--bg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}
.story__inset img { width: 100%; height: 100%; object-fit: cover; }
.story__content h2 { margin-bottom: 0; }
.story__content p + p { margin-top: 1.1rem; }

/* 11. SERVICES --------------------------------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.service-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-100); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--navy-900);
  font-size: .78rem; font-weight: 700;
}
.service-card__tag .icon { width: 15px; height: 15px; color: var(--blue-600); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 2.6vw, 34px); }
.service-card h3 { margin-bottom: .8rem; }
.service-card p { color: var(--muted); }
.service-card .link-arrow { margin-top: auto; padding-top: 1.4rem; align-self: flex-start; background-position: 0 100%; }

/* 12. PRAYER TIMES ------------------------------------------------------- */
.prayer { overflow: hidden; }
.prayer::before {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern-navy); background-size: 96px; opacity: .045; pointer-events: none;
}
.prayer__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.prayer__dates { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--navy-800);
}
.chip .icon { width: 16px; height: 16px; color: var(--gold-600); }
.next-prayer {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 2.2rem; padding: 1.8rem 2rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.next-prayer::after {
  content: ""; position: absolute; right: -40px; top: -40px; z-index: -1; width: 160px; height: 160px; border-radius: 50%;
  box-shadow: inset -22px -8px 0 0 rgba(218,175,96,.35); transform: rotate(-20deg);
}
.next-prayer__label { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.next-prayer__name { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; }
.next-prayer__at { font-size: .9rem; color: var(--on-dark-muted); }
.countdown { display: flex; gap: .5rem; font-variant-numeric: tabular-nums; }
.countdown__unit { display: grid; justify-items: center; min-width: 64px; padding: .7rem .5rem; border-radius: var(--r-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.countdown__num { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.countdown__txt { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: .35rem; }

.prayer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; }
.prayer-item {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s, background .5s;
}
.prayer-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prayer-item__name { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; }
.prayer-item__name small { display: block; font-family: var(--font-arabic); font-weight: 400; font-size: 1.05rem; color: var(--gold-600); margin-top: .15rem; }
.prayer-item__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.prayer-item__icon .icon { width: 20px; height: 20px; }
.prayer-item__time { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; line-height: 1.15; }
.prayer-item__time small { display: block; font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--muted); margin-top: .2rem; }
.prayer-item.is-next .prayer-item__time small { color: var(--navy-700); }
.prayer-item.is-next { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); border-color: transparent; box-shadow: var(--shadow-gold); }
.prayer-item.is-next .prayer-item__icon { background: rgba(5,26,45,.12); color: var(--navy-900); }
.prayer-item.is-next .prayer-item__name small { color: var(--navy-700); }
.prayer-item.is-next::after {
  content: "Next"; position: absolute; top: -10px; right: 16px;
  padding: .15rem .6rem; border-radius: 999px; background: var(--navy-900); color: var(--gold-400);
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.prayer-item--jummah { grid-column: 1 / -1; background: var(--navy-900); border-color: transparent; }
.prayer-item--jummah .prayer-item__name { color: #fff; }
.prayer-item--jummah .prayer-item__time { font-size: .95rem; font-family: var(--font-body); font-weight: 700; color: var(--gold-400); white-space: normal; text-align: right; }
.prayer-item--jummah .prayer-item__icon { background: rgba(255,255,255,.1); color: var(--gold-400); }
.prayer-note { margin-top: 1.2rem; font-size: .86rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.prayer-note .icon { width: 16px; height: 16px; margin-top: .3rem; color: var(--blue-600); }
.prayer-error { grid-column: 1 / -1; padding: 1.4rem; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.skeleton { display: inline-block; min-width: 4.5ch; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--blue-50), var(--blue-100), var(--blue-50)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; vertical-align: middle; }

/* 13. CAMPAIGN ----------------------------------------------------------- */
.campaign { overflow: hidden; isolation: isolate; }
.campaign .hero__pattern {
  -webkit-mask-image: radial-gradient(60% 70% at 20% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 20% 50%, #000, transparent 75%);
}
.campaign__glow { position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(10,108,180,.45), transparent 65%); z-index: -1; animation: glow 10s ease-in-out infinite; }
.campaign__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.campaign__media { position: relative; }
.campaign__media .arch-frame { aspect-ratio: 3/4; }
.goal-badge {
  position: absolute; right: -30px; bottom: 50px; z-index: 2;
  padding: 1.4rem 1.6rem; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
  animation: float 7s ease-in-out infinite;
}
.goal-badge__value { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.goal-badge__label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: .45rem; }
.campaign__content h2 { margin-bottom: 0; }
.campaign__content p { color: var(--on-dark-muted); }
.campaign__content p + p { margin-top: 1.1rem; }
.campaign__content strong { color: #fff; font-weight: 700; }
.campaign__content .btn-group { margin-top: 2.4rem; }
.campaign__content .btn--ghost { color: #fff; }

.notice {
  margin-top: 2.4rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-size: .9rem;
}
.notice summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 700; color: #fff;
}
.notice summary::-webkit-details-marker { display: none; }
.notice summary .icon { transition: transform .4s var(--ease-out); color: var(--gold-400); }
.notice[open] summary .icon { transform: rotate(45deg); }
.notice__body { padding: 0 1.25rem 1.2rem; color: var(--on-dark-muted); line-height: 1.65; }
.notice__body a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.notice--light { border-color: var(--line); background: var(--surface); }
.notice--light summary { color: var(--navy-900); }
.notice--light summary .icon { color: var(--gold-600); }
.notice--light .notice__body { color: var(--muted); }
.notice--light .notice__body a { color: var(--blue-600); }

/* Campaign progress (shown only when "raised" is set in config.js) */
.progress { margin-top: 2rem; }
.progress__bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); transition: width 2s var(--ease-out); }
.progress__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; font-size: .9rem; font-weight: 600; color: var(--on-dark-muted); }
.progress__meta strong { color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }

/* 14. GALLERY & LIGHTBOX ------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 17vw, 250px);
  gap: 16px;
}
.gallery__item {
  position: relative; display: block;
  border-radius: var(--r-md); overflow: hidden; cursor: zoom-in;
  background: var(--blue-100);
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 2; }
.gallery__item:nth-child(5), .gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5,26,45,.7));
  opacity: 0; transition: opacity .5s;
}
.gallery__zoom {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy-900);
  transform: translate(-50%, -50%) scale(.4); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(2, 15, 28, .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in .4s var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 82dvh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); animation: zoom-in .5s var(--ease-out); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background .3s, transform .3s var(--ease-out), color .3s;
}
.lightbox__btn:hover { background: var(--gold-500); color: var(--navy-900); transform: scale(1.06); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; margin-top: -27px; }
.lightbox__next { right: 24px; top: 50%; margin-top: -27px; }
.lightbox__count { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .85rem; letter-spacing: .2em; color: var(--on-dark-muted); }

/* 15. QUOTE -------------------------------------------------------------- */
.quote {
  position: relative; text-align: center;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 6vw, 110px);
  border-radius: var(--r-xl);
  background: radial-gradient(80% 120% at 50% 0%, rgba(10,108,180,.4), transparent 70%), var(--navy-900);
  color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.quote::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold); background-size: 80px; opacity: .08;
}
.quote__mark { display: block; font-family: var(--font-display); font-size: 7rem; line-height: .6; height: 3.2rem; color: var(--gold-500); }
.quote blockquote p {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.45rem, 1.05rem + 1.8vw, 2.5rem); line-height: 1.32; letter-spacing: -.01em;
}
.quote cite { display: block; margin-top: 1.8rem; font-style: normal; font-size: .95rem; color: var(--gold-400); letter-spacing: .04em; font-weight: 600; }

/* 16. VISIT / MAP -------------------------------------------------------- */
.visit__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
}
a.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.contact-card__icon {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(160deg, var(--blue-500), var(--blue-700)); color: #fff;
}
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-card__value { font-weight: 700; color: var(--navy-900); font-size: 1.04rem; word-break: break-word; line-height: 1.4; }
.map {
  position: relative; min-height: 440px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--blue-50);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 17. CALL TO ACTION ---------------------------------------------------- */
.cta {
  position: relative;
  display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 2rem;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(218,175,96,.35), transparent 60%),
    linear-gradient(135deg, var(--blue-700), var(--navy-900) 70%);
  color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern-gold); background-size: 90px; opacity: .08; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
.cta p { margin-top: 1rem; color: var(--on-dark-muted); max-width: 580px; font-size: var(--fs-lead); }
.cta .btn--ghost { color: #fff; }
.cta__emblem { position: absolute; right: 4%; bottom: -70px; width: 240px; opacity: .1; z-index: -1; transform: rotate(-12deg); }

/* 18. FORMS -------------------------------------------------------------- */
.form-card {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.form-card__head { margin-bottom: 2rem; }
.form-card__head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.form-card__head p { margin-top: .6rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .86rem; font-weight: 700; color: var(--navy-800); }
.req { color: var(--gold-600); margin-left: .15rem; }
.input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.input::placeholder { color: #8b98a6; }
.input:hover { border-color: var(--blue-200); }
.input:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(10,108,180,.14); }
textarea.input { min-height: 150px; resize: vertical; }
.field.is-invalid .input { border-color: #c2410c; box-shadow: 0 0 0 4px rgba(194,65,12,.1); }
.field__error { display: none; font-size: .8rem; color: #c2410c; font-weight: 600; }
.field.is-invalid .field__error { display: block; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { margin-bottom: .6rem; padding: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; gap: .75rem; height: 100%;
  padding: .95rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--bg);
  font-size: .92rem; font-weight: 600; color: var(--text); cursor: pointer; line-height: 1.35;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.choice label::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: #fff;
  transition: border .3s;
}
.choice label:hover { border-color: var(--blue-200); transform: translateY(-2px); }
.choice input:checked + label { border-color: var(--blue-600); background: var(--blue-50); color: var(--navy-900); box-shadow: 0 0 0 4px rgba(10,108,180,.1); }
.choice input:checked + label::before { border: 6px solid var(--blue-600); }
.choice input:focus-visible + label { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.form-note { font-size: .84rem; color: var(--muted); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success.is-visible { display: block; animation: zoom-in .6s var(--ease-out); }
.form-success__icon {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.form-success__icon .icon { width: 38px; height: 38px; }
.form-success h2 { font-size: 1.9rem; }
.form-success p { margin-top: .7rem; color: var(--muted); }
.form-success .btn { margin-top: 1.6rem; }
.is-hidden { display: none !important; }

/* 19. INNER PAGE LAYOUTS ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 30px); }

.info-list { display: grid; gap: 14px; margin-top: 2rem; list-style: none; padding: 0; }
.info-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem 1.5rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.info-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-item__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.info-item__icon .icon { width: 24px; height: 24px; }
.info-item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; color: var(--navy-900); }
.info-item p { margin-top: .25rem; color: var(--muted); font-size: .97rem; }
.level-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.level-tags span { padding: .35rem .75rem; border-radius: 999px; background: var(--bg-alt); font-size: .8rem; font-weight: 600; color: var(--navy-800); }

.media-arch { position: relative; margin-top: 2.5rem; }
.media-arch .arch-frame { aspect-ratio: 16/11; border-radius: 300px 300px var(--r-lg) var(--r-lg); }
.media-arch .arch-outline { inset: -14px 14px 14px -14px; border-color: rgba(218,175,96,.7); border-radius: 300px 300px var(--r-lg) var(--r-lg); }

/* Donate */
.donate-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(18px, 2.4vw, 32px); align-items: stretch; }
.donate-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.donate-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.donate-card__icon {
  display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; margin-bottom: 2rem;
  background: var(--blue-50); color: var(--blue-600);
}
.donate-card__icon .icon { width: 32px; height: 32px; }
.donate-card h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); margin-bottom: 1rem; }
.donate-card p { color: var(--muted); }
.donate-card .btn { margin-top: auto; align-self: flex-start; }
.donate-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2.2rem; list-style: none; padding: 0; }
.donate-card__tags li { padding: .4rem .85rem; border-radius: 999px; background: var(--bg-alt); font-size: .82rem; font-weight: 700; color: var(--navy-800); }
.donate-card--featured {
  background: radial-gradient(80% 80% at 100% 0%, rgba(10,108,180,.6), transparent 60%), var(--navy-900);
  color: var(--on-dark); border-color: transparent;
}
.donate-card--featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern-gold); background-size: 80px; opacity: .07; }
.donate-card--featured h2 { color: #fff; }
.donate-card--featured p { color: var(--on-dark-muted); }
.donate-card--featured .donate-card__icon { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); }
.donate-card__goal { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.donate-card__goal-value { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 1.8vw, 3.6rem); line-height: 1; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.donate-card__goal-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.ribbon {
  position: absolute; top: 28px; right: 28px;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-900); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; margin-top: 3rem; color: var(--muted); font-size: .92rem; font-weight: 600; list-style: none; padding: 0; }
.trust-row li { display: inline-flex; align-items: center; gap: .55rem; }
.trust-row .icon { color: var(--gold-600); }
.center { text-align: center; }
.mt-lg { margin-top: clamp(48px, 6vw, 80px); }

/* 20. FOOTER ------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(70px, 8vw, 110px);
  background: var(--navy-950);
  color: var(--on-dark-muted);
  overflow: hidden; isolation: isolate;
}
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern-gold); background-size: 96px; opacity: .05; }
.site-footer::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.1fr; gap: clamp(32px, 4vw, 60px); }
.footer__logo {
  display: inline-block; padding: 10px 14px; border-radius: var(--r-md); background: #fff;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  transition: transform .6s var(--ease-out);
}
.footer__logo:hover { transform: translateY(-4px) rotate(-1.5deg); }
.footer__logo img { width: 74px; }
.footer__about { margin-top: 1.6rem; font-size: .95rem; max-width: 340px; }
.footer__title { font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.4rem; }
.footer__links { list-style: none; padding: 0; display: grid; gap: .8rem; }
.footer__links a { display: inline-flex; align-items: flex-start; gap: .6rem; transition: color .3s, transform .3s var(--ease-out); }
.footer__links a:hover { color: #fff; transform: translateX(4px); }
.footer__links .icon { width: 17px; height: 17px; color: var(--gold-500); margin-top: .3rem; }
.footer__donate p { font-size: .93rem; margin-bottom: 1.4rem; }
.footer__ein { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }
.footer__ein .icon { width: 15px; height: 15px; color: var(--gold-500); }
.footer__legal {
  margin-top: clamp(50px, 6vw, 80px); padding-block: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: center;
  font-size: .82rem; line-height: 1.6;
}
.footer__legal p:first-child { max-width: 760px; }
.footer__wordmark {
  font-family: var(--font-mark); font-weight: 700;
  font-size: clamp(3.5rem, 17vw, 15rem); line-height: .8; letter-spacing: .08em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(218,175,96,.2);
  margin-bottom: -.1em;
  user-select: none; white-space: nowrap;
}

/* 21. FLOATING UI -------------------------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8);
  transition: opacity .4s, visibility .4s, transform .5s var(--ease-out), background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--gold-500); stroke-width: 2.5; stroke-dasharray: 163.4; stroke-dashoffset: calc(163.4 - 163.4 * var(--progress, 0)); stroke-linecap: round; }
.to-top .icon { position: relative; width: 20px; height: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  display: flex; align-items: center; gap: .8rem;
  width: max-content; max-width: calc(100% - 32px);
  padding: 1rem 1.3rem; border-radius: var(--r-md);
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 160%); visibility: hidden;
  transition: transform .6s var(--ease-out), visibility 0s .6s;
  font-weight: 600; font-size: .95rem;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out), visibility 0s; }
.toast .icon { color: var(--gold-400); }

/* 22. CRAFT DETAILS ---------------------------------------------------- */
/* Gold star ornament under headings */
.ornament { display: flex; align-items: center; gap: 12px; margin-top: 1.1rem; color: var(--gold-500); }
.ornament::before, .ornament::after { content: ""; width: 52px; height: 1px; }
.ornament::before { background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament svg { width: 13px; height: 13px; flex: none; }
.ornament--start::before { display: none; }
.section-head--center .ornament { justify-content: center; }
.ornament + p { margin-top: 1.5rem; }

/* Film grain on dark sections */
.hero::after, .page-hero::after, .campaign::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09; mix-blend-mode: overlay;
}

/* Rotating geometric rosette */
.hero__rosette {
  position: absolute; left: 50%; top: 46%; z-index: -1;
  width: 165%; max-width: none; height: auto; translate: -50% -50%;
  color: var(--gold-500); opacity: .42;
  animation: spin 160s linear infinite;
  pointer-events: none;
}

/* Inner page heroes: photo in an arch, tucked under the wave */
.page-hero__media {
  position: absolute; z-index: -1; bottom: 0;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2));
  height: clamp(300px, 32vw, 440px); aspect-ratio: 3 / 4;
}
.page-hero__media .arch-frame { height: 100%; aspect-ratio: auto; border-radius: 999px 999px 0 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.page-hero__media .arch-outline { inset: -16px 16px 0 -16px; border-radius: 999px 999px 0 0; border-bottom: 0; }
.page-hero__rosette {
  position: absolute; left: 50%; top: 42%; width: 190%; max-width: none; translate: -50% -50%; z-index: -1;
  color: var(--gold-500); opacity: .28; animation: spin 180s linear infinite reverse;
}
@media (min-width: 961px) {
  .page-hero .container { padding-right: clamp(300px, 30vw, 400px); }
}

/* Sun-path arc in the prayer section */
.sun-arc { margin-top: 2rem; }
.sun-arc svg { width: 100%; height: auto; overflow: visible; }
.sun-arc__horizon { stroke: var(--line-strong); stroke-width: 1; }
.sun-arc__track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: .006 .01; }
.sun-arc__progress {
  fill: none; stroke: var(--gold-500); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out);
}
.sun-arc__mark { fill: var(--surface); stroke: var(--navy-700); stroke-width: 1.5; }
.sun-arc__mark.is-next { fill: var(--gold-500); stroke: var(--navy-900); }
.sun-arc__mark.is-past { fill: var(--navy-700); }
.sun-arc__label { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--navy-800); }
.sun-arc__time { font-family: var(--font-body); font-size: 10px; font-weight: 600; fill: var(--muted); }
.sun-arc__sun { transition: transform 1.6s var(--ease-out); }
.sun-arc__core { fill: var(--gold-500); stroke: #fff; stroke-width: 2; }
.sun-arc__halo { fill: var(--gold-400); opacity: .3; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-in-out infinite; }
.sun-arc.is-night .sun-arc__sun { opacity: 0; }

/* Pull quote in the campaign */
.pull-quote { margin-top: 2.4rem; padding: .3rem 0 .3rem 1.4rem; border-left: 2px solid var(--gold-500); }
.pull-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; color: #fff; }
.pull-quote cite { display: block; margin-top: .6rem; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--gold-400); }

/* 23. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .topbar__links a:nth-child(1) { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-card--prayer { left: -24px; }
  .hero-times__card { grid-template-columns: 1fr; }
  .hero-times__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; }
  .hero-times__more { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 1.4rem; }
}
@media (max-width: 960px) {
  .hero__grid, .story__grid, .prayer__grid, .campaign__grid, .split, .visit__grid, .donate-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 80px); }
  .hero__visual { justify-self: center; width: min(100%, 420px); margin-top: 1.5rem; }
  .services__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .story__media { max-width: 540px; }
  .campaign__media { max-width: 440px; }
  .sticky { position: static; }
  .cta { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .page-hero__arch { opacity: .45; }
  .page-hero__media { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(2) { grid-column: span 2; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  /* Compact announcement bar: Hijri date + round quick-action buttons */
  .topbar { font-size: .74rem; }
  .topbar__inner { height: 36px; }
  .topbar__text { display: none; }
  .topbar__links { gap: .45rem; }
  .topbar__links a, .topbar__links a:nth-child(1) {
    display: inline-flex; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
  }
  .topbar__links a:active { background: var(--gold-500); color: var(--navy-900); }
  .topbar .icon { width: 13px; height: 13px; opacity: 1; }
  .nav { height: 66px; gap: 1rem; }
  .site-header.is-scrolled .nav { height: 62px; }
  .nav__actions .btn { display: none; }
  .brand__mark { width: 34px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .58rem; }
  .hero__moon { top: 9%; right: -30px; }
  .float-card--prayer { left: -8px; right: 24px; bottom: 22px; min-width: 0; }
  .story__media { padding: 0 28px 40px 0; }
  .prayer-list, .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .hero-times { margin-top: -48px; }
  .hero-times__list { grid-template-columns: repeat(3, 1fr); }
  .hero-times__item:nth-child(4) { border-left: 0; }
  .hero-times__item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hero-times__time { font-size: 1.12rem; }
  .hero-times__head { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .next-prayer { padding: 1.5rem; }
  .countdown__unit { min-width: 58px; }
  .goal-badge { right: -8px; bottom: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; margin: 0; }
  .lightbox__count { bottom: 36px; }
  .btn-group .btn { flex: 1 1 auto; }
  .page-hero { padding-top: calc(var(--header-h) + 90px); }
  .page-hero__arch { display: none; }
  .to-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
