/* =========================================================================
   Masjid Abu Bakr As-Siddiq — Bologna
   Elegant, responsive, bilingual (Italian / Arabic RTL) stylesheet
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --green-900: #06251d;
  --green-800: #0b3428;
  --green-700: #0f4c3a;
  --green-600: #146a52;
  --green-500: #1c8768;
  --gold-500: #c9a24b;
  --gold-400: #d8b968;
  --gold-300: #e7d09a;
  --ivory: #f8f5ee;
  --ivory-2: #f1ece0;
  --cream-card: #fffdf8;
  --ink: #1e2a25;
  --ink-soft: #4c5a53;
  --line: #e4ddcc;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(6, 37, 29, 0.06);
  --shadow-md: 0 12px 34px rgba(6, 37, 29, 0.10);
  --shadow-lg: 0 26px 60px rgba(6, 37, 29, 0.16);

  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-ar-display: "Amiri", "Traditional Arabic", serif;
  --font-ar-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;

  --header-h: 82px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

/* ---------- Arabic / RTL typography ---------- */
html[lang="ar"] body { font-family: var(--font-ar-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar-display); }
html[lang="ar"] { letter-spacing: 0; }
html[dir="rtl"] .nav__links { flex-direction: row; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--ivory-2); }
.section--green {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: var(--ivory);
}
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-500);
  margin-bottom: 16px;
}
html[lang="ar"] .eyebrow { letter-spacing: .06em; font-family: var(--font-ar-body); }
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 1px; background: var(--gold-400); opacity: .7;
}
.eyebrow--center { justify-content: center; }

.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--green-800); }
.section--green .section-title { color: var(--ivory); }
.section-lead {
  max-width: 640px; margin: 18px auto 0; color: var(--ink-soft);
  font-size: 1.06rem;
}
.section--green .section-lead { color: rgba(248,245,238,.82); }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--green-900); box-shadow: 0 10px 24px rgba(201,162,75,.35); }
.btn--gold:hover { box-shadow: 0 16px 30px rgba(201,162,75,.45); }
.btn--green { background: var(--green-700); color: var(--ivory); }
.btn--green:hover { background: var(--green-600); }
.btn--ghost { background: transparent; border-color: rgba(248,245,238,.5); color: var(--ivory); }
.btn--ghost:hover { background: rgba(248,245,238,.12); }
.btn--outline { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-700); color: var(--ivory); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.header.is-scrolled {
  background: rgba(248,245,238,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Brand / logo */
.brand { display: flex; align-items: center; gap: 14px; z-index: 2; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__badge {
  width: 50px; height: 50px; flex: none; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #fffdf8, #eef0ec);
  border: 1px solid rgba(201,162,75,.55); box-shadow: 0 3px 10px rgba(6,37,29,.22);
}
.brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--ivory); letter-spacing: .01em;
}
.brand__sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.header.is-scrolled .brand__name { color: var(--green-800); }
.header.is-scrolled .brand__sub { color: var(--gold-500); }
html[lang="ar"] .brand__sub { letter-spacing: .04em; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 26px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ivory);
  padding: 6px 2px; transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header.is-scrolled .nav__link { color: var(--green-800); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center; border: 1px solid rgba(248,245,238,.4);
  border-radius: 999px; overflow: hidden; height: 38px;
}
.header.is-scrolled .lang { border-color: var(--line); }
.lang__btn {
  border: 0; background: transparent; color: var(--ivory);
  padding: 0 14px; height: 100%; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}
.header.is-scrolled .lang__btn { color: var(--green-800); }
.lang__btn.is-active { background: var(--gold-500); color: var(--green-900); }

/* Language toggle next to the brand (mobile only; desktop uses the nav one) */
.lang--top { display: none; }

/* Hamburger */
.hamburger {
  --bar: #f8f5ee;
  display: none; width: 46px; height: 46px; border: 0; background: transparent;
  position: relative; z-index: 120;
}
.header.is-scrolled .hamburger { --bar: var(--green-800); }
.hamburger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bar);
  border-radius: 2px; transition: transform .3s ease, opacity .2s ease, background .3s ease;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
body.menu-open .hamburger span { --bar: #f8f5ee; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer + overlay */
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 110;
  width: min(84vw, 360px);
  background: linear-gradient(165deg, var(--green-800), var(--green-900));
  color: var(--ivory);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.5,0,.2,1);
  padding: calc(var(--header-h) + 20px) 34px 40px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
