:root {
    --ivory: #faf7f0;
    --champagne: #f2eee3;
    --champagne-soft: #ece6d6;
    --ink: #1a1f1c;
    --ink-soft: #5c6360;
    --ink-muted: #6a6d6b;
    --emerald: #0b5a4e;
    --emerald-dark: #073b33;
    --emerald-bright: #0f8772;
    --emerald-tint: #f3f7f6;
    --gold: #c9a66b;
    --gold-soft: #e6d5a8;
    --gold-dark: #a6864e;
    --forest-night: #0b1f1c;
    --pine: #0e2a24;
    --mist: #f4f5f7;
    --white: #fff;

    --border: #e9e6dd;
    --line: #e5e5e5;
    --line-soft: #f0f0f0;

    --radius-sm: 10px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(26, 31, 28, .04), 0 2px 8px -2px rgba(26, 31, 28, .06);
    --shadow: 0 1px 2px rgba(26, 31, 28, .04), 0 10px 30px -12px rgba(26, 31, 28, .14);
    --shadow-lg: 0 2px 4px rgba(26, 31, 28, .03), 0 24px 60px -24px rgba(26, 31, 28, .22);
    --shadow-emerald: 0 14px 30px -12px rgba(11, 90, 78, .45);

    --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    --nav-h: 65px;
    --container: 1280px;
    --gutter: 40px;
    --section-y: 64px;
    --focus: var(--emerald);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1023px) {
    :root { --gutter: 24px; }
}

@media (max-width: 639px) {
    :root { --gutter: 16px; --section-y: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: var(--ink);
}

p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--emerald);
    color: var(--white);
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 32px;
}

.eyebrow {
    display: block;
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-size: clamp(34px, 12px + 4.2vw, 48px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.lead {
    font-size: 18px;
    line-height: 28px;
    color: var(--ink-soft);
}

.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
}

.icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
}
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-fill { fill: currentColor; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }

.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-pill {
    height: 36px;
    padding: 0 20px;
    background: var(--pine);
    color: var(--gold-soft);
    font-size: 14px;
}
.btn-pill:hover { background: var(--emerald-dark); color: var(--ivory); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: #cfd2d0; }

.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-icon:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald); }
.btn-icon:disabled { color: rgba(26, 31, 28, .25); cursor: default; }
.btn-icon .icon { width: 18px; height: 18px; }
.btn-icon-sm { width: 32px; height: 32px; }
.btn-icon-sm .icon { width: 16px; height: 16px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--emerald);
    transition: color .2s;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--emerald-dark); }
.link-arrow:hover .icon { transform: translateX(3px); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.chip:hover { border-color: rgba(11, 90, 78, .45); }
.chip.is-active,
.chip[aria-pressed="true"],
.chip[aria-checked="true"],
.chip:has(input:checked) {
    border-color: var(--emerald);
    background: var(--emerald-tint);
    color: var(--emerald);
    box-shadow: 0 8px 18px -12px rgba(11, 90, 78, .45);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.input, .textarea, .select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 140px; padding: 12px 16px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9a9f9c; }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(11, 90, 78, .35);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ivory);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: 1280px;
    height: var(--nav-h);
    margin-inline: auto;
    padding: 0 40px 0 24px;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: auto; height: 44px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(26, 31, 28, .8);
    transition: color .2s;
}
.nav-links a:hover { color: var(--emerald); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1023px) {
    .site-nav { padding: 0 24px; }
}

@media (max-width: 899px) {
    .site-nav { gap: 8px; padding-right: 16px; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px var(--gutter) 12px;
        background: var(--ivory);
        border-top: 1px solid var(--border);
        box-shadow: 0 18px 30px -18px rgba(26, 31, 28, .25);
    }
    .nav-open .nav-links { display: flex; }
    .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
    .nav-links a:last-child { border-bottom: 0; }
}

@media (max-width: 639px) {
    .site-nav { padding: 0 8px 0 16px; }
    .input, .textarea, .select { font-size: 16px; }
}

.site-footer {
    --focus: var(--gold);
    padding: 40px 0 24px;
    background: var(--forest-night);
    color: #d9e9e7;
    font-size: 14px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(201, 166, 107, .45), transparent) 1;
}

.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.footer-row + .footer-row { margin-top: 32px; }

.footer-logo { width: auto; height: 40px; filter: brightness(0) invert(1); }
.footer-divider { width: 1px; height: 30px; background: rgba(255, 255, 255, .12); }

