/* ==========================================================
   Arham Online Quran Academy: ivory · emerald · gold
   ========================================================== */
:root {
    --emerald-950: #03211a;
    --emerald-900: #06302a;
    --emerald-800: #0a4a3a;
    --emerald-700: #0f6048;
    --emerald-600: #1a7a60;
    --gold: #b8892f;
    --gold-bright: #e0b95a;
    --gold-soft: #eedcae;
    --ivory: #fcfaf4;
    --sand: #f4efe2;
    --paper: #ffffff;
    --ink: #1c2b26;
    --muted: #5d6b65;
    --line: rgba(184, 146, 62, .35);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-arabic: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
    --font-quran: 'Amiri Quran', 'Amiri', 'Scheherazade New', serif;

    --radius: 18px;
    --shadow: 0 18px 50px -20px rgba(6, 41, 31, .35);
    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--emerald-800); }
h2 em, h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
[lang="ar"] { font-family: var(--font-arabic); }

/* Islamic geometric pattern overlay */
.pattern { position: relative; isolation: isolate; }
.pattern::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><g fill='none' stroke='%23b8923e' stroke-opacity='.28' stroke-width='1'><rect x='25' y='25' width='50' height='50'/><rect x='25' y='25' width='50' height='50' transform='rotate(45 50 50)'/><circle cx='50' cy='50' r='6'/><path d='M0 50h14.6M85.4 50H100M50 0v14.6M50 85.4V100'/></g></svg>");
    background-size: 100px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
            mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
    pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .75rem 1.6rem; border-radius: 999px;
    font-weight: 500; letter-spacing: .02em; font-size: .98rem;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--emerald-950); box-shadow: 0 10px 24px -10px rgba(184,146,62,.9); }
.btn-gold:hover { box-shadow: 0 16px 30px -10px rgba(184,146,62,1); }
.btn-ghost { border: 1.5px solid var(--emerald-800); color: var(--emerald-800); }
.btn-ghost:hover { background: var(--emerald-800); color: var(--ivory); }
.btn-emerald { background: var(--emerald-800); color: var(--ivory); box-shadow: 0 10px 24px -12px rgba(6,41,31,.9); }
.btn-emerald:hover { background: var(--emerald-700); }
.btn-ghost-dark { border: 1.5px solid var(--gold); color: var(--emerald-800); }
.btn-ghost-dark:hover { background: var(--gold); color: var(--emerald-950); }

/* ---------- Top ribbon ---------- */
.topbar {
    background: var(--emerald-900); color: var(--gold-soft);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
    padding: .45rem 5%; font-size: .8rem; letter-spacing: .03em;
    border-bottom: 1px solid rgba(212,175,90,.25);
}
.topbar-bismillah { font-family: var(--font-arabic); font-size: 1.15rem; color: var(--gold-bright); line-height: 1.4; }
.topbar-contact { justify-self: end; transition: color .2s; }
.topbar-contact:hover { color: #fff; }
.topbar i { margin-right: .35rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    background: rgba(251, 247, 238, .88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .12em; color: var(--emerald-800); }
.brand-text small { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { position: relative; font-weight: 500; font-size: .95rem; color: var(--emerald-800); padding: .3rem 0; }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { padding: .6rem 1.4rem; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--emerald-800); transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    overflow-x: clip;
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem;
    padding: 4.5rem 8% 5rem;
    min-height: calc(100vh - var(--nav-h) - 36px);
    background:
        radial-gradient(ellipse at 80% 40%, rgba(212,175,90,.22), transparent 55%),
        linear-gradient(180deg, var(--ivory), var(--sand));
}
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; font-weight: 500; color: var(--gold); margin-bottom: 1rem; }
.hero-ayah { font-family: var(--font-quran); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--emerald-700); margin-bottom: 1rem; text-align: left; direction: rtl; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin-bottom: 1.4rem; letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; font-size: .92rem; color: var(--emerald-800); }
.hero-points i { color: var(--gold); margin-right: .4rem; }

.hero-stage { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.stage-ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); animation: spin 90s linear infinite; }
.stage-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255,253,247,.95) 40%, rgba(255,253,247,0) 72%); }
.stage-logo { position: relative; width: 66%; filter: drop-shadow(0 22px 28px rgba(6,41,31,.22)); animation: float 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Band ---------- */
.band { background: var(--emerald-800); color: var(--ivory); text-align: center; padding: 2.6rem 8%; border-block: 3px double var(--gold); }
.band-ar { font-family: var(--font-quran); font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--gold-bright); margin-bottom: .5rem; }
.band-en { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }
.band-en span { display: block; margin-top: .3rem; font-family: var(--font-body); font-style: normal; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: 6rem 8%; }
.section-sand { background: var(--sand); }
.section-dark { background: radial-gradient(ellipse at 50% 0%, var(--emerald-700), var(--emerald-900) 60%); color: var(--ivory); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); margin: .6rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.on-dark h2 { color: var(--ivory); }
.on-dark h2 em { color: var(--gold-bright); }
.on-dark p { color: rgba(251,247,238,.75); }
.subhead { text-align: center; font-size: 2rem; margin: 4.5rem 0 1.8rem; }

/* 8-point star divider */
.ornament { display: inline-block; width: 150px; height: 22px; position: relative; }
.ornament::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--gold); }
.ornament::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
    background: var(--gold);
    clip-path: polygon(50% 0, 62% 24%, 85% 15%, 76% 38%, 100% 50%, 76% 62%, 85% 85%, 62% 76%, 50% 100%, 38% 76%, 15% 85%, 24% 62%, 0 50%, 24% 38%, 15% 15%, 38% 24%);
    box-shadow: 0 0 0 6px var(--ivory);
}
.section-sand .ornament::after { box-shadow: 0 0 0 6px var(--sand); }
.section-dark .ornament::after { box-shadow: none; }