html[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
body.menu-open .drawer { transform: translateX(0); }
.drawer__link {
  font-family: var(--font-display); font-size: 1.32rem; color: var(--ivory);
  padding: 12px 0; border-bottom: 1px solid rgba(248,245,238,.12);
  display: flex; align-items: center; justify-content: space-between;
}
html[lang="ar"] .drawer__link { font-family: var(--font-ar-display); }
.drawer__link span.num { font-size: .72rem; color: var(--gold-400); font-family: var(--font-body); }
.drawer__cta { margin-top: 22px; }
.drawer__lang { display: flex; gap: 10px; margin-top: 26px; }
.drawer__lang .lang { border-color: rgba(248,245,238,.4); }

.overlay {
  position: fixed; inset: 0; z-index: 105; background: rgba(6,37,29,.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
body.menu-open .overlay { opacity: 1; visibility: visible; }

/* =========================================================================
   SUBPAGE HEADER BAND (Prayer / About / Islam pages)
   ========================================================================= */
.page-hero {
  position: relative; overflow: hidden; color: var(--ivory);
  padding: calc(var(--header-h) + 46px) 0 52px;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(28,135,104,.5), transparent 55%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 78%);
}
.page-hero__pattern {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-repeat: repeat; background-size: 320px;
}
.page-hero .container { position: relative; z-index: 2; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  color: var(--gold-300); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s ease, gap .2s ease;
}
.back-link:hover { color: var(--gold-400); gap: 12px; }
.back-link svg { width: 17px; height: 17px; }
html[dir="rtl"] .back-link svg { transform: scaleX(-1); }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--gold-300);
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
}
html[lang="ar"] .page-hero__eyebrow { letter-spacing: .06em; }
.page-hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-400); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0; }
.page-hero__lead { font-size: 1.08rem; color: rgba(248,245,238,.86); max-width: 620px; margin: 14px 0 0; }

/* Bottom "back to home" bar on subpages */
.page-back { text-align: center; padding: 8px 0 4px; }
.page-back .btn { min-width: 220px; }

@media (max-width: 620px) {
  .page-hero { padding: calc(var(--header-h) + 26px) 0 34px; }
  .back-link { margin-bottom: 16px; font-size: .74rem; }
  .page-hero__lead { font-size: .98rem; }
}

/* =========================================================================
   HERO
   ========================================================================= */
html[lang="ar"] .pillar .ar { display: none; }
:root { --tshadow: 0 1px 2px rgba(4,16,12,.95), 0 3px 12px rgba(4,16,12,.78), 0 10px 44px rgba(4,16,12,.82); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Tall scroll track; the sticky stage pins inside it and the video scrubs to scroll */
.hero { position: relative; height: 400vh; color: var(--ivory); background: var(--green-900); }
.hero__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(28,135,104,.5), transparent 55%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 72%);
}
.hero__poster {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/hero-hall-enhanced.jpg") center center / cover no-repeat;
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease; transform: translateZ(0); will-change: transform;
}
.hero__stage.video-ready .hero__video { opacity: 1; }
.hero__pattern {
  position: absolute; inset: 0; opacity: .06; pointer-events: none; z-index: 2;
  background-repeat: repeat; background-size: 320px;
}
/* Base scrim: always on, so no video frame is ever raw behind the text */
.hero__scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 92% at 50% 46%, rgba(4,18,13,0) 30%, rgba(4,18,13,.6) 100%),
    linear-gradient(180deg, rgba(3,15,11,.5) 0%, transparent 22%, transparent 60%, rgba(3,15,11,.82) 100%);
}
/* Open from black on load */
.hero__fade {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; background: #03140f;
  animation: heroOpen 1.6s ease-out .1s forwards;
}
@keyframes heroOpen { from { opacity: 1; } to { opacity: 0; } }

