:root {
  --ink: #132c28;
  --forest: #123b33;
  --forest-2: #0b2e28;
  --moss: #1f5548;
  --gold: #d6aa5b;
  --gold-soft: #f1dfb8;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --line: rgba(19, 44, 40, 0.14);
  --muted: #5f6f6b;
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .8rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { height: 86px; padding: 0 clamp(1rem, 5vw, 5.25rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: absolute; inset: 0 0 auto; z-index: 20; color: white; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: flex; align-items: center; gap: .8rem; min-width: max-content; }
.brand > span:last-child { display: flex; flex-direction: column; gap: .15rem; }
.brand strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; letter-spacing: .015em; }
.brand small { font-size: .67rem; opacity: .68; letter-spacing: .07em; text-transform: uppercase; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.16)); }
.header-logo { width: 175px; height: 82px; object-fit: contain; object-position: left center; filter: drop-shadow(0 5px 12px rgba(0,0,0,.2)); }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: .86rem; }
.site-header nav a { opacity: .78; transition: opacity .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { opacity: 1; }
.header-donate { background: var(--gold); color: var(--forest-2); border-radius: 999px; padding-inline: 1.25rem; font-weight: 800; }
.header-donate svg { width: 15px; height: 15px; }

.hero-shell { min-height: 760px; padding: 144px clamp(1rem, 5vw, 5.25rem) 72px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(350px, 470px); align-items: center; gap: clamp(2rem, 6vw, 6.5rem); color: white; position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(5, 31, 27, .94) 0%, rgba(7, 39, 33, .85) 43%, rgba(7, 35, 30, .64) 100%), url('mosque-hero.webp') center / cover no-repeat; }
.hero-shell::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(30deg, transparent 48%, var(--gold) 49%, transparent 51%), linear-gradient(-30deg, transparent 48%, var(--gold) 49%, transparent 51%); background-size: 70px 120px; mask-image: linear-gradient(to right, transparent, black); }
.hero-shell::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(214,170,91,.17); border-radius: 50%; left: -220px; bottom: -280px; box-shadow: 0 0 0 74px rgba(214,170,91,.035), 0 0 0 148px rgba(214,170,91,.025); }
.hero-copy, .donation-card { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; color: var(--gold-soft); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 1px; background: var(--gold); }
.eyebrow.dark { color: #87672e; }
.eyebrow.light { color: var(--gold-soft); }
.hero-copy h1, .section-heading h2, .final-cta h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.035em; }
.hero-copy h1 { max-width: 720px; font-size: clamp(3.25rem, 6.3vw, 6.4rem); line-height: .96; }
.hero-intro { max-width: 655px; margin: 1.8rem 0 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.75; }
.hero-intro strong { color: white; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.primary-cta, .final-button { min-height: 54px; border-radius: 999px; background: var(--gold); color: var(--forest-2); padding-inline: 1.5rem; font-weight: 800; }
.primary-cta svg, .final-button svg { width: 17px; }
.text-link { padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.4); font-size: .9rem; }
.hero-proof { display: flex; gap: 2.25rem; margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-proof > div { display: flex; gap: .7rem; align-items: center; }
.hero-proof svg { width: 25px; color: var(--gold-soft); }
.hero-proof span { display: flex; flex-direction: column; gap: .2rem; }
.hero-proof strong { font-size: .8rem; }
.hero-proof small { font-size: .71rem; color: rgba(255,255,255,.56); }

.donation-card { background: rgba(255,253,248,.97); color: var(--ink); padding: clamp(1.45rem, 3vw, 2.25rem); border-radius: 24px 24px 70px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.45); }
.card-kicker { display: flex; align-items: center; gap: .45rem; color: #8a6729; font-size: .72rem; text-transform: uppercase; font-weight: 900; letter-spacing: .12em; }
.card-kicker svg { width: 15px; fill: #d6aa5b; }
.donation-card h2 { margin: .55rem 0 .6rem; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.donation-card > p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.amount-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin: 1.35rem 0 1rem; }
.amount { height: 42px; padding: 0; border-radius: .65rem; border-color: var(--line); color: var(--ink); }
.amount.active { background: var(--forest); color: white; border-color: var(--forest); }
.custom-amount { display: block; color: var(--muted); font-size: .77rem; font-weight: 700; }
.currency-input { display: flex; align-items: center; position: relative; margin-top: .45rem; }
.currency-input b { position: absolute; left: .9rem; z-index: 1; color: var(--ink); }
.currency-input input { height: 48px; padding-left: 2rem; background: white; border-color: var(--line); font-size: 1rem; font-weight: 800; }
.amount-help { display: block; margin: .4rem 0 1rem; color: var(--muted); font-size: .69rem; }
.amount-help.error { color: #a83232; }
.paypal-button { width: 100%; height: 52px; border-radius: .75rem; background: var(--forest); color: white; font-weight: 800; }
.paypal-button:disabled { background: #b8c5c2; opacity: 1; }
.connection-note { margin-top: .65rem !important; color: #8a6222 !important; font-size: .7rem !important; text-align: center; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .85rem; color: var(--muted); font-size: .68rem; }
.secure-note svg { width: 14px; }

.section-pad { padding: clamp(5rem, 9vw, 8.5rem) clamp(1.2rem, 8vw, 8.5rem); }
.appeal-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; background: var(--paper); }
.section-heading h2, .final-cta h2 { font-size: clamp(2.7rem, 4.5vw, 5rem); line-height: 1.02; }
.appeal-copy { max-width: 660px; }
.appeal-copy > p { color: var(--muted); line-height: 1.8; }
.appeal-copy .lead { margin-top: 0; color: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.55; }
.quote-strip { display: flex; gap: 1.15rem; margin-top: 2rem; padding: 1.5rem; background: var(--cream); border-left: 3px solid var(--gold); }
.quote-strip > span { font-family: Georgia, serif; font-size: 3rem; line-height: .8; color: var(--gold); }
.quote-strip p { margin: 0; font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.55; }
.quote-strip small { display: block; margin-top: .5rem; color: var(--muted); font-family: Arial, sans-serif; font-size: .69rem; }

.vision-section { background: #f4eee2; }
.vision-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; }
.vision-intro h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.7rem, 4.5vw, 5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.vision-pitch { max-width: 640px; }
.vision-pitch p { color: var(--muted); line-height: 1.75; }
.vision-pitch p:first-child { margin-top: 0; }
.vision-pitch strong { color: var(--ink); }
.vision-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.vision-button { min-height: 52px; border-radius: 999px; background: var(--forest); color: white; padding-inline: 1.4rem; font-weight: 800; }
.vision-button svg { width: 16px; fill: var(--gold); color: var(--gold); }
.vision-carousel { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 1rem; margin-top: 4rem; }
.vision-viewport { height: clamp(520px, 55vw, 760px); min-height: 0; overflow: hidden; position: relative; background: #d8d4ca; box-shadow: 0 24px 60px rgba(19,44,40,.14); }
.vision-track { width: 100%; height: 100%; display: flex; flex-direction: column; transition: transform .85s cubic-bezier(.22,.8,.22,1); will-change: transform; }
.vision-slide { width: 100%; height: 100%; flex: 0 0 100%; margin: 0; position: relative; overflow: hidden; background: #ece9e2; }
.vision-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vision-slide img.floor-plan-image { object-fit: contain; padding: clamp(1rem, 2vw, 2rem); background: white; }
.vision-slide::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(6,30,26,.92)); pointer-events: none; }
.vision-slide.plan-slide::after { inset: 62% 0 0; }
.vision-slide figcaption { position: absolute; inset: auto 0 0; z-index: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem); color: white; }
.vision-slide figcaption span { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--gold-soft); font-size: .68rem; }
.vision-slide figcaption strong { align-self: end; font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 500; }
.vision-slide figcaption small { margin-top: .25rem; color: rgba(255,255,255,.72); font-size: .75rem; }
.vision-controls { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem; border: 1px solid rgba(19,44,40,.13); background: rgba(255,255,255,.55); }
.vision-controls > button { flex: 0 0 auto; border-color: rgba(19,44,40,.18); background: white; color: var(--forest); }
.vision-controls > button:hover { background: var(--forest); color: white; }
.vision-controls svg { width: 18px; }
.vision-dots { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; }
.vision-dots button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(19,44,40,.15); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.vision-dots button:hover, .vision-dots button:focus-visible { border-color: var(--gold); color: var(--forest); }
.vision-dots button.active { border-color: var(--forest); background: var(--forest); color: white; transform: scale(1.08); }
.vision-dots span { font-size: .65rem; font-weight: 800; }
.future-pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1rem; border: 1px solid rgba(19,44,40,.12); background: rgba(255,255,255,.48); }
.future-pillars > div { display: flex; align-items: center; gap: .8rem; padding: 1.25rem; border-right: 1px solid rgba(19,44,40,.12); }
.future-pillars > div:last-child { border-right: 0; }
.future-pillars svg { width: 24px; color: #9c7530; flex: 0 0 auto; }
.future-pillars span { display: flex; flex-direction: column; gap: .2rem; }
.future-pillars strong { font-size: .8rem; }
.future-pillars small { color: var(--muted); font-size: .66rem; }

.plan-section { background: var(--forest-2); color: white; }
.plan-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; }
.plan-heading > p { max-width: 500px; margin: 0 0 .4rem; color: rgba(255,255,255,.62); line-height: 1.7; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; }
.plan-card { position: relative; min-height: 330px; padding: 1.65rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); transition: transform .25s ease, background .25s ease; }
.plan-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.065); }
.plan-card > svg { width: 25px; color: var(--gold); margin-top: 3.1rem; }
.plan-number { position: absolute; right: 1.4rem; top: 1.2rem; color: rgba(255,255,255,.22); font-family: Georgia, serif; font-size: 1.8rem; }
.plan-card h3 { margin: 1rem 0 .65rem; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.plan-card strong { color: var(--gold-soft); font-size: 1.2rem; }
.plan-card p { color: rgba(255,255,255,.54); font-size: .78rem; line-height: 1.65; }

.copy-button { width: 100%; height: 48px; border-color: var(--forest); color: var(--forest); }
.copy-button svg { width: 15px; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 3rem; background: #1c5145; color: white; position: relative; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; width: 320px; height: 320px; right: 7%; border: 1px solid rgba(214,170,91,.17); transform: rotate(45deg); }
.final-cta > * { position: relative; z-index: 1; }
.final-copy { max-width: 600px; margin: 1.25rem 0 0; color: rgba(255,255,255,.68); line-height: 1.7; }
.site-footer { padding: 3.5rem clamp(1.2rem, 8vw, 8.5rem) 2rem; display: grid; grid-template-columns: 1fr; justify-items: center; align-items: start; gap: 2rem; background: #071f1c; color: white; text-align: center; }
.footer-identity { display: flex; flex-direction: column; align-items: center; }
.footer-identity > p { max-width: 520px; margin: 1rem auto 0; color: rgba(255,255,255,.48); font-size: .72rem; line-height: 1.7; }
.footer-logo { width: min(340px, 80vw); height: 205px; object-fit: contain; filter: drop-shadow(0 12px 28px rgba(0,0,0,.28)); }
.footer-contact { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: .75rem; font-style: normal; }
.footer-contact a { flex: 1 1 240px; max-width: 340px; min-height: 62px; display: flex; gap: .65rem; align-items: center; justify-content: center; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.72); font-size: .72rem; line-height: 1.55; text-align: left; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: 0 0 auto; }
.footer-links { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .6rem; width: 100%; }
.footer-links a { min-width: 135px; padding: .72rem .9rem; border: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.78); font-size: .72rem; text-align: center; transition: border-color .2s ease, color .2s ease; }
.footer-links a:hover, .footer-links a:focus-visible { border-color: var(--gold); color: white; }
.footer-notice { width: 100%; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: .67rem; line-height: 1.6; }
.copyright { white-space: nowrap; }
.site-footer .copyright { margin: 0; color: rgba(255,255,255,.42); font-size: .67rem; line-height: 1.6; }

.subpage { min-height: 100vh; background: var(--paper); }
.subpage-hero { min-height: 470px; padding: 165px clamp(1.2rem, 8vw, 8.5rem) 90px; display: flex; flex-direction: column; justify-content: flex-end; color: white; position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(5,31,27,.95), rgba(8,42,35,.76)), url('mosque-hero.webp') center 42% / cover no-repeat; }
.subpage-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: 9%; bottom: -250px; border: 1px solid rgba(214,170,91,.24); transform: rotate(45deg); }
.subpage-hero > * { position: relative; z-index: 1; }
.subpage-hero h1 { max-width: 900px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.7rem, 7vw, 7rem); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.subpage-hero > p:last-child { max-width: 670px; margin: 1.3rem 0 0; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.75; }
.legal-hero { min-height: 420px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 620px); gap: 7vw; align-items: start; }
.contact-details h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.7rem, 4.3vw, 4.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.contact-lead { max-width: 650px; margin: 1.5rem 0 0; color: var(--muted); line-height: 1.75; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 2.5rem; }
.contact-card { min-height: 175px; display: flex; gap: 1rem; padding: 1.25rem; background: white; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19,44,40,.08); }
.contact-card > svg { width: 34px; height: 34px; padding: .45rem; border-radius: 50%; background: var(--forest); color: var(--gold-soft); flex: 0 0 auto; }
.contact-card span { min-width: 0; }
.contact-card small { display: block; margin-bottom: .38rem; color: #8a6729; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { display: block; overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 1rem; }
.contact-card p { margin: .55rem 0 0; color: var(--muted); font-size: .71rem; line-height: 1.6; }

.contact-form { padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: 22px 22px 70px 22px; background: var(--forest-2); color: white; box-shadow: 0 24px 60px rgba(19,44,40,.2); }
.form-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.8rem; }
.form-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--forest-2); }
.form-icon svg { width: 19px; }
.form-heading small { display: block; margin-bottom: .2rem; color: var(--gold-soft); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .48rem; }
.form-field label { color: rgba(255,255,255,.8); font-size: .72rem; }
.form-field label span { color: rgba(255,255,255,.45); font-weight: 400; }
.form-field input, .form-field textarea { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: white; }
.form-field input { height: 48px; }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,.38); }
.form-field input:focus-visible, .form-field textarea:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(214,170,91,.22); }
.form-message { grid-column: 1 / -1; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; }
.form-submit-row > p { max-width: 330px; margin: 0; color: rgba(255,255,255,.48); font-size: .64rem; line-height: 1.55; }
.form-submit-row > p a { color: var(--gold-soft); text-decoration: underline; }
.contact-submit { min-height: 50px; border-radius: 999px; background: var(--gold); color: var(--forest-2); padding-inline: 1.3rem; font-weight: 800; }
.contact-submit svg { width: 16px; }
.form-status { min-height: 1.1rem; margin: .8rem 0 0; color: var(--gold-soft); font-size: .7rem; }

