/* Mizaan site. Ivory/beige base (from the owner's draft) with the brand's navy and gold (brand/style.json). */
:root {
  --navy-950: #0a1622;
  --navy: #0f2030;
  --navy-800: #16304a;
  --navy-700: #1f3d5c;
  --gold: #c8a040;
  --gold-600: #b08a35;
  --gold-700: #8c6a2a;
  --gold-300: #e6d2a8;
  --gold-100: #f5ebd4;
  --cream: #f3e9d2;
  --ivory: #fbf8f1;
  --ivory-100: #f6f0e3;
  --ivory-200: #ece3ce;
  --surface: #ffffff;
  --emerald: #2e8a6e;
  --text: #0f2030;
  --text-2: #3e4f66;
  --muted: #6b7a8e;
  --on-dark: #f6f0e3;
  --on-dark-2: rgba(246, 240, 227, .7);
  --line: rgba(15, 32, 48, .10);
  --line-2: rgba(15, 32, 48, .18);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Poppins', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --arabic: 'Amiri', 'Scheherazade New', serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 32, 48, .05), 0 12px 32px -12px rgba(15, 32, 48, .18);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--text); font: 400 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-700); font-weight: 500; }
p { margin: 0 0 1em; color: var(--text-2); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem/1 var(--body);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--on-dark); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font: 600 1.55rem/1 var(--display); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); background: var(--ivory-100); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--gold-100); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font: 600 .95rem/1 var(--body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--on-dark); }
.btn-primary:hover { background: var(--navy-800); color: var(--on-dark); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: #d4ae52; color: var(--navy-950); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  background: var(--navy); color: var(--on-dark); border-radius: 14px; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.store:hover { color: var(--on-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; opacity: .75; line-height: 1.2; }
.store strong { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.2; }
.dark .store { background: var(--ivory); color: var(--navy); }
.dark .store:hover { color: var(--navy); }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.alt { background: var(--ivory-100); border-block: 1px solid var(--line); }
.dark { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3 { color: var(--ivory); }
.dark h1 em, .dark h2 em { color: var(--gold); }
.dark p, .dark .lead { color: var(--on-dark-2); }
.dark .eyebrow { color: var(--gold); }
.dark a:not(.btn):not(.store) { color: var(--gold-300); }
.pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c8a040' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
}
.dark > * { position: relative; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -20%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(200, 160, 64, .16), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.hero .lead { margin-bottom: 32px; }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.phone { width: min(320px, 78vw); margin-inline: auto; filter: drop-shadow(0 40px 60px rgba(15, 32, 48, .28)); }
.phone-pair { display: flex; justify-content: center; align-items: flex-end; }
.phone-pair .phone { width: min(280px, 44vw); }
.phone-pair .phone + .phone { margin-left: -60px; transform: translateY(40px); }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ivory-100), var(--ivory)); }
.page-hero .lead { margin-bottom: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--surface); }
.stat { padding: 28px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--display); color: var(--navy); }
.stat span { display: block; margin-top: 8px; font-size: .84rem; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 1.45rem; margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--navy); color: var(--gold);
}
.icon svg { width: 24px; height: 24px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font: 600 .7rem/1.4 var(--body);
  letter-spacing: .08em; text-transform: uppercase; background: var(--gold-100); color: var(--gold-700); margin-bottom: 14px;
}
.tag.soon { background: rgba(46, 138, 110, .12); color: #1f5d4c; }
.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(246, 240, 227, .12); }
.dark .card h3 { color: var(--ivory); }
.roman { font: italic 500 1.1rem/1 var(--display); color: var(--gold-700); margin-bottom: 12px; display: block; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 112px); }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%238c6a2a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.dark .ticks li { color: var(--on-dark-2); }
.dark .ticks li::before { background-color: rgba(200, 160, 64, .18); }

/* Verse / daily cards */
.verse {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 5vw, 48px);
  text-align: center; box-shadow: var(--shadow); position: relative;
}
.verse::before, .verse::after { content: ""; position: absolute; left: 50%; width: 60px; height: 1px; background: var(--gold); transform: translateX(-50%); }
.verse::before { top: 20px; }
.verse::after { bottom: 20px; }
.ar { font-family: var(--arabic); direction: rtl; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 2; color: var(--navy); margin: 0 0 16px; }
.verse .en { font: italic 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.45 var(--display); color: var(--text); margin: 0 auto 14px; max-width: 42ch; }
.verse .ref { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; margin: 0; }
.verse .tr { font-size: .95rem; color: var(--muted); font-style: italic; margin: 0 auto 14px; max-width: 60ch; }
.dark .verse { background: rgba(255, 255, 255, .04); border-color: rgba(246, 240, 227, .14); box-shadow: none; }
.dark .verse .ar { color: var(--ivory); }
.dark .verse .en { color: var(--ivory); }
.dark .verse .ref { color: var(--gold); }
.daily-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.daily-tabs button {
  font: 500 .88rem/1 var(--body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-2); cursor: pointer; min-height: 40px;
}
.daily-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }

/* Speakers */
.speaker { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.speaker .cover { aspect-ratio: 4/3; background: var(--navy); position: relative; overflow: hidden; }
.speaker .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.speaker .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.speaker ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.speaker li { font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: var(--ivory-100); color: var(--text-2); border: 1px solid var(--line); }

/* Prayer times */
.prayer { background: var(--navy); color: var(--on-dark); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.prayer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.prayer-head h3 { color: var(--ivory); margin: 0; }
.prayer-head p { margin: 4px 0 0; color: var(--on-dark-2); font-size: .9rem; }
.times { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.time { background: rgba(255, 255, 255, .05); border: 1px solid rgba(246, 240, 227, .12); border-radius: 14px; padding: 16px 10px; text-align: center; }
.time span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.time b { display: block; font: 600 1.6rem/1.2 var(--display); color: var(--ivory); margin-top: 6px; }
.time.next { background: var(--gold); border-color: var(--gold); }
.time.next span, .time.next b { color: var(--navy-950); }
.prayer-foot { margin: 18px 0 0; font-size: .8rem; color: var(--on-dark-2); }

/* Names */
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.name { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; }
.name .ar { font-size: 1.6rem; line-height: 1.6; margin: 0; }
.name b { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); }
.name span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.name i { display: block; font: normal 600 .66rem/1 var(--body); color: var(--gold-700); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: .84rem; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }

/* Video */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--navy-950); box-shadow: var(--shadow); }
.video.short { aspect-ratio: 9/16; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(15, 32, 48, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23c8a040'/%3E%3C/svg%3E") center/34px no-repeat;
  border: 1px solid rgba(200, 160, 64, .6); transition: transform .15s;
}
.video button:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.video-cap { margin: 14px 0 0; font-size: .92rem; color: var(--text-2); }
.video-cap b { display: block; color: var(--navy); font-weight: 600; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #b23a48; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d64553; box-shadow: 0 0 0 4px rgba(214, 69, 83, .18); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--navy); min-width: 200px;
}
.social:hover { box-shadow: var(--shadow); color: var(--navy); }
.social svg { width: 22px; height: 22px; color: var(--gold-700); flex: none; }
.social small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.social strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }

/* Giving */
.pledge { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.pledge-num { font: 600 clamp(5rem, 14vw, 9.5rem)/1 var(--display); color: var(--gold); }
.pledge-num sup { font-size: .45em; vertical-align: super; }
.charity { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.charity .mark { width: 72px; height: 72px; border-radius: 18px; background: var(--ivory-100); border: 1px solid var(--line); display: grid; place-items: center; font: 600 1.4rem/1 var(--display); color: var(--navy); }
.note { background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: 14px; padding: 18px 22px; font-size: .92rem; color: var(--text-2); }
.note strong { color: var(--navy); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--display); color: var(--gold-700); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; }

/* Legal */
.legal h2 { font-size: 1.7rem; margin-top: 2em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.6em; }
.legal ul { color: var(--text-2); padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .meta { font-size: .9rem; color: var(--muted); }
.draft-banner { background: #fdf3d7; border-bottom: 1px solid var(--gold-300); color: var(--gold-700); text-align: center; font-size: .86rem; font-weight: 500; padding: 10px 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.6em; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
table.data th { color: var(--navy); font-weight: 600; background: var(--ivory-100); }
.table-scroll { overflow-x: auto; }

/* CTA + footer */
.cta { text-align: center; }
.cta .stores { justify-content: center; margin-top: 28px; }
.cta img { width: 88px; margin: 0 auto 24px; }
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: 64px 0 32px; font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--on-dark-2); text-decoration: none; }
.foot a:hover { color: var(--ivory); }
.foot .brand { color: var(--ivory); margin-bottom: 16px; }
.foot p { color: var(--on-dark-2); max-width: 36ch; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(246, 240, 227, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line-2); background: transparent; color: var(--navy); cursor: pointer;
  }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 24px;
    background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }
  .nav .btn-cta { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .times { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .split, .pledge, .g2, .g3 { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-visual { order: -1; }
  .phone-pair .phone + .phone { margin-left: -40px; transform: translateY(24px); }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .g4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .charity { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .times { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Scholar face grid on the home page stays three across. */
.faces img { width: 100%; }
@media (max-width: 820px) {
  .grid.faces { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .faces img { margin-top: 0 !important; }
}
