/* Al-Misbah Islamic Centre — public site theme "Heritage"
   Espresso, cream and gold, taken from the AMICC logo. The mihrab arch is the recurring motif. */
:root {
    --espresso: #24130a;
    --espresso-2: #2f190b;
    --brown-deep: #3a1d04;
    --brown-dark: #5a2d06;
    --brown: #8f4a07;
    --gold: #e29b1b;
    --gold-light: #f3c45a;
    --gold-pale: #f8e6bc;
    --gold-deep: #85560a;       /* gold-toned text on light backgrounds (AA contrast) */
    --cream: #fbf6ec;
    --parchment: #f3e8d4;
    --parchment-2: #ecdcc0;
    --ink: #2b1d10;
    --muted: #6b5643;
    --line: #e0cba6;
    --on-dark: #f6ead3;
    --on-dark-muted: #d9c29c;
    --white: #fffdf8;
    --shadow: 0 18px 40px -22px rgba(36, 19, 10, .45);
    --serif: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --arabic: "Amiri", "Traditional Arabic", "Scheherazade New", "Geeza Pro", "Arabic Typesetting", "Times New Roman", serif;
    --arch: 50% 50% 8px 8px / 72px 72px 8px 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--brown-dark); margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
[lang="ar"] { font-family: var(--arabic); font-weight: 400; line-height: 1.6; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 840px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--espresso); padding: .5rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.announce-bar :focus-visible, .btn-gold:focus-visible, .door-gold:focus-visible { outline-color: var(--espresso); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.icon-sm { width: .95em; height: .95em; }

/* ---------- Shared ornaments ---------- */
.ornament-edge { height: 24px; background: url("../img/heritage-border.svg") repeat-x center / auto 24px; opacity: .85; }
.ornament-edge-top { position: absolute; top: 0; left: 0; right: 0; }
.hero > .ornament-edge, .page-hero > .ornament-edge, .dark-band > .ornament-edge:not(.ornament-edge-top) { position: absolute; left: 0; right: 0; bottom: 0; }
.dark-bg, .hero, .page-hero, .dark-band, .site-footer, .admissions {
    background-color: var(--espresso);
    background-image: url("../img/heritage-pattern.svg"), radial-gradient(ellipse at 50% -10%, rgba(143, 74, 7, .55) 0%, transparent 62%);
    background-size: 64px 64px, 100% 100%;
    color: var(--on-dark);
}

/* ---------- Buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .66rem 1.2rem; border-radius: 6px; border: 1.5px solid transparent; font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .88rem 1.55rem; font-size: 1rem; }
.btn-sm { padding: .42rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--espresso); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 18px -10px rgba(226, 155, 27, .9); }
.btn-gold:hover { background: var(--gold-light); color: var(--espresso); }
.btn-brown { background: var(--brown-dark); color: #fff; }
.btn-brown:hover { background: var(--brown-deep); color: #fff; }
.btn-outline { border-color: var(--brown); color: var(--brown-dark); background: transparent; }
.btn-outline:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.btn-outline-light { border-color: rgba(243, 196, 90, .6); color: var(--on-dark); background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--espresso); }
.pill { display: inline-block; padding: .08rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-pale); color: var(--brown-dark); }
.pill-brown { background: var(--brown-dark); color: #fff; }
.pill-gold { background: var(--gold); color: var(--espresso); }
.pill-ink { background: var(--espresso); color: var(--gold-light); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; color: var(--gold-deep); margin-bottom: .35rem; }
.eyebrow-light, .dark-band .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.center.lead, .section-head-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Top bar & announcement bar ---------- */
.topbar { background: #1a0d05; color: var(--on-dark-muted); font-size: .84rem; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-inner { display: flex; align-items: center; gap: .4rem 1.5rem; padding-top: .42rem; padding-bottom: .42rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.topbar-item .icon { color: var(--gold); }
.topbar-address a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; gap: 1rem; flex-shrink: 0; }
.topbar-hijri { color: var(--gold-light); letter-spacing: .02em; }

.announce-bar { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%); color: var(--espresso); font-weight: 600; border-bottom: 1px solid #c9850f; }
.announce-inner { display: flex; align-items: center; gap: 1rem; min-height: 50px; padding-top: .35rem; padding-bottom: .35rem; }
.announce-label { display: inline-flex; align-items: center; gap: .45rem; background: var(--espresso); color: var(--gold-light); padding: .34rem .95rem .34rem .8rem; border-radius: 999px 999px 999px 999px; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(243, 196, 90, .45); }
.announce-label:hover { color: #fff; }
.announce-items { position: relative; flex: 1; min-width: 0; min-height: 1.6em; overflow: hidden; }
.announce-item { display: none; align-items: center; gap: .55rem; min-width: 0; }
.announce-item.is-active { display: flex; animation: tickerIn .45s ease; }
.announce-item .pill { flex-shrink: 0; }
.announce-item a { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; color: var(--espresso); text-decoration: none; font-size: .98rem; }
.announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-item a:hover .announce-text { text-decoration: underline; }
.announce-controls { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.announce-count { font-size: .78rem; font-variant-numeric: tabular-nums; margin-right: .25rem; opacity: .8; }
.announce-controls button { border: 1px solid rgba(36, 19, 10, .35); background: rgba(255, 255, 255, .25); color: var(--espresso); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.announce-controls button:hover { background: var(--espresso); color: var(--gold-light); }
@keyframes tickerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Header (centred, symmetrical) ---------- */
.site-header { background: var(--cream); background-image: linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%); position: relative; z-index: 20; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-top: .8rem; padding-bottom: .6rem; }
.header-side { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.header-side-label { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; color: var(--gold-deep); }
.header-visit a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brown-dark); text-decoration: none; }
.header-visit a:hover { text-decoration: underline; }
.header-cta { align-items: flex-end; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; text-decoration: none; }
.brand img { width: 66px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--brown-dark); letter-spacing: .01em; }
.brand-sub { white-space: nowrap; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-top: .2rem; }
.site-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 -2px var(--line); background: var(--cream); }
.nav-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 .4rem; }
.site-nav a:not(.btn) { position: relative; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; padding: .85rem .9rem; }
.site-nav a:not(.btn) + a:not(.btn)::before { content: ""; position: absolute; left: -4px; top: 50%; width: 5px; height: 5px; background: var(--gold); transform: translateY(-50%) rotate(45deg); }
.site-nav a:not(.btn):hover { color: var(--brown); }
.site-nav a.active { color: var(--brown); }
.site-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 34px; height: 3px; background: var(--gold); transform: translateX(-50%); border-radius: 3px 3px 0 0; }
.nav-donate { display: none; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 8px; width: 44px; height: 44px; color: var(--brown-dark); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* ---------- Home hero: arch frame + prayer tiles ---------- */
.hero { position: relative; text-align: center; overflow: hidden; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; padding-top: 1.6rem; padding-bottom: 3.6rem; }
.hero-arch { position: relative; width: 100%; max-width: 860px; padding: 2.9rem 3rem .2rem; }
.arch-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch-line path { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.arch-line .arch-line-inner { fill: none; stroke-opacity: .45; stroke-width: 1; }
.hero-finial { position: absolute; top: -13px; left: 50%; width: 28px; height: 28px; transform: translateX(-50%); }
.basmala { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-light); margin-bottom: .4rem; }
.hero-welcome { text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; color: var(--on-dark-muted); margin-bottom: .2rem; }
.hero h1 { color: #fff8ea; margin-bottom: .2rem; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--on-dark); max-width: 640px; margin: 0 auto; }
.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.hero-foot .hero-actions { justify-content: center; margin: 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; color: var(--on-dark-muted); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts .icon { color: var(--gold); }
.hero-facts a { color: var(--on-dark); }

/* ---------- Prayer card (tiles) ---------- */
.prayer-card { width: 100%; max-width: 1120px; margin: 0 auto; text-align: center; color: var(--on-dark); }
.prayer-card-head { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.7rem; }
.prayer-card-ar { font-size: 1.3rem; color: var(--gold-light); margin: 0; line-height: 1.2; }
.prayer-card h2 { color: #fff8ea; margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prayer-date { color: var(--on-dark-muted); font-size: .95rem; margin: .2rem 0 0; }
.prayer-date .js-hijri:not(:empty) { color: var(--gold-light); }
.prayer-date .js-hijri:not(:empty)::before { content: "· "; color: var(--on-dark-muted); }
.next-prayer { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: .2rem .7rem; padding: .5rem 1.3rem; border: 1px solid rgba(243, 196, 90, .6); border-radius: 999px; background: rgba(226, 155, 27, .12); box-shadow: inset 0 0 0 3px rgba(36, 19, 10, .6), inset 0 0 0 4px rgba(243, 196, 90, .25); line-height: 1.3; }
.next-prayer[hidden] { display: none; }
.next-prayer .next-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-muted); font-weight: 700; }
.next-prayer strong { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-light); }
.next-prayer .js-next-countdown { font-size: .95rem; font-weight: 600; color: #fff8ea; font-variant-numeric: tabular-nums; }

.salah-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; align-items: end; }
.salah-tile { position: relative; display: flex; flex-direction: column; align-items: center; padding: 2.4rem .6rem 1rem; color: var(--ink); background: linear-gradient(180deg, #fffaf0 0%, var(--parchment) 100%); border-radius: var(--arch); box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 6px rgba(143, 74, 7, .35), 0 16px 30px -16px rgba(0, 0, 0, .7); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; font-variant-numeric: tabular-nums; }
.tile-status { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--espresso); color: var(--gold-light); border: 1px solid var(--gold); padding: .12rem .75rem; border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; white-space: nowrap; }
.tile-status:empty { display: none; }
.tile-ar { font-size: 1.4rem; color: var(--brown); line-height: 1.1; }
.tile-name { font-size: 1.22rem; margin: .1rem 0 .55rem; color: var(--brown-dark); }
.tile-times { margin: 0; width: 100%; display: flex; flex-direction: column; gap: .4rem; }
.tile-times div { display: flex; flex-direction: column; align-items: center; }
.tile-times dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--muted); }
.tile-times dd { margin: 0; line-height: 1.2; }
.tile-adhan dd { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.tile-iqamah { position: relative; padding-top: .55rem; border-top: 1px solid var(--line); width: 78%; margin: 0 auto; }
.tile-iqamah::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.tile-iqamah dd { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brown-dark); }
.t-ampm { font-size: .62em; font-weight: 700; letter-spacing: .04em; }
.t-none { color: var(--muted); font-weight: 400; }
.salah-tile.is-sunrise { background: linear-gradient(180deg, #f1e4cc 0%, #e5d3b3 100%); box-shadow: inset 0 0 0 5px #f1e4cc, inset 0 0 0 6px rgba(143, 74, 7, .25), 0 16px 30px -16px rgba(0, 0, 0, .7); }
.salah-tile.is-sunrise .tile-iqamah { visibility: hidden; }
.salah-tile.is-past { background: linear-gradient(180deg, #efe3cd 0%, #e3d2b4 100%); box-shadow: inset 0 0 0 5px #efe3cd, inset 0 0 0 6px rgba(143, 74, 7, .2), 0 16px 30px -16px rgba(0, 0, 0, .7); }
.salah-tile.is-next { background: linear-gradient(180deg, #ffe7a8 0%, var(--gold-light) 45%, var(--gold) 100%); transform: translateY(-10px); box-shadow: inset 0 0 0 5px rgba(255, 244, 214, .9), inset 0 0 0 6px rgba(90, 45, 6, .55), 0 0 0 2px var(--gold-light), 0 0 38px 6px rgba(243, 196, 90, .55); animation: glow 3.2s ease-in-out infinite; }
.salah-tile.is-next .tile-ar, .salah-tile.is-next .tile-name, .salah-tile.is-next .tile-iqamah dd { color: var(--espresso); }
.salah-tile.is-next dt { color: var(--brown-deep); }
.salah-tile.is-next .tile-iqamah { border-top-color: rgba(58, 29, 4, .35); }
.salah-tile.is-next .tile-iqamah::before { background: var(--espresso); }
@keyframes glow { 0%, 100% { box-shadow: inset 0 0 0 5px rgba(255, 244, 214, .9), inset 0 0 0 6px rgba(90, 45, 6, .55), 0 0 0 2px var(--gold-light), 0 0 30px 4px rgba(243, 196, 90, .45); } 50% { box-shadow: inset 0 0 0 5px rgba(255, 244, 214, .9), inset 0 0 0 6px rgba(90, 45, 6, .55), 0 0 0 2px var(--gold-light), 0 0 46px 10px rgba(243, 196, 90, .65); } }

.jumuah { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 2.5rem; max-width: 780px; margin: 2.2rem auto 0; padding: 1.3rem 2rem; border: 1px solid rgba(243, 196, 90, .7); outline: 1px solid rgba(243, 196, 90, .3); outline-offset: 5px; background: rgba(0, 0, 0, .22); border-radius: 4px; }
.jumuah::before, .jumuah::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; background: url("../img/heritage-star.svg") center / contain no-repeat; transform: translateY(-50%); }
.jumuah::before { left: -17px; }
.jumuah::after { right: -17px; }
.jumuah-head { display: flex; flex-direction: column; align-items: center; }
.jumuah-ar { font-size: 1.4rem; color: var(--gold-light); line-height: 1.2; }
.jumuah-title { margin: 0; color: #fff8ea; font-size: 1.35rem; }
.jumuah-title span { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--on-dark-muted); letter-spacing: .04em; }
.jumuah-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.jumuah-slot { display: flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 0 .5rem; }
.jumuah-slot + .jumuah-slot { border-left: 1px solid rgba(243, 196, 90, .35); padding-left: 2.25rem; }
.slot-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--gold-light); }
.jumuah-slot strong { font-family: var(--serif); font-size: 1.6rem; color: #fff8ea; font-variant-numeric: tabular-nums; }
.jumuah-slot small { font-size: .82rem; color: var(--on-dark-muted); }
.prayer-note { margin: 1.2rem auto 0; max-width: 640px; font-style: italic; color: var(--on-dark-muted); }
.prayer-card-foot { margin: 1.5rem 0 0; }
.prayer-card-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-light); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(243, 196, 90, .5); padding-bottom: .1rem; }
.prayer-card-link:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Sections & section heads ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section-tight { padding-top: 3.5rem; }
.section-alt { background: var(--parchment); background-image: url("../img/heritage-pattern.svg"); background-size: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.6rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: .6rem; }
.section-head h2::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; background: url("../img/heritage-star.svg") center / contain no-repeat; }
.section-head > a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.section-head-center { display: block; text-align: center; border: 0; padding-bottom: 0; margin-bottom: 2.4rem; }
.section-head-center::after { display: none; }
.section-head-center h2 { display: block; }
.section-head-center h2::before { display: none; }
.section-head-center h2::after { content: ""; display: block; width: 240px; max-width: 80%; height: 28px; margin: .7rem auto .3rem; background: url("../img/heritage-divider.svg") center / contain no-repeat; }
.section-ar { font-size: 1.6rem; color: var(--brown); margin: 0 0 .1rem; line-height: 1.3; }
.section-more { margin: 1.4rem 0 0; }
.section-more a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--brown); border-bottom: 1px solid var(--gold); padding-bottom: .1rem; }
.section-more a:hover { color: var(--brown-deep); }
.stack { display: grid; gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.two-col-wide { grid-template-columns: 1.6fr 1fr; }
.empty { color: var(--muted); background: var(--white); border: 1px dashed var(--line); padding: 1.25rem; border-radius: 6px; }

/* ---------- Quick links as doorways ---------- */
.section-doors { padding: 3.5rem 0 1rem; }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.door { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 2.6rem 1rem 1.5rem; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--arch); box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--parchment-2), var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.door:hover { transform: translateY(-4px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--gold-pale), 0 22px 40px -22px rgba(36, 19, 10, .55); }
.door-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: .5rem; border-radius: 50%; color: var(--brown); background: var(--gold-pale); box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--white), 0 0 0 6px var(--line); }
.door-icon .icon { width: 24px; height: 24px; }
.door strong { font-family: var(--serif); font-size: 1.2rem; color: var(--brown-dark); }
.door small { color: var(--muted); font-size: .88rem; }
.door-gold { background: var(--espresso); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--espresso), inset 0 0 0 7px rgba(243, 196, 90, .4), var(--shadow); }
.door-gold:hover { box-shadow: inset 0 0 0 1px var(--gold-light), inset 0 0 0 6px var(--espresso), inset 0 0 0 7px var(--gold), 0 22px 40px -22px rgba(36, 19, 10, .7); }
.door-gold strong { color: var(--gold-light); }
.door-gold small { color: var(--on-dark-muted); }
.door-gold .door-icon { background: var(--gold); color: var(--espresso); box-shadow: 0 0 0 1px var(--gold-light), 0 0 0 5px var(--espresso), 0 0 0 6px rgba(243, 196, 90, .4); }