/* ---- Caption bands (the scroll-driven story) ---- */
.hero__bands { position: absolute; inset: 0; z-index: 5; }
.band {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(900px, 92vw); padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; pointer-events: none; text-shadow: var(--tshadow);
}
.band.is-on { pointer-events: auto; }
.band::before {
  content: ""; position: absolute; inset: -10% -14%; z-index: -1; pointer-events: none;
  opacity: calc(.3 + .7 * var(--k, 1));
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(4,16,12,.72) 0%, rgba(4,16,12,.5) 46%, rgba(4,16,12,0) 76%);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--gold-300);
  font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
}
html[lang="ar"] .hero__eyebrow { letter-spacing: .06em; }
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--gold-400); }
.band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.03; margin: 0; }
html[lang="ar"] .band__title { font-family: var(--font-ar-display); }
.hero__ar-name { font-family: var(--font-ar-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold-300); direction: rtl; }
html[lang="ar"] .hero__ar-name { display: none; }
.band--lead p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.3vw, 2.7rem); line-height: 1.2; margin: 0; }
.band--settle { gap: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.band .btn { text-shadow: none; }
.rise { opacity: var(--k, 0); transform: translateY(calc((1 - var(--k, 0)) * 26px)); }

/* Discreet live "next prayer" chip */
.hero-next {
  display: inline-flex; align-items: baseline; gap: 10px 12px; flex-wrap: wrap; justify-content: center;
  padding: 12px 22px; border-radius: 22px; text-shadow: none;
  background: rgba(5,26,20,.82); border: 1px solid rgba(216,185,104,.42); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(3,16,12,.4);
}
.hero-next__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.hero-next__name { font-family: var(--font-display); font-size: 1.06rem; color: var(--ivory); }
html[lang="ar"] .hero-next__name { font-family: var(--font-ar-display); }
.hero-next__time { font-weight: 700; color: var(--gold-300); }
.hero-next__cd { font-size: .8rem; color: rgba(248,245,238,.72); }

/* Static composed hero only when the visitor asks for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 100vh; display: block; padding: calc(var(--header-h) + 42px) 0 58px; }
  .hero__video { display: none; }
  .hero__fade { animation: none; opacity: 0; }
  .hero__bands { position: relative; inset: auto; display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-height: calc(100vh - var(--header-h) - 100px); gap: 30px; padding: 0 22px; }
  .band { position: relative; left: auto; top: auto; transform: none; opacity: 1 !important; width: 100%; }
  .band::before { display: none; }
  .rise { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
}
/* Small phones: a touch more breathing room for the pinned bands under the fixed header */
@media (max-width: 560px) {
  .band { width: 94vw; padding: 0 14px; gap: 12px; }
  .band--lead p { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .band__title { font-size: clamp(2rem, 9vw, 3rem); }
}

/* Hero prayer card */
.prayer-card {
  background: linear-gradient(160deg, rgba(9,49,39,.9) 0%, rgba(6,37,29,.92) 100%);
  border: 1px solid rgba(216,185,104,.4);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(3,20,15,.42);
}
.prayer-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.prayer-card__title { font-size: 1.1rem; color: var(--ivory); }
.prayer-card__date { font-size: .82rem; color: var(--gold-300); }
.prayer-card__next {
  margin: 18px 0; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,162,75,.95), rgba(184,140,58,.82));
  border: 1px solid var(--gold-300);
  box-shadow: 0 8px 22px rgba(184,140,58,.32);
}
.prayer-card__next-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(6,37,29,.72); font-weight: 600; }
.prayer-card__next-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.prayer-card__next-name { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-900); }
html[lang="ar"] .prayer-card__next-name { font-family: var(--font-ar-display); }
.prayer-card__next-time { font-size: 1.5rem; font-weight: 700; color: var(--green-900); }
.prayer-card__countdown { font-size: .84rem; color: rgba(248,245,238,.72); margin-top: 4px; }
.prayer-card__next .prayer-card__countdown { color: rgba(6,37,29,.78); font-weight: 500; }
.prayer-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.prayer-mini > div {
  padding: 10px 4px; border-radius: 10px;
  background: rgba(20,106,82,.32); border: 1px solid rgba(216,185,104,.2);
}
.prayer-mini .pm-name { font-size: .72rem; color: var(--gold-300); text-transform: uppercase; letter-spacing: .05em; }
.prayer-mini .pm-time { font-size: .98rem; font-weight: 600; margin-top: 4px; color: var(--ivory); }
.prayer-mini > div.is-next {
  background: linear-gradient(160deg, var(--gold-400), var(--gold-500));
  border: 1px solid var(--gold-300); box-shadow: 0 6px 16px rgba(184,140,58,.3);
}
.prayer-mini > div.is-next .pm-name { color: rgba(6,37,29,.7); }
.prayer-mini > div.is-next .pm-time { color: var(--green-900); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(248,245,238,.6); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 7;
}
.scroll-cue { opacity: 0; animation: cueFade 1s ease-out 2s forwards; }
@keyframes cueFade { to { opacity: 1; } }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold-400), transparent); animation: cue 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; opacity: 1; } }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6);} 50% { opacity: 1; transform: scaleY(1);} }