.grid { display: grid; gap: 1.6rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-slider { min-width: 0; }
.card-track { display: flex; overflow-x: auto; gap: 1.2rem; padding: .35rem .2rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.card-track::-webkit-scrollbar { display: none; }
.card-track > * { flex: 0 0 calc((100% - 2.4rem) / 3); min-width: 0; scroll-snap-align: start; }
.card-track.grid-2 > * { flex-basis: calc((100% - 1.2rem) / 2); }
.card-track .feature, .card-track .course { height: 100%; }
.card-slider-controls { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .25rem; }
.card-slider-controls[hidden] { display: none; }
.card-slider-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--emerald-800); transition: background .2s, color .2s, border-color .2s; }
.card-slider-arrow:hover:not(:disabled) { border-color: var(--emerald-800); background: var(--emerald-800); color: var(--gold-bright); }
.card-slider-arrow:disabled { opacity: .4; cursor: not-allowed; }
.card-slider-status { min-width: 92px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }
.card-track.steps { max-width: none; }
.card-track.steps > li { flex: 0 0 calc((100% - 2.4rem) / 3); }

/* Features */
.feature {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.6rem; text-align: center; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 1.1rem; display: grid; place-items: center;
    font-size: 1.5rem; color: var(--gold); background: var(--emerald-800);
    clip-path: polygon(50% 0, 62% 24%, 85% 15%, 76% 38%, 100% 50%, 76% 62%, 85% 85%, 62% 76%, 50% 100%, 38% 76%, 15% 85%, 24% 62%, 0 50%, 24% 38%, 15% 15%, 38% 24%);
}
.feature h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Courses */
.course {
    position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0 1.8rem 1.8rem; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.course-arch {
    width: 92px; height: 108px; margin: 0 auto 1.1rem;
    display: grid; place-items: center; font-size: 2rem; color: var(--gold-bright);
    background: linear-gradient(180deg, var(--emerald-700), var(--emerald-900));
    border-radius: 46px 46px 0 0;
    border: 3px solid var(--gold); border-bottom: 0;
    box-shadow: inset 0 0 0 4px var(--emerald-900);
}
.tag { display: inline-block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: .15rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.course { text-align: center; }
.course h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.course p { color: var(--muted); font-size: .96rem; margin-bottom: 1.2rem; }
.link-arrow { font-weight: 500; color: var(--emerald-700); font-size: .93rem; }
.link-arrow i { margin-left: .3rem; transition: transform .25s; }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Nazra reader ---------- */
.reader { max-width: 980px; margin: 0 auto; }
.reader-controls {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.6rem; justify-content: center;
    padding: 1.1rem 1.4rem; margin-bottom: 1.6rem;
    background: rgba(255,253,247,.07); border: 1px solid rgba(212,175,90,.35); border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.field input, .field select {
    font: inherit; font-size: .98rem; letter-spacing: 0; text-transform: none;
    padding: .65rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 0;
}
.reader-controls select { min-width: 240px; }
.field-range input { padding: 0; width: 160px; accent-color: var(--gold); background: transparent; border: 0; height: 40px; }
.switch { display: inline-flex; align-items: center; gap: .6rem; color: var(--ivory); font-size: .95rem; cursor: pointer; padding-bottom: .55rem; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 44px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.2); position: relative; transition: background .25s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.switch input:checked + .switch-ui { background: var(--gold); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.mushaf {
    position: relative; background: var(--paper); color: #14211c; border-radius: 10px;
    padding: 2.6rem clamp(1.2rem, 4vw, 3.4rem) 2.4rem;
    border: 2px solid var(--gold); box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 9px var(--gold), 0 30px 70px -25px rgba(0,0,0,.6);
    max-height: 640px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}

.surah-banner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    max-width: 640px; margin: 0 auto 1.4rem; padding: .7rem 1.4rem;
    border: 1.5px solid var(--gold); border-radius: 6px;
    background: linear-gradient(90deg, rgba(184,146,62,.14), rgba(184,146,62,.04), rgba(184,146,62,.14));
}
.surah-banner h3 { font-family: var(--font-quran); font-size: 1.9rem; text-align: center; color: var(--emerald-800); font-weight: 400; }
.surah-banner-num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--emerald-800); color: var(--gold-bright); font-weight: 500; }
.surah-banner-meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; max-width: 11rem; line-height: 1.3; }
.bismillah { font-family: var(--font-quran); text-align: center; font-size: calc(var(--ayah-size, 38px) * .95); color: var(--emerald-800); margin-bottom: 1rem; }
.ayahs { font-family: var(--font-quran); font-size: var(--ayah-size, 38px); line-height: 2.25; text-align: justify; text-align-last: center; word-spacing: .12em; }
.ayah { cursor: pointer; border-radius: 8px; padding: 0 .15em; transition: background .2s; }
.ayah:hover { background: rgba(184,146,62,.12); }
.ayah.marked { background: rgba(212,175,90,.32); }
.ayah-no {
    display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin: 0 .35em; vertical-align: middle;
    font-family: var(--font-body); font-size: .4em; font-weight: 500; color: var(--emerald-800);
    border: 1.5px solid var(--gold); border-radius: 50%; background: var(--paper);
}
.ayah-en { display: block; direction: ltr; text-align: left; text-align-last: left; font-family: var(--font-body); font-size: .9rem; line-height: 1.55; color: var(--muted); margin: -.3rem 0 .8rem; }
.reader-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1.4rem; }
.loading { text-align: center; font-family: var(--font-body); font-size: 1rem; color: var(--muted); padding: 3rem 0; }