.footer-heading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--gold);
}
.footer-heading .icon { width: 16px; height: 16px; }
.footer-heading-contact { margin-right: 20px; }

.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-contact li { display: flex; align-items: center; gap: 20px; }
.footer-contact li + li::before {
    content: "";
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .2);
}
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.footer-contact a:hover { color: var(--white); }
.footer-contact .icon { width: 16px; height: 16px; color: var(--gold); }
.footer-contact .icon-ext { width: 12px; height: 12px; opacity: .85; }

.footer-social { display: flex; gap: 10px; margin-left: 4px; }
.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 166, 107, .35);
    border-radius: 50%;
    color: var(--gold);
    transition: background-color .2s, color .2s, border-color .2s;
}
.social .icon { width: 16px; height: 16px; }
.social:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-night); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    line-height: 16px;
    color: rgba(217, 233, 231, .6);
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: #fff; }
.footer-heart { width: 12px; height: 12px; vertical-align: -1px; color: #e25555; fill: currentColor; }

@media (max-width: 1023px) {
    .footer-contact { flex-basis: 100%; }
}

@media (max-width: 899px) {
    .footer-contact li + li::before { display: none; }
    .footer-contact { gap: 12px 28px; }
}

@media (max-width: 639px) {
    .footer-contact { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; }
}


.hero { padding-block: 24px; }

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 28px 32px;
}

.hero-text { grid-column: span 4; }

.hero-title {
    font-size: clamp(36px, 18px + 5vw, 48px);
    font-weight: 700;
    line-height: 1;
}
.hero-title .serif-accent {
    display: block;
    font-size: .96em;
    color: var(--emerald);
}

.hero-lead { margin-top: 20px; }

.hero-slider {
    grid-column: span 8;
    position: relative;
    height: 340px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--forest-night);
    touch-action: pan-y;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.hero-slide-inner { position: absolute; inset: 0; display: block; color: var(--white); }
.hero-slide-inner:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; border-radius: var(--radius-xl); }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 32px 150px 32px 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 50%, transparent);
}

.hero-caption-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -.025em;
    color: var(--white);
    text-wrap: balance;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 5px 12px;
    border: 1px solid rgba(230, 213, 168, .45);
    border-radius: var(--radius-pill);
    background: rgba(11, 31, 28, .45);
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
}
.hero-meta .icon { width: 14px; height: 14px; }

.hero-dots {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    gap: 18px;
}

.hero-dot {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .5);
    transition: width .3s var(--ease), background-color .3s;
}
.hero-dot::after { content: ""; position: absolute; inset: -9px; }
.hero-dot:hover { background: rgba(255, 255, 255, .8); }
.hero-dot[aria-current="true"] { width: 28px; background: var(--white); }
.hero-dot:focus-visible { outline-color: var(--white); outline-offset: 3px; }

@media (max-width: 899px) {
    .hero { padding-top: 32px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-text, .hero-slider { grid-column: auto; }
    .hero-slider { height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 639px) {
    .hero-lead { margin-top: 16px; }
    .hero-caption { padding: 20px 20px 34px; }
    .hero-caption-title { font-size: 20px; line-height: 26px; }
    .hero-meta { margin-bottom: 8px; font-size: 12px; }
    .hero-dots { right: 0; left: 0; bottom: 14px; justify-content: center; }
}

.prayer { padding: 40px 0 36px; background: var(--mist); }
.prayer-title { font-size: 30px; line-height: 1.1; }

.daynav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.daynav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ink-muted);
    transition: color .2s, background-color .2s;
}
.daynav-btn .icon { width: 18px; height: 18px; }
.daynav-btn[href]:hover { color: var(--emerald); background: var(--emerald-tint); }
.daynav-btn[aria-disabled="true"] { color: rgba(26, 31, 28, .2); pointer-events: none; }
.daynav-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 174px;
    line-height: 1.2;
    text-align: center;
}
.daynav-when {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}
.daynav-when .icon { width: 13px; height: 13px; }
.daynav-date { margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 20px; color: var(--ink); }

.prayer-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.prayer-grid {
    display: grid;
    grid-column: span 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    transition: opacity .2s;
}
.prayer-grid[aria-busy="true"] { opacity: .6; }

.prayer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 8px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, border-color .3s;
}
.prayer-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--emerald);
}
.prayer-now { display: none; }
.prayer-time {
    margin-top: 6px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -.02em;
    color: var(--ink);
}
.prayer-iqamah {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}
.prayer-iqamah-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.prayer-iqamah-time { margin-top: 4px; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--ink); }