/* =========================================================================
   PRAYER TIMES (Mawaqit)
   ========================================================================= */
.mawaqit-wrap {
  max-width: 1000px; margin: 40px auto 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.2);
  background: #14110c; padding: 6px;
}
.mawaqit-wrap iframe { width: 100%; height: 480px; border: 0; display: block; border-radius: 18px; }
.mawaqit-note {
  margin-top: 18px; text-align: center; font-size: .9rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%;
}
.mawaqit-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47,191,113,.18); }

/* =========================================================================
   ABOUT + VISION/MISSION
   ========================================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; background: linear-gradient(160deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.about__media .frame svg { width: 78%; opacity: .95; }
.about__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about__media .badge {
  position: absolute; bottom: -26px; inset-inline-start: -26px;
  background: var(--gold-500); color: var(--green-900); border-radius: 18px;
  padding: 20px 24px; box-shadow: var(--shadow-md); text-align: center;
}
.about__media .badge strong { font-family: var(--font-display); font-size: 2rem; display: block; }
.about__media .badge span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.about__text p { color: var(--ink-soft); margin: 0 0 18px; }
.about__text .section-title { margin-bottom: 20px; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.vm-card {
  background: rgba(248,245,238,.05); border: 1px solid rgba(248,245,238,.14);
  border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden;
}
.vm-card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(216,185,104,.16); border: 1px solid rgba(216,185,104,.3); margin-bottom: 20px;
}
.vm-card__icon svg { width: 30px; height: 30px; stroke: var(--gold-300); }
.vm-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.vm-card p { color: rgba(248,245,238,.8); margin: 0; }
.values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.values span {
  font-size: .84rem; padding: 8px 16px; border-radius: 999px;
  background: rgba(216,185,104,.14); border: 1px solid rgba(216,185,104,.3); color: var(--gold-300);
}

/* =========================================================================
   WHAT IS ISLAM
   ========================================================================= */
.islam-intro { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.islam-intro .arabic-quote {
  font-family: var(--font-ar-display); font-size: 2rem; color: var(--green-700);
  direction: rtl; margin: 8px 0 14px;
}
.islam-intro .translit { font-style: italic; color: var(--ink-soft); }

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pillar {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.pillar__num {
  width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-700); color: var(--gold-300); font-family: var(--font-display); font-weight: 700;
}
.pillar h4 { font-size: 1.16rem; color: var(--green-800); margin-bottom: 8px; }
.pillar .ar { font-family: var(--font-ar-display); color: var(--gold-500); font-size: 1.1rem; direction: rtl; margin-bottom: 10px; }
.pillar p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.belief {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
  background: var(--cream-card); border: 1px solid var(--line);
}
.belief__ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(20,106,82,.1);
  display: flex; align-items: center; justify-content: center;
}
.belief__ic svg { width: 24px; height: 24px; stroke: var(--green-600); }
.belief h4 { font-size: 1.05rem; color: var(--green-800); margin-bottom: 4px; }
.belief p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* FAQ / misconceptions */
.faq { max-width: 820px; margin: 70px auto 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: inherit; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--font-display); font-size: 1.18rem; color: var(--green-800);
}
html[lang="ar"] .faq__q { font-family: var(--font-ar-display); }
.faq__q .plus { flex: none; width: 30px; height: 30px; position: relative; }
.faq__q .plus::before, .faq__q .plus::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--gold-500); transition: transform .3s ease;
}
.faq__q .plus::before { width: 16px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 16px; }
.faq__item.is-open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { color: var(--ink-soft); margin: 0 0 22px; }

.islam-cta {
  margin-top: 70px; text-align: center; background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: var(--ivory); border-radius: var(--radius-lg); padding: 56px 30px; position: relative; overflow: hidden;
}
.islam-cta h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.islam-cta p { color: rgba(248,245,238,.82); max-width: 560px; margin: 0 auto 26px; }