/* ---------- Duas ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.chip { padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); color: var(--emerald-800); font-size: .9rem; transition: all .25s; background: var(--paper); }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--emerald-800); color: var(--gold-soft); border-color: var(--emerald-800); }

.dua {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.5rem;
    display: flex; flex-direction: column; gap: .9rem; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.dua::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold)); }
.dua:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dua-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dua-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--emerald-800); }
.copy-btn { color: var(--gold); font-size: .95rem; padding: .35rem .6rem; border-radius: 8px; transition: background .2s; }
.copy-btn:hover { background: rgba(184,146,62,.15); }
.dua-ar { font-family: var(--font-quran); font-size: 1.85rem; line-height: 2.1; text-align: right; color: var(--ink); }
.dua-tr { font-style: italic; color: var(--emerald-700); font-size: .95rem; }
.dua-en { color: var(--muted); font-size: .95rem; }
.dua-src { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--line); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; counter-reset: s; max-width: 1100px; margin: 0 auto; position: relative; }
.steps.card-track { display: flex; max-width: none; gap: 1.2rem; }
.steps li { text-align: center; padding: 0 .6rem; }
.steps span {
    width: 70px; height: 70px; margin: 0 auto 1rem; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--gold-bright); background: var(--emerald-800);
    clip-path: polygon(50% 0, 62% 24%, 85% 15%, 76% 38%, 100% 50%, 76% 62%, 85% 85%, 62% 76%, 50% 100%, 38% 76%, 15% 85%, 24% 62%, 0 50%, 24% 38%, 15% 15%, 38% 24%);
}
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.contact-copy h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); margin: .6rem 0 1rem; }
.contact-copy p { font-size: 1.05rem; margin-bottom: 1.6rem; }
.contact-list { display: grid; gap: .9rem; }
.contact-list i { width: 34px; color: var(--gold-bright); }
.contact-list a:hover { color: var(--gold-bright); }
.trial-form { background: var(--paper); color: var(--ink); padding: 2.2rem; border-radius: 22px; border: 2px solid var(--gold); display: grid; gap: 1.1rem; box-shadow: 0 30px 70px -25px rgba(0,0,0,.6); }
.trial-form .field { color: var(--emerald-700); }
.trial-form .field input, .trial-form .field select { width: 100%; background: var(--ivory); }
.row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; text-align: center; min-height: 1.2em; color: var(--emerald-700); }
.form-note.error { color: #b3261e; }
input.invalid { border-color: #b3261e !important; }

/* ---------- Footer ---------- */
.footer { background: var(--emerald-950); color: rgba(251,247,238,.75); padding: 4rem 8% 1.6rem; text-align: center; border-top: 4px double var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; text-align: left; max-width: 1200px; margin: 0 auto 2.4rem; align-items: start; }
.footer-logo { width: 170px; background: var(--ivory); border-radius: 18px; padding: 1rem; }
.footer h4 { color: var(--gold-bright); font-size: 1.3rem; margin-bottom: .9rem; letter-spacing: .05em; }
.footer-grid a { display: block; margin-bottom: .55rem; transition: color .2s; font-size: .95rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-grid a i { width: 24px; color: var(--gold); }
.footer-dua { font-family: var(--font-quran); font-size: 1.9rem; color: var(--gold-bright); margin-bottom: 1rem; }
.footer-copy { font-size: .82rem; padding-top: 1.4rem; border-top: 1px solid rgba(212,175,90,.25); }

/* ---------- WhatsApp ---------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.9rem; box-shadow: 0 12px 26px -8px rgba(0,0,0,.45); transition: transform .25s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stage-ring, .stage-logo, .live i { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; min-height: 0; }
    .hero-ayah { text-align: center; }
    .lead { margin-inline: auto; }
    .hero-actions, .hero-points { justify-content: center; }
    .hero-stage { max-width: 420px; order: -1; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 5% 1.4rem;
        background: var(--ivory); border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(6,41,31,.4);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s ease;
    }
    .nav-links.open { transform: none; opacity: 1; visibility: visible; }
    .nav-links li { border-bottom: 1px solid rgba(184,146,62,.2); }
    .nav-links a:not(.btn) { display: block; padding: 1rem 0; }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-links li:last-child { border: 0; padding-top: 1rem; }
    .topbar { grid-template-columns: 1fr; text-align: center; padding: .4rem 5%; }
    .topbar-date, .topbar-contact { display: none; }
    .profile-nav-links { gap: .8rem; font-size: .85rem; }
    .profile-nav-links .btn { padding: .55rem .85rem; font-size: .82rem; }
    .section { padding: 4.2rem 6%; }
    .row { grid-template-columns: 1fr; }
    .surah-banner { grid-template-columns: auto 1fr; }
    .surah-banner-meta { display: none; }
    .reader-controls select, .field-range input { width: 100%; min-width: 0; }
    .reader-controls .field, .reader-controls .btn { flex: 1 1 100%; }
    .mushaf { max-height: 560px; }
    .ayahs { text-align: right; text-align-last: right; }
}

@media (max-width: 480px) {
    .brand-text small { letter-spacing: .2em; font-size: .55rem; }
    .brand-text strong { font-size: 1.45rem; }
    .brand-mark { height: 42px; }
    .footer-grid { grid-template-columns: 1fr; }
    .profile-site .nav { height: auto; min-height: var(--nav-h); flex-wrap: wrap; justify-content: center; row-gap: .4rem; padding-block: .65rem; }
    .profile-site .profile-nav-links { width: 100%; justify-content: center; padding-bottom: .15rem; }
}

/* ==========================================================
   Inquiry form, course finder, FAQ
   ========================================================== */
[hidden] { display: none !important; }

.form-title { font-size: 1.7rem; margin-bottom: .2rem; text-align: center; }
.form-fields { display: grid; gap: 1.05rem; }
.trial-form textarea { width: 100%; resize: vertical; font: inherit; font-size: .98rem; letter-spacing: 0; text-transform: none; padding: .65rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); }
.trial-form .row-even { grid-template-columns: 1fr 1fr; }
.trial-form .field span { font-weight: 500; }
.trial-form input:focus, .trial-form select:focus, .trial-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.error { font-weight: 500; }
.form-success { text-align: center; display: grid; gap: .8rem; padding: 1.4rem .4rem; }
.form-success h3 { font-size: 2rem; }
.success-ar { font-family: var(--font-quran); font-size: 2.4rem; color: var(--gold); line-height: 1.5; }
.btn-wa { background: #25d366; color: #05381b; }

/* Course finder */
.finder { max-width: 820px; margin: 0 auto; background: var(--paper); border: 2px solid var(--gold); border-radius: 24px; padding: 2.2rem clamp(1.2rem, 4vw, 2.8rem) 2.4rem; box-shadow: var(--shadow); text-align: center; position: relative; }
.finder-dots { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.2rem; }
.finder-dots i { width: 34px; height: 5px; border-radius: 99px; background: var(--sand); transition: background .3s; }
.finder-dots i.on { background: var(--gold); }
.finder h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.3rem; }
.options { display: grid; gap: .8rem; }
.opt { display: flex; align-items: center; gap: .9rem; text-align: left; padding: 1rem 1.2rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ivory); font-size: 1rem; color: var(--emerald-800); transition: all .25s; }
.opt i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--emerald-800); color: var(--gold-bright); font-size: .95rem; }
.opt:hover { border-color: var(--gold); transform: translateX(4px); background: #fff; box-shadow: 0 10px 24px -16px rgba(6,41,31,.6); }
.finder-result { padding: .4rem 0; }
.finder-result .eyebrow { margin-bottom: .5rem; }
.finder-result h3 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); margin-bottom: .6rem; }
.finder-result p#finder-desc { color: var(--muted); max-width: 32rem; margin: 0 auto 1.6rem; }
.finder-result .hero-actions { justify-content: center; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.4rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--emerald-800); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Public teacher profile ---------- */
.profile-nav-links { display: flex; align-items: center; gap: 1.7rem; color: var(--emerald-800); font-size: .93rem; font-weight: 500; }
.profile-nav-links > a:not(.btn):hover { color: var(--gold); }
.profile-hero { display: grid; grid-template-columns: minmax(260px, .82fr) 1.18fr; align-items: center; gap: clamp(2.5rem, 8vw, 7rem); min-height: 620px; background: radial-gradient(ellipse at 75% 38%, rgba(212,175,90,.17), transparent 50%), linear-gradient(180deg, var(--ivory), var(--sand)); }
.profile-hero.profile-text-only { grid-template-columns: minmax(0, 1fr); }
.profile-text-only .profile-intro { max-width: 760px; margin-inline: auto; }
.profile-coming { min-height: 55vh; display: grid; align-content: center; justify-items: center; gap: 1rem; text-align: center; }
.profile-coming h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto 2rem; }
.profile-facts > div, .profile-approach { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.profile-facts dt { color: var(--gold); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.profile-facts dd { margin-top: .35rem; color: var(--emerald-800); font-size: 1.1rem; }
.profile-approach { max-width: 1000px; margin: 0 auto; }
.profile-approach h3 { margin-bottom: .6rem; font-size: 1.6rem; }
.profile-approach p { color: var(--muted); white-space: normal; }
.legal-page { max-width: 900px; }
.legal-page h1 { margin: 0 0 1.5rem; font-size: clamp(2.6rem, 6vw, 4rem); }
.legal-page h2 { margin: 2rem 0 .6rem; font-size: 1.8rem; }
.legal-page p { margin: .7rem 0; color: var(--muted); }
.legal-page a { color: var(--emerald-700); text-decoration: underline; text-underline-offset: .15em; }
.legal-links { display: flex; justify-content: center; gap: 1rem; margin: .8rem 0 0; }
.legal-links a { text-decoration: underline; }
.consent-note { color: var(--muted); font-size: .78rem; text-align: center; }
.consent-note a { color: var(--emerald-700); text-decoration: underline; }
.landing-hero { min-height: 390px; display: grid; align-content: center; justify-items: center; gap: 1rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(212,175,90,.22), transparent 58%), linear-gradient(180deg, var(--ivory), var(--sand)); }
.landing-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 4.5rem); }
.landing-hero .lead { margin: 0 auto .4rem; max-width: 750px; }
.landing-content { max-width: 1000px; }
.landing-copy { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; align-items: start; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.landing-number { color: var(--gold); font-family: var(--font-display); font-size: 2.8rem; line-height: 1; }
.landing-copy h2 { margin-bottom: .5rem; font-size: 1.8rem; }
.landing-copy p { color: var(--muted); }
.environment-check { margin: 1rem 0 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.environment-check h2 { margin-bottom: .7rem; font-family: Georgia, serif; font-size: 1.15rem; color: var(--emerald-800); }
.environment-check ul { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-bottom: .55rem; }
.environment-check li { display: flex; gap: .35rem; font-size: .82rem; }
.environment-check .ready { color: #17705a; }
.environment-check .missing { color: #b3261e; }
.profile-portrait-wrap { width: min(100%, 410px); justify-self: center; position: relative; padding: 1.2rem; }
.profile-portrait-wrap::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 48% 48% 22px 22px; transform: rotate(-5deg); }
.profile-portrait { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; overflow: hidden; border: 5px solid var(--paper); border-radius: 48% 48% 18px 18px; background: radial-gradient(circle at 50% 37%, rgba(212,175,90,.2), transparent 38%), linear-gradient(155deg, var(--emerald-700), var(--emerald-950)); box-shadow: 0 24px 60px -30px rgba(6,41,31,.7); color: var(--gold-bright); }
.profile-portrait-image { display: block; width: 100%; object-fit: cover; }
.profile-portrait::before, .profile-portrait::after { content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(212,175,90,.3); transform: rotate(45deg); }
.profile-portrait::after { width: 155px; height: 155px; }
.profile-portrait i { position: relative; z-index: 1; display: grid; place-items: center; width: 118px; height: 118px; border: 1px solid rgba(212,175,90,.65); border-radius: 50%; background: rgba(4,32,26,.35); font-size: 3.4rem; }
.profile-portrait span { position: relative; z-index: 1; font-size: .68rem; letter-spacing: .24em; }
.profile-portrait-note { position: absolute; right: 0; bottom: 2.2rem; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); box-shadow: var(--shadow); color: var(--emerald-800); font-size: .75rem; }
.profile-portrait-note i { margin-right: .35rem; color: var(--gold); }
.profile-intro { max-width: 620px; }
.profile-arabic { margin: 1rem 0; color: var(--emerald-700); font-family: var(--font-arabic); font-size: 1.8rem; }
.profile-kicker { color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.profile-intro h1 { margin: .35rem 0 .5rem; font-size: clamp(3rem, 6vw, 5rem); }
.profile-role { color: var(--emerald-700); font-size: 1rem; font-weight: 500; }
.profile-bio { max-width: 550px; margin: 1.4rem 0; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.profile-highlights { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.profile-highlights span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,253,247,.75); color: var(--emerald-800); font-size: .82rem; }
.profile-highlights i { margin-right: .3rem; color: var(--gold); }
.profile-values .section-head { margin-bottom: 2.6rem; }
.profile-invitation { display: grid; justify-items: center; gap: 1rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--emerald-700), var(--emerald-900) 68%); color: var(--ivory); }
.profile-invitation h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3rem); }
.profile-invitation p:not(.eyebrow) { max-width: 34rem; color: rgba(251,247,238,.77); }
.profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.profile-footer .footer-logo { max-width: 170px; }

