:root {
    --ink: #1c241f;
    --muted: #5b675f;
    --forest: #0d3b2e;
    --forest-mid: #174f3d;
    --leaf: #2f7a5b;
    --gold: #c4a35a;
    --gold-soft: #e8d7a4;
    --cream: #f6f1e6;
    --paper: #fffdf8;
    --line: #ddd4c2;
    --danger: #8a2b2b;
    --shadow: 0 18px 40px rgba(13, 59, 46, 0.08);
    --radius: 18px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Source Serif 4", "Georgia", serif;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); }
a:hover { color: var(--leaf); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    padding: 8px 12px;
    z-index: 20;
}
.skip-link:focus { left: 12px; }

.topbar {
    background: var(--forest);
    color: #f4e7c5;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.topbar-inner, .nav-inner, .wrap, .footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    flex-wrap: wrap;
}
.topbar a { color: #f4e7c5; text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header {
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--forest);
    min-width: 0;
    flex: 0 1 auto;
}
.brand img {
    width: auto;
    height: clamp(52px, 9vw, 74px);
    max-width: min(92px, 28vw);
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    line-height: 1.1;
}
.brand-text span {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: "Nunito Sans", sans-serif;
    min-height: 44px;
}
.menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.92rem;
}
.menu > li { position: relative; }
.menu a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--ink);
    border-radius: 10px;
}
.menu a:hover, .menu .active > a { background: #eef5f0; color: var(--forest); }
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
}
.has-sub:hover > .submenu { display: block; }
button { font-family: inherit; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    cursor: pointer;
}
.btn-gold { background: var(--gold); color: #2a2110; }
.btn-gold:hover { background: #d4b56a; color: #2a2110; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--forest); }
.menu .btn-gold { color: #2a2110; padding: 9px 14px; }

.hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(196,163,90,.22), transparent 28%),
        linear-gradient(160deg, #0b3227 0%, #174f3d 55%, #0d3b2e 100%);
    color: #f7f1e2;
    position: relative;
    overflow: hidden;
}
.hero-photo {
    background:
        linear-gradient(160deg, rgba(11,50,39,.78), rgba(13,59,46,.70)),
        url("../images/photos/kaaba-hajj.jpg") center / cover no-repeat;
}
.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8 L44 20 L56 20 L46 28 L50 40 L40 32 L30 40 L34 28 L24 20 L36 20 Z' fill='none' stroke='%23c4a35a' stroke-opacity='0.16'/%3E%3C/svg%3E");
    opacity: .7;
    pointer-events: none;
}
.hero-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(36px, 7vw, 72px) 0 clamp(40px, 8vw, 80px);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
}
.eyebrow {
    font-family: "Nunito Sans", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--gold-soft);
    margin: 0 0 12px;
}
.hero h1, .page-hero h1, h1, h2, h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); margin: 0 0 16px; }
.lede { font-size: 1.15rem; max-width: 38rem; color: #efe6cf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.verse-card {
    background: rgba(255,253,248,.08);
    border: 1px solid rgba(196,163,90,.35);
    border-radius: 22px;
    padding: 28px;
    text-align: center;
}
.arabic {
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    font-size: 1.7rem;
    line-height: 1.8;
    direction: rtl;
}
.verse-card p { margin: 12px 0 0; color: #efe6cf; }

.page-hero {
    background-color: #0d3b2e;
    background-size: cover;
    background-position: center;
    color: #f7f1e2;
    padding: clamp(28px, 5vw, 48px) 0 clamp(26px, 4vw, 42px);
}
.page-hero p { max-width: 40rem; color: #efe6cf; }
.crumbs {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.82rem;
    color: #d9c89a;
    margin-bottom: 10px;
}
.crumbs a { color: #f4e7c5; }

.section { padding: clamp(36px, 6vw, 64px) 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.kicker {
    font-family: "Nunito Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--leaf);
    margin: 0 0 8px;
}
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 10px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }

.grid-3, .grid-2, .cards, .gallery { display: grid; gap: 18px; }
.grid-3, .cards, .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.card, .panel, .form-card, .news-card, .notice {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card, .panel, .form-card { padding: 22px; }
.icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef5f0;
    color: var(--forest);
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: "Nunito Sans", sans-serif;
}
.muted { color: var(--muted); }
.list { padding-left: 18px; }
.list li { margin: 8px 0; }

.band { background: #fffdf8; }
.band-dark {
    background: var(--forest);
    color: #f7f1e2;
}
.band-dark a { color: var(--gold-soft); }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 18px 18px 18px 72px;
    position: relative;
    border: 1px solid var(--line);
}
.step:before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forest);
    color: #f4e7c5;
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
}

.news-card { padding: 0; overflow: hidden; }
.news-card a { text-decoration: none; color: inherit; display: block; padding: 22px; }
.tag {
    display: inline-block;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #eef5f0;
    color: var(--forest);
    padding: 4px 8px;
    border-radius: 999px;
}
.notice { padding: 18px 20px; }
.notice time, .meta {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
}

.tile {
    min-height: 210px;
    border-radius: 20px;
    padding: 22px;
    color: #f7f1e2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    position: relative;
}
.tile.photo { padding: 0; min-height: 240px; }
.tile.photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(transparent, rgba(10,42,33,.88));
}
.photo-frame {
    margin: 0 0 22px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.photo-frame img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.photo-wide img { height: min(380px, 52vw); }
.photo-frame figcaption, .photo-row figcaption {
    padding: 8px 12px 10px;
    font-size: 0.82rem;
    color: var(--muted);
    font-family: "Nunito Sans", sans-serif;
}
.photo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 28px;
}
.photo-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile.a { background: linear-gradient(160deg, #174f3d, #0d3b2e); }
.tile.b { background: linear-gradient(160deg, #3d5a3a, #1d3b2c); }
.tile.c { background: linear-gradient(160deg, #5c4a28, #2b2414); }
.tile.d { background: linear-gradient(160deg, #2c5d55, #12332f); }
.tile.e { background: linear-gradient(160deg, #4a3d5c, #24182b); }
.tile.f { background: linear-gradient(160deg, #3b4d2c, #1a2414); }

.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }

label { display: block; font-family: "Nunito Sans", sans-serif; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.field-validation-error, .validation-summary-errors { color: var(--danger); font-size: 0.92rem; }
.form-actions { margin-top: 18px; }

.member {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}
.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--forest);
    color: #f4e7c5;
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
}

.site-footer {
    background: #0a2a21;
    color: #e8dfc8;
    padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.footer-logo {
    width: auto;
    height: 44px;
    margin-bottom: 10px;
    object-fit: contain;
}
.site-footer a { color: #f4e7c5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.legal {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 28px;
    padding-top: 16px;
    font-size: 0.88rem;
    color: #c9c0aa;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .menu { font-size: 0.84rem; }
    .menu a { padding: 8px 8px; }
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; align-items: center; }
    .menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 12px 16px 20px;
        align-items: stretch;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: var(--shadow);
    }
    .menu.is-open { display: flex; }
    .submenu {
        position: static;
        box-shadow: none;
        display: none;
        min-width: 0;
        border: 0;
        padding: 0 0 0 12px;
    }
    .has-sub > a:after { content: " ▾"; font-size: 0.8em; }
    .has-sub.is-open > .submenu { display: block; }
    .hero-inner, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .grid-3, .cards, .gallery, .photo-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-actions .btn, .form-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
    .topbar-inner, .nav-inner, .wrap, .footer-inner, .hero-inner {
        width: min(var(--max), calc(100% - 24px));
    }
    .topbar { font-size: 0.74rem; }
    .grid-3, .cards, .gallery, .photo-row { grid-template-columns: 1fr; }
    .brand-text span { letter-spacing: 0.08em; }
    .arabic { font-size: 1.35rem; }
    .step { padding-left: 64px; }
    .member { grid-template-columns: 56px 1fr; }
    .avatar { width: 56px; height: 56px; font-size: 1.3rem; }
    .footer-logo { height: 36px; }
}

@media (max-width: 420px) {
    .brand-text { display: none; }
    .brand img { max-width: 78px; height: 64px; }
}
