/* ==========================================================================
   Madina theme · design system
   Teal + gold, Inter for text, Instrument Serif italics and Amiri for accents.
   ========================================================================== */

:root {
	--deep: #0B4A43;
	--teal: #008F7E;
	--teal-text: #00796B;
	--gold: #FFD028;
	--gold-ink: #8F6A00;
	--orange: #FFA500;
	--mint: #78D1C6;
	--mist: #E6F4F2;
	--mist-2: #CFE9E5;
	--sand: #F3EBDD;
	--cream: #FFF2C7;
	--ink: #141414;
	--body: #4F4F4F;
	--muted: #5C5C5C;
	--line: #E0DEDE;
	--ground: #FAFAFA;
	--on-deep: #D3ECE8;
	--radius: 20px;
	--radius-lg: 28px;
	--arch: 999px 999px 28px 28px;
	--shadow: 0 18px 50px rgba(11, 74, 67, 0.12);
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Instrument Serif", Georgia, serif;
	--arabic: "Amiri", "Noto Naskh Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 18px; border-radius: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sec { padding: 104px 0; }
.sec--tight { padding: 72px 0; }
.sec--white { background: #fff; }
.sec--mist { background: var(--mist); }
.sec--sand { background: var(--sand); }
.sec--gold { background: var(--gold); }
.sec--deep { background: var(--deep); color: #fff; }
.sec--line { border-top: 1px solid #EEEEEE; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 44px; }
.measure { max-width: 720px; }
.center { text-align: center; align-items: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--deep); font-weight: 800; }
.h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -2px; }
.h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -1px; }
.h3 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.2; }
.sec--deep .h1, .sec--deep .h2, .sec--deep .h3 { color: #fff; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.1em; color: var(--teal); }
.sec--deep .accent, .accent--gold { color: var(--gold); }
.sec--sand .accent { color: var(--gold-ink); }
.sec--gold .accent { color: var(--ink); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.lead { margin: 0; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.sec--deep .lead { color: var(--on-deep); }
.sec--mist .lead { color: #33504C; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { color: var(--body); }

.eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin: 0; }
.eyebrow__ar { font-family: var(--arabic); font-weight: 700; font-size: 34px; line-height: 1; color: var(--gold-ink); }
.eyebrow__en { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--teal-text); }
.eyebrow--dark .eyebrow__ar { color: var(--gold); }
.eyebrow--dark .eyebrow__en { color: var(--on-deep); }

/* Brush-stroke label */
.brush { position: relative; display: inline-flex; align-self: flex-start; padding: 10px 30px 14px 24px; transform: rotate(-1.5deg); }
.brush svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brush span { position: relative; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--deep); line-height: 1; }

/* Brush underline under one hero word */
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: -2%; bottom: 2px; width: 104%; height: 0.32em; }
.underline .accent { position: relative; font-size: 1.08em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #FFDA55; color: var(--ink); }
.btn--deep { background: var(--deep); color: #fff; }
.btn--deep:hover { background: #0E5C53; color: #fff; }
.btn--outline { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-weight: 700; text-decoration: none; }

/* ---------- Layout grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.split--form { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }

/* ---------- Announcement + utility bar ---------- */
.announce { background: var(--gold); color: var(--ink); text-align: center; font-weight: 600; font-size: 15px; padding: 10px 16px; }
.announce a { color: var(--ink); }
.utility { background: var(--deep); color: #fff; font-size: 14px; padding: 10px 0; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; }
.utility__l { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.utility__item { display: inline-flex; align-items: center; gap: 8px; }
.utility .icon { width: 16px; height: 16px; color: var(--gold); }
.utility a { color: var(--gold); font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 52px; border-radius: 999px 999px 6px 6px; background: var(--gold); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; color: var(--deep); }
.brand__mark .icon { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 26px; font-weight: 800; color: var(--teal-text); letter-spacing: -0.5px; }
.brand__sub { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 4px; }
.custom-logo { max-height: 56px; width: auto; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav a:hover { color: var(--deep); border-bottom-color: var(--gold); }
.nav .sub-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 22px; height: 22px; }

/* ---------- Photos ---------- */
.photo { overflow: hidden; border-radius: var(--radius-lg); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--arch { border-radius: var(--arch); }
.photo--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 0 40px; font-size: 15px; font-weight: 600; min-height: 320px; }
.photo--empty .icon { width: 38px; height: 38px; }
.photo--teal { background: var(--mist-2); color: var(--deep); }
.photo--sand { background: var(--sand); color: #6B5300; }
.photo--gold { background: var(--cream); color: #6B5300; }
.photo--night { background: #2B3A4A; color: #fff; }
.photo-tall { height: 600px; }
.photo-med { height: 520px; }
.photo-tall > .photo, .photo-med > .photo, .archwrap .photo-tall > .photo, [style*="height:340px"] > .photo { height: 100%; min-height: 0; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 120px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero__media { position: relative; display: flex; justify-content: flex-end; }
.archwrap { position: relative; width: 100%; max-width: 580px; padding: 5.17%; }
.archwrap > svg { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.trust { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--teal); }

/* ---------- Prayer ---------- */
.prayer-card { position: absolute; left: -48px; bottom: -40px; width: 340px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.prayer-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.prayer-card__title { font-size: 18px; font-weight: 700; color: var(--deep); }
.prayer-card__cols { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.prayer-card__date { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.prayer-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.prayer-list li { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #F0EEEE; }
.prayer-list li:last-child { border-bottom: 0; }
.prayer-list .t { color: var(--muted); }
.prayer-list .t strong { color: var(--ink); }
.prayer-list li.is-next { background: var(--deep); color: #fff; border-radius: 10px; font-weight: 600; border: 0; }
.prayer-list li.is-next .t, .prayer-list li.is-next .t strong { color: #fff; }
.prayer-list li.is-next .t strong { color: var(--gold); }
.prayer-card__foot a { white-space: nowrap; }
.prayer-card__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; gap: 12px; }

.prayer-arches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.prayer-arch { background: #fff; border: 1px solid var(--line); border-radius: 999px 999px 20px 20px; padding: 48px 12px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.prayer-arch .name { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--teal-text); }
.prayer-arch .time { font-size: 30px; font-weight: 800; color: var(--deep); letter-spacing: -1px; }
.prayer-arch .iq { font-size: 14px; color: var(--muted); }
.prayer-arch.is-next { background: var(--deep); border-color: var(--deep); box-shadow: 0 18px 40px rgba(11,74,67,.25); }
.prayer-arch.is-next .name { color: var(--gold); }
.prayer-arch.is-next .time { color: #fff; }
.prayer-arch.is-next .iq { color: var(--on-deep); }

.jummah-arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jummah-arch { border: 1px solid rgba(255,208,40,.5); border-radius: 999px 999px 18px 18px; padding: 40px 8px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.jummah-arch span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--on-deep); }
.jummah-arch strong { font-size: 30px; color: var(--gold); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid #EEEEEE; }
.tbl tr.is-today { background: var(--mist); font-weight: 600; }
.tbl .iq { color: var(--gold-ink); font-weight: 600; }

/* ---------- Rows (label / value) ---------- */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows dt, .rows .label { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--teal-text); margin: 0; }
.rows dd { margin: 0; color: var(--body); }
.sec--deep .rows, .sec--deep .rows > div { border-color: rgba(255,255,255,.16); }
.sec--deep .rows dt { color: var(--gold); }
.sec--deep .rows dd { color: var(--on-deep); }

.numbered { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.numbered > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.numbered .n { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold-ink); line-height: 1; }
.numbered strong { display: block; font-size: 19px; color: var(--deep); margin-bottom: 4px; }
.numbered p { color: var(--body); }

/* ---------- Doors (arch cards) ---------- */
/* Arch cards with a photo window (photography-led, like premium mosque and nonprofit sites). */
.door { position: relative; overflow: hidden; text-decoration: none; border-radius: var(--arch); min-height: 460px; padding: 14px 14px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; transition: transform .3s ease, box-shadow .3s ease; }
.door:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11,74,67,.18); }
.door__window { display: block; width: 100%; height: 210px; border-radius: 999px 999px 14px 14px; overflow: hidden; flex: none; background: rgba(255,255,255,.12); margin-bottom: 8px; }
.door__window img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.door:hover .door__window img { transform: scale(1.05); }
.door__window--empty { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; padding: 0 24px; text-align: center; opacity: .85; }
.door__kicker { font-family: var(--serif); font-style: italic; font-size: 20px; margin-top: 10px; }
.door--short .door__kicker { margin-top: auto; }
.door__title { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; padding: 0 14px; }
.door__text { font-size: 15px; line-height: 1.55; padding: 0 14px; }
.door__cta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; }
.door__cta i { width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.door__cta .icon { width: 16px; height: 16px; }
.door--short { min-height: 360px; justify-content: flex-end; padding: 0 28px 28px; }

/* Card colour schemes. Selectors are doubled (a.door.door--x) so they beat page-builder link colours, on hover too. */
a.door.door--deep, a.door.door--deep:hover, a.door.door--deep:focus, div.door.door--deep { background: var(--deep); color: #fff; }
.door.door--deep .door__kicker { color: var(--gold); }
.door.door--deep .door__text { color: var(--on-deep); }
.door.door--deep .door__window--empty { background: rgba(255,255,255,.08); color: var(--on-deep); }
.door.door--deep .door__cta i { background: var(--gold); color: var(--ink); }
a.door.door--teal, a.door.door--teal:hover, a.door.door--teal:focus, div.door.door--teal { background: #006B5F; color: #fff; }
.door.door--teal .door__kicker { color: var(--gold); }
.door.door--teal .door__text { color: #EAF6F4; }
.door.door--teal .door__window--empty { background: rgba(255,255,255,.1); color: #EAF6F4; }
.door.door--teal .door__cta i { background: var(--gold); color: var(--ink); }
a.door.door--gold, a.door.door--gold:hover, a.door.door--gold:focus, div.door.door--gold { background: var(--gold); color: var(--ink); }
.door.door--gold .door__kicker { color: var(--deep); }
.door.door--gold .door__text { color: #3A3200; }
.door.door--gold .door__window--empty { background: rgba(11,74,67,.1); color: #3A3200; }
.door.door--gold .door__cta i { background: var(--deep); color: #fff; }
a.door.door--sand, a.door.door--sand:hover, a.door.door--sand:focus, div.door.door--sand { background: var(--sand); color: var(--deep); }
.door.door--sand .door__kicker { color: var(--gold-ink); }
.door.door--sand .door__text { color: var(--body); }
.door.door--sand .door__window--empty { background: rgba(143,106,0,.1); color: #6B5300; }
.door.door--sand .door__cta i { background: var(--deep); color: #fff; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--flat { border: 0; }
.card--deep { background: var(--deep); color: #fff; border: 0; }
.card--gold { background: var(--gold); border: 0; }
.card__kicker { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-ink); }
.card--deep .card__kicker { color: var(--gold); }
.card__title { font-size: 22px; font-weight: 800; color: var(--deep); letter-spacing: -0.3px; }
.card--deep .card__title { color: #fff; }
.card__text { font-size: 15px; color: var(--body); }
.card--deep .card__text { color: var(--on-deep); }
.ruled { border-top: 2px solid var(--deep); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ruled .serif { font-size: 22px; color: var(--teal-text); }

/* ---------- Campaign ---------- */
.progress-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; padding: 28px; }
.progress-box__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.progress-box__raised { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; color: var(--gold); line-height: 1; }
.progress-box__goal { color: var(--on-deep); }
.progress-box__goal strong { color: #fff; }
.bar { height: 14px; background: rgba(255,255,255,.14); border-radius: 999px; margin: 20px 0 18px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.progress-box__stats { display: flex; flex-wrap: wrap; gap: 12px 36px; color: var(--on-deep); font-size: 15px; }
.progress-box__stats strong { color: #fff; font-size: 22px; display: block; }
.builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.builds > div { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.builds__n { flex: none; width: 34px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold); line-height: 1; }
.builds strong { display: block; font-size: 17px; }
.builds span { font-size: 15px; color: var(--on-deep); }
.give-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 18px; }
.give-card__title { font-size: 24px; font-weight: 800; color: var(--deep); letter-spacing: -0.5px; }
.give-card__note { color: var(--muted); font-size: 15px; }
.offline-give { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.offline-give div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offline-give dt { color: var(--muted); }
.offline-give dd { margin: 0; font-weight: 600; word-break: break-all; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--deep); }
.timeline > div { position: relative; padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.timeline > div::before { content: ""; position: absolute; top: -11px; left: 0; width: 20px; height: 20px; border-radius: 999px; background: #fff; border: 2px solid var(--deep); }
.timeline > div:first-child::before { background: var(--gold); }
.timeline .serif { font-size: 22px; color: var(--gold-ink); }
.timeline strong { font-size: 20px; color: var(--deep); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 16px; font-size: 14px; }

/* GiveWP form inside our card: keep it on-brand where its markup allows */
.give-card .give-btn, .give-card .give-submit, .give-card button[type="submit"] { background: var(--gold) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 800 !important; border: 0 !important; }
.give-card input[type="text"], .give-card input[type="email"], .give-card input[type="tel"] { border-radius: 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; color: var(--deep); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--gold-ink); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--body); }

/* ---------- Events ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 32px; overflow: hidden; background: var(--deep); color: #fff; }
.feature__body { padding: 48px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.feature .photo { border-radius: 0; min-height: 420px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; font-family: var(--sans); cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.filters button[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.event-list { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.event-row[hidden] { display: none; }
.event-date { width: 88px; height: 96px; border-radius: 999px 999px 14px 14px; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 14px; gap: 2px; }
.event-date .serif { font-size: 16px; color: var(--gold-ink); }
.event-date strong { font-size: 18px; color: var(--deep); }
.event-row__tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--teal-text); }
.event-row__title { font-size: 22px; color: var(--deep); font-weight: 800; letter-spacing: -0.3px; text-decoration: none; }
.event-row__meta { font-size: 15px; color: var(--body); }
.event-cards article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.event-cards .photo { border-radius: 0; height: 210px; min-height: 0; }
.event-cards .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.numbers > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 16px; }
.numbers > div + div { border-left: 1px solid var(--line); }
.numbers strong { font-size: 64px; font-weight: 800; color: var(--deep); letter-spacing: -2px; line-height: 1; }
.numbers span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--body); }

/* ---------- Badge on photos ---------- */
.badge { position: absolute; background: var(--gold); border-radius: 20px; padding: 20px 24px; display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(11,74,67,.18); }
.badge strong { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.badge span { font-family: var(--serif); font-style: italic; font-size: 18px; color: #3A3200; }

/* ---------- Forms (ours and form plugins') ---------- */
.form-shell { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.form-shell label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form-shell input[type="text"], .form-shell input[type="email"], .form-shell input[type="tel"], .form-shell input[type="date"], .form-shell input[type="time"], .form-shell input[type="number"], .form-shell select, .form-shell textarea, .field { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; font-family: var(--sans); background: #fff; color: var(--ink); }
.form-shell textarea { padding: 14px; min-height: 140px; }
.form-shell input:focus, .form-shell select:focus, .form-shell textarea:focus, .field:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,143,126,.15); }
.form-shell button[type="submit"], .form-shell input[type="submit"] { min-height: 56px; border: 0; border-radius: 999px; background: var(--deep); color: #fff; font-size: 17px; font-weight: 700; padding: 0 28px; cursor: pointer; font-family: var(--sans); }
.form-shell .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; }
.form-shell input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--teal-text); }
.form-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.form-missing { padding: 18px; border: 1.5px dashed #BABABA; border-radius: 14px; color: var(--muted); font-size: 15px; }

/* Zakat calculator */
.zakat-result { background: var(--deep); color: #fff; border-radius: 18px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.zakat-result .serif { font-size: 18px; color: var(--on-deep); }
.zakat-result strong { display: block; font-size: 38px; letter-spacing: -1px; color: var(--gold); }
.zakat-result small { color: var(--on-deep); }

/* ---------- Connect band ---------- */
.connect { background: var(--gold); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.connect .h2 { color: var(--ink); }
.connect .lead { color: #3A3200; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); padding: 80px 0 32px; font-size: 15px; }
.site-footer a { color: var(--on-deep); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h2 { color: #fff; font-size: 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-brand { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1; }
.footer-ar { font-family: var(--arabic); font-size: 26px; color: var(--gold); align-self: flex-start; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; margin-top: 56px; font-size: 14px; }
.socials { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Generic page ---------- */
.page-hero { padding: 80px 0 64px; }
.entry { max-width: 760px; }
.entry h2 { font-size: 32px; margin: 1.6em 0 .5em; }
.entry h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.entry p, .entry li { color: var(--body); }
.entry p + p { margin-top: 1em; }
.entry img { border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nav .menu { gap: 20px; }
}
@media (max-width: 960px) {
	.wrap { padding: 0 20px; }
	.sec { padding: 72px 0; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 24px; }
	.site-header.is-open .nav { display: block; }
	.nav .menu { flex-direction: column; align-items: flex-start; gap: 0; }
	.nav .menu li { width: 100%; border-bottom: 1px solid #F0EEEE; }
	.nav .menu a { display: block; padding: 16px 0; font-size: 18px; border: 0; }
	.menu-toggle { display: inline-flex; }
	.hide-m { display: none !important; }
	.hero { padding: 48px 0 72px; }
	.hero__grid, .split, .split--wide, .split--form, .connect, .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.grid-2, .grid-3, .grid-4, .builds, .timeline { grid-template-columns: minmax(0, 1fr); }
	.grid-3 > *, .grid-4 > * { grid-column: auto !important; }
	.timeline { gap: 28px; }
	.grid-5, .jummah-arches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prayer-arches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.numbers { grid-template-columns: minmax(0, 1fr); }
	.numbers > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 20px; }
	.prayer-card { position: relative; left: 0; bottom: 0; width: auto; margin: -72px 12px 0; }
	.hero__media { flex-direction: column; }
	.photo-tall { height: 440px; }
	.photo-med { height: 400px; }
	.connect { padding: 32px 24px; }
	.form-shell { padding: 24px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.event-row { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
	.event-row > .btn { grid-column: 2; justify-self: start; }
	.event-date { width: 72px; height: 84px; }
	.feature__body { padding: 32px 24px; }
	.badge { left: 12px !important; right: auto !important; }
	.rows > div { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; position: relative; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hardening against page-builder CSS (Elementor kit, HFE) ---------- */
a.btn.btn--gold, a.btn.btn--gold:hover, a.btn.btn--gold:focus, button.btn.btn--gold { color: var(--ink); }
a.btn.btn--deep, a.btn.btn--deep:hover, a.btn.btn--deep:focus, button.btn.btn--deep { color: #fff; }
a.btn.btn--outline, a.btn.btn--outline:focus { color: var(--deep); }
a.btn.btn--outline:hover { background: var(--deep); color: #fff; }
a.btn.btn--light, a.btn.btn--light:hover { color: var(--ink); }
a.btn.btn--ghost-light, a.btn.btn--ghost-light:hover { color: #fff; }
.site-header .nav a, .site-header .nav a:focus { color: var(--ink); }
.site-header .nav a:hover, .site-header .nav .current-menu-item > a { color: var(--deep); }
.site-footer.site-footer a { color: var(--on-deep); }
.site-footer.site-footer a:hover { color: #fff; }
.utility.utility a { color: var(--gold); }
.sec--deep a.link-arrow, .card--deep a.link-arrow { color: var(--gold); }
a.card, a.card:hover { color: inherit; }
a.event-row__title, a.event-row__title:hover { color: var(--deep); }

/* ---------- Event page (1.5) ----------
   Details on the left, the ticket card on the right and following on scroll.
   Date and place sit in the theme's small arch tiles. */
.ev__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-rows: auto auto 1fr; grid-template-areas: "head side" "media side" "body side"; column-gap: 64px; row-gap: 40px; align-items: start; }
.ev__head { grid-area: head; }
.ev__side { grid-area: side; position: sticky; top: 24px; }
.ev__media { grid-area: media; }
.ev__media .photo { height: 520px; }
.ev__body { grid-area: body; max-width: 720px; }
.ev__about { font-size: 26px; letter-spacing: -0.4px; margin-bottom: 12px; }
.ev__facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ev__facts li { display: flex; align-items: center; gap: 16px; color: var(--body); line-height: 1.45; }
.ev__facts strong { color: var(--ink); }
.ev__tile { flex: none; width: 60px; height: 68px; border-radius: 999px 999px 12px 12px; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 9px; gap: 0; }
.ev__tile .serif { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold-ink); line-height: 1.1; }
.ev__tile strong { font-size: 18px; color: var(--deep); line-height: 1.1; }
.ev__tile--icon { justify-content: center; padding: 10px 0 0; color: var(--deep); }
.ev__tile--icon .icon { width: 22px; height: 22px; }
.ev__side-note { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--teal-text); }
.ev__side .mc-event .btn { width: 100%; }
@media (max-width: 1000px) {
	.ev__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "side" "media" "body"; row-gap: 32px; }
	.ev__side { position: static; }
	.ev__media .photo { height: 420px; }
}

/* ==========================================================================
   Atmosphere (1.6): no flat beige anywhere. Light sections sit on a cool
   white with soft teal and gold light and a fine grain, the way premium
   product sites finish a gradient. Deep sections get the same light.
   ========================================================================== */
:root { --sand: #EDF5F3; --cream: #FFF4CC; --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sec--sand, .sec--mist { position: relative; isolation: isolate; overflow: hidden; background-color: #F6FAF9;
	background-image:
		radial-gradient(60% 70% at 88% 0%, rgba(0,143,126,.13), rgba(0,143,126,0) 70%),
		radial-gradient(45% 60% at 4% 100%, rgba(255,208,40,.16), rgba(255,208,40,0) 70%),
		radial-gradient(40% 50% at 40% 45%, rgba(120,209,198,.10), rgba(120,209,198,0) 70%); }
.sec--mist { background-color: #EFF7F5; }
.sec--sand::before, .sec--mist::before, .sec--deep::before, .door::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .07; mix-blend-mode: multiply; }
.sec--deep { position: relative; isolation: isolate; background-color: var(--deep);
	background-image: radial-gradient(55% 70% at 85% 10%, rgba(0,143,126,.55), rgba(0,143,126,0) 70%), radial-gradient(40% 55% at 0% 100%, rgba(255,208,40,.10), rgba(255,208,40,0) 70%); }
.sec--deep::before { mix-blend-mode: overlay; opacity: .18; }
.sec--sand .accent { color: var(--teal); }
a.door.door--sand, a.door.door--sand:hover, a.door.door--sand:focus, div.door.door--sand { background: linear-gradient(170deg, #FFFFFF 0%, #E9F4F1 100%); color: var(--deep); box-shadow: inset 0 0 0 1px rgba(11,74,67,.08); }
.door { isolation: isolate; }
.door::before { opacity: .05; }
.door.door--sand .door__kicker { color: var(--teal-text); }
.door.door--sand .door__window--empty { background: rgba(0,143,126,.08); color: var(--deep); }
.photo--sand { background: linear-gradient(170deg, #F4FAF8, #E2F0EC); color: var(--deep); }
.photo--gold { background: linear-gradient(170deg, #FFE27A, #FFD028); color: #4A3A00; }
.event-date, .ev__tile { background: linear-gradient(175deg, #FFFFFF, #E4F2EE); box-shadow: inset 0 0 0 1px rgba(11,74,67,.08); }
.event-date .serif, .ev__tile .serif { color: var(--teal-text); }