/* ---------- Our Work gallery ---------- */
.work-section { overflow: hidden; }
.work-carousel { width: min(940px, 100%); margin: 0 auto; }
.work-frame { min-height: 360px; touch-action: pan-y; }
.work-slide {
    display: grid; grid-template-columns: 1.15fr .85fr; min-height: 380px;
    overflow: hidden; background: var(--paper); border: 1px solid var(--line);
    border-radius: 24px; box-shadow: 0 26px 65px -38px rgba(6,41,31,.6);
    animation: work-enter .45s ease both;
}
.work-media { min-height: 380px; background: var(--emerald-950); display: grid; place-items: center; overflow: hidden; }
.work-media img, .work-media video { display: block; width: 100%; height: 100%; min-height: 380px; max-height: 560px; object-fit: cover; }
.work-media video { object-fit: contain; }
.work-details { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); }
.work-type { width: fit-content; padding: .35rem .8rem; border-radius: 99px; background: rgba(184,146,62,.13); color: var(--gold); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.work-details h3 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); margin: 1.1rem 0; }
.work-quote { position: relative; border: 0; padding: 1rem 0 0; background: none; color: var(--muted); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; }
.work-quote::before { content: '“'; display: block; color: var(--gold); font-size: 3.3rem; line-height: .8; }
.work-caption { color: var(--muted); font-size: 1rem; }
.work-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
.work-arrow { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--emerald-800); transition: color .2s, background .2s, border-color .2s, transform .2s; }
.work-arrow:hover { transform: translateY(-2px); border-color: var(--emerald-800); background: var(--emerald-800); color: var(--gold-bright); }
.work-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem; }
.work-dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(11,59,46,.2); transition: width .25s, background .25s; }
.work-dot.active { width: 27px; background: var(--gold); }
.work-count { min-width: 56px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }
.work-cta { margin: 1.8rem auto 0; color: var(--muted); text-align: center; }
.work-cta a { color: var(--emerald-700); font-weight: 600; }
.work-cta a:hover { color: var(--gold); }
@keyframes work-enter { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
    .profile-hero { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .profile-portrait-wrap { width: min(72vw, 310px); }
    .profile-arabic { font-size: 1.55rem; }
    .profile-highlights { justify-content: center; }
    .profile-footer { flex-direction: column; text-align: center; }
    .work-frame { min-height: 0; }
    .work-slide { grid-template-columns: 1fr; }
    .work-media, .work-media img, .work-media video { min-height: 0; height: auto; aspect-ratio: 9 / 10; }
    .work-details { min-height: 210px; }
    .work-controls { gap: .65rem; }
    .card-track > *, .card-track.steps > li { flex-basis: 84%; }
    .card-track.grid-2 > * { flex-basis: 84%; }
}
@media (min-width: 701px) and (max-width: 960px) {
    .card-track > * { flex-basis: calc((100% - 1.2rem) / 2); }
    .card-track.steps > li { flex-basis: calc((100% - 1.2rem) / 2); }
    .card-track.grid-2 > * { flex-basis: calc((100% - 1.2rem) / 2); }
}

@media (max-width: 820px) {
    .trial-form .row-even { grid-template-columns: 1fr; }
    .trial-form { padding: 1.6rem 1.2rem; }
}

/* ==========================================================
   Typography: clean, readable, balanced weights
   ========================================================== */
:root {
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --muted: #48584f;
    --gold-text: #8a6516;
}
body { font-weight: 400; font-size: 1.0625rem; color: #16261f; line-height: 1.7; }
h1, h2 { font-weight: 600; line-height: 1.15; letter-spacing: -.012em; }
h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
h2 em, h1 em { font-weight: 600; color: var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); letter-spacing: -.02em; }
.section-head h2, .contact-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.lead { font-size: 1.15rem; font-weight: 400; color: #33443d; }
.section-head p { font-size: 1.06rem; font-weight: 400; }
.feature h3, .course h3, .steps h3, .road-step h3 { font-size: 1.3rem; }
.feature p, .course p, .steps p, .dua-en, .faq p { font-size: .98rem; font-weight: 400; }
.nav-links a:not(.btn), .profile-nav-links { font-weight: 500; font-size: .95rem; }
.btn, .btn-lg { font-weight: 600; }
.eyebrow, .tag, .dua-src, .profile-facts dt { font-weight: 600; color: var(--gold-text); }
.section-dark .eyebrow, .band .eyebrow, .contact .eyebrow { color: var(--gold-bright); }
.brand-text strong { font-size: 1.45rem; font-weight: 700; letter-spacing: .1em; }
.brand-text small { font-weight: 600; }
.hero-points { font-weight: 500; font-size: .96rem; }
.band-en { font-weight: 500; }
.field, .field span, .trial-form .field span { font-weight: 500; }
.link-arrow { font-weight: 600; color: var(--emerald-700); }
.faq summary { font-size: 1.12rem; font-weight: 600; }
.chip { font-weight: 500; }

/* ---------- Learning roadmap ---------- */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; max-width: 1180px; margin: 2.5rem auto 0; position: relative; }
.roadmap::before { content: ''; position: absolute; left: 10%; right: 10%; top: 34px; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px); }
.road-step { position: relative; text-align: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 3.2rem 1.3rem 1.5rem; box-shadow: var(--shadow); margin-top: 34px; transition: transform .25s, box-shadow .25s; }
.road-step:hover { transform: translateY(-4px); }
.road-num { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold-bright); font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; border: 4px solid var(--ivory); box-shadow: 0 8px 20px -8px rgba(6, 41, 31, .5); }
.road-step h3 { margin: .3rem 0 .5rem; }
.road-step p { font-size: .98rem; margin-bottom: 1rem; color: var(--muted); }
.road-note { text-align: center; margin-top: 2rem; font-weight: 600; color: var(--emerald-700); }
@media (max-width: 900px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roadmap::before { display: none; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Ayah of the day ---------- */
.ayah-day { text-align: center; padding-block: 4.5rem; }
.ayah-card { max-width: 860px; margin: 0 auto; }
.ayah-day-ar { font-family: var(--font-quran); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 2.1; color: var(--gold-bright); margin: .6rem 0 1rem; }
.ayah-day-en { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--ivory); line-height: 1.5; }
.ayah-day-ref { margin: 1rem 0 1.4rem; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; color: var(--gold-soft); }
.link-arrow.on-dark { color: var(--gold-bright); }

/* ---------- Landing page long-form + related ---------- */
.landing-long { max-width: 46rem; margin: 2.4rem auto 0; }
.landing-long h2 { font-size: 1.7rem; margin-bottom: .6rem; }
.landing-long p { font-size: 1.06rem; line-height: 1.8; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; max-width: 1080px; margin: 1.6rem auto 0; }
.related-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .25s, box-shadow .25s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--emerald-800); }
.related-card span { font-size: .95rem; color: var(--muted); }
@media (max-width: 820px) { .related-links { grid-template-columns: 1fr; } }