.prayer-card.is-now {
    background: var(--emerald);
    border-color: var(--emerald);
    box-shadow: var(--shadow-emerald);
    transform: scale(1.02);
}
.is-now .prayer-now { display: inline; }
.is-now .prayer-name, .is-now .prayer-time, .is-now .prayer-iqamah-time { color: var(--white); }
.is-now .prayer-iqamah { border-top-color: rgba(255, 255, 255, .18); }
.is-now .prayer-iqamah-label { color: rgba(255, 255, 255, .7); }

.jumuah {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.jumuah-title { font-size: 34px; line-height: 1.1; color: var(--gold); }
.jumuah-sub { margin-top: 10px; font-size: 16px; line-height: 24px; color: var(--ink-soft); }
.jumuah-slots { display: grid; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.jumuah-slot { display: flex; flex-direction: column; }
.jumuah-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.jumuah-lang { margin-top: 6px; font-size: 16px; line-height: 22px; color: var(--ink); }
.jumuah-time {
    margin-top: 6px;
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--emerald);
}

.hcal {
    margin-top: 32px;
    padding: 28px 40px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.hcal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.hcal .eyebrow { margin-bottom: 8px; }
.hcal-title { font-size: 36px; line-height: 1.1; }
.hcal-ah { font-weight: 500; color: #8a8f8c; }
.hcal-today { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.hcal-nav { display: flex; flex-shrink: 0; gap: 8px; }
.hcal-nav .btn-icon { width: 36px; height: 36px; }
.hcal-nav .btn-icon .icon { width: 16px; height: 16px; }
.hcal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
}
.hcal-name { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; line-height: 22px; color: var(--ink); }
.hcal-hijri { font-size: 12px; font-weight: 400; line-height: 18px; color: var(--ink-muted); }
.hcal-date { flex-shrink: 0; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.hcal-empty { padding: 24px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-muted); text-align: center; }

@media (max-width: 899px) {
    .prayer-layout { grid-template-columns: minmax(0, 1fr); }
    .prayer-grid { grid-column: auto; }
    .jumuah { grid-row: auto; }
    .daynav { width: 100%; justify-content: space-between; }
    .daynav-label { min-width: 0; }
}

@media (max-width: 639px) {
    .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .prayer-card { padding: 16px 12px 14px; }
    .prayer-card.is-now { transform: none; }
    .jumuah { padding: 24px 20px; }
    .hcal { padding: 24px 20px 8px; }
    .hcal-head { flex-wrap: wrap; }
    .hcal-title { font-size: 26px; }
    .hcal-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (max-width: 419px) {
    .prayer-name { font-size: 12px; letter-spacing: .14em; }
}

.donate { background: var(--ivory); }

.donate-head { max-width: 560px; margin: 0 auto 44px; text-align: center; }
.donate-head .lead { margin-top: 16px; }

.donate-card {
    max-width: 768px;
    margin: 0 auto;
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.donate-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.donate-group + .donate-group { margin-top: 24px; }

.donate-label {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink-muted);
}

.donate-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.donate-type { flex-direction: column; gap: 8px; min-height: 80px; padding: 14px 8px 15px; font-size: 13px; }
.donate-type .icon { width: 20px; height: 20px; }

.donate-freq {
    display: flex;
    width: 320px;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--champagne);
}
.donate-freq label { flex: 1; cursor: pointer; }
.donate-freq span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.donate-freq label:has(input:checked) span { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.donate-freq label:has(input:focus-visible) span { outline: 2px solid var(--focus); outline-offset: 2px; }

.donate-amounts .chip { padding-inline: 8px; }

.donate-custom { position: relative; margin-top: 12px; }
.donate-custom span {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9a9f9c;
    pointer-events: none;
}
.donate-custom .input { padding-left: 32px; -moz-appearance: textfield; appearance: textfield; }
.donate-custom .input::-webkit-outer-spin-button,
.donate-custom .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.donate-card .btn-lg { margin-top: 24px; }

.donate-noscript {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--emerald-tint);
    color: var(--emerald);
    font-size: 14px;
    line-height: 1.6;
}

.donate-fund { margin-top: 40px; }
.donate-fund-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.donate-fund .donate-label { width: auto; margin: 0; text-align: left; }
.donate-fund-amounts { font-size: 13px; color: var(--ink-muted); }
.donate-fund-amounts strong { font-weight: 600; color: var(--ink); }
.donate-bar { height: 6px; margin-top: 10px; border-radius: var(--radius-pill); background: var(--champagne); overflow: hidden; }
.donate-bar span {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--emerald), var(--emerald-bright) 55%, var(--gold));
}
.donate-fund-note { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }

.donate-dialog {
    position: relative;
    width: min(480px, calc(100vw - 32px));
    padding: 32px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.donate-dialog::backdrop { background: rgba(11, 31, 28, .55); }
.donate-dialog h3 { font-size: 24px; padding-right: 40px; }
.donate-dialog-x { position: absolute; top: 16px; right: 16px; }
.donate-dialog-summary { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--emerald); }
.donate-dialog-summary:empty { display: none; }
.donate-dialog-text { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.donate-dialog .btn { margin-top: 24px; }

@media (max-width: 639px) {
    .donate-head { margin-bottom: 28px; }
    .donate-card { padding: 24px 20px; }
    .donate-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .donate-options { gap: 8px; }
    .donate-dialog { padding: 24px 20px; }
}

.events { padding-top: 56px; padding-bottom: 0; }

.events-controls { display: flex; align-items: center; gap: 8px; }
.events-controls .link-arrow { gap: 8px; margin-right: 12px; }
.events-controls .link-arrow .icon { width: 14px; height: 14px; }

.events-track {
    display: flex;
    gap: 24px;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.events-track::-webkit-scrollbar { display: none; }

.event-card {
    position: relative;
    display: flex;
    flex: 0 0 24%;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
    transition: box-shadow .2s, border-color .2s;
}
.event-card:hover { border-color: #d9dcda; box-shadow: var(--shadow); }

.event-card-img { width: 100%; height: 144px; object-fit: cover; background: var(--champagne); }

.event-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }

.event-card-title { font-size: 18px; line-height: 1.25; }

.event-meta { margin-top: 12px; font-size: 12px; line-height: 20px; color: var(--ink-soft); }
.event-meta li { display: flex; align-items: center; gap: 6px; }
.event-meta .icon { width: 14px; height: 14px; color: var(--emerald); }

.event-card-link { align-self: flex-start; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 20px; }
.event-card-link .icon { width: 12px; height: 12px; }
.event-card-link::after { content: ""; position: absolute; inset: 0; }

.events-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--ivory);
    color: var(--ink-soft);
    text-align: center;
}
.events-empty .icon { color: var(--gold); }

.events-hero { padding: 56px 0 48px; background: var(--ivory); }
.events-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--emerald);
    transition: color .2s;
}
.events-back .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.events-back:hover { color: var(--emerald-dark); }
.events-back:hover .icon { transform: translateX(-3px); }
.events-hero .lead { max-width: 560px; margin-top: 16px; }

