/* =====================================================================
   Al Hikmah Centre — styles
   Colours taken from the logo: black, gold, leaf green
   ===================================================================== */
:root {
  --ink: #141413;
  --ink-2: #1d1c1a;
  --bg: #faf8f3;
  --surface: #ffffff;
  --line: #ebe5d8;
  --muted: #6e6a62;
  --gold: #c8962e;
  --gold-2: #e5c167;
  --gold-soft: #f6eed9;
  --green: #5b9a2c;
  --green-2: #86c548;
  --green-soft: #ecf4e3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 8px 28px rgba(20, 20, 19, .07);
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
  --header-h: 80px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c8962e' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Cpath d='M32 9.4 54.6 32 32 54.6 9.4 32z'/%3E%3Cpath d='M0 0l9.4 9.4M64 0l-9.4 9.4M0 64l9.4-9.4M64 64l-9.4-9.4M32 0v9.4M32 64v-9.4M0 32h9.4M64 32h-9.4'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.arabic { font-family: var(--font-ar); }
.hijri { color: var(--gold); font-size: .9em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font: 600 .95rem var(--font-body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; box-shadow: 0 6px 20px rgba(200,150,46,.3); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(200,150,46,.42); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); transition: .2s; flex: none;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
[hidden] { display: none !important; }
.link-btn { background: none; border: 0; color: var(--gold); font: 600 .9rem var(--font-body); cursor: pointer; margin: 14px auto 0; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(15, 15, 14, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(229,193,103,.15);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { border-radius: 50%; width: 60px; height: 60px; box-shadow: 0 0 0 1px rgba(229,193,103,.35); }
.brand-text { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold-2); letter-spacing: .02em; }
.brand-text small { font-family: var(--font-body); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: #d9d4c8; margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: #e9e5dc; text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold-2); transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 70% 20%, #24211b 0%, #0f0f0e 60%); color: #fff;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
}
.hero-pattern { position: absolute; inset: 0; background-image: var(--pattern); opacity: .08; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-pattern.faint { opacity: .06; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.bismillah { font-family: var(--font-ar); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--gold-2); margin-bottom: 18px; direction: rtl; text-align: left; }
.jumuah-banner {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: rgba(229,193,103,.12); border: 1px solid rgba(229,193,103,.45);
  color: #f3e6c2; font-size: .92rem; animation: fadeUp .5s ease;
}
.jumuah-banner strong { color: var(--gold-2); }
.jb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(134,197,72,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(134,197,72,.6); } 70% { box-shadow: 0 0 0 9px rgba(134,197,72,0); } 100% { box-shadow: 0 0 0 0 rgba(134,197,72,0); } }
.btn-whatsapp { background: #25d366; color: #052e16; }
.btn-whatsapp:hover { background: #1fbe5a; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.wa-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 600; color: var(--green-2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); color: #fff; margin-bottom: .1em; }
.arabic-name { font-family: var(--font-ar); color: var(--gold-2); font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 14px; line-height: 1.4; }
.hero h1 span { background: linear-gradient(135deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #cfcac0; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.next-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(229,193,103,.25); border-radius: 24px;
  padding: 30px; text-align: center; backdrop-filter: blur(6px); box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.next-dates { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: #bdb7aa; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 18px; }
.next-label { text-transform: uppercase; letter-spacing: .25em; font-size: .72rem; color: var(--green-2); margin: 0; }
.next-name { font-family: var(--font-head); font-size: 2.4rem; margin: 4px 0 0; color: #fff; }
.next-time { color: var(--gold-2); font-size: 1.05rem; margin-bottom: 18px; }
.countdown { display: flex; justify-content: center; gap: 12px; }
.countdown div { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 0; width: 76px; }
.countdown b { display: block; font: 600 1.8rem var(--font-body); font-variant-numeric: tabular-nums; color: #fff; }
.countdown small { color: #9c968a; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.next-jamaah { margin: 18px 0 0; font-size: .92rem; color: #cfcac0; }
.next-jamaah:empty { display: none; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-2); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 110px) 0; position: relative; }
.section-alt { background: #f3efe6; }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.section-dark .eyebrow { color: var(--green-2); }
.section-sub { color: var(--muted); }

.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--green-soft); border: 1px solid #d6e8c4; border-radius: 14px; padding: 16px 20px; max-width: 820px; margin: 0 auto 30px; }
.notice svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; margin-top: 2px; }
.notice p { margin: 0; font-size: .95rem; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 5px; border-radius: 999px; width: fit-content; margin: 0 auto 30px; }
.tab { border: 0; background: none; padding: 10px 22px; border-radius: 999px; font: 600 .9rem var(--font-body); color: var(--muted); cursor: pointer; transition: .25s; }
.tab.active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Daily card */
.day-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; max-width: 980px; margin: 0 auto; }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.day-title { text-align: center; display: flex; flex-direction: column; }
.day-title strong { font-family: var(--font-head); font-weight: 400; font-size: 1.35rem; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.prayer {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px; text-align: center; position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s; background: var(--surface);
}
.prayer:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prayer .p-ar { font-family: var(--font-ar); color: var(--gold); font-size: 1.15rem; line-height: 1; }
.prayer .p-name { font-weight: 600; margin: 6px 0 10px; }
.prayer .p-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.prayer .p-time { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.prayer .p-jamaah { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.prayer .p-jamaah .p-time { color: var(--green); }
.prayer .p-jamaah.none .p-time { color: #b7b2a8; font-weight: 500; font-size: .95rem; }
.prayer .p-jamaah.closed .p-time { color: #c2412d; font-size: 1rem; }
.prayer.sunrise { background: #fbfaf6; }
.prayer.next { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.prayer.next::before { content: "Next"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.prayer.past { opacity: .55; }

/* Jumu'ah */
.jumuah { max-width: 980px; margin: 22px auto 0; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 24px; padding: 26px 30px; position: relative; overflow: hidden; }
.jumuah::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .07; pointer-events: none; }
.jumuah-title .arabic { color: var(--gold-2); font-size: 1.6rem; display: block; line-height: 1; }
.jumuah-title h3 { margin: 6px 0 0; font-size: 1.6rem; }
.jumuah-title p { margin: 0; color: #a9a397; font-size: .9rem; }
.jumuah-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; position: relative; z-index: 1; }
.slot { background: rgba(255,255,255,.06); border: 1px solid rgba(229,193,103,.25); border-radius: 14px; padding: 14px 18px; }
.slot small { display: block; color: #bdb7aa; font-size: .82rem; }
.slot b { font-size: 1.5rem; color: var(--gold-2); font-weight: 600; }

/* Month table */
.month-head { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.month-head strong { font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; min-width: 200px; text-align: center; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.month-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 720px; }
.month-table th, .month-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.month-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .04em; position: sticky; top: 0; }
.month-table thead th.sub { background: #2a2926; font-weight: 500; font-size: .75rem; }
.month-table thead th.hl { color: var(--gold-2); }
.month-table td.date { text-align: left; font-weight: 500; }
.month-table td.date small { color: var(--muted); font-weight: 400; margin-right: 6px; display: inline-block; width: 32px; }
.month-table td.jm { color: var(--green); font-weight: 600; background: #f8fbf4; }
.month-table td.closed { color: #c2412d; font-weight: 600; font-size: .78rem; letter-spacing: .05em; }
.month-table tr.fri td { background: #fbf7ec; }
.month-table tr.today td { background: var(--gold-soft); font-weight: 600; }
.month-table tr.today td.date { box-shadow: inset 4px 0 var(--gold); }
.month-table .short { display: none; }
.table-note { color: var(--muted); font-size: .88rem; margin: 14px 0; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 26px; }
.event { background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.event:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,20,19,.12); }
.event-poster { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; background: #111; display: block; width: 100%; }
.event-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.event:hover .event-poster img { transform: scale(1.04); }
.event-poster .zoom { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.event-date { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 14px; padding: 8px 12px; text-align: center; line-height: 1.1; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.event-date b { display: block; font-size: 1.5rem; font-family: var(--font-head); font-weight: 400; }
.event-date small { text-transform: uppercase; font-size: .68rem; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.event-date.soon { background: var(--gold); color: #1a1405; }
.event-date.soon small { color: #3a2e10; }
.event-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.event-tag { align-self: flex-start; background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.event-body h3 { margin-bottom: 4px; }
.event-speaker { color: var(--gold); font-weight: 500; font-size: .92rem; margin-bottom: 12px; }
.event-meta { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .9rem; }
.event-meta li { display: flex; gap: 10px; align-items: flex-start; }
.event-meta svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.event-desc { color: var(--muted); font-size: .92rem; margin-bottom: 0; }
.event-next { margin-top: auto; padding-top: 16px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.event-next span { color: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 40px; grid-column: 1 / -1; }

/* ---------- Madrasah split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pattern-tile {
  aspect-ratio: 1; border-radius: 28px; background: var(--ink); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; padding: 30px; text-align: center;
}
.pattern-tile::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .14; }
.pattern-tile::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(229,193,103,.35); border-radius: 20px; }
.pattern-tile .big { font-size: clamp(4rem, 12vw, 7rem); color: var(--gold-2); line-height: 1.2; position: relative; }
.pattern-tile .caption { color: #bdb7aa; font-size: .9rem; position: relative; max-width: 28ch; }
.facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.facts li { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.facts strong { display: block; }
.facts small { color: var(--muted); }
.fact-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.fact-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Story ---------- */
.story-text { font-size: 1.15rem; color: #cfcac0; }
.leaf-divider { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 30px; }
.leaf-divider::before, .leaf-divider::after { content: ""; height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--gold)); }
.leaf-divider::after { transform: scaleX(-1); }
.leaf-divider img { border-radius: 50%; width: 96px; height: 96px; box-shadow: 0 0 0 1px rgba(229,193,103,.35); }

/* ---------- Facilities ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 26px; text-align: center; transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature svg { width: 56px; height: 56px; padding: 14px; border-radius: 16px; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 16px; display: block; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.g-item { border-radius: 18px; overflow: hidden; position: relative; cursor: zoom-in; border: 0; padding: 0; background: #ddd; }
.g-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(6n+4) { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; text-align: left; }
.g-item:hover figcaption { opacity: 1; }
.g-placeholder { cursor: default; background: linear-gradient(135deg, #1d1c1a, #2b2923); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #8f897c; font-size: .82rem; }
.g-placeholder::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .12; }
.g-placeholder svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.5; position: relative; }
.g-placeholder span { position: relative; }

/* ---------- Donate band ---------- */
.donate-band { position: relative; background: linear-gradient(135deg, #191814, #0f0f0e); color: #fff; padding: 70px 0; overflow: hidden; }
.donate-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.donate-inner h2 { color: var(--gold-2); }
.donate-inner p { color: #bdb7aa; max-width: 60ch; margin: 0; font-style: italic; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--gold-soft); fill: none; stroke: var(--gold); stroke-width: 1.8; flex: none; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: #e7e2d6; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0a; color: #a9a397; padding: 56px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid #222; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { border-radius: 50%; width: 96px; height: 96px; box-shadow: 0 0 0 1px rgba(229,193,103,.3); }
.footer-brand p { margin: 0; font-size: .92rem; }
.footer-brand a { color: var(--gold-2); text-decoration: none; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--gold-2); }
.copyright { text-align: center; font-size: .82rem; margin: 22px 0 0; color: #6f6a60; }

/* ---------- Floating & overlays ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: #1a1405; font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,8,7,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-height: 100%; display: flex; flex-direction: column; align-items: center; animation: zoomIn .3s ease; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #d9d4c8; margin-top: 14px; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: .2s; }
.lightbox button:hover { background: var(--gold); color: #1a1405; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .3s; z-index: 400; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Donate page ---------- */
.page-hero { position: relative; background: radial-gradient(ellipse at 70% 10%, #24211b, #0f0f0e 65%); color: #fff; padding: calc(var(--header-h) + 70px) 0 80px; text-align: center; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
.page-hero h1 span { color: var(--gold-2); }
.page-hero .lead { margin: 0 auto; max-width: 52ch; }
.give-types { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.give-types span { border: 1px solid rgba(229,193,103,.35); color: var(--gold-2); border-radius: 999px; padding: 6px 16px; font-size: .85rem; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.donate-grid.single { grid-template-columns: 1fr; max-width: 560px; }
.donate-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; }
.donate-card .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 18px; }
.donate-card .ico svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.donate-card p { color: var(--muted); }
.bank-rows { display: grid; gap: 10px; margin: 6px 0 0; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 16px; }
.bank-row small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.bank-row b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.copy-btn { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font: 600 .8rem var(--font-body); cursor: pointer; color: var(--ink); transition: .2s; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.coming { background: var(--gold-soft); border: 1px dashed var(--gold); color: #7a5c17; border-radius: 14px; padding: 16px; font-size: .92rem; margin-top: auto; }
.donate-card .btn { margin-top: auto; align-self: flex-start; }
.hadith { max-width: 760px; margin: 60px auto 0; text-align: center; }
.hadith p { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.4; }
.hadith small { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: rgba(12,12,11,.98); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-size: 1.4rem; font-family: var(--font-head); }
  .nav .btn { margin-top: 10px; padding: 12px 34px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .nav { height: 100vh; height: 100dvh; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .bismillah { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .next-card { max-width: 440px; margin: 0 auto; width: 100%; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split-media { max-width: 420px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .donate-inner { flex-direction: column; text-align: center; }
  .jumuah { grid-template-columns: 1fr; text-align: center; }
  .donate-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 70px; }
  .container { width: calc(100% - 32px); }
  .brand-text { font-size: 1.15rem; }
  .brand img { width: 50px; height: 50px; }
  .day-card { padding: 18px 14px; border-radius: 20px; }
  .prayer-grid { grid-template-columns: 1fr; gap: 8px; }
  .day-title strong { font-size: 1.1rem; }
  .day-nav { gap: 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .prayer { display: grid; grid-template-columns: minmax(0, 1fr) 82px 82px; align-items: center; gap: 8px; text-align: left; padding: 12px 12px 12px 14px; }
  .prayer > * { min-width: 0; }
  .prayer .p-head { display: flex; flex-direction: column; gap: 2px; }
  .prayer .p-ar { font-size: 1rem; }
  .prayer .p-name { margin: 0; }
  .prayer .p-label { font-size: .62rem; letter-spacing: .08em; }
  .prayer .p-jamaah { margin: 0; padding: 0 0 0 10px; border-top: 0; border-left: 1px dashed var(--line); }
  .prayer .p-time { font-size: .98rem; white-space: nowrap; }
  .prayer .p-jamaah.none .p-time { font-size: .85rem; white-space: normal; }
  .prayer.next::before { left: auto; right: 10px; transform: none; }

  /* Monthly table: fit all columns on a phone */
  .table-wrap { border-radius: 14px; }
  .month-table { min-width: 0; font-size: .74rem; table-layout: fixed; }
  .month-table th, .month-table td { padding: 7px 2px; }
  .month-table thead th { font-size: .66rem; letter-spacing: 0; }
  .month-table thead th.sub { font-size: .6rem; }
  .month-table th:first-child, .month-table td.date { width: 34px; }
  .month-table thead th { white-space: normal; line-height: 1.15; }
  .month-table td.date { text-align: center; line-height: 1.1; }
  .month-table td.date small { display: block; width: auto; margin: 0; font-size: .6rem; }
  .month-table td.closed { font-size: .55rem; letter-spacing: 0; }
  .month-table .ampm { display: none; }
  .month-table .long { display: none; }
  .month-table .short { display: inline; }
  .month-head strong { font-size: 1.2rem; min-width: 0; }
  .countdown div { width: 70px; }
  .next-card { padding: 24px 18px; }
  .events-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-item:nth-child(6n+1) { grid-column: span 2; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-nav { justify-content: center; }
  .tab { padding: 9px 16px; }
  .donate-card { padding: 24px 20px; }
}

/* ---------- Print (monthly timetable) ---------- */
@media print {
  body * { visibility: hidden; }
  #panel-month, #panel-month * { visibility: visible; }
  #panel-month { position: absolute; inset: 0; display: block !important; }
  #panel-month .btn, .icon-btn { display: none; }
  .table-wrap { box-shadow: none; overflow: visible; }
  .month-table { font-size: 10pt; min-width: 0; }
  .month-table thead th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .month-table td, .month-table th { padding: 4px 6px; }
}