/* ---------- Refined visual system ---------- */
:root {
    --emerald-950: #102922;
    --emerald-900: #173a30;
    --emerald-800: #214b3d;
    --emerald-700: #326653;
    --emerald-600: #4d806a;
    --gold: #aa8952;
    --gold-bright: #d0b477;
    --gold-soft: #e7d8b5;
    --ivory: #f8f7f2;
    --sand: #eff0e9;
    --paper: #fffefa;
    --ink: #202e28;
    --muted: #64716a;
    --line: rgba(97, 111, 99, .2);
    --gold-text: #866a39;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 22px;
    --shadow: 0 24px 64px -36px rgba(21, 48, 38, .3);
    --nav-h: 82px;
}

body {
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
}
h1, h2, h3, h4 { color: var(--emerald-900); }
h1, h2 { line-height: 1.04; letter-spacing: -.025em; }
h1 em, h2 em { color: var(--gold-text); }
.topbar {
    min-height: 38px;
    padding-block: .35rem;
    background: var(--emerald-950);
    border-bottom: 1px solid rgba(208, 180, 119, .36);
    color: var(--gold-soft);
}
.topbar-bismillah { font-size: 1.25rem; color: var(--gold-bright); }
.nav {
    padding-inline: clamp(1.2rem, 5vw, 5rem);
    background: rgba(248, 247, 242, .92);
    border-bottom-color: rgba(33, 75, 61, .12);
    box-shadow: 0 6px 24px -22px rgba(22, 43, 34, .55);
}
.brand { gap: .7rem; }
.brand-mark { height: 46px; }
.brand-text strong { font-size: 1.55rem; letter-spacing: .08em; }
.brand-text small { color: var(--gold-text); font-size: .59rem; letter-spacing: .24em; }
.nav-links { gap: clamp(1rem, 2.1vw, 2rem); }
.nav-links a:not(.btn) { font-size: .88rem; color: var(--emerald-900); }
.nav-cta { padding: .68rem 1.35rem; }
.btn {
    font-weight: 700;
    letter-spacing: .005em;
    box-shadow: none;
    transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, border-color .24s ease;
}
.btn-gold {
    color: #17271f;
    background: linear-gradient(135deg, #dec891, #c6a96d);
    box-shadow: 0 10px 24px -15px rgba(89, 67, 30, .8);
}
.btn-gold:hover { box-shadow: 0 16px 30px -16px rgba(89, 67, 30, .75); }
.btn-ghost { border-color: rgba(33, 75, 61, .38); }
.hero {
    position: relative;
    min-height: min(790px, calc(100svh - 120px));
    padding: clamp(4rem, 8vw, 7.5rem) clamp(1.5rem, 8.3vw, 9rem);
    gap: clamp(2rem, 5vw, 5rem);
    background:
        radial-gradient(ellipse at 78% 43%, rgba(211, 194, 151, .22), transparent 40%),
        linear-gradient(135deg, #faf9f4 0%, #f5f4ed 55%, #eeefe8 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 8% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170, 137, 82, .5), transparent);
    pointer-events: none;
}
.hero.pattern::before {
    opacity: .4;
    background-size: 132px;
    -webkit-mask-image: radial-gradient(ellipse at 76% 50%, #000 0%, transparent 66%);
    mask-image: radial-gradient(ellipse at 76% 50%, #000 0%, transparent 66%);
}
.hero-text { max-width: 640px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.25rem;
    color: var(--gold-text);
    font-size: .68rem;
    letter-spacing: .22em;
}
.hero .eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero-ayah {
    margin-bottom: 1.15rem;
    color: var(--emerald-700);
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    line-height: 1.7;
}
.hero h1 {
    max-width: 16ch;
    margin-bottom: 1.15rem;
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.1vw, 4.35rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: .99;
}
.hero h1 em { color: var(--gold-text); font-weight: 500; }
.lead {
    max-width: 36rem;
    margin-bottom: 1.7rem;
    color: #58665f;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.85;
}
.hero-actions { gap: .75rem; }
.hero-actions .btn-lg { min-height: 52px; padding-inline: 1.65rem; font-size: .92rem; }
.hero-points { gap: .6rem 1.2rem; margin-top: 1.55rem; color: #43554b; font-size: .82rem; }
.hero-points i { color: var(--gold-text); }
.hero-stage { max-width: 540px; }
.stage-ring { color: rgba(170, 137, 82, .7); }
.stage-glow { inset: 17%; background: radial-gradient(circle, rgba(255,254,250,.98) 28%, rgba(248,247,242,.75) 53%, transparent 74%); }
.stage-logo { width: 63%; filter: drop-shadow(0 26px 30px rgba(16, 41, 33, .2)); }
.band {
    padding: 2.7rem 8%;
    border: 0;
    background: var(--emerald-900);
}
.band-ar { color: var(--gold-bright); }
.band-en { font-size: 1.45rem; font-weight: 500; }
.band-en span { color: #d2c29e; letter-spacing: .18em; }
.section { padding: clamp(4.5rem, 8vw, 7.2rem) clamp(1.4rem, 8vw, 8rem); }
.section-sand { background: #f0f1eb; }
.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head h2, .contact-copy h2 { font-size: clamp(2.7rem, 4.5vw, 4rem); font-weight: 600; }
.section-head p { max-width: 36rem; margin-inline: auto; color: #66736c; font-size: .98rem; line-height: 1.8; }
.ornament { width: 122px; height: 18px; opacity: .85; }
.ornament::after { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.grid { gap: 1.1rem; }
.card-track { gap: 1.1rem; padding: .4rem .2rem 1.3rem; }
.feature, .course, .dua, .related-card {
    border-color: rgba(71, 95, 79, .14);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 12px 38px -32px rgba(31, 55, 42, .45);
}
.feature { padding: 2rem 1.6rem; }
.feature:hover, .course:hover { transform: translateY(-4px); border-color: rgba(170, 137, 82, .48); box-shadow: 0 25px 48px -34px rgba(31, 55, 42, .55); }
.feature-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1.25rem;
    color: var(--gold-bright);
    background: var(--emerald-900);
}
.feature h3, .course h3, .steps h3, .road-step h3 { font-size: 1.45rem; font-weight: 600; }
.feature p, .course p, .steps p, .dua-en, .faq p { color: #65716a; font-size: .91rem; line-height: 1.75; }
.course { padding: 0 1.7rem 1.7rem; }
.course-arch {
    width: 82px;
    height: 98px;
    margin-bottom: 1.15rem;
    border-color: rgba(208, 180, 119, .85);
    background: linear-gradient(180deg, #315e4e, #173a30);
}
.tag { color: var(--gold-text); border-color: rgba(170, 137, 82, .28); }
.link-arrow { color: var(--emerald-700); font-weight: 700; }
.road-step { box-shadow: 0 15px 38px -32px rgba(31, 55, 42, .6); }
.road-step:hover { box-shadow: 0 20px 44px -32px rgba(31, 55, 42, .55); }
.faq details { border-color: rgba(71, 95, 79, .16); border-radius: 16px; background: rgba(255, 254, 250, .88); }
.faq summary { font-size: 1.22rem; font-weight: 600; }
.contact.section-dark { background: radial-gradient(ellipse at 85% 5%, #345f4e 0%, transparent 50%), var(--emerald-950); }
.contact-wrap { gap: clamp(2.5rem, 6vw, 5rem); }
.contact-copy h2 { color: #faf9f4; }
.trial-form {
    border: 1px solid rgba(208, 180, 119, .28);
    border-radius: 24px;
    background: #fbfaf5;
    box-shadow: 0 28px 80px -45px rgba(0, 0, 0, .65);
}
.trial-form input, .trial-form select, .trial-form textarea {
    border-color: rgba(75, 96, 80, .2);
    border-radius: 11px;
    background: #fffefa;
}
.trial-form input:focus, .trial-form select:focus, .trial-form textarea:focus {
    outline: 2px solid rgba(170, 137, 82, .6);
    outline-offset: 1px;
}
.footer {
    padding: 4rem clamp(1.4rem, 8vw, 8rem) 1.5rem;
    border-top: 1px solid rgba(208, 180, 119, .36);
    background: #102922;
}
.footer h4 { font-size: 1.2rem; font-weight: 600; }
.footer-grid a { color: rgba(248, 247, 242, .74); font-size: .87rem; }
.footer-copy { color: rgba(248, 247, 242, .58); }
.whatsapp-float { z-index: 30; bottom: 1.35rem; right: 1.35rem; }
.js .reveal { transition-duration: .65s; }

@media (max-width: 1100px) {
    .nav-links { gap: 1.15rem; }
    .hero { padding-inline: 6%; gap: 2rem; }
    .hero h1 { font-size: clamp(2.9rem, 5vw, 4.1rem); }
}
@media (max-width: 820px) {
    .hero { min-height: 0; padding-block: 3.4rem 4.3rem; }
    .hero-stage { max-width: 390px; }
    .hero h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(3.1rem, 10vw, 4.35rem); }
    .hero .eyebrow { justify-content: center; }
    .section-head h2, .contact-copy h2 { font-size: clamp(2.6rem, 8vw, 3.6rem); }
    .contact-wrap { gap: 2.5rem; }
}
@media (max-width: 560px) {
    .topbar { min-height: 36px; }
    .topbar-bismillah { font-size: 1.05rem; }
    .nav { padding-inline: 1.05rem; }
    .brand-text strong { font-size: 1.35rem; }
    .brand-mark { height: 39px; }
    .hero { padding-inline: 1.25rem; }
    .hero-stage { max-width: 310px; }
    .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.2rem); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-points { display: grid; justify-content: center; text-align: left; }
    .section { padding-inline: 1.2rem; }
    .section-head { margin-bottom: 2rem; }
    .contact .trial-form { padding: 1.3rem; }
    .whatsapp-float { right: 1rem; bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-stage .stage-ring, .hero-stage .stage-logo { animation: none; }
    .feature, .course, .btn { transition: none; }
}

/* ---------- Bismillah welcome splash ---------- */
.splash {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center; text-align: center; padding: 2rem;
    background: radial-gradient(ellipse at 50% 40%, var(--emerald-700), var(--emerald-950) 75%);
    color: var(--gold-soft);
    transition: opacity .9s ease, visibility .9s ease;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { max-width: 640px; }
.splash-logo { width: 130px; height: 130px; object-fit: contain; padding: 22px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 3px var(--gold), 0 18px 40px -12px rgba(0,0,0,.6); margin: 0 auto 1.6rem; opacity: 0; animation: splashIn 1s .1s forwards; }
.splash-bismillah {
    font-family: var(--font-quran); font-size: clamp(2.2rem, 6.5vw, 4rem); line-height: 1.9;
    color: var(--gold-bright); direction: rtl;
    opacity: 0; animation: splashIn 1.4s .4s forwards;
}
.splash-en { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin-top: .4rem; opacity: 0; animation: splashIn 1.2s 1s forwards; }
.splash-btn {
    margin-top: 2rem; opacity: 0; animation: splashIn 1s 1.5s forwards;
}
.splash-skip { display: block; margin: 1rem auto 0; font-size: .85rem; color: var(--gold-soft); opacity: .7; text-decoration: underline; }
@keyframes splashIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash *, .splash { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; } }
.audio-toggle {
    position: fixed;
    left: clamp(1rem, 3vw, 2rem);
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 90;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(208, 180, 119, .72);
    border-radius: 50%;
    background: rgba(23, 58, 48, .96);
    color: var(--gold-bright);
    box-shadow: 0 12px 28px -15px rgba(8, 24, 18, .75);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.audio-toggle:hover { transform: translateY(-2px); background: var(--emerald-800); box-shadow: 0 16px 32px -15px rgba(8, 24, 18, .8); }
.audio-toggle i { font-size: 1rem; }
.audio-toggle[hidden] { display: none; }