/* ---------- Notices & events ---------- */
.notice { position: relative; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; padding: 1.1rem 1.3rem; }
.notice-madrasah { border-left-color: var(--brown); }
.notice h3, .notice h2 { margin: .35rem 0 .35rem; font-size: 1.15rem; }
.notice p:last-child, .notice .body:last-child { margin-bottom: 0; }
.notice-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.notice-full { padding: 1.6rem 1.8rem; margin-bottom: 1.25rem; }
.notice-full h2 { font-size: 1.45rem; }
.body { color: var(--ink); }
.event-row { display: flex; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: .9rem 1.1rem; }
.event-row h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.event-row p { margin: 0; font-size: .9rem; }
.date-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 60px; padding: .8rem 0 .45rem; background: var(--espresso); color: var(--gold-light); border-radius: 30px 30px 4px 4px; box-shadow: inset 0 0 0 3px var(--espresso), inset 0 0 0 4px rgba(243, 196, 90, .5); line-height: 1.05; text-align: center; }
.date-badge span { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--on-dark-muted); }
.date-badge strong { font-family: var(--serif); font-size: 1.6rem; color: #fff8ea; }
.date-badge-lg { width: 88px; padding: 1.2rem 0 .7rem; border-radius: 44px 44px 4px 4px; }
.date-badge-lg strong { font-size: 2.3rem; }
.event-card { display: flex; gap: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.event-card h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.event-meta { color: var(--muted); font-size: .93rem; }
.event-meta .icon { color: var(--gold-deep); }

/* ---------- Dark band (fundraising) ---------- */
.dark-band { padding: 5rem 0; }
.dark-band h2, .dark-band h3 { color: #fff8ea; }
.dark-band p { color: var(--on-dark); }
.donate-band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
.progress { height: 14px; border-radius: 999px; background: var(--parchment-2); overflow: hidden; margin: 1.25rem 0 .6rem; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.dark-band .progress, .page-hero .progress { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(243, 196, 90, .4); }
.progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); transition: width 1.2s ease; }
.progress-lg { height: 18px; }
.progress-legend { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.dark-band .progress-legend { color: var(--on-dark-muted); }
.dark-band .progress-legend strong { color: var(--gold-light); font-size: 1.1rem; }
.verse { margin: 0; text-align: center; padding: 3.2rem 2rem 2rem; border: 1px solid rgba(243, 196, 90, .65); border-radius: 50% 50% 4px 4px / 90px 90px 4px 4px; outline: 1px solid rgba(243, 196, 90, .25); outline-offset: 6px; background: rgba(0, 0, 0, .2); }
.verse p[lang="ar"] { font-size: 1.65rem; color: var(--gold-light); line-height: 1.9; }
.verse p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.verse cite { font-style: normal; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-muted); }

/* ---------- Madrasah ---------- */
.program-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-bottom: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--brown-dark); font-weight: 600; text-decoration: none; font-size: .93rem; transition: border-color .15s, background .15s; }
.chip .icon { color: var(--gold-deep); }
.chip:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--brown-deep); }
.hifz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; max-width: 980px; margin: 0 auto; }
.hifz-card { text-align: center; background: var(--white); padding: 3.2rem 2rem 2rem; border-radius: 50% 50% 6px 6px / 90px 90px 6px 6px; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 7px var(--white), inset 0 0 0 8px var(--gold-pale), var(--shadow); scroll-margin-top: 1rem; }
.hifz-card h3 { font-size: 1.5rem; margin-top: .6rem; }
.hifz-card .checks { display: inline-block; text-align: left; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.checks li { display: flex; gap: .5rem; align-items: baseline; }
.checks .icon { color: var(--gold-deep); position: relative; top: .1em; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.program-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem; scroll-margin-top: 1rem; }
.program-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: .8rem; color: var(--brown); background: var(--gold-pale); border-radius: 24px 24px 4px 4px; box-shadow: inset 0 0 0 1px var(--gold); }
.program-icon .icon { width: 22px; height: 22px; }
.admissions { padding: 2rem 1.75rem; border-radius: 50% 50% 6px 6px / 70px 70px 6px 6px; padding-top: 3rem; text-align: center; scroll-margin-top: 1rem; align-self: start; }
.admissions h2 { color: #fff8ea; }
.admissions .contact-list { text-align: left; margin: 1.25rem 0; }
.admissions .contact-list a { color: var(--gold-light); }
.admissions .contact-list small { color: var(--on-dark-muted); }
.admissions .contact-list .icon { color: var(--gold); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list li > span { display: flex; flex-direction: column; line-height: 1.35; }
.contact-list small { color: var(--muted); font-size: .8rem; }
.contact-list .icon { color: var(--gold-deep); margin-top: .2rem; }

/* ---------- Photos (arch-topped frames) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.photo-grid-6 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); }
.photo, figure.photo a { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; background: var(--parchment-2); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo:hover img, figure.photo a:hover img { transform: scale(1.04); }
.photo-grid-6 .photo { aspect-ratio: 6 / 5; }
figure.photo { margin: 0; aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
figure.photo figcaption { text-align: center; font-size: .86rem; color: var(--muted); margin-top: .6rem; }
.photo-placeholder { display: grid; place-items: center; text-decoration: none; background-color: var(--parchment); background-image: url("../img/heritage-pattern.svg"), linear-gradient(180deg, #f8efdf 0%, var(--parchment-2) 100%); background-size: 64px, 100% 100%; box-shadow: inset 0 0 0 6px var(--parchment), inset 0 0 0 7px rgba(143, 74, 7, .3), var(--shadow); }
.photo-placeholder span { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; text-align: center; font-family: var(--serif); font-weight: 700; color: var(--brown-dark); }
.photo-placeholder .icon { width: 30px; height: 30px; color: var(--gold-deep); }
a.photo-placeholder:hover { box-shadow: inset 0 0 0 6px var(--parchment), inset 0 0 0 7px var(--gold), var(--shadow); }

/* ---------- Visit & map ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.map-frame { border-radius: 50% 50% 6px 6px / 110px 110px 6px 6px; overflow: hidden; padding: 8px; background: var(--parchment); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px var(--line), var(--shadow); }
.map { display: block; width: 100%; height: 380px; border: 0; border-radius: 50% 50% 2px 2px / 104px 104px 2px 2px; }
.map-frame-tall .map { height: 520px; }

/* ---------- Inner page heroes ---------- */
.page-hero { position: relative; text-align: center; padding: 3.2rem 0 4rem; overflow: hidden; }
.page-hero-inner { max-width: 820px; }
.page-hero-ar, .page-hero p.page-hero-ar { font-size: 1.7rem; color: var(--gold-light); margin: 0 0 .2rem; line-height: 1.4; }
.page-hero h1 { color: #fff8ea; margin-bottom: .2rem; }
.page-hero h1::after { content: ""; display: block; width: 240px; max-width: 80%; height: 28px; margin: .6rem auto .4rem; background: url("../img/heritage-divider.svg") center / contain no-repeat; }
.page-hero p { color: var(--on-dark); font-size: 1.08rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.page-hero .hero-actions { justify-content: center; }
.page-hero p.eyebrow { font-size: .76rem; }
.page-hero-donate { text-align: left; }
.page-hero-donate h1::after { margin-left: 0; background-position: left center; }
.page-hero-donate .page-hero-ar { text-align: left; }
.donate-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.page-hero-donate .hero-actions { justify-content: flex-start; }
.page-hero-donate p { margin-left: 0; }
.campaign-card { color: var(--ink); text-align: center; background: linear-gradient(180deg, #fffaf0 0%, var(--parchment) 100%); padding: 3rem 1.75rem 1.75rem; border-radius: 50% 50% 6px 6px / 80px 80px 6px 6px; box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 7px rgba(143, 74, 7, .35), 0 25px 50px -25px rgba(0, 0, 0, .7); }
.campaign-card h2 { font-size: 1.4rem; }
.campaign-card p { color: var(--ink); margin-left: auto; margin-right: auto; }
.page-hero .campaign-card .progress { background: var(--parchment-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.campaign-raised strong { font-family: var(--serif); font-size: 1.7rem; color: var(--brown-dark); }
.campaign-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.campaign-stats div { display: flex; flex-direction: column; padding: .7rem .25rem; }
.campaign-stats div + div { border-left: 1px solid var(--line); }
.campaign-stats strong { font-family: var(--serif); font-size: 1.2rem; color: var(--brown-dark); }
.campaign-stats span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sample-note { margin: 1.5rem 0 0; padding: .7rem 1rem; text-align: center; background: var(--gold-pale); border: 1px dashed var(--gold); border-radius: 4px; color: var(--brown-deep); font-size: .9rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tabs a { padding: .5rem 1.15rem; border-radius: 999px 999px 4px 4px; border: 1px solid var(--line); background: var(--white); color: var(--brown-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tabs a:hover { border-color: var(--gold); }
.tabs a.active { background: var(--espresso); border-color: var(--espresso); color: var(--gold-light); }

/* ---------- Prayer times page ---------- */
.prayer-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.prayer-today { position: relative; padding: 2.4rem 1.5rem 2.4rem; border-radius: 6px; background-color: var(--espresso); background-image: url("../img/heritage-pattern.svg"), radial-gradient(ellipse at 50% -10%, rgba(143, 74, 7, .55) 0%, transparent 62%); background-size: 64px 64px, 100% 100%; box-shadow: inset 0 0 0 6px var(--espresso), inset 0 0 0 7px rgba(243, 196, 90, .45), var(--shadow); }
.timetable-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; box-shadow: var(--shadow); }
.timetable-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.timetable-head h2 { margin: 0; text-align: center; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 4px; }
.timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; min-width: 640px; }
.timetable thead th { position: sticky; top: 0; background: var(--espresso); color: var(--gold-light); font-family: var(--serif); font-size: .98rem; padding: .6rem .5rem; text-align: center; }
.th-ar { display: block; font-size: .9rem; color: var(--on-dark-muted); font-weight: 400; line-height: 1.2; }
.timetable tbody th, .timetable td { padding: .45rem .5rem; text-align: center; border-bottom: 1px solid #efe3cc; }
.timetable tbody tr:nth-child(even) { background: #fcf7ee; }
.timetable tbody th { font-weight: 400; white-space: nowrap; }
.tt-day { display: inline-block; width: 2.4em; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tt-date { font-weight: 700; color: var(--brown-dark); }
.tt-adhan, .tt-iqamah { display: block; white-space: nowrap; }
.tt-iqamah { color: var(--brown); font-weight: 700; font-size: .85rem; }
.timetable tr.is-friday .tt-day { color: var(--brown); font-weight: 700; }
.timetable tr.is-friday { background: #f9eed8; }
.timetable tr.is-today { background: var(--gold-pale); box-shadow: inset 4px 0 0 var(--gold); }
.timetable tr.is-today th, .timetable tr.is-today td { border-bottom-color: var(--gold); }
.tt-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.tt-legend .tt-adhan, .tt-legend .tt-iqamah { display: inline-flex; align-items: center; gap: .35rem; }
.tt-legend .tt-adhan::before, .tt-legend .tt-iqamah::before, .legend-friday::before { content: ""; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tt-legend .tt-adhan::before { background: var(--ink); }
.tt-legend .tt-iqamah::before { background: var(--brown); }
.legend-friday { display: inline-flex; align-items: center; gap: .35rem; }
.legend-friday::before { background: #f9eed8; border: 1px solid var(--line); }
.tt-legend .js-print { margin-left: auto; }
.info-box { background: var(--parchment); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem 1.6rem; max-width: 820px; margin: 0 auto; }
.info-box h3 { margin-bottom: .4rem; }
.info-box p:last-child { margin-bottom: 0; }

/* ---------- Donate page ---------- */
.expenses { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.expense-list { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; display: grid; gap: 1rem; }
.expense { display: flex; gap: .9rem; align-items: center; }
.expense-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 21px 21px 4px 4px; background: var(--gold-pale); color: var(--brown); box-shadow: inset 0 0 0 1px var(--gold); }
.expense-body { flex: 1; min-width: 0; }
.expense-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.expense-row strong { font-variant-numeric: tabular-nums; color: var(--brown-dark); }
.bar { height: 8px; background: var(--parchment); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brown), var(--gold)); border-radius: inherit; transition: width 1.2s ease; }
.expense-total { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 3px double var(--gold); font-weight: 700; }
.expense-total strong { font-family: var(--serif); font-size: 1.3rem; color: var(--brown-dark); }
.need-card { background: var(--white); padding: 3rem 1.75rem 1.75rem; border-radius: 50% 50% 6px 6px / 70px 70px 6px 6px; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 7px var(--white), inset 0 0 0 8px var(--gold-pale), var(--shadow); }
.need-card h3 { text-align: center; font-size: 1.35rem; }
.need-card dl { margin: 1rem 0; }
.need-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.need-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.need-gap dt, .need-gap dd { color: var(--brown); font-size: 1.08rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.plan-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.5rem; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.journey-step { text-align: center; }
.journey-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; display: grid; place-items: center; margin-bottom: 1rem; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.journey-photo img { width: 100%; height: 100%; object-fit: cover; }
.journey-when { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--gold-deep); margin-bottom: .3rem; }
.journey-text h3 { font-size: 1.15rem; }
.journey-text p { font-size: .93rem; color: var(--muted); }
.ways { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.cause-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.cause-list li { display: flex; gap: .5rem; align-items: baseline; color: var(--on-dark); }
.cause-list .icon { color: var(--gold); position: relative; top: .1em; }
.ways-cta { text-align: center; padding: 2rem 1.5rem; border: 1px solid rgba(243, 196, 90, .6); outline: 1px solid rgba(243, 196, 90, .25); outline-offset: 6px; border-radius: 4px; background: rgba(0, 0, 0, .2); }
.ways-cta .small { margin-top: .75rem; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.hadith { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin: 1rem 0 0; }
.hadith cite { display: block; font-style: normal; font-size: .8rem; color: var(--on-dark-muted); margin-top: .3rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-card { text-align: center; background: var(--white); padding: 2.4rem 1.25rem 1.4rem; border-radius: 50% 50% 4px 4px / 54px 54px 4px 4px; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--gold-pale), var(--shadow); }
.contact-card h2 { font-size: 1.2rem; }
.contact-card p { margin-bottom: .5rem; overflow-wrap: anywhere; }
.contact-card .contact-list { justify-items: center; }
.contact-card .contact-list li > span { align-items: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: 0; margin-top: 0; }
.site-footer > .ornament-edge { position: relative; }
.footer-crest { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-logo { width: 84px; height: auto; margin-bottom: .6rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); background: radial-gradient(circle, rgba(255, 248, 234, .9) 0%, rgba(255, 248, 234, .9) 55%, transparent 72%); border-radius: 50%; padding: 6px; }
.footer-ar { font-size: 1.5rem; color: var(--gold-light); margin: 0; line-height: 1.4; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff8ea; margin: 0 0 .2rem; }
.footer-tag { color: var(--on-dark-muted); margin-bottom: 1.25rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.5rem; border-top: 1px solid rgba(243, 196, 90, .25); }
.footer-h { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-light); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links { grid-template-columns: 1fr 1fr; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer .btn-gold, .site-footer .btn-gold:hover { color: var(--espresso); text-decoration: none; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact li > span { display: flex; flex-direction: column; line-height: 1.35; }
.footer-contact small { color: var(--on-dark-muted); font-size: .78rem; }
.footer-contact .icon { color: var(--gold); margin-top: .25rem; }
.footer-bottom { background: rgba(0, 0, 0, .3); padding: 1rem 0; font-size: .84rem; color: var(--on-dark-muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hide-md { display: none !important; }
    .salah-tiles { gap: .7rem; }
    .tile-iqamah dd { font-size: 1.3rem; }
    .site-nav a:not(.btn) { padding: .85rem .6rem; letter-spacing: .1em; }
}
@media (max-width: 920px) {
    .header-inner { grid-template-columns: 1fr auto; padding-top: .7rem; padding-bottom: .7rem; }
    .header-side { display: none; }
    .brand { flex-direction: row; text-align: left; gap: .7rem; }
    .brand img { width: 52px; }
    .brand-name { font-size: 1.2rem; }
    .brand-sub { font-size: .64rem; letter-spacing: .16em; }
    .nav-toggle { display: grid; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-inner { flex-direction: column; align-items: stretch; padding-top: .5rem; padding-bottom: 1rem; }
    .site-nav a:not(.btn) { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-size: .86rem; }
    .site-nav a:not(.btn) + a:not(.btn)::before { display: none; }
    .site-nav a.active { box-shadow: inset 3px 0 0 var(--gold); padding-left: .9rem; }
    .site-nav a.active::after { display: none; }
    .nav-donate { display: inline-flex; margin-top: .9rem; }
    .salah-tiles { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
    .two-col, .two-col-wide, .donate-band-grid, .visit, .donate-hero, .expenses, .ways, .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .doors { grid-template-columns: 1fr 1fr; }
    .program-grid { grid-template-columns: 1fr 1fr; }
    .journey { grid-template-columns: 1fr 1fr; }
    .photo-grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-links { grid-template-columns: repeat(4, auto); justify-content: start; gap: .5rem 1.5rem; }
}
@media (max-width: 640px) {
    .hide-sm { display: none !important; }
    .container { padding: 0 1rem; }
    .topbar { font-size: .8rem; }
    .topbar-inner { gap: .75rem; }
    .announce-inner { gap: .6rem; min-height: 54px; }
    .announce-label { padding: .4rem; }
    .announce-label span { display: none; }
    .announce-item a { font-size: .92rem; line-height: 1.3; }
    .announce-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .announce-count { display: none; }
    .announce-controls button { width: 28px; height: 28px; }
    .brand img { width: 44px; }
    .brand-name { font-size: 1.05rem; }
    .section { padding: 3rem 0; }
    .hero-inner { padding-top: 1.4rem; padding-bottom: 3rem; gap: 1.5rem; }
    .hero-arch { padding: 2.6rem 1rem .4rem; }
    .arch-line { display: none; }
    .hero-finial { top: .6rem; width: 22px; height: 22px; }
    .basmala { font-size: 1.35rem; margin-bottom: .1rem; }
    .hero-welcome { font-size: .68rem; }
    .hero h1 { font-size: 1.65rem; }
    .hero-tagline { font-size: 1.02rem; }
    .prayer-card-head { gap: .6rem; margin-bottom: 1.6rem; }
    .prayer-card-ar { font-size: 1.2rem; }
    .prayer-card h2 { font-size: 1.4rem; }
    .prayer-date { font-size: .86rem; }
    .next-prayer { padding: .45rem 1rem; }
    .salah-tiles { gap: .5rem; row-gap: 1.25rem; }
    .salah-tile { padding: 1.7rem .25rem .8rem; border-radius: 50% 50% 6px 6px / 44px 44px 6px 6px; box-shadow: inset 0 0 0 4px #fffaf0, inset 0 0 0 5px rgba(143, 74, 7, .3), 0 12px 22px -14px rgba(0, 0, 0, .7); }
    .salah-tile.is-next { transform: translateY(-4px); }
    .tile-ar { font-size: 1.1rem; }
    .tile-name { font-size: 1.05rem; margin-bottom: .35rem; }
    .tile-times dt { font-size: .58rem; letter-spacing: .1em; }
    .tile-adhan dd { font-size: .95rem; }
    .tile-iqamah { width: 86%; padding-top: .45rem; }
    .tile-iqamah dd { font-size: 1.12rem; }
    .tile-status { font-size: .6rem; padding: .08rem .55rem; top: -.7rem; }
    .jumuah { padding: 1.1rem 1rem; gap: .8rem; margin-top: 1.8rem; }
    .jumuah::before, .jumuah::after { top: 0; }
    .jumuah-slots { gap: .6rem 1.2rem; }
    .jumuah-slot + .jumuah-slot { padding-left: 1.2rem; }
    .jumuah-slot strong { font-size: 1.35rem; }
    .doors { gap: .9rem; }
    .door { padding: 2rem .6rem 1.1rem; border-radius: 50% 50% 6px 6px / 52px 52px 6px 6px; }
    .door strong { font-size: 1.05rem; }
    .door small { font-size: .8rem; }
    .door-icon { width: 46px; height: 46px; }
    .photo-grid-6 { grid-template-columns: 1fr 1fr; }
    .hifz-compare, .program-grid, .journey, .contact-cards { grid-template-columns: 1fr; }
    .hifz-card { padding: 2.8rem 1.25rem 1.5rem; }
    .cause-list { grid-template-columns: 1fr; }
    .verse { padding: 2.6rem 1.25rem 1.5rem; }
    .verse p[lang="ar"] { font-size: 1.35rem; }
    .event-card { flex-direction: column; padding: 1.25rem; }
    .notice-full { padding: 1.25rem; }
    .page-hero { padding: 2.2rem 0 3.2rem; }
    .page-hero p.page-hero-ar { font-size: 1.4rem; }
    .prayer-today { padding: 1.8rem .6rem 1.8rem; }
    .timetable-wrap { padding: 1rem .75rem; }
    .map { height: 300px; }
    .map-frame { border-radius: 50% 50% 6px 6px / 70px 70px 6px 6px; }
    .map { border-radius: 50% 50% 2px 2px / 64px 64px 2px 2px; }
    .map-frame-tall .map { height: 380px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
    .tile-adhan dd { font-size: .88rem; }
    .tile-iqamah dd { font-size: 1.02rem; }
    .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .btn:hover, .door:hover { transform: none; }
}

@media print {
    .topbar, .announce-bar, .site-header, .site-footer, .page-hero, .prayer-today, .info-box, .timetable-head .btn, .tt-legend .btn { display: none !important; }
    body { background: #fff; }
    .section { padding: 0; }
    .timetable-wrap { border: 0; padding: 0; box-shadow: none; }
    .table-scroll { border: 0; overflow: visible; }
    .timetable thead th { background: #eee !important; color: #000; }
    .th-ar { color: #333; }
}