.legal-content { width: min(920px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.legal-updated { margin: 0 0 3rem; color: #8a6729; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-content section { padding: 0 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 { margin: 0 0 .8rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 500; }
.legal-content p { margin: 0; color: var(--muted); line-height: 1.85; }
.legal-content a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.prayer-hero { background-position: center 35%; }
.prayer-board { background: #f5f0e6; }
.prayer-board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.prayer-board-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.prayer-location { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--muted); font-size: .76rem; }
.prayer-location svg { width: 16px; color: #8a6729; }
.next-prayer { min-width: 280px; display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.3rem; border-radius: 18px; background: var(--forest-2); color: white; box-shadow: 0 18px 40px rgba(19,44,40,.16); }
.next-prayer > svg { width: 32px; height: 32px; padding: .42rem; border-radius: 50%; background: var(--gold); color: var(--forest-2); }
.next-prayer span { display: grid; grid-template-columns: 1fr auto; column-gap: 1.2rem; align-items: center; }
.next-prayer small { grid-column: 1 / -1; color: var(--gold-soft); font-size: .61rem; letter-spacing: .11em; text-transform: uppercase; }
.next-prayer strong { font-family: Georgia, serif; font-size: 1rem; }
.next-prayer b { color: rgba(255,255,255,.58); font-size: .68rem; }
.prayer-date-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.2rem; padding: .9rem 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.5); color: var(--muted); font-size: .72rem; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: .8rem; }
.prayer-card { min-height: 235px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; border: 1px solid var(--line); background: white; }
.prayer-card.next { background: var(--forest); color: white; border-color: var(--forest); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(19,44,40,.16); }
.prayer-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: #9b732c; }
.prayer-card.next .prayer-icon { background: var(--gold); color: var(--forest-2); }
.prayer-icon svg { width: 20px; }
.prayer-card span small { color: var(--muted); font-size: .62rem; }
.prayer-card.next span small { color: rgba(255,255,255,.6); }
.prayer-card h3 { margin: .25rem 0 0; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.prayer-card time { font-family: Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--forest); }
.prayer-card.next time { color: var(--gold-soft); }
.prayer-card > b { position: absolute; top: 1rem; right: 1rem; color: var(--gold-soft); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; }
.prayer-skeleton { min-height: 235px; border-radius: 0; background: rgba(19,44,40,.09); }
.prayer-refresh-note { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; margin-top: .9rem; color: var(--muted); font-size: .65rem; }
.prayer-refresh-note svg { width: 13px; }
.prayer-error { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding: 1.3rem; border: 1px solid #d8b0a8; background: #fff8f5; }
.prayer-error > svg { width: 28px; color: #a44d39; }
.prayer-error span { flex: 1; }
.prayer-error p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }
.prayer-disclaimer { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.55); color: var(--muted); font-size: .72rem; line-height: 1.7; }
.prayer-disclaimer strong { color: var(--ink); }

.donate-hero { background-position: center 48%; }
.donate-page-content { background: #f5f0e6; }
.donate-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: end; }
.donate-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 4.8vw, 5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.donate-intro > p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.8; }
.donation-legacy-message { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; margin-top: 3rem; padding: clamp(1.4rem, 2.6vw, 2.2rem); border-left: 4px solid var(--gold); background: #fffaf0; }
.donation-legacy-message strong { font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.35; }
.donation-legacy-message p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.donate-methods { display: grid; grid-template-columns: minmax(0, 820px); gap: 1rem; margin-top: 1rem; }
.paypal-panel { width: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); background: white; border: 1px solid var(--line); border-radius: 22px 22px 75px 22px; }
.donate-panel-head { display: flex; align-items: center; gap: .9rem; }
.donate-panel-head > svg { width: 44px; height: 44px; padding: .55rem; border-radius: 50%; background: var(--forest); color: var(--gold-soft); }
.donate-panel-head small { color: #8a6729; font-size: .61rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.donate-panel-head h3 { margin: .2rem 0 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.paypal-panel > p { color: var(--muted); line-height: 1.7; font-size: .82rem; }
.donate-amounts { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; margin: 1.5rem 0 1rem; }
.donate-amount { height: 44px; padding: 0; border-color: var(--line); color: var(--ink); }
.donate-amount.selected { background: var(--forest); color: white; border-color: var(--forest); }
.donate-custom { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
.donate-custom .currency-input { margin-top: .45rem; }
.paypal-donate-button { width: 100%; min-height: 54px; border-radius: .75rem; background: #0874d1; color: white; font-weight: 800; }
.paypal-donate-button:hover { background: #0764b5; color: white; }
.paypal-donate-button:disabled { background: #b8c5c2; opacity: 1; }
.donation-impact { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; padding: 1.3rem 1.5rem; background: #e7dac1; }
.donation-impact > div { display: flex; align-items: center; gap: .8rem; }
.donation-impact svg { width: 28px; color: var(--forest); }
.donation-impact span { display: flex; flex-direction: column; gap: .2rem; }
.donation-impact strong { font-family: Georgia, serif; font-size: 1.1rem; }
.donation-impact small { color: var(--muted); font-size: .68rem; }
.donation-impact > a { color: var(--forest); font-size: .74rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2rem; }

.islam-hero { background-position: center 40%; }
.islam-contents { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1rem clamp(1.2rem, 8vw, 8.5rem); background: #eadfc9; }
.islam-contents a { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border: 1px solid rgba(19,44,40,.12); background: rgba(255,255,255,.45); }
.islam-contents svg { width: 24px; color: #8a6729; }
.islam-contents span { display: flex; flex-direction: column; gap: .18rem; }
.islam-contents strong { font-family: Georgia, serif; font-size: .95rem; }
.islam-contents small { color: var(--muted); font-size: .64rem; }
.islam-content { background: var(--paper); }
.islam-section { padding: clamp(5rem, 9vw, 8rem) clamp(1.2rem, 8vw, 8.5rem); }
.islam-section-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: end; margin-bottom: 3.5rem; }
.islam-section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -1.2rem; }
.islam-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.islam-section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }
.belief-list { border-top: 1px solid var(--line); }
.belief-item { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.belief-item > span { color: #a47a2e; font-family: Georgia, serif; font-size: 1.3rem; }
.belief-item h3 { margin: 0 0 .75rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 500; }
.belief-item p { max-width: 950px; margin: 0; color: var(--muted); line-height: 1.85; }
.dark-section { background: var(--forest-2); color: white; }
.dark-section .islam-section-heading > p:last-child, .dark-section .belief-item p { color: rgba(255,255,255,.6); }
.dark-section .belief-list, .dark-section .belief-item { border-color: rgba(255,255,255,.12); }
.dark-section .belief-item > span { color: var(--gold); }
.guidance-section { background: #f1e8d8; }
.guidance-section .islam-section-heading { grid-template-columns: 1fr; }
.guidance-copy { max-width: 960px; margin-left: auto; }
.guidance-copy p { margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.02rem; line-height: 1.9; }

.services-hero { min-height: 600px; background-position: center 34%; }
.service-hero-facts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.service-hero-facts span { min-width: 165px; display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.2); background: rgba(7,31,28,.38); backdrop-filter: blur(8px); }
.service-hero-facts strong { color: var(--gold-soft); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.service-hero-facts small { color: rgba(255,255,255,.65); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.services-intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: 8vw; align-items: start; background: var(--paper); }
.services-intro h2, .services-section-heading h2, .documents-panel h2, .attendance-panel h2, .service-final-cta h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; }
.services-intro h2 { max-width: 660px; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 1.02; }
.services-intro-copy { max-width: 690px; }
.services-intro-copy p { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.service-enquiry-button { min-height: 52px; margin-top: 1rem; border-radius: 999px; background: var(--forest); color: white; padding-inline: 1.4rem; font-weight: 800; }
.service-enquiry-button svg { width: 16px; color: var(--gold-soft); }
.marriage-process { background: var(--forest-2); color: white; }
.services-section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 7vw; align-items: end; }
.services-section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: .25rem; }
.services-section-heading h2 { font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 1; }
.services-section-heading > p:last-child { max-width: 520px; margin: 0 0 .3rem; color: rgba(255,255,255,.6); line-height: 1.75; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 4rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.process-card { min-height: 390px; position: relative; padding: 1.5rem; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); }
.process-number { position: absolute; top: 1.3rem; right: 1.3rem; color: rgba(255,255,255,.25); font-family: Georgia, serif; font-size: 1.5rem; }
.process-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--forest-2); }
.process-icon svg { width: 21px; }
.process-card h3 { margin: 2.2rem 0 .9rem; color: var(--gold-soft); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.process-card p { margin: 0; color: rgba(255,255,255,.6); font-size: .78rem; line-height: 1.75; }
.ceremony-details { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1rem; background: #f4eee2; }
.documents-panel { padding: clamp(1.5rem, 4vw, 3.2rem); background: white; border: 1px solid var(--line); }
.detail-panel-heading { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.detail-panel-heading > svg { width: 48px; height: 48px; padding: .65rem; border-radius: 50%; background: var(--forest); color: var(--gold-soft); flex: 0 0 auto; }
.detail-panel-heading small { display: block; margin-bottom: .3rem; color: #8a6729; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.documents-panel h2 { font-size: clamp(2rem, 3vw, 3rem); }
.documents-panel > p { color: var(--muted); line-height: 1.7; }
.documents-panel ul { display: grid; gap: .6rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.documents-panel li { display: flex; align-items: center; gap: .7rem; padding: .85rem; background: var(--cream); color: var(--ink); font-size: .78rem; }
.documents-panel li svg { width: 17px; color: #9b732c; flex: 0 0 auto; }
.confirmation-note { margin: 1.5rem 0 0; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: #f1e8d8; font-size: .76rem; }
.ceremony-side-panels { display: grid; grid-template-rows: auto 1fr; gap: 1rem; }
.attendance-panel, .important-panel { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 3.2rem); }
.attendance-panel { background: #e7dac1; }
.attendance-panel > svg, .important-panel > svg { position: absolute; right: 2rem; top: 2rem; width: 62px; height: 62px; opacity: .14; }
.attendance-panel h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.attendance-panel > p:last-child { max-width: 640px; margin: 1.2rem 0 0; color: var(--muted); line-height: 1.8; }
.important-panel { background: #1c5145; color: white; }
.important-panel ul { display: grid; gap: .85rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.important-panel li { position: relative; padding-left: 1.2rem; color: rgba(255,255,255,.7); font-size: .8rem; line-height: 1.65; }
.important-panel li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.service-final-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; background: #0b2e28; color: white; }
.service-final-cta > svg { width: 58px; height: 58px; padding: .75rem; border-radius: 50%; background: var(--gold); color: var(--forest-2); }
.service-final-cta .eyebrow { margin-bottom: .7rem; }
.service-final-cta h2 { font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: 1.05; }
.service-final-cta p:last-child { max-width: 700px; margin: .8rem 0 0; color: rgba(255,255,255,.6); line-height: 1.7; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .hero-shell { grid-template-columns: 1fr minmax(330px, 410px); gap: 2rem; }
  .hero-copy h1 { font-size: clamp(3.5rem, 6.4vw, 5rem); }
  .future-pillars { grid-template-columns: repeat(2, 1fr); }
  .future-pillars > div:nth-child(2) { border-right: 0; }
  .future-pillars > div:nth-child(-n+2) { border-bottom: 1px solid rgba(19,44,40,.12); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .site-header { height: 76px; }
  .header-donate { display: none; }
  .hero-shell { min-height: auto; padding-top: 118px; grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3.5rem, 13vw, 5rem); }
  .donation-card { max-width: 560px; }
  .appeal-section, .vision-intro { grid-template-columns: 1fr; gap: 3rem; }
  .vision-carousel { grid-template-columns: 1fr; }
  .vision-controls { flex-direction: row; padding: .65rem; }
  .vision-dots { flex-direction: row; }
  .plan-heading, .final-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-links { grid-column: 1 / -1; }
  .footer-contact { justify-content: center; }
  .site-footer .copyright { padding-top: 0; border-top: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .prayer-board-head, .donation-impact { align-items: flex-start; flex-direction: column; }
  .donate-intro, .donate-methods, .islam-section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .services-intro, .services-section-heading, .ceremony-details { grid-template-columns: 1fr; gap: 2rem; }
  .services-section-heading .eyebrow { grid-column: auto; }
  .service-final-cta { grid-template-columns: auto 1fr; }
  .service-final-cta .final-button { grid-column: 2; justify-self: start; }
  .islam-section-heading .eyebrow { grid-column: auto; margin-bottom: -1rem; }
  .islam-contents { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .brand strong { font-size: .92rem; }
  .brand-logo { width: 42px; height: 42px; }
  .header-logo { width: 136px; height: 72px; }
  .hero-shell { padding-inline: 1rem; }
  .hero-copy h1 { font-size: 3.35rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-proof { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .future-pillars { grid-template-columns: 1fr; }
  .future-pillars > div { border-right: 0; border-bottom: 1px solid rgba(19,44,40,.12); }
  .future-pillars > div:nth-child(2) { border-right: 0; }
  .future-pillars > div:last-child { border-bottom: 0; }
  .vision-viewport { height: 410px; }
  .vision-dots { gap: .35rem; }
  .vision-dots button { width: 28px; height: 28px; }
  .plan-card { min-height: 270px; }
  .final-cta { padding-inline: 1.2rem; }
  .subpage-hero { min-height: 420px; padding-inline: 1.2rem; }
  .contact-layout { padding-inline: 1rem; }
  .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .form-message { grid-column: auto; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-card, .prayer-skeleton { min-height: 205px; }
  .next-prayer { min-width: 100%; }
  .prayer-date-row { flex-direction: column; }
  .prayer-error { align-items: flex-start; flex-wrap: wrap; }
  .donate-page-content, .prayer-board, .islam-section { padding-inline: 1rem; }
  .donation-legacy-message { grid-template-columns: 1fr; gap: .8rem; }
  .donate-methods { grid-template-columns: 1fr; }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); }
  .donation-impact { align-items: flex-start; }
  .service-hero-facts span { min-width: calc(50% - .4rem); }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 320px; }
  .service-final-cta { grid-template-columns: 1fr; }
  .service-final-cta .final-button { grid-column: auto; justify-self: start; }
  .belief-item { grid-template-columns: 45px 1fr; gap: 1rem; }
  .islam-contents { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Standalone PHP package additions */
img { max-width: 100%; }
.button, button.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; padding: .72rem 1.2rem; cursor: pointer; font-weight: 800; line-height: 1; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(214,170,91,.55); outline-offset: 3px; }
.icon-button { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: .6rem; border-color: rgba(19,44,40,.2); background: white; color: var(--forest); font-size: 1.1rem; }
.site-header .menu-toggle { display: none; }
.site-header nav a.active { opacity: 1; color: var(--gold-soft); }
.donation-card input, .contact-form input, .contact-form textarea, .donate-custom input { width: 100%; border: 1px solid var(--line); border-radius: .55rem; padding: .75rem; }
.donation-card .currency-input input, .donate-custom .currency-input input { padding-left: 2rem; }
.amount-grid button, .donate-amounts button { border: 1px solid var(--line); background: white; color: var(--ink); }
.amount-grid button.active, .donate-amounts button.selected { background: var(--forest); border-color: var(--forest); color: white; }
.paypal-button { width: 100%; background: var(--forest); color: white; border-radius: .75rem; }
.vision-slide[hidden] { display: none; }
.vision-viewport { isolation: isolate; }
.vision-track.php-carousel { position: relative; }
.php-carousel .vision-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(42px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.php-carousel .vision-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.vision-controls { min-height: 100%; }
.vision-dots button { flex: 0 0 auto; }
.notice { margin: 0 0 1.5rem; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: #fff8e8; color: var(--ink); line-height: 1.6; }
.notice.error { border-left-color: #a83232; background: #fff4f2; }
.contact-form .button { background: var(--gold); color: var(--forest-2); border-radius: 999px; }
.page-copy { color: var(--muted); line-height: 1.8; }
.prayer-loading { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); }
.footer-links a.active { color: var(--gold-soft); border-color: rgba(214,170,91,.45); }
.mobile-only { display: none; }

@media (max-width: 1050px) {
  .site-header { position: absolute; flex-wrap: wrap; height: auto; min-height: 76px; padding-block: .45rem; }
  .site-header .menu-toggle { display: inline-flex; min-height: 42px; border-radius: 999px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: white; }
  .site-header nav { display: none; order: 3; width: 100%; padding: .8rem 0 1rem; flex-wrap: wrap; gap: .75rem 1.2rem; border-top: 1px solid rgba(255,255,255,.15); }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a { min-height: 38px; display: inline-flex; align-items: center; }
}

@media (max-width: 520px) {
  .header-donate { display: none; }
  .vision-controls { overflow-x: auto; justify-content: flex-start; }
  .vision-dots { flex: 0 0 auto; }
  .vision-actions .button { width: 100%; }
}

/* Ivory palace redesign */
:root {
  --ink: #29271f;
  --forest: #244638;
  --forest-2: #142a22;
  --moss: #587062;
  --gold: #c99b3d;
  --gold-deep: #8d6418;
  --gold-soft: #f3dfaa;
  --cream: #efe0bd;
  --paper: #fffaf0;
  --line: rgba(115, 81, 18, .22);
  --muted: #746f64;
  --accent: #c99b3d;
  --accent-dark: #8d6418;
  --charcoal: #1c1b17;
  --radius: .25rem;
}

body {
  background: var(--paper);
  background-image: radial-gradient(rgba(141,100,24,.045) .75px, transparent .75px);
  background-size: 8px 8px;
  font-family: "Trebuchet MS", Arial, sans-serif;
}
h1, h2, h3 { text-wrap: balance; }

.site-header {
  height: 116px;
  padding-inline: clamp(1rem, 4.5vw, 5.25rem);
  color: var(--ink);
  border-top: 9px solid var(--gold);
  border-bottom: 1px solid rgba(141,100,24,.45);
  background: rgba(255,250,240,.97);
  box-shadow: 0 12px 32px rgba(40,32,18,.14);
  backdrop-filter: blur(10px);
}
.site-header::before { content: ""; position: absolute; inset: 8px 0 auto; height: 1px; background: #f8e7b8; }
.site-header::after { content: "✦"; position: absolute; left: 50%; bottom: -9px; width: 28px; height: 18px; display: grid; place-items: center; border-inline: 1px solid var(--gold); background: var(--paper); color: var(--gold-deep); font-size: .65rem; transform: translateX(-50%); }
.header-logo { width: 225px; height: 105px; filter: drop-shadow(0 5px 11px rgba(40,32,18,.16)); }
.site-header nav { gap: clamp(.8rem, 1.8vw, 1.8rem); color: var(--charcoal); font-family: Georgia, "Times New Roman", serif; font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; }
.site-header nav a { position: relative; color: var(--charcoal); opacity: .78; }
.site-header nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -.8rem; height: 2px; background: var(--gold); transition: left .22s ease, right .22s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { left: 0; right: 0; }
.site-header nav a.active { color: var(--forest); }
.header-donate {
  min-height: 46px;
  padding-inline: 1.4rem;
  border: 2px solid var(--gold);
  border-radius: 1px;
  background: var(--charcoal);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 2px rgba(243,223,170,.08);
  font-family: Georgia, serif;
  letter-spacing: .05em;
}
.site-header .menu-toggle { border-color: var(--gold); background: var(--charcoal); color: var(--gold-soft); }

.hero-shell {
  min-height: 860px;
  padding-top: 205px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 465px);
  border-bottom: 18px solid #e3c475;
  box-shadow: inset 0 -4px 0 var(--gold-deep);
  background: linear-gradient(90deg, rgba(27,24,17,.94) 0%, rgba(52,44,27,.77) 48%, rgba(77,57,20,.34) 100%), url('mosque-hero.webp') center / cover no-repeat;
}
.hero-shell::before { opacity: .16; background-image: radial-gradient(circle at center, transparent 0 16px, rgba(243,223,170,.45) 17px 18px, transparent 19px); background-size: 68px 68px; mask-image: linear-gradient(to right, black, transparent 68%); }
.hero-shell::after { width: 520px; height: 520px; left: -330px; bottom: -360px; border: 6px double rgba(243,223,170,.28); border-radius: 50%; box-shadow: 0 0 0 66px rgba(201,155,61,.035), 0 0 0 132px rgba(201,155,61,.02); }
.eyebrow { color: var(--gold-soft); font-family: Georgia, serif; letter-spacing: .23em; }
.eyebrow span { width: 52px; background: var(--gold); }
.eyebrow.dark { color: var(--gold-deep); }
.hero-copy h1 { max-width: 820px; font-size: clamp(3.8rem, 6.7vw, 7.15rem); line-height: .9; letter-spacing: -.05em; text-shadow: 0 7px 30px rgba(0,0,0,.42); }
.hero-intro { max-width: 700px; padding: .35rem 0 .35rem 1.5rem; border-left: 2px solid var(--gold-soft); color: rgba(255,255,255,.84); }
.primary-cta, .vision-button, .service-enquiry-button, .contact-submit {
  min-height: 54px;
  border: 1px solid #f3d98f;
  border-radius: 1px;
  background: linear-gradient(135deg, #f0d990, #c99b3d 58%, #9b701d);
  color: #211e16;
  box-shadow: inset 0 0 0 2px rgba(255,251,235,.32);
  font-family: Georgia, serif;
  font-weight: 800;
  letter-spacing: .045em;
}
.primary-cta:hover, .vision-button:hover, .service-enquiry-button:hover { background: linear-gradient(135deg, #f6e6b4, #d6ae55 60%, #aa7d27); color: #171713; }
.text-link { color: var(--gold-soft); border-bottom-color: var(--gold); font-family: Georgia, serif; }
.hero-proof { border-top-color: rgba(243,223,170,.42); }

.donation-card {
  overflow: hidden;
  padding: 4.65rem clamp(2rem, 3.2vw, 2.85rem) 2.65rem;
  border: 6px double var(--gold-deep);
  border-radius: 220px 220px 4px 4px;
  outline: 1px solid rgba(255,246,215,.8);
  outline-offset: -11px;
  background: linear-gradient(155deg, rgba(255,253,245,.99), rgba(244,228,191,.985));
  box-shadow: 0 34px 88px rgba(24,20,12,.4);
}
.donation-card::before { content: "✦"; display: block; margin-bottom: .7rem; color: var(--gold-deep); font-size: 1.25rem; text-align: center; }
.card-kicker { justify-content: center; color: var(--gold-deep); font-family: Georgia, serif; }
.donation-card h2 { margin-top: .75rem; color: var(--charcoal); font-size: 2.25rem; text-align: center; }
.donation-card > p { text-align: center; }
.amount, .donate-amount { border-radius: 1px; border-color: rgba(141,100,24,.38); background: rgba(255,252,242,.8); }
.amount.active, .donate-amount.selected { border-color: var(--charcoal); background: var(--charcoal); color: var(--gold-soft); }
.currency-input input, .form-field input, .form-field textarea { border-radius: 1px; }
.paypal-button, .paypal-donate-button { border: 2px solid var(--gold); border-radius: 1px; background: var(--forest-2); color: var(--gold-soft); box-shadow: inset 0 0 0 2px rgba(201,155,61,.16); font-family: Georgia, serif; letter-spacing: .045em; }
.paypal-button:hover, .paypal-donate-button:hover { background: var(--charcoal); color: white; }

.section-pad { padding-block: clamp(6.25rem, 10vw, 9.5rem); }
.section-heading h2, .vision-intro h2, .plan-heading h2, .contact-details h2, .prayer-board-head h2, .donate-intro h2, .islam-section-heading h2, .services-intro h2, .services-section-heading h2 { color: var(--charcoal); letter-spacing: -.045em; }
.section-heading h2::after, .vision-intro h2::after, .contact-details h2::after, .prayer-board-head h2::after, .donate-intro h2::after, .services-intro h2::after { content: "◆"; display: block; width: 150px; margin-top: 1.1rem; padding-bottom: .5rem; border-bottom: 3px double var(--gold); color: var(--gold); font-size: .62rem; letter-spacing: 0; text-align: center; }
.appeal-section { grid-template-columns: .78fr 1.22fr; gap: 6vw; background: #fffaf0; }
.appeal-copy .lead { padding-bottom: 1.7rem; border-bottom: 3px double var(--gold); color: var(--forest-2); font-size: 1.5rem; }
.quote-strip { border: 1px solid var(--gold); border-left: 8px solid var(--charcoal); background: #f4e6c6; box-shadow: inset 0 0 0 5px rgba(201,155,61,.045); }

.vision-section, .prayer-board, .donate-page-content, .ceremony-details { background: #f1e4c8; }
.vision-intro { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
.vision-intro h2::after, .donate-intro h2::after { margin-inline: auto; }
.vision-pitch { max-width: 820px; margin-inline: auto; }
.vision-actions { justify-content: center; }
.vision-carousel { grid-template-columns: 1fr; gap: .85rem; padding: 1rem; border: 6px double var(--gold-deep); background: var(--paper); box-shadow: 0 26px 64px rgba(43,34,17,.18); }
.vision-viewport { height: clamp(540px, 56vw, 800px); border: 1px solid rgba(90,63,16,.4); box-shadow: none; }
.vision-controls { min-height: 76px; flex-direction: row; border: 1px solid var(--gold-deep); background: var(--charcoal); }
.vision-controls > button, .vision-dots button { border-radius: 1px; }
.vision-controls > button { border-color: rgba(243,223,170,.5); background: transparent; color: var(--gold-soft); }
.vision-dots { flex-direction: row; }
.vision-dots button { border-color: rgba(243,223,170,.28); color: rgba(255,255,255,.7); }
.vision-dots button.active { border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; background: var(--gold); color: var(--charcoal); }
.future-pillars { gap: 1rem; margin-top: 2.25rem; border: 0; background: transparent; }
.future-pillars > div { min-height: 125px; padding: 1.45rem; border: 1px solid rgba(141,100,24,.38); border-top: 6px solid var(--gold); background: #fffaf0; box-shadow: 0 10px 28px rgba(80,57,16,.07); }
.future-pillars svg { color: var(--gold-deep); }

.plan-section { border-block: 12px double var(--gold); background: linear-gradient(120deg, #171713, #2d2a20 56%, #3e321c); }
.plan-heading h2 { color: white; }
.plan-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.plan-card { min-height: 255px; border: 1px solid rgba(243,223,170,.38); border-left: 7px solid var(--gold); background: rgba(255,255,255,.035); }
.plan-card:nth-child(even) { background: rgba(201,155,61,.075); }
.plan-card h3 { color: var(--gold-soft); }
.plan-card > svg, .plan-number { color: var(--gold); }

.final-cta { border-block: 1px solid var(--gold-deep); background: linear-gradient(120deg, #e2c16d, #f2dda4 52%, #bd8c2e); color: var(--charcoal); }
.final-cta h2 { color: var(--charcoal); }
.final-cta .eyebrow { color: #6f4e10; }
.final-copy { color: rgba(31,29,22,.72); }
.final-cta .final-button { min-height: 54px; border: 2px solid #6e4d0e; border-radius: 1px; background: var(--charcoal); color: var(--gold-soft); font-family: Georgia, serif; }
.final-cta::after { border: 5px double rgba(72,52,14,.2); border-radius: 50%; }

.site-footer { border-top: 7px solid var(--charcoal); background: #f7ecd4; color: var(--charcoal); }
.footer-logo { width: min(420px, 87vw); height: 250px; }
.footer-identity > p, .footer-contact a, .footer-links a, .footer-notice, .site-footer .copyright { color: rgba(41,39,31,.7); }
.footer-contact a, .footer-links a { border-radius: 1px; border-color: rgba(141,100,24,.38); background: rgba(255,255,255,.38); font-family: Georgia, serif; }
.footer-contact svg { color: var(--gold-deep); }
.footer-contact a:hover, .footer-links a:hover { border-color: var(--charcoal); background: #fffaf0; color: var(--charcoal); }
.footer-links a.active { border-color: var(--gold-deep); color: var(--forest); }
.footer-notice { border-top-color: rgba(141,100,24,.3); }

.subpage-hero { min-height: 475px; padding-top: 172px; align-items: center; text-align: center; border-bottom: 12px double var(--gold); background: linear-gradient(90deg, rgba(27,24,17,.87), rgba(70,55,25,.55)), url('mosque-hero.webp') center 42% / cover no-repeat; }
.subpage-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at center, transparent 0 16px, rgba(243,223,170,.4) 17px 18px, transparent 19px); background-size: 68px 68px; }
.subpage-hero::after { border: 4px double rgba(243,223,170,.32); border-radius: 50%; transform: none; }
.subpage-hero .eyebrow { justify-content: center; }
.subpage-hero h1 { letter-spacing: -.05em; text-shadow: 0 6px 26px rgba(0,0,0,.36); }
.subpage-hero > p:last-child { margin-inline: auto; }

.contact-card, .contact-form, .next-prayer, .prayer-card, .paypal-panel, .islam-contents a, .documents-panel, .attendance-panel, .important-panel, .service-hero-facts span { border-radius: 1px; }
.contact-card { border: 1px solid rgba(141,100,24,.4); border-radius: 48px 2px 48px 2px; background: #fffaf0; }
.contact-card > svg, .form-icon, .next-prayer > svg, .prayer-icon, .donate-panel-head > svg, .process-icon, .detail-panel-heading > svg, .service-final-cta > svg { border-radius: 1px; }
.contact-card > svg, .donate-panel-head > svg, .detail-panel-heading > svg { background: var(--charcoal); color: var(--gold-soft); }
.contact-form { border: 6px double var(--gold); background: var(--charcoal); box-shadow: 0 22px 58px rgba(40,30,14,.2); }
.prayer-card { border: 1px solid rgba(141,100,24,.42); border-radius: 48px 48px 2px 2px; background: #fffaf0; }
.prayer-card.next { border-color: var(--charcoal); background: var(--charcoal); }
.next-prayer { border: 2px solid var(--gold); background: var(--charcoal); }
.paypal-panel, .documents-panel { border: 1px solid rgba(141,100,24,.42); border-top: 7px solid var(--gold); background: #fffaf0; }
.donate-intro { grid-template-columns: 1fr; text-align: center; }
.donate-intro > p { margin-inline: auto; }
.donate-methods { justify-content: center; margin-inline: auto; }
.islam-contents { gap: 1rem; border-block: 7px double var(--gold); background: #ede0c3; }
.islam-contents a { border: 1px solid rgba(141,100,24,.36); border-top: 5px solid var(--gold); background: #fffaf0; }
.belief-list { border-top: 5px double var(--gold); }
.dark-section, .marriage-process, .service-final-cta { background: linear-gradient(120deg, #171713, #343023); }
.dark-section .islam-section-heading h2, .marriage-process .services-section-heading h2, .service-final-cta h2 { color: white; }
.process-grid { grid-template-columns: repeat(2, 1fr); }
.process-card { min-height: 300px; border: 1px solid rgba(243,223,170,.35); border-left: 6px solid var(--gold); background: rgba(255,255,255,.035); }
.ceremony-details { grid-template-columns: 1fr; }
.documents-panel li { border-left: 4px solid var(--gold); background: #f2e4c5; }
.important-panel { border: 4px double var(--gold); background: var(--charcoal); }
.important-panel li::before { border-radius: 0; background: var(--gold); transform: rotate(45deg); }
.service-hero-facts span { border-color: rgba(243,223,170,.45); background: rgba(28,27,23,.62); }
.legal-content section { border-bottom-color: rgba(141,100,24,.3); }

@media (max-width: 1050px) {
  .site-header { color: var(--ink); }
  .hero-shell { grid-template-columns: 1fr minmax(335px, 420px); }
  .future-pillars { gap: .8rem; }
}

@media (max-width: 800px) {
  .site-header { height: 94px; border-top-width: 7px; }
  .header-logo { width: 182px; height: 86px; }
  .hero-shell { grid-template-columns: 1fr; padding-top: 142px; border-bottom-width: 12px; }
  .donation-card { max-width: 560px; }
  .vision-controls { flex-direction: row; }
  .subpage-hero { min-height: 440px; padding-top: 145px; border-bottom-width: 8px; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 3.15rem; }
  .donation-card { padding-top: 3.8rem; border-radius: 95px 95px 3px 3px; outline-offset: -7px; }
  .section-pad { padding-block: 5rem; }
  .plan-grid, .process-grid { grid-template-columns: 1fr; }
  .future-pillars { gap: .75rem; }
  .vision-viewport { height: 420px; }
  .vision-controls { overflow-x: auto; }
}

/* Rotating illustrative supporter blessing popup */
.supporter-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  width: min(500px, calc(100vw - 2rem));
  padding: 1rem 1.1rem .9rem;
  border: 1px solid #d8b344;
  border-left: 5px solid #d8b344;
  border-radius: 14px;
  background: #032d35;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,25,26,.36), 0 0 0 1px rgba(15,145,111,.22);
  animation: supporter-popup-in .35s ease-out;
}
.supporter-popup[hidden] { display: none; }
.supporter-popup-message {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  margin: 0;
  padding: 0 2rem .85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: transparent;
}
.supporter-popup-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #078a68;
  color: #f5d454;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}
.supporter-popup-copy { min-width: 0; }
.supporter-popup-label,
.supporter-popup-disclosure {
  display: block;
  color: #f6d15b;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.supporter-popup-disclosure {
  margin-top: .18rem;
  color: rgba(220,238,238,.58);
  font-size: .55rem;
  letter-spacing: .08em;
}
.supporter-popup-message strong {
  display: block;
  margin-top: .38rem;
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
}
.supporter-popup-message blockquote {
  margin: .5rem 0 0;
  color: rgba(232,243,243,.78);
  font-size: .9rem;
  line-height: 1.4;
}
.supporter-popup-close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(232,243,243,.65);
  font-size: 1.35rem;
  cursor: pointer;
}
.supporter-popup-close:hover { background: rgba(255,255,255,.09); color: #fff; }
@keyframes supporter-popup-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .supporter-popup { right: .75rem; bottom: .75rem; width: calc(100vw - 1.5rem); padding: .9rem; border-left-width: 4px; }
  .supporter-popup-message { grid-template-columns: 46px minmax(0, 1fr); gap: .7rem; padding-right: 1.55rem; }
  .supporter-popup-symbol { width: 46px; height: 46px; font-size: 1.4rem; }
  .supporter-popup-label { font-size: .64rem; }
  .supporter-popup-disclosure { font-size: .5rem; }
  .supporter-popup-message strong { font-size: 1.04rem; }
  .supporter-popup-message blockquote { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .supporter-popup { animation: none; }
}

/* Reference-inspired full-screen homepage hero */
body[data-page="home"] .site-header {
  height: 106px;
  padding-inline: clamp(1rem, 5vw, 6.5rem);
  color: #fff;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(2,26,42,.9), rgba(2,26,42,.35));
  box-shadow: none;
  backdrop-filter: blur(4px);
}
body[data-page="home"] .site-header::before,
body[data-page="home"] .site-header::after { display: none; }
body[data-page="home"] .header-logo {
  width: 205px;
  height: 96px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.34));
}
body[data-page="home"] .site-header nav {
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}
body[data-page="home"] .site-header nav a { color: #fff; opacity: .8; }
body[data-page="home"] .site-header nav a.active,
body[data-page="home"] .site-header nav a:hover { color: #f7cc58; opacity: 1; }
body[data-page="home"] .header-donate {
  border: 1px solid #f7cc58;
  background: #d7b244;
  color: #062337;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 900;
}

body[data-page="home"] .hero-reference {
  display: flex;
  min-height: max(760px, 100svh);
  padding: 150px clamp(1.25rem, 10.5vw, 13.5rem) 74px;
  align-items: center;
  border: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(1,29,45,.99) 0%, rgba(2,31,49,.94) 31%, rgba(2,34,54,.7) 52%, rgba(2,28,45,.08) 77%),
    linear-gradient(0deg, rgba(1,21,34,.38), transparent 42%),
    url('mosque-hero.webp') center / cover no-repeat;
}
body[data-page="home"] .hero-reference::before {
  inset: auto 0 0;
  height: 150px;
  opacity: 1;
  background: linear-gradient(0deg, rgba(1,24,38,.5), transparent);
  mask-image: none;
}
body[data-page="home"] .hero-reference::after { display: none; }
body[data-page="home"] .hero-reference .hero-copy {
  width: 100%;
  max-width: 1180px;
}
body[data-page="home"] .hero-reference .eyebrow {
  margin: 0 0 1.2rem;
  color: #f7cc58;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}
body[data-page="home"] .hero-reference .eyebrow span { background: #f7cc58; }
body[data-page="home"] .hero-reference h1 {
  max-width: 1120px;
  margin-left: clamp(0rem, 16vw, 20rem);
  color: #fff;
  font-size: clamp(5rem, 7.7vw, 9.25rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.065em;
  text-shadow: 0 10px 36px rgba(0,0,0,.34);
}
body[data-page="home"] .hero-reference h1 > span { display: block; }
body[data-page="home"] .hero-reference h1 em {
  color: #f7cc58;
  font-style: normal;
}
body[data-page="home"] .hero-reference .hero-intro {
  max-width: 520px;
  margin: 1.45rem 0 0;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.75;
}
body[data-page="home"] .hero-reference .hero-intro strong {
  display: block;
  margin-top: .15rem;
  color: #fff;
  font-weight: 900;
}
body[data-page="home"] .hero-reference .hero-actions { margin-top: 1.9rem; gap: 1rem; }
body[data-page="home"] .hero-reference .primary-cta,
body[data-page="home"] .hero-secondary-cta {
  min-height: 60px;
  padding-inline: 1.7rem;
  border-radius: 4px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .02em;
}
body[data-page="home"] .hero-reference .primary-cta {
  border-color: #f7cc58;
  background: #d8b344;
  color: #062337;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
body[data-page="home"] .hero-reference .primary-cta:hover { background: #f7cc58; }
body[data-page="home"] .hero-secondary-cta {
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.06);
  color: #fff;
  backdrop-filter: blur(8px);
}
body[data-page="home"] .hero-secondary-cta:hover {
  border-color: #f7cc58;
  background: rgba(247,204,88,.12);
  color: #fff;
}
body[data-page="home"] .hero-legacy-note {
  margin: 1.5rem 0 0;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}

@media (max-width: 1050px) {
  body[data-page="home"] .hero-reference { padding-inline: clamp(1.5rem, 6vw, 4rem); }
  body[data-page="home"] .hero-reference h1 { margin-left: clamp(0rem, 8vw, 5rem); font-size: clamp(4.5rem, 9vw, 6.75rem); }
}

@media (max-width: 800px) {
  body[data-page="home"] .site-header { min-height: 86px; height: auto; }
  body[data-page="home"] .header-logo { width: 165px; height: 76px; }
  body[data-page="home"] .site-header.nav-open { background: rgba(2,29,45,.98); }
  body[data-page="home"] .site-header nav { color: #fff; }
  body[data-page="home"] .hero-reference {
    min-height: 820px;
    padding: 135px 1.5rem 70px;
    align-items: flex-end;
    background-position: 64% center;
    background-image:
      linear-gradient(90deg, rgba(1,26,42,.96), rgba(1,29,47,.72) 58%, rgba(1,24,39,.24)),
      linear-gradient(0deg, rgba(1,20,33,.86), transparent 58%),
      url('mosque-hero.webp');
  }
  body[data-page="home"] .hero-reference h1 {
    max-width: 690px;
    margin-left: 0;
    font-size: clamp(4.1rem, 13vw, 6rem);
    line-height: .92;
  }
  body[data-page="home"] .hero-reference .hero-intro { max-width: 610px; }
}

@media (max-width: 520px) {
  body[data-page="home"] .hero-reference { min-height: 760px; padding: 120px 1rem 48px; background-position: 68% center; }
  body[data-page="home"] .hero-reference .eyebrow { margin-bottom: .85rem; }
  body[data-page="home"] .hero-reference h1 { font-size: clamp(3.15rem, 15vw, 4.5rem); }
  body[data-page="home"] .hero-reference .hero-intro { font-size: .94rem; line-height: 1.58; }
  body[data-page="home"] .hero-reference .hero-actions { align-items: stretch; }
  body[data-page="home"] .hero-reference .primary-cta,
  body[data-page="home"] .hero-secondary-cta { width: 100%; justify-content: center; }
  body[data-page="home"] .hero-legacy-note { font-size: .76rem; line-height: 1.45; }
}

/* Reference-inspired Contact Us page */
body[data-page="contact"] .subpage { background: #f7f4ed; }
.contact-page-shell {
  min-height: 100vh;
  padding-top: 190px;
  padding-inline: clamp(1rem, 7vw, 7.5rem);
  background: #f7f4ed;
}
.contact-reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr);
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
  width: min(1220px, 100%);
  margin-inline: auto;
  align-items: start;
}
.contact-form.contact-form-reference {
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border: 1px solid #b9d1cf;
  border-radius: 7px;
  background: #fff;
  color: #03283b;
  box-shadow: 0 24px 55px rgba(26,45,48,.1);
}
.contact-form-heading { margin-bottom: 1.8rem; }
.contact-form-heading .eyebrow { margin-bottom: 1rem; color: #876519; }
.contact-form-heading h1 {
  margin: 0;
  color: #03283b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.contact-form-heading > p:last-child {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: #385363;
  font-size: .84rem;
  line-height: 1.75;
}
.contact-form-reference .form-grid { gap: 1rem 1.25rem; }
.contact-form-reference .form-field { gap: .48rem; }
.contact-form-reference .form-field label {
  color: #03283b;
  font-size: .72rem;
  font-weight: 900;
}
.contact-form-reference .form-field label span { color: #657984; font-weight: 500; }
.contact-form-reference .form-field input,
.contact-form-reference .form-field textarea {
  border: 1px solid #d6d8d3;
  border-radius: 9px;
  background: #fcfaf6;
  color: #03283b;
  font: inherit;
}
.contact-form-reference .form-field input { height: 54px; }
.contact-form-reference .form-field textarea { min-height: 180px; }
.contact-form-reference .form-field input::placeholder,
.contact-form-reference .form-field textarea::placeholder { color: #758087; opacity: 1; }
.contact-form-reference .form-field input:focus-visible,
.contact-form-reference .form-field textarea:focus-visible {
  border-color: #c49a2f;
  box-shadow: 0 0 0 3px rgba(196,154,47,.14);
  outline: none;
}
.contact-form-reference .notice {
  margin: 0 0 1rem;
  border: 1px solid #9ac7b6;
  background: #eef9f4;
  color: #124e3b;
}
.contact-form-reference .notice.error { border-color: #d8aaa2; background: #fff2ef; color: #812f25; }
.contact-form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.contact-form-actions .contact-send-button,
.contact-form-actions .contact-direct-email {
  min-height: 52px;
  padding-inline: 1.45rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}
.contact-form-actions .contact-send-button {
  border-color: #03283b;
  background: #03283b;
  color: #fff;
}
.contact-form-actions .contact-send-button:hover { background: #0d485d; }
.contact-form-actions .contact-direct-email {
  border: 1px solid #d7d9d4;
  background: #fff;
  color: #9a721a;
}
.contact-form-actions .contact-direct-email:hover { border-color: #c49a2f; background: #fffaf0; }
.contact-side-panels { display: grid; gap: 1rem; }
.contact-info-panel,
.contact-donate-panel,
.contact-privacy-panel {
  border: 1px solid #b9d1cf;
  border-radius: 7px;
  background: #fff;
  color: #03283b;
}
.contact-info-panel { padding: clamp(1.4rem, 3vw, 2rem); }
.contact-info-panel .eyebrow { margin-bottom: 1.35rem; color: #876519; }
.contact-info-panel h2,
.contact-donate-panel h3,
.contact-privacy-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.02em;
}
.contact-info-panel h2 { margin-bottom: 1.4rem; font-size: 1.65rem; }
.contact-info-panel dl { display: grid; gap: 1rem; margin: 0; }
.contact-info-panel dl div { display: grid; gap: .25rem; }
.contact-info-panel dt { font-size: .72rem; font-weight: 900; }
.contact-info-panel dd {
  margin: 0;
  color: #385363;
  font-size: .78rem;
  line-height: 1.6;
}
.contact-info-panel a { color: inherit; }
.contact-info-panel dd a:hover { color: #9a721a; text-decoration: underline; text-underline-offset: .18em; }
.contact-info-panel dl div:nth-child(2) a { color: #9a721a; font-weight: 900; text-decoration: underline; text-underline-offset: .18em; }
.contact-donate-panel,
.contact-privacy-panel { padding: 1.4rem; }
.contact-donate-panel {
  border-color: #d9c6b7;
  background: #fff8f2;
}
.contact-donate-panel h3,
.contact-privacy-panel h3 { font-size: 1.25rem; }
.contact-donate-panel p,
.contact-privacy-panel p {
  margin: .85rem 0 0;
  color: #264b5c;
  font-size: .79rem;
  line-height: 1.65;
}
.contact-donate-panel .button {
  width: 100%;
  min-height: 54px;
  margin-top: 1rem;
  justify-content: center;
  border-color: #d7b244;
  border-radius: 4px;
  background: #d7b244;
  color: #03283b;
  box-shadow: 0 12px 24px rgba(196,154,47,.18);
  font-size: .78rem;
  font-weight: 900;
}
.contact-donate-panel .button:hover { background: #efca5d; }
.contact-privacy-panel a { color: #03283b; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 920px) {
  .contact-reference-layout { grid-template-columns: 1fr; }
  .contact-side-panels { grid-template-columns: repeat(2, 1fr); }
  .contact-info-panel { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .contact-page-shell { padding: 145px 1rem 5rem; }
  .contact-form.contact-form-reference { padding: 1.35rem; }
  .contact-form-reference .form-grid,
  .contact-side-panels { grid-template-columns: 1fr; }
  .contact-info-panel { grid-column: auto; }
  .contact-form-actions { align-items: stretch; flex-direction: column; }
  .contact-form-actions .button { width: 100%; justify-content: center; }
}

/* Compact donation page — close, editorial layout */
.compact-donation-page {
  padding: 158px clamp(1rem, 4vw, 4rem) 3.5rem;
  background: #f8f6ef;
}
.compact-donate-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
}
.compact-donate-intro {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: .2rem .8rem 1.2rem;
  text-align: left;
}
.compact-donate-intro h1 {
  max-width: 470px;
  margin: 0;
  color: #083f32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .94;
}
.compact-donate-intro > p {
  max-width: 650px;
  margin: 0;
  color: #68726e;
  font-size: .9rem;
  line-height: 1.7;
}
.compact-donate-intro .eyebrow { margin: 0; }
.donation-nudge {
  margin: 0 0 1rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(192,149,40,.24);
  border-top: 4px solid #caa331;
  border-radius: 0 18px 0 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24,57,45,.05);
}
.donation-nudge strong { color: #164b3d; font-size: .9rem; }
.donation-nudge p { margin: .32rem 0 0; color: #586561; font-size: .78rem; line-height: 1.65; }
.donation-meaning-panel {
  margin: 0 0 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 7px solid #d3ad39;
  border-radius: 20px 3px 26px 3px;
  background: linear-gradient(120deg, #034536, #087654);
  color: #fff;
  box-shadow: 0 16px 38px rgba(4,69,54,.16);
}
.donation-feature-amount {
  display: block;
  color: #f0ce58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  line-height: .86;
}
.donation-meaning-panel h2 {
  margin: .45rem 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.donation-meaning-panel p { color: rgba(255,255,255,.76); font-size: .82rem; line-height: 1.65; }
.donation-meaning-top > p { margin: 1rem 0 0; }
.donation-islam-message {
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.19);
}
.donation-islam-message > strong { font-size: .86rem; }
.donation-islam-message p { margin: .35rem 0 .95rem; }
.listen-impact-button {
  min-height: 42px;
  padding: .62rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #e0ba3f;
  color: #073d31;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 900;
}
.listen-impact-button:hover { background: #f0cf63; }
.donation-primary-grid,
.donation-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.15rem;
}
.compact-paypal-panel,
.donation-video-panel,
.donation-slider-panel,
.donation-progress-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 3px 20px 3px 20px;
}
.compact-paypal-panel {
  border: 1px solid #2574c5;
  border-top: 6px solid #dfba42;
  background: linear-gradient(140deg, #123d91, #0755b5 57%, #11306f);
  color: #fff;
  box-shadow: 0 14px 34px rgba(9,58,128,.18);
}
.compact-paypal-panel::before,
.donation-video-panel::before {
  content: "";
  position: absolute;
  inset: -10px -8px -12px;
  z-index: -1;
  border-top: 7px solid #d4aa32;
  border-right: 8px solid #0b694e;
  border-bottom: 8px solid #0b694e;
  border-left: 8px solid #0b694e;
  background: transparent;
  pointer-events: none;
}
.compact-paypal-panel .donate-panel-head small { color: #dbe9ff; }
.compact-paypal-panel .donate-panel-head h2 {
  margin: .2rem 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  font-weight: 500;
}
.compact-paypal-panel > p,
.compact-paypal-panel .donate-custom,
.compact-paypal-panel .amount-help,
.compact-paypal-panel .secure-note { color: rgba(255,255,255,.75); }
.compact-paypal-panel > p { margin: .65rem 0 0; font-size: .78rem; line-height: 1.6; }
.compact-paypal-panel .donate-amounts { grid-template-columns: repeat(5, 1fr); gap: .55rem; margin: 1rem 0 .85rem; }
.compact-paypal-panel .donate-amount {
  height: 42px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  color: #133369;
}
.compact-paypal-panel .donate-amount.selected { border-color: #e2bc43; background: #0b4fa7; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.compact-paypal-panel .donate-custom { font-size: .72rem; }
.compact-paypal-panel .currency-input input { height: 46px; border: 0; border-radius: 8px; }
.compact-paypal-panel .currency-input b { color: #a12640; }
.compact-paypal-panel .amount-help { display: block; margin: .45rem 0 .7rem; font-size: .65rem; }
.compact-paypal-panel .paypal-donate-button {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, #039ba4, #0a91df);
  color: #fff;
  font: 800 .82rem/1 "Trebuchet MS", Arial, sans-serif;
}
.compact-paypal-panel .paypal-donate-button:hover { background: linear-gradient(90deg, #02b0a7, #18a6ed); }
.compact-paypal-panel .secure-note { margin-top: .65rem; font-size: .62rem; text-align: center; }
.donation-video-panel {
  border: 1px solid #d9ded8;
  border-top: 6px solid #0f604b;
  background: #fff;
  color: #083f32;
}
.donation-video-panel::before { border-left-width: 10px; }
.donation-video-panel .eyebrow { margin: 0; }
.donation-video-panel h2 {
  margin: .65rem 0 .3rem;
  color: #0b4738;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}
.donation-video-panel > p:not(.eyebrow) { margin: 0 0 .85rem; color: #6b7570; font-size: .8rem; }
.donation-video-frame { overflow: hidden; position: relative; aspect-ratio: 16 / 9; background: #082b25; }
.donation-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.donation-video-panel > a { display: inline-flex; margin-top: .8rem; color: #0b7255; font-size: .8rem; font-weight: 900; }
.donation-slider-panel,
.donation-progress-panel {
  background: linear-gradient(135deg, #043e31, #087654);
  color: #fff;
}
.donation-slider-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem 1rem;
}
.donation-slider-panel h2 {
  max-width: 400px;
  margin: .45rem 0 .35rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: .98;
}
.donation-slider-panel p { margin: 0; color: rgba(255,255,255,.7); font-size: .7rem; }
.donation-selected-amount {
  align-self: start;
  min-width: 128px;
  padding: .75rem;
  border: 1px solid rgba(240,206,88,.36);
  background: rgba(255,255,255,.06);
  text-align: center;
}
.donation-selected-amount strong { display: block; color: #f0ce58; font-family: Georgia, serif; font-size: 2rem; }
.donation-selected-amount small { display: block; color: rgba(255,255,255,.68); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.donation-slider-panel label { grid-column: 1 / -1; font-size: .65rem; font-weight: 800; }
.donation-slider-panel input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #efc84e; }
.donation-range-labels { display: flex; grid-column: 1 / -1; justify-content: space-between; color: rgba(255,255,255,.58); font-size: .55rem; }
.donation-progress-panel { border-top: 6px solid #d6af39; }
.donation-progress-heading {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .75rem;
  padding: .85rem;
  background: #fffdf7;
  color: #0a4938;
}
.donation-progress-heading > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #e5c95e; color: #0a4938; }
.donation-progress-heading small { color: #0a6a4f; font-size: .55rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.donation-progress-heading h2 { margin: .15rem 0; color: #0a4938; font-family: Georgia, serif; font-size: 1.25rem; }
.donation-progress-heading p { margin: 0; color: #65726d; font-size: .62rem; line-height: 1.5; }
.campaign-progress-copy { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.35rem; color: #efd25d; font-size: .62rem; }
.campaign-progress-track { overflow: hidden; height: 9px; margin-top: .55rem; border-radius: 99px; background: rgba(255,255,255,.15); }
.campaign-progress-track span { display: block; width: 1.5%; height: 100%; border-radius: inherit; background: #e7c148; transition: width .3s ease; }
.campaign-milestones { display: flex; justify-content: space-between; margin-top: .5rem; color: rgba(255,255,255,.55); font-size: .52rem; }
.campaign-progress-note { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68); font-size: .65rem; line-height: 1.55; }

@media (max-width: 840px) {
  .compact-donation-page { padding-top: 130px; }
  .compact-donate-intro,
  .donation-primary-grid,
  .donation-insight-grid { grid-template-columns: 1fr; }
  .compact-donate-intro { gap: 1rem; }
  .compact-donate-intro h1 { max-width: 680px; }
}

@media (max-width: 520px) {
  .compact-donation-page { padding: 116px .75rem 2.5rem; }
  .compact-donate-intro { padding-inline: .25rem; }
  .compact-donate-intro h1 { font-size: 2.6rem; }
  .donation-nudge,
  .donation-meaning-panel,
  .compact-paypal-panel,
  .donation-video-panel,
  .donation-slider-panel,
  .donation-progress-panel { padding: 1.1rem; }
  .compact-paypal-panel .donate-amounts { grid-template-columns: repeat(3, 1fr); }
  .donation-slider-panel { grid-template-columns: 1fr; }
  .donation-selected-amount { justify-self: start; }
  .campaign-progress-copy { align-items: flex-start; flex-direction: column; gap: .35rem; }
}

/* Compact front-page legacy statement */
.kindness-statement {
  overflow: hidden;
  position: relative;
  min-height: 235px;
  display: grid;
  grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr);
  grid-template-rows: auto 1fr;
  gap: .8rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 3.5vw, 3.8rem);
  border-block: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(100deg, #00483a 0%, #034b3d 58%, #075241 100%);
  color: #fff;
}
.kindness-statement::before,
.kindness-statement::after {
  display: none;
}
.kindness-statement > p {
  grid-column: 2;
  max-width: 850px;
  justify-self: end;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(.76rem, 1.15vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
}
.kindness-statement h2 {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(2.2rem, 4.35vw, 4rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .96;
}
.kindness-statement h2 span { display: block; }
.kindness-statement h2 span:first-child { max-width: 420px; }
.kindness-statement h2 span:last-child { margin-top: .4rem; white-space: nowrap; }

@media (max-width: 760px) {
  .kindness-statement {
    min-height: 260px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.25rem;
  }
  .kindness-statement > p { grid-column: 1; }
  .kindness-statement h2 { grid-column: 1; font-size: clamp(2.25rem, 9vw, 3.6rem); }
  .kindness-statement h2 span:last-child { margin-top: .35rem; white-space: normal; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .kindness-statement h2 span:last-child { white-space: normal; }
}

/* More compact homepage rhythm */
body[data-page="home"] .hero-reference {
  min-height: max(700px, 88svh);
  padding-top: 132px;
  padding-bottom: 48px;
}
body[data-page="home"] .hero-reference .eyebrow { margin-bottom: .75rem; }
body[data-page="home"] .hero-reference .hero-intro {
  margin-top: .9rem;
  line-height: 1.58;
}
body[data-page="home"] .hero-reference .hero-actions { margin-top: 1.15rem; }
body[data-page="home"] .hero-legacy-note { margin-top: .85rem; }
body[data-page="home"] .section-pad {
  padding-top: clamp(3.4rem, 5.2vw, 5.2rem);
  padding-bottom: clamp(3.4rem, 5.2vw, 5.2rem);
}
body[data-page="home"] .appeal-section { gap: clamp(2rem, 4vw, 4.25rem); }
body[data-page="home"] .section-heading .eyebrow,
body[data-page="home"] .vision-intro .eyebrow,
body[data-page="home"] .plan-heading .eyebrow,
body[data-page="home"] .final-cta .eyebrow { margin-bottom: .65rem; }
body[data-page="home"] .section-heading h2::after,
body[data-page="home"] .vision-intro h2::after { margin-top: .65rem; padding-bottom: .35rem; }
body[data-page="home"] .appeal-copy > p {
  margin-top: .65rem;
  margin-bottom: .65rem;
  line-height: 1.62;
}
body[data-page="home"] .appeal-copy .lead {
  margin-bottom: .75rem;
  padding-bottom: 1rem;
  line-height: 1.42;
}
body[data-page="home"] .quote-strip {
  gap: .8rem;
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
}
body[data-page="home"] .vision-intro { gap: .75rem; }
body[data-page="home"] .vision-pitch p {
  margin-top: .5rem;
  margin-bottom: .5rem;
  line-height: 1.6;
}
body[data-page="home"] .vision-actions { margin-top: .7rem; }
body[data-page="home"] .vision-carousel { margin-top: 2rem; }
body[data-page="home"] .future-pillars {
  gap: .65rem;
  margin-top: 1rem;
}
body[data-page="home"] .future-pillars > div {
  min-height: 98px;
  padding: 1rem;
}
body[data-page="home"] .plan-heading { gap: 1.5rem; }
body[data-page="home"] .plan-heading > p { line-height: 1.55; }
body[data-page="home"] .plan-grid {
  gap: .85rem;
  margin-top: 2rem;
}
body[data-page="home"] .plan-card {
  min-height: 225px;
  padding: 1.25rem;
}
body[data-page="home"] .plan-card h3 { margin: .7rem 0 .45rem; }
body[data-page="home"] .plan-card p { margin-bottom: 0; line-height: 1.52; }
body[data-page="home"] .final-cta { gap: 1.5rem; }
body[data-page="home"] .final-copy { margin-top: .7rem; line-height: 1.55; }

@media (max-width: 760px) {
  body[data-page="home"] .hero-reference { min-height: 680px; padding-top: 112px; padding-bottom: 38px; }
  body[data-page="home"] .section-pad { padding-top: 3rem; padding-bottom: 3rem; }
  body[data-page="home"] .appeal-section { gap: 1.7rem; }
  body[data-page="home"] .vision-carousel { margin-top: 1.4rem; }
  body[data-page="home"] .plan-grid { margin-top: 1.4rem; }
}

/* Compact £750,000 allocation section */
body[data-page="home"] .plan-section {
  padding-top: clamp(2.7rem, 4.3vw, 4rem);
  padding-bottom: clamp(2.7rem, 4.3vw, 4rem);
  border-top: 7px double #cda43a;
  border-bottom: 7px double #cda43a;
  background: linear-gradient(105deg, #171814 0%, #25231a 58%, #342d1b 100%);
}
body[data-page="home"] .plan-heading {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(320px, 1.15fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}
body[data-page="home"] .plan-heading .eyebrow { display: none; }
body[data-page="home"] .plan-heading h2 {
  max-width: 570px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .94;
}
body[data-page="home"] .plan-heading h2::after {
  width: 130px;
  margin-top: .55rem;
  padding-bottom: .28rem;
  border-bottom-width: 2px;
}
body[data-page="home"] .plan-heading > p {
  max-width: 540px;
  justify-self: end;
  margin: 0;
  color: rgba(255,255,255,.67);
  font-size: .78rem;
  line-height: 1.55;
}
body[data-page="home"] .plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.2rem;
}
body[data-page="home"] .plan-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(233,205,119,.3);
  border-left: 6px solid #d2aa3e;
  background: rgba(255,255,255,.025);
}
body[data-page="home"] .plan-card:nth-child(even) { background: rgba(201,155,61,.075); }
body[data-page="home"] .plan-card:hover { transform: none; background: rgba(201,155,61,.09); }
body[data-page="home"] .plan-number {
  top: .85rem;
  right: 1rem;
  color: #d2aa3e;
  font-size: 1.25rem;
}
body[data-page="home"] .plan-card h3 {
  max-width: calc(100% - 55px);
  margin: 0 0 .35rem;
  color: #f0d68a;
  font-size: 1.05rem;
}
body[data-page="home"] .plan-card strong {
  color: #f3dda0;
  font-size: 1.02rem;
}
body[data-page="home"] .plan-card p {
  margin: .55rem 0 0;
  color: rgba(255,255,255,.6);
  font-size: .68rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body[data-page="home"] .plan-heading { grid-template-columns: 1fr; gap: 1rem; }
  body[data-page="home"] .plan-heading > p { justify-self: start; }
  body[data-page="home"] .plan-grid { grid-template-columns: 1fr; gap: .6rem; margin-top: 1.15rem; }
  body[data-page="home"] .plan-card { min-height: 145px; }
}

/* Final compact plan and rounded donation media cards */
body[data-page="home"] .plan-section {
  padding-top: clamp(2.2rem, 3.5vw, 3.25rem);
  padding-bottom: clamp(2.2rem, 3.5vw, 3.25rem);
}
body[data-page="home"] .plan-heading h2 {
  max-width: 520px;
  font-size: clamp(2.45rem, 4.4vw, 4.25rem);
}
body[data-page="home"] .plan-grid {
  gap: .5rem;
  margin-top: .95rem;
}
body[data-page="home"] .plan-card {
  min-height: 126px;
  padding: .8rem 1rem;
  border-left-width: 5px;
}
body[data-page="home"] .plan-number {
  top: .7rem;
  right: .8rem;
  font-size: 1.1rem;
}
body[data-page="home"] .plan-card h3 {
  margin-bottom: .25rem;
  font-size: .96rem;
}
body[data-page="home"] .plan-card strong { font-size: .95rem; }
body[data-page="home"] .plan-card p {
  margin-top: .4rem;
  font-size: .64rem;
  line-height: 1.42;
}

.compact-paypal-panel,
.donation-video-panel {
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(8,49,76,.15);
}
.compact-paypal-panel::before,
.donation-video-panel::before {
  display: none;
}
.donation-video-panel { border-top-color: #d4aa32; }
.donation-video-frame {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(4,45,35,.14);
}
.compact-paypal-panel .currency-input input,
.compact-paypal-panel .donate-amount,
.compact-paypal-panel .paypal-donate-button { border-radius: 12px; }

@media (max-width: 760px) {
  body[data-page="home"] .plan-card { min-height: 122px; }
  .compact-paypal-panel,
  .donation-video-panel { border-radius: 20px; }
}

/* Smaller, more refined homepage plan gallery */
body[data-page="home"] .vision-carousel {
  width: min(100%, 1080px);
  margin: 1.55rem auto 0;
  gap: .55rem;
  padding: .65rem;
  border-width: 4px;
  box-shadow: 0 18px 44px rgba(43,34,17,.14);
}
body[data-page="home"] .vision-viewport {
  height: clamp(430px, 43vw, 610px);
}
body[data-page="home"] .vision-controls {
  min-height: 58px;
  padding: .45rem .6rem;
}
body[data-page="home"] .vision-dots { gap: .45rem; }
body[data-page="home"] .vision-dots button {
  width: 34px;
  height: 34px;
}
body[data-page="home"] .vision-controls > button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}
body[data-page="home"] .vision-slide figcaption {
  column-gap: .75rem;
  padding: 1.05rem 1.2rem;
}
body[data-page="home"] .vision-slide figcaption span {
  width: 36px;
  height: 36px;
}
body[data-page="home"] .vision-slide figcaption strong {
  font-size: clamp(1.08rem, 1.7vw, 1.5rem);
}

@media (max-width: 760px) {
  body[data-page="home"] .vision-carousel {
    width: 100%;
    margin-top: 1.15rem;
    padding: .45rem;
    border-width: 3px;
  }
  body[data-page="home"] .vision-viewport { height: 360px; }
  body[data-page="home"] .vision-controls { min-height: 52px; }
  body[data-page="home"] .vision-dots button {
    width: 26px;
    height: 26px;
  }
}

/* Reference-matched footer: identity left, contact and navigation right */
@media (min-width: 1101px) {
  .site-footer {
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    justify-items: stretch;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: 1.25rem;
    padding: 1.9rem clamp(2rem, 3.2vw, 4rem) 1.25rem;
    text-align: center;
  }
  .footer-identity {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    justify-self: center;
    width: 100%;
  }
  .footer-logo {
    width: min(290px, 100%);
    height: 235px;
  }
  .footer-identity > p {
    max-width: 100%;
    margin-top: .2rem;
    color: #171711;
    font-family: Arial, sans-serif;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.35;
  }
  .footer-contact {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    align-self: center;
  }
  .footer-contact a {
    max-width: none;
    min-height: 82px;
    padding: .8rem 1rem;
    text-align: center;
  }
  .footer-links {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .6rem;
    align-self: start;
  }
  .footer-links a {
    min-width: 0;
    display: grid;
    place-items: center;
    min-height: 50px;
    padding: .6rem .4rem;
  }
  .footer-notice {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 1.8rem;
    padding-top: 1.9rem;
  }
  .site-footer .copyright {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

.footer-donate-slot {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: .35rem;
  border: 1px solid rgba(141,100,24,.38);
  background: rgba(255,255,255,.38);
}
.footer-contact .footer-donate-flash {
  width: 100%;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: .75rem 1rem;
  border: 2px solid #12324d;
  background: #dcb740;
  color: #082b45;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  animation: footer-donate-flash 2.8s ease-in-out infinite;
}
.footer-contact .footer-donate-flash:hover,
.footer-contact .footer-donate-flash:focus-visible {
  border-color: #082b45;
  background: #f3ce57;
  color: #082b45;
  animation-play-state: paused;
}
@keyframes footer-donate-flash {
  0%, 56%, 100% {
    background: #dcb740;
    box-shadow: 0 0 0 rgba(220,183,64,0);
    transform: scale(1);
  }
  68% {
    background: #f6d867;
    box-shadow: 0 0 0 7px rgba(220,183,64,.18), 0 8px 22px rgba(135,91,8,.28);
    transform: scale(1.035);
  }
  80% {
    background: #e4bd45;
    box-shadow: 0 0 0 2px rgba(220,183,64,.08);
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-contact .footer-donate-flash { animation: none; }
}
.footer-identity > p {
  color: #171711;
  font-family: Arial, sans-serif;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: 1fr;
    padding-top: 2.25rem;
  }
  .footer-logo {
    width: min(290px, 82vw);
    height: 210px;
  }
  .footer-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-contact a { max-width: none; }
  .footer-donate-slot { min-height: 62px; }
  .footer-contact .footer-donate-flash { min-height: 54px; }
}

@media (max-width: 700px) {
  .footer-contact { grid-template-columns: 1fr; }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-links a { min-width: 0; }
}

/* Reference-matched civil marriage process section */
body[data-page="services"] .marriage-process {
  padding: .45rem clamp(1.5rem, 2.2vw, 2.6rem) .55rem;
  background: #1d1d18;
}
body[data-page="services"] .marriage-process .services-section-heading {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: .9rem clamp(2rem, 5vw, 5.5rem);
  align-items: end;
}
body[data-page="services"] .marriage-process .services-section-heading .eyebrow {
  margin: 0 0 1.85rem;
  color: #f3dda0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .78rem;
  letter-spacing: .22em;
}
body[data-page="services"] .marriage-process .services-section-heading .eyebrow span {
  width: 78px;
  background: #d9ab34;
}
body[data-page="services"] .marriage-process .services-section-heading h2 {
  max-width: 720px;
  font-size: clamp(4rem, 5.25vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
body[data-page="services"] .marriage-process .services-section-heading > p:last-child {
  max-width: 760px;
  margin: 0 0 .8rem;
  color: rgba(255,255,255,.68);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.78;
}
body[data-page="services"] .marriage-process .process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.45rem;
  row-gap: 1.1rem;
  margin-top: 2.45rem;
}
body[data-page="services"] .marriage-process .process-card {
  min-height: 282px;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(222,198,132,.35);
  border-left: 8px solid #d7a832;
  background: rgba(255,255,255,.035);
}
body[data-page="services"] .marriage-process .process-number {
  top: 2rem;
  right: 2rem;
  color: rgba(223,215,190,.42);
  font-size: 1.65rem;
}
body[data-page="services"] .marriage-process .process-card h3 {
  margin: 3.25rem 0 1.45rem;
  color: #f4d995;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.2;
}
body[data-page="services"] .marriage-process .process-card p {
  max-width: 95%;
  color: rgba(255,255,255,.72);
  font-size: clamp(.91rem, 1.12vw, 1.08rem);
  line-height: 1.85;
}

@media (max-width: 1000px) {
  body[data-page="services"] .marriage-process {
    padding: 3.2rem clamp(1.2rem, 4vw, 2.2rem);
  }
  body[data-page="services"] .marriage-process .services-section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  body[data-page="services"] .marriage-process .services-section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: .6rem;
  }
  body[data-page="services"] .marriage-process .services-section-heading h2 {
    font-size: clamp(3rem, 8vw, 4.8rem);
  }
  body[data-page="services"] .marriage-process .services-section-heading > p:last-child {
    margin: 0;
  }
}

@media (max-width: 720px) {
  body[data-page="services"] .marriage-process .process-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  body[data-page="services"] .marriage-process .process-card {
    min-height: 250px;
    padding: 1.5rem;
  }
  body[data-page="services"] .marriage-process .process-number {
    top: 1.4rem;
    right: 1.4rem;
  }
}

/* Front-page campaign message hierarchy */
body[data-page="home"] .hero-reference h1.hero-message-title {
  max-width: 1180px;
  margin-left: 0;
  font-size: clamp(4.2rem, 7vw, 8.15rem);
  line-height: .92;
}
body[data-page="home"] .hero-reference .hero-message-title > span:nth-child(2),
body[data-page="home"] .hero-reference .hero-message-title > span:nth-child(3) {
  max-width: 760px;
  margin-top: 1.2rem;
  color: rgba(255,255,255,.88);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.48rem);
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.5;
}
body[data-page="home"] .hero-reference .hero-message-title > span:nth-child(3) {
  margin-top: .35rem;
  color: #f7cc58;
  font-weight: 900;
}

@media (max-width: 800px) {
  body[data-page="home"] .hero-reference h1.hero-message-title {
    max-width: 720px;
    font-size: clamp(3.35rem, 11vw, 5.25rem);
  }
  body[data-page="home"] .hero-reference .hero-message-title > span:nth-child(2),
  body[data-page="home"] .hero-reference .hero-message-title > span:nth-child(3) {
    max-width: 610px;
    font-size: clamp(.96rem, 3.2vw, 1.16rem);
    line-height: 1.48;
  }
}

/* Donation reference layout and current front-page title */
body[data-page="home"] .hero-reference h1.hero-message-title {
  max-width: 900px;
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
body[data-page="home"] .hero-reference .hero-vision-line {
  max-width: 780px;
  margin: 1.2rem 0 0;
  color: #f5d687;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
}
body[data-page="donate"] .compact-donation-page { background: #e9e2d6; padding-top: 150px; }
body[data-page="donate"] .compact-donate-shell { width: min(1200px, 100%); }
body[data-page="donate"] .compact-donate-intro {
  grid-template-columns: 1.3fr .8fr;
  gap: 3rem;
  padding: 1rem 1rem 1.8rem;
  align-items: end;
  text-align: left;
}
body[data-page="donate"] .donation-kicker {
  margin: 0 0 1rem;
  color: #9d4a30;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body[data-page="donate"] .donation-kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
body[data-page="donate"] .compact-donate-intro h1 {
  max-width: 660px;
  color: #282323;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: .96;
  font-weight: 400;
}
body[data-page="donate"] .compact-donate-intro h1::after { content: ""; display: block; width: 70px; height: 3px; margin-top: 1.2rem; background: linear-gradient(90deg,#aa4931 58%,#d8a349 58%); }
body[data-page="donate"] .compact-donate-intro > p { max-width: 420px; padding-bottom: .25rem; color: #706a65; font-size: .95rem; }
body[data-page="donate"] .donation-legacy {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
  margin: 0 1rem 1.4rem;
  padding: 1.6rem 2rem;
  border-left: 5px solid #a84735;
  background: #f5f1ea;
}
body[data-page="donate"] .donation-legacy h2 { margin: 0; color: #302824; font: 400 clamp(1.4rem,2.3vw,2rem)/1.15 Georgia,serif; }
body[data-page="donate"] .donation-legacy p { margin: 0; color: #77716c; font-size: .85rem; line-height: 1.7; }
body[data-page="donate"] .donation-primary-grid { gap: 1rem; margin: 0 0 0; padding: .8rem; background: #e1d8ca; }
body[data-page="donate"] .compact-paypal-panel,
body[data-page="donate"] .donation-video-panel { min-height: 430px; border-radius: 0; padding: clamp(1.4rem,3vw,2.5rem); box-shadow: none; }
body[data-page="donate"] .compact-paypal-panel { border: 0; border-top: 6px solid #4eacd4; background: linear-gradient(145deg,#1166a3,#0b4382); }
body[data-page="donate"] .donation-video-panel { border: 0; border-top: 6px solid #b87b3c; background: #173e35; color: #fff; }
body[data-page="donate"] .compact-paypal-panel::before,
body[data-page="donate"] .donation-video-panel::before { content: none; }
body[data-page="donate"] .donation-video-panel .eyebrow,
body[data-page="donate"] .donation-video-panel h2 { color: #fff; }
body[data-page="donate"] .donation-video-panel > p:not(.eyebrow) { color: #b7c9bf; }
body[data-page="donate"] .donation-video-panel > a { color: #f1cb78; }
body[data-page="donate"] .compact-paypal-panel .donate-amount.selected { background: #1c9f65; border-color: #1c9f65; }
body[data-page="donate"] .compact-paypal-panel .paypal-donate-button { background: #048cce; }
body[data-page="donate"] .donation-goal-strip { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 0 .8rem 1.4rem; padding: 1rem 1.4rem; background: #f1d6a4; }
body[data-page="donate"] .donation-goal-strip strong { display: block; color: #35281d; font: 700 1.25rem Georgia,serif; }
body[data-page="donate"] .donation-goal-strip span { display: block; margin-top: .2rem; color: #73614b; font-size: .75rem; }
body[data-page="donate"] .donation-goal-strip a { color: #175443; font-size: .78rem; font-weight: 800; text-decoration: underline; }
@media (max-width: 760px) {
  body[data-page="donate"] .compact-donate-intro,
  body[data-page="donate"] .donation-legacy { grid-template-columns: 1fr; gap: 1rem; }
  body[data-page="donate"] .donation-goal-strip { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  body[data-page="home"] .hero-reference h1.hero-message-title { font-size: 35px; }
  body[data-page="donate"] .compact-donation-page { padding-top: 115px; }
  body[data-page="donate"] .donation-legacy { margin-inline: 0; padding: 1.2rem; }
}

/* Smaller footer donation button */
.footer-donate-slot { min-height: 72px; padding: .45rem; }
.footer-contact .footer-donate-flash {
  width: min(190px, 100%);
  min-height: 46px;
  margin-inline: auto;
  padding: .55rem .8rem;
  font-size: .88rem;
}
@media (max-width: 1100px) {
  .footer-contact .footer-donate-flash { min-height: 46px; }
}


/* London Masjid Project — community teal, warm coral and amber */
:root {
  --ink: #17333b;
  --forest: #075660;
  --forest-2: #063946;
  --moss: #0a7477;
  --charcoal: #082f4d;
  --gold: #d7a94d;
  --gold-deep: #a57625;
  --gold-soft: #f6e5b9;
  --cream: #f7f7f2;
  --paper: #fffefa;
  --muted: #586a70;
  --line: rgba(8,62,70,.17);
}
body { background: #fffefa; color: var(--ink); }
.site-header { background: rgba(5,43,59,.96); border-bottom: 1px solid rgba(238,212,146,.36); }
.site-header .brand { padding: .15rem .55rem; border: 1px solid rgba(211,172,95,.55); border-radius: 5px; background: #fffdf5; }
.site-header .header-logo { width: 145px; height: 74px; filter: none; object-position: center; }
.site-header nav a { color: #fff; opacity: .88; }
.site-header nav a:hover, .site-header nav a.active { color: #f6e5b9; opacity: 1; }
.header-donate, .primary-cta, .vision-button, .service-enquiry-button, .contact-submit {
  min-height: 48px;
  border: 1px solid #e7be69;
  border-radius: 5px;
  background: #e2b85d;
  color: #083946;
  box-shadow: none;
  font-family: Arial, sans-serif;
  letter-spacing: .01em;
}
.header-donate:hover, .primary-cta:hover, .vision-button:hover, .service-enquiry-button:hover, .contact-submit:hover { background: #f1d387; color: #083946; }
.hero-shell, body[data-page="home"] .hero-shell {
  border-bottom: 6px solid #d7a94d;
  box-shadow: none;
  background: linear-gradient(90deg,rgba(5,39,58,.92),rgba(4,79,81,.69) 50%,rgba(8,54,67,.14)),url('mosque-hero.webp') center / cover no-repeat;
}
.hero-shell::before { opacity: .04; }
.hero-shell::after { display: none; }
.eyebrow, .eyebrow.light { color: #f6e5b9; }
.eyebrow.dark { color: #9b6b34; }
.eyebrow span, .donation-kicker::before { background: #d7a94d; }
body[data-page="home"] .hero-reference h1.hero-message-title { font-size: 35px; }
body[data-page="home"] .hero-reference .hero-vision-line { color: #f6e5b9; }
.donation-card { border: 1px solid #dce8e6; border-top: 5px solid #d7a94d; border-radius: 12px; outline: 0; padding: 2.2rem; background: #fff; box-shadow: 0 22px 56px rgba(5,39,58,.23); }
.donation-card::before { display: none; }
.amount.active, .donate-amount.selected { border-color: #08717a; background: #08717a; color: #fff; }
.paypal-button, .paypal-donate-button { border: 0; border-radius: 5px; background: #0b6c9f; color: #fff; box-shadow: none; font-family: Arial,sans-serif; }
.paypal-button:hover, .paypal-donate-button:hover { background: #085882; color: #fff; }
.vision-section, .prayer-board, .ceremony-details, .contact-section { background: #f2f7f6; }
.appeal-section, .islam-section, .services-intro { background: #fffefa; }
.quote-strip, .future-pillars > div, .contact-card, .prayer-card, .documents-panel, .islam-contents a { border-color: #dce8e6; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgba(5,39,58,.05); }
.quote-strip { border-left: 4px solid #d7a94d; }
.section-heading h2, .vision-intro h2, .plan-heading h2, .contact-details h2, .prayer-board-head h2, .islam-section-heading h2, .services-intro h2, .services-section-heading h2 { color: #082f4d; }
.section-heading h2::after, .vision-intro h2::after, .contact-details h2::after, .prayer-board-head h2::after, .services-intro h2::after { content: ""; width: 70px; border-bottom: 3px solid #d7a94d; }
.vision-carousel { border: 1px solid #dce8e6; border-radius: 8px; background: #fff; }
.vision-controls { background: #082f4d; border: 0; }
.plan-section, .dark-section, .marriage-process, .service-final-cta { background: linear-gradient(125deg,#082f4d,#075b62); border-color: #d7a94d; }
.plan-section .plan-heading h2, .dark-section .islam-section-heading h2, .marriage-process .services-section-heading h2, .service-final-cta h2 { color: #fff; }
.plan-card, .process-card { border-left: 4px solid #d7a94d; background: rgba(255,255,255,.06); }
.final-cta { border: 0; background: #f3e4c5; color: #082f4d; }
.final-cta h2 { color: #082f4d; }
.final-cta .final-button { border: 0; border-radius: 5px; background: #082f4d; color: #fff; }
.final-cta::after { display: none; }
.subpage-hero { border-bottom: 6px solid #d7a94d; background: linear-gradient(90deg,rgba(5,39,58,.9),rgba(5,84,87,.62)),url('mosque-hero.webp') center 42% / cover no-repeat; }
.subpage-hero::before, .subpage-hero::after { display: none; }
.contact-form, .important-panel, .next-prayer, .prayer-card.next { border-color: #d7a94d; background: #082f4d; }
.islam-contents { border-color: #d7a94d; background: #e8f1ef; }
body[data-page="donate"] .compact-donation-page { background: #f2f7f6; }
body[data-page="donate"] .compact-donate-intro h1, body[data-page="donate"] .donation-legacy h2 { color: #082f4d; }
body[data-page="donate"] .donation-kicker { color: #ad604d; }
body[data-page="donate"] .compact-donate-intro h1::after { background: linear-gradient(90deg,#c65b42 48%,#d7a94d 48%); }
body[data-page="donate"] .donation-legacy { border-left-color: #c65b42; background: #fff; }
body[data-page="donate"] .donation-primary-grid { background: #e1ebe9; }
body[data-page="donate"] .compact-paypal-panel { border: 0; border-top: 6px solid #d7a94d; border-radius: 6px; background: linear-gradient(145deg,#126d9c,#084b77); box-shadow: none; }
body[data-page="donate"] .donation-video-panel { border: 0; border-top: 6px solid #d7a94d; border-radius: 6px; background: #084e5a; color: #fff; box-shadow: none; }
body[data-page="donate"] .compact-paypal-panel::before, body[data-page="donate"] .donation-video-panel::before { display: none; }
body[data-page="donate"] .donation-video-panel .eyebrow, body[data-page="donate"] .donation-video-panel h2 { color: #fff; }
body[data-page="donate"] .donation-video-panel > p:not(.eyebrow) { color: #cadcda; }
body[data-page="donate"] .donation-video-panel > a { color: #f2d692; }
body[data-page="donate"] .compact-paypal-panel .donate-amount.selected { border-color: #087c75; background: #087c75; }
body[data-page="donate"] .donation-goal-strip { background: #eee0bd; }
.donation-meaning-panel, .donation-slider-panel, .donation-progress-panel { border-top-color: #d7a94d; background: linear-gradient(125deg,#082f4d,#087078); }
.site-footer { border-top: 6px solid #d7a94d; background: #f3f7f6; color: #082f4d; }
.footer-logo { width: min(360px, 85vw); height: 235px; }
.footer-identity > p, .footer-contact a, .footer-links a, .footer-notice, .site-footer .copyright { color: #526970; }
.footer-contact a, .footer-links a, .footer-donate-slot { border-color: #d8e5e1; background: #fff; }
.footer-contact .footer-donate-flash { border: 1px solid #b98e41; background: #e2b85d; color: #083946; }
.footer-contact .footer-donate-flash:hover { background: #f1d387; color: #083946; }
@keyframes footer-donate-flash {
  0%,56%,100% { background: #e2b85d; box-shadow: none; transform: scale(1); }
  68% { background: #f1d387; box-shadow: 0 0 0 4px rgba(215,169,77,.18); transform: scale(1.025); }
  80% { background: #e2b85d; box-shadow: none; transform: scale(1); }
}
@media (max-width:760px) { .site-header .header-logo { width: 115px; height: 62px; } .donation-card { padding: 1.5rem; } }

/* Future into reality campaign layout */
body[data-page="home"] .hero-reference {
  min-height: min(860px, 95vh);
  display: flex;
  align-items: center;
  padding: 160px clamp(1.25rem, 7vw, 7rem) 95px;
  background: linear-gradient(90deg,rgba(4,31,45,.94) 0%,rgba(4,43,52,.84) 42%,rgba(4,43,52,.10) 100%),url('mosque-hero.webp') center / cover no-repeat;
}
body[data-page="home"] .hero-reference .hero-copy { width: min(690px,100%); max-width: none; }
body[data-page="home"] .hero-reference .eyebrow { margin-bottom: 1.5rem; }
body[data-page="home"] .hero-reference h1.hero-message-title {
  max-width: 750px;
  margin: 0;
  font: 400 clamp(3.8rem,7vw,7rem)/.95 Georgia,"Times New Roman",serif;
  letter-spacing: -.055em;
  text-shadow: 0 4px 22px rgba(0,0,0,.24);
}
body[data-page="home"] .hero-reference .hero-vision-line {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: #f3dfad;
  font: 400 clamp(1.15rem,1.6vw,1.45rem)/1.5 Georgia,serif;
}
body[data-page="home"] .hero-reference .hero-future-copy {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1.75;
}
body[data-page="home"] .hero-reference .hero-actions { gap: .9rem; margin-top: 1.75rem; }
body[data-page="home"] .hero-reference .hero-secondary-cta { border: 1px solid rgba(255,255,255,.65); padding: .85rem 1.2rem; border-radius: 4px; color: #fff; }
body[data-page="home"] .hero-reference .hero-secondary-cta:hover { background: rgba(255,255,255,.16); }
body[data-page="home"] .hero-reference .hero-legacy-note { max-width: 600px; margin-top: 1.4rem; color: #e5eeea; font-size: .9rem; line-height: 1.6; }
.future-bridge { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,6vw,7rem); background: #f8f7f1; }
.future-bridge-heading { max-width: 550px; }
.future-bridge-heading h2 { margin: 0 0 1.1rem; color: #082f4d; font: 400 clamp(2.6rem,4.3vw,4.9rem)/1.02 Georgia,serif; letter-spacing: -.045em; }
.future-bridge-heading > p:not(.eyebrow) { max-width: 510px; color: #586a70; font-size: 1rem; line-height: 1.8; }
.bridge-donate { display: inline-flex; align-items: center; margin-top: 1rem; padding: .9rem 1.4rem; border-radius: 4px; background: #075660; color: #fff; font-weight: 800; }
.bridge-donate:hover { background: #063946; }
.future-bridge-steps { border-top: 1px solid #cbd9d3; }
.future-bridge-steps article { display: grid; grid-template-columns: 48px 1fr; gap: .15rem 1rem; padding: 1.5rem .4rem; border-bottom: 1px solid #cbd9d3; }
.future-bridge-steps span { grid-row: span 2; color: #b88337; font: 400 1.15rem Georgia,serif; }
.future-bridge-steps h3 { margin: 0; color: #082f4d; font: 400 1.55rem Georgia,serif; }
.future-bridge-steps p { margin: .35rem 0 0; color: #586a70; line-height: 1.65; }
body[data-page="home"] .appeal-section { padding-block: clamp(4rem,7vw,7rem); }
body[data-page="home"] .kindness-statement { background: #073d46; }
body[data-page="donate"] .compact-donation-page { background: #f8f7f1; }
body[data-page="donate"] .compact-donate-intro { gap: 3rem; padding-bottom: 2.1rem; }
body[data-page="donate"] .compact-donate-intro h1 { color: #082f4d; font-size: clamp(3rem,5.4vw,5.8rem); }
body[data-page="donate"] .compact-donate-intro > p { max-width: 460px; color: #49636a; font-size: 1.02rem; line-height: 1.75; }
body[data-page="donate"] .donation-legacy { grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 1.1rem; padding: clamp(1.5rem,3vw,2.6rem); border-left: 5px solid #c65b42; background: #fff; box-shadow: 0 12px 36px rgba(5,39,58,.06); }
body[data-page="donate"] .donation-legacy h2 { color: #082f4d; font-size: clamp(1.7rem,2.7vw,2.65rem); }
body[data-page="donate"] .donation-legacy p { color: #586a70; font-size: 1rem; line-height: 1.75; }
.donation-callout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; align-items: center; margin: 0 0 1.4rem; padding: 1.3rem 1.6rem; border-radius: 5px; background: #e9f1ec; }
.donation-callout span { display: block; margin-bottom: .35rem; color: #926e30; font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.donation-callout strong { color: #064a4f; font: 400 1.45rem Georgia,serif; }
.donation-callout p { margin: 0; color: #4e666b; line-height: 1.65; }
body[data-page="donate"] .donation-primary-grid { margin-top: 0; }
@media (max-width: 800px) {
  body[data-page="home"] .hero-reference { min-height: 740px; padding-top: 135px; background: linear-gradient(90deg,rgba(4,31,45,.93),rgba(4,43,52,.55)),url('mosque-hero.webp') center / cover no-repeat; }
  .future-bridge, body[data-page="donate"] .donation-legacy, .donation-callout { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 520px) {
  body[data-page="home"] .hero-reference { min-height: 770px; padding: 125px 1.2rem 3rem; }
  body[data-page="home"] .hero-reference h1.hero-message-title { font-size: clamp(3rem,12vw,4.4rem); }
  body[data-page="home"] .hero-reference .hero-future-copy { font-size: .91rem; }
  body[data-page="home"] .hero-reference .hero-actions { flex-wrap: wrap; }
  body[data-page="donate"] .donation-callout { padding: 1.25rem; }
}

/* Requested front-page message size */
body[data-page="home"] .hero-reference h1.hero-message-title {
  max-width: 830px;
  font-size: 35px;
  line-height: 1.22;
  letter-spacing: -.025em;
}
body[data-page="home"] .hero-reference .hero-vision-line {
  max-width: 800px;
  font-size: 1.2rem;
  line-height: 1.55;
}
@media (max-width: 520px) {
  body[data-page="home"] .hero-reference h1.hero-message-title { font-size: 35px; }
}

/* New green and gold identity */
:root {
  --ink: #19382c;
  --forest: #075035;
  --forest-2: #063d2b;
  --moss: #146746;
  --charcoal: #063923;
  --gold: #d6aa4f;
  --gold-deep: #956c27;
  --gold-soft: #f4e1af;
  --cream: #f8f5e9;
  --paper: #fffef9;
  --muted: #5d6f66;
  --line: rgba(7,68,42,.16);
}
body { background: #fffef9; color: #19382c; }
.site-header { background: rgba(4,50,31,.96); border-bottom: 1px solid rgba(230,190,99,.48); }
.site-header .brand { padding: .13rem .6rem; border: 1px solid rgba(216,172,78,.54); border-radius: 5px; background: #fffaf0; }
.site-header .header-logo { width: 152px; height: 74px; filter: none; object-position: center; }
.site-header nav a { color: #fff; opacity: .9; }
.site-header nav a:hover, .site-header nav a.active { color: #f4e1af; opacity: 1; }
.header-donate, .primary-cta, .vision-button, .service-enquiry-button, .contact-submit { border: 1px solid #e1bd67; border-radius: 5px; background: #dfb95f; color: #073b29; box-shadow: none; }
.header-donate:hover, .primary-cta:hover, .vision-button:hover, .service-enquiry-button:hover, .contact-submit:hover { background: #f2d78b; color: #073b29; }
.hero-shell, body[data-page="home"] .hero-shell, body[data-page="home"] .hero-reference {
  border-bottom: 6px solid #d6aa4f;
  background: linear-gradient(90deg,rgba(4,44,28,.94),rgba(5,60,38,.72) 49%,rgba(5,60,38,.1)),url('mosque-hero.webp') center / cover no-repeat;
}
.eyebrow, .eyebrow.light { color: #f4e1af; }
.eyebrow.dark { color: #8a662f; }
.eyebrow span, .donation-kicker::before { background: #d6aa4f; }
body[data-page="home"] .hero-reference h1.hero-message-title { font-size: 35px; }
body[data-page="home"] .hero-reference .hero-vision-line { color: #f4e1af; }
.donation-card { border: 1px solid #dfe9dc; border-top: 5px solid #d6aa4f; border-radius: 12px; outline: 0; background: #fff; }
.amount.active, .donate-amount.selected { background: #075035; border-color: #075035; color: #fff; }
.paypal-button, .paypal-donate-button { border: 0; border-radius: 5px; background: #087c53; color: #fff; box-shadow: none; font-family: Arial,sans-serif; }
.paypal-button:hover, .paypal-donate-button:hover { background: #066544; color: #fff; }
.future-bridge, .vision-section, .prayer-board, .ceremony-details, .contact-section { background: #f4f7f0; }
.future-bridge-heading h2, .future-bridge-steps h3 { color: #063923; }
.bridge-donate { background: #075035; }
.bridge-donate:hover { background: #063d2b; }
.appeal-section, .islam-section, .services-intro { background: #fffef9; }
.quote-strip, .future-pillars > div, .contact-card, .prayer-card, .documents-panel, .islam-contents a { border-color: #dfe9dc; background: #fff; }
.quote-strip { border-left-color: #d6aa4f; }
.section-heading h2, .vision-intro h2, .plan-heading h2, .contact-details h2, .prayer-board-head h2, .islam-section-heading h2, .services-intro h2, .services-section-heading h2 { color: #063923; }
.section-heading h2::after, .vision-intro h2::after, .contact-details h2::after, .prayer-board-head h2::after, .services-intro h2::after { border-bottom-color: #d6aa4f; }
.vision-carousel { border-color: #dfe9dc; }
.vision-controls { background: #063923; }
.plan-section, .dark-section, .marriage-process, .service-final-cta { background: linear-gradient(125deg,#052d20,#075035); border-color: #d6aa4f; }
.plan-section .plan-heading h2, .dark-section .islam-section-heading h2, .marriage-process .services-section-heading h2, .service-final-cta h2 { color: #fff; }
.final-cta { background: linear-gradient(110deg,#f4e5b8,#dcb76a); color: #063923; }
.final-cta h2 { color: #063923; }
.final-cta .final-button { background: #063923; color: #fff; }
.subpage-hero { border-bottom-color: #d6aa4f; background: linear-gradient(90deg,rgba(4,44,28,.92),rgba(6,76,47,.62)),url('mosque-hero.webp') center 42% / cover no-repeat; }
.contact-form, .important-panel, .next-prayer, .prayer-card.next { background: #063923; border-color: #d6aa4f; }
body[data-page="home"] .kindness-statement { background: #06432f; }
body[data-page="donate"] .compact-donation-page { background: #f4f7f0; }
body[data-page="donate"] .compact-donate-intro h1, body[data-page="donate"] .donation-legacy h2 { color: #063923; }
body[data-page="donate"] .donation-kicker { color: #8a662f; }
body[data-page="donate"] .compact-donate-intro h1::after { background: linear-gradient(90deg,#075035 50%,#d6aa4f 50%); }
body[data-page="donate"] .donation-legacy { border-left-color: #d6aa4f; }
.donation-callout { background: #e6eee4; }
.donation-callout strong { color: #06432f; }
body[data-page="donate"] .donation-primary-grid { background: #e1ebe0; }
body[data-page="donate"] .compact-paypal-panel { border-top-color: #d6aa4f; background: linear-gradient(145deg,#087a59,#075136); }
body[data-page="donate"] .donation-video-panel { border-top-color: #d6aa4f; background: #063d2b; }
body[data-page="donate"] .compact-paypal-panel .donate-amount.selected { border-color: #c79839; background: #c79839; color: #063923; }
body[data-page="donate"] .compact-paypal-panel .paypal-donate-button { background: #087c53; }
body[data-page="donate"] .donation-goal-strip { background: #efdfb2; }
.donation-meaning-panel, .donation-slider-panel, .donation-progress-panel { background: linear-gradient(125deg,#063923,#087255); border-top-color: #d6aa4f; }
.site-footer { border-top-color: #d6aa4f; background: #f5f7ef; color: #063923; }
.footer-identity > p, .footer-contact a, .footer-links a, .footer-notice, .site-footer .copyright { color: #536b5d; }
.footer-contact a, .footer-links a, .footer-donate-slot { border-color: #dce7d9; background: #fff; }
.footer-contact .footer-donate-flash { border-color: #a67c2e; background: #dfb95f; color: #063923; }
.footer-contact .footer-donate-flash:hover { background: #f2d78b; }
@keyframes footer-donate-flash {
  0%,56%,100% { background: #dfb95f; box-shadow: none; transform: scale(1); }
  68% { background: #f2d78b; box-shadow: 0 0 0 4px rgba(214,170,79,.18); transform: scale(1.025); }
  80% { background: #dfb95f; box-shadow: none; transform: scale(1); }
}

/* Rounded, varied popup colors */
.supporter-popup {
  overflow: hidden;
  border: 1px solid var(--popup-outline, #d6aa4f);
  border-left: 6px solid var(--popup-accent, #d6aa4f);
  border-radius: 22px;
  background: var(--popup-bg, #063d2b);
  box-shadow: 0 22px 55px rgba(13,26,26,.3);
}
.supporter-popup-symbol { background: var(--popup-symbol, #0c7653); color: var(--popup-accent, #f0cb72); }
.supporter-popup-label { color: var(--popup-accent, #f0cb72); }
.supporter-popup.popup-emerald { --popup-bg: #073e32; --popup-outline: #b9d1bd; --popup-accent: #f0cb72; --popup-symbol: #126e55; }
.supporter-popup.popup-navy { --popup-bg: #102f51; --popup-outline: #b8cbe1; --popup-accent: #e8c678; --popup-symbol: #215584; }
.supporter-popup.popup-plum { --popup-bg: #493447; --popup-outline: #d6c2d1; --popup-accent: #f0cf8c; --popup-symbol: #74546b; }
.supporter-popup.popup-copper { --popup-bg: #603a2f; --popup-outline: #dfc5ad; --popup-accent: #f6d393; --popup-symbol: #956144; }
@media (max-width: 560px) { .supporter-popup { border-radius: 18px; } }