.events-list { display: grid; gap: 24px; }

.event-item {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    overflow: hidden;
    scroll-margin-top: 16px;
}
.event-item:target { border-color: var(--emerald); animation: event-flash 2.4s var(--ease); }

@keyframes event-flash {
    0%, 35% { box-shadow: 0 0 0 4px rgba(11, 90, 78, .18), var(--shadow); }
    100% { box-shadow: var(--shadow-sm); }
}

.event-item-img { width: 100%; height: 100%; min-height: 225px; aspect-ratio: 8 / 5; object-fit: cover; background: var(--champagne); }
.event-item-body { padding: 28px 32px; }
.event-item-title { font-size: 24px; line-height: 1.25; }
.event-item .event-meta { font-size: 14px; }
.event-item .event-meta .icon { width: 16px; height: 16px; }
.event-item-desc { margin-top: 16px; color: var(--ink-soft); }

.events-home { margin-top: 40px; }

@media (max-width: 1023px) {
    .event-card { flex-basis: 40%; }
    .events-track {
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
}

@media (max-width: 767px) {
    .event-item { grid-template-columns: minmax(0, 1fr); }
    .event-item-img { height: 200px; min-height: 0; }
    .event-item-body { padding: 20px; }
    .event-item-title { font-size: 20px; }
}

@media (max-width: 639px) {
    .events { padding-top: var(--section-y); }
    .events-track { gap: 16px; }
    .event-card { flex-basis: 82%; }
    .events-hero { padding: 40px 0 36px; }
    .events-back { margin-bottom: 20px; }
}

.programs { padding-top: 64px; padding-bottom: 56px; }

.programs-title { max-width: 620px; margin-bottom: 40px; }

.programs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.program-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 20px 44px 20px 20px;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s, border-color .2s, transform .2s var(--ease);
}
a.program-card:hover { border-color: #ddd6c4; box-shadow: var(--shadow); transform: translateY(-2px); }

.program-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--emerald);
    box-shadow: var(--shadow-sm);
}
.program-icon .icon { width: 20px; height: 20px; }