/* =========================================================================
   SERVICES / ACTIVITIES
   ========================================================================= */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, box-shadow .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service__ic {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  display: flex; align-items: center; justify-content: center;
}
.service__ic svg { width: 28px; height: 28px; stroke: var(--gold-300); }
.service h4 { font-size: 1.2rem; color: var(--green-800); margin-bottom: 8px; }
.service p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* Featured / important service card */
.service--featured {
  position: relative;
  background: linear-gradient(160deg, #fffaf0 0%, #fbf3e0 100%);
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 14px 34px rgba(184,140,58,.2);
}
.service--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(216,185,104,.35);
}
.service--featured .service__ic {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}
.service--featured .service__ic svg { stroke: var(--green-900); }
.service--featured h4 { color: var(--green-900); }
.service__badge {
  position: absolute; top: -12px; inset-inline-start: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--green-900);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(184,140,58,.35);
}
.service__badge::before { content: "★"; font-size: .8rem; line-height: 1; }
html[lang="ar"] .service__badge { letter-spacing: 0; }

/* =========================================================================
   DONATION
   ========================================================================= */
.donate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.donate__text .arabic-quote { font-family: var(--font-ar-display); font-size: 1.7rem; color: var(--gold-300); direction: rtl; margin: 14px 0; }
.donate__text p { color: rgba(248,245,238,.84); }
.donate__reasons { margin-top: 24px; display: grid; gap: 12px; }
.donate__reasons li { display: flex; gap: 12px; align-items: flex-start; color: rgba(248,245,238,.9); }
.donate__reasons svg { flex: none; width: 22px; height: 22px; stroke: var(--gold-400); margin-top: 3px; }

.iban-card {
  background: var(--cream-card); color: var(--ink); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.iban-card h3 { color: var(--green-800); font-size: 1.6rem; margin-bottom: 6px; }
.iban-card .sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 26px; }
.iban-row { margin-bottom: 18px; }
.iban-row .label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; }
.iban-row .value { font-size: 1.06rem; font-weight: 600; color: var(--green-800); margin-top: 4px; word-break: break-word; }
.iban-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ivory-2); border: 1px dashed var(--gold-400); border-radius: 12px;
  padding: 14px 16px; margin-top: 4px;
}
.iban-copy code { font-family: "SFMono-Regular", Menlo, monospace; font-size: 1rem; color: var(--green-800); letter-spacing: .04em; }
.iban-copy button {
  border: 0; background: var(--green-700); color: var(--ivory); border-radius: 8px;
  padding: 8px 14px; font-size: .82rem; font-weight: 600; flex: none; transition: background .2s ease;
}
.iban-copy button:hover { background: var(--green-600); }
.iban-note { font-size: .82rem; color: var(--ink-soft); margin-top: 20px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__ic {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(20,106,82,.1);
  display: flex; align-items: center; justify-content: center;
}
.contact-item__ic svg { width: 24px; height: 24px; stroke: var(--green-600); }
.contact-item h4 { font-size: 1.05rem; color: var(--green-800); margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.contact-item a:hover { color: var(--green-600); }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.hours-list { margin-top: 6px; }
.hours-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.hours-list li span:last-child { color: var(--green-700); font-weight: 600; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--green-900); color: rgba(248,245,238,.8); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand__name { color: var(--ivory); }
.footer p { font-size: .92rem; color: rgba(248,245,238,.62); margin: 18px 0 0; max-width: 320px; }
.footer h5 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 18px; }
html[lang="ar"] .footer h5 { letter-spacing: .04em; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: .92rem; color: rgba(248,245,238,.7); transition: color .2s ease; }
.footer__links a:hover { color: var(--gold-300); }
.footer__socials { display: flex; gap: 12px; margin-top: 8px; }
.footer__socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(248,245,238,.2);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease;
}
.footer__socials a:hover { background: rgba(216,185,104,.18); border-color: var(--gold-400); }
.footer__socials svg { width: 18px; height: 18px; fill: var(--ivory); }
.footer__bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(248,245,238,.12);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(248,245,238,.5);
}

/* =========================================================================
   Reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__grid, .contact__grid, .donate__grid { grid-template-columns: 1fr; gap: 40px; }
  .vm-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .beliefs { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__media { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav__links, .nav > .nav__actions .lang { display: none; }
  .nav__actions .btn { display: none; }
  .hamburger { display: block; }
  .nav { gap: 8px; margin-inline-start: auto; }
  /* Show the compact language toggle right next to the brand */
  .lang--top { display: inline-flex; height: 34px; margin-inline-start: 4px; }
  .lang--top .lang__btn { padding: 0 12px; font-size: .8rem; }
  .header__inner { gap: 12px; }
}

@media (max-width: 620px) {
  .section { padding: 46px 0; }
  .container { padding: 0 16px; }
  /* Compact brand so it shares the top bar with the language toggle */
  .brand { gap: 10px; }
  .brand__badge { width: 42px; height: 42px; border-radius: 12px; }
  .brand__name { font-size: .96rem; }
  .brand__sub { font-size: .58rem; letter-spacing: .1em; white-space: nowrap; }
  .lang--top { margin-inline-start: 2px; }
  /* Keep compact 2-up card grids on phones instead of endless single-column stacks */
  .pillars, .services, .beliefs, .footer__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .beliefs { margin-top: 32px; }
  /* Tighter cards so 2-up fits cleanly */
  .pillar { padding: 18px 12px; }
  .pillar__num { width: 34px; height: 34px; margin-bottom: 10px; }
  .pillar h4 { font-size: 1rem; }
  .pillar .ar { font-size: .98rem; margin-bottom: 6px; }
  .pillar p { font-size: .82rem; }
  .service { padding: 18px 15px; }
  .service__ic { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; }
  .service__ic svg { width: 22px; height: 22px; }
  .service h4 { font-size: 1.04rem; }
  .service p { font-size: .84rem; }
  .belief { padding: 14px; gap: 11px; }
  .belief__ic { width: 38px; height: 38px; border-radius: 10px; }
  .belief__ic svg { width: 20px; height: 20px; }
  .belief h4 { font-size: .95rem; }
  .belief p { font-size: .82rem; }
  .faq { margin-top: 36px; }
  .faq__q { padding: 16px 0; font-size: 1.02rem; }
  .faq__a p { margin-bottom: 16px; }
  .islam-cta { margin-top: 40px; padding: 34px 22px; }
  .prayer-mini { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .prayer-mini .pm-time { font-size: .82rem; }
  .about__media .badge { inset-inline-start: 50%; transform: translateX(-50%); bottom: -22px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .mawaqit-wrap iframe { height: 430px; }
  .iban-card { padding: 24px; }
}

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius); margin: 0;
  box-shadow: var(--shadow-sm); grid-column: span 2;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px; color: #fff;
  font-family: var(--font-display); font-size: 1.06rem;
  background: linear-gradient(transparent, rgba(6,37,29,.82));
}
html[lang="ar"] .gallery__item figcaption { font-family: var(--font-ar-display); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 4; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item, .gallery__item--tall, .gallery__item--wide { grid-column: span 1; grid-row: span 1; }
  .gallery__item--tall { grid-column: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; margin-top: 30px !important; }
  .gallery__item { grid-column: span 1; grid-row: span 1; }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item figcaption { font-size: .9rem; padding: 22px 12px 12px; }
}

/* =========================================================================
   UMRAH highlight (donation)
   ========================================================================= */
.umrah {
  position: relative; margin-top: 36px; border-radius: var(--radius-lg); padding: 34px;
  overflow: hidden; background: linear-gradient(120deg, rgba(216,185,104,.18), rgba(216,185,104,.05));
  border: 1px solid rgba(216,185,104,.42);
}
.umrah__glow {
  position: absolute; width: 360px; height: 360px; inset-inline-end: -90px; top: -130px;
  background: radial-gradient(circle, rgba(216,185,104,.28), transparent 66%); pointer-events: none;
}
.umrah__badge {
  display: inline-flex; align-items: center; gap: 9px; position: relative; z-index: 1;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-300); margin-bottom: 16px;
}
html[lang="ar"] .umrah__badge { letter-spacing: .04em; }
.umrah__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(216,185,104,.22); }
.umrah__body { display: flex; gap: 24px; align-items: center; position: relative; z-index: 1; }
.umrah__icon {
  flex: none; width: 66px; height: 66px; border-radius: 16px;
  background: rgba(216,185,104,.16); border: 1px solid rgba(216,185,104,.38);
  display: flex; align-items: center; justify-content: center;
}
.umrah__icon svg { width: 34px; height: 34px; stroke: var(--gold-300); }
.umrah h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 8px; color: var(--ivory); }
.umrah p { margin: 0; color: rgba(248,245,238,.86); }
@media (max-width: 620px) {
  .umrah__body { flex-direction: column; text-align: center; align-items: center; }
}