.program-body { flex: 1; min-width: 0; }
.program-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.program-title { font-size: 18px; line-height: 24px; }

.program-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 10px;
    border: 1px solid rgba(201, 166, 107, .5);
    border-radius: var(--radius-pill);
    background: rgba(201, 166, 107, .08);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.program-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 6px;
    font-size: 14px;
    line-height: 23px;
    color: var(--ink-soft);
}

.program-chevron {
    position: absolute;
    top: 24px;
    right: 20px;
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
    transition: transform .2s var(--ease), color .2s;
}
a.program-card:hover .program-chevron { transform: translateX(3px); color: var(--emerald); }

@media (max-width: 1023px) {
    .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .programs { padding-block: var(--section-y); }
    .programs-title { margin-bottom: 28px; }
    .programs-title br { display: none; }
    .programs-grid { grid-template-columns: minmax(0, 1fr); }
    .program-card { padding: 18px 40px 18px 16px; }
    .program-chevron { right: 16px; }
}

.about {
    --focus: var(--gold);
    padding-block: 80px;
    background:
        radial-gradient(ellipse 55% 60% at 88% 8%, rgba(15, 135, 114, .26), transparent 70%),
        radial-gradient(ellipse 50% 55% at 8% 100%, rgba(11, 90, 78, .32), transparent 70%),
        var(--forest-night);
    color: var(--white);
}

.about-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(201, 166, 107, .45);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}
.about-pill .icon { width: 12px; height: 12px; }

.about-title {
    max-width: 720px;
    margin-top: 28px;
    font-size: clamp(32px, 10px + 3.5vw, 44px);
    color: var(--white);
}
.about-title .serif-accent { font-size: 1.1em; color: var(--gold); }

.about-divider {
    width: 80px;
    height: 1px;
    margin-top: 36px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-p1 { max-width: 900px; margin-top: 44px; font-size: 20px; line-height: 28px; color: rgba(255, 255, 255, .88); }
.about-p2 { max-width: 760px; margin-top: 24px; font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .62); }

.about-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 900px;
    margin-top: 48px;
    text-align: left;
}

.about-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: 86px;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
}
.about-stat-label { font-size: 10px; font-weight: 600; line-height: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.about-stat-value { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--white); }

.about-stat-link {
    padding-right: 60px;
    border-color: rgba(201, 166, 107, .45);
    transition: background-color .2s, border-color .2s;
}
.about-stat-link .icon {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--gold);
    transition: transform .2s var(--ease);
}
.about-stat-link:hover { background: rgba(201, 166, 107, .08); border-color: var(--gold); }
.about-stat-link:hover .icon { transform: translate(3px, -50%); }

.about-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}
.about-social span { margin-right: 6px; }

@media (max-width: 767px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-stat-link, .about-stat-wide { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
    .about { padding-block: 56px; }
    .about-title br { display: none; }
    .about-p1 { margin-top: 32px; font-size: 18px; }
    .about-p2 { font-size: 16px; }
    .about-stats { margin-top: 36px; }
}

@media (max-width: 419px) {
    .about-stats { grid-template-columns: 1fr; }
}

.contact { background: var(--mist); }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 40px 64px;
    align-items: start;
}

.contact-info .lead { max-width: 480px; margin-top: 16px; }

.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    transition: color .2s;
}
.contact-list a:hover { color: var(--emerald); }
.contact-list .icon { width: 18px; height: 18px; color: var(--emerald); }

.contact-map {
    display: block;
    width: 100%;
    height: 260px;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--champagne);
}

.contact-card { padding: 32px; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.contact-field + .contact-field { margin-top: 18px; }
.contact-card .btn { margin-top: 24px; }

.contact-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
.contact-flash .icon { width: 18px; height: 18px; margin-top: 1px; }
.contact-flash.is-ok { background: var(--emerald-tint); border-color: rgba(11, 90, 78, .25); color: var(--emerald); }
.contact-flash.is-err { background: #fdf3f2; border-color: rgba(162, 59, 49, .25); color: #a23b31; }

@media (max-width: 1023px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
    .contact-card { padding: 24px 20px; }
    .contact-map { height: 220px; }
}

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