/*
 * Kompleks Falak Al-Khawarizmi — public site refresh.
 * Visual language mirrors the Mufti Melaka editorial system: warm ivory,
 * deep emerald, muted gold, Marcellus headings, restrained motion.
 */

:root {
  --mm-bg: #f7f3ea;
  --mm-surface: #fcfaf4;
  --mm-ink: #17281f;
  --mm-ink-soft: #5e6e64;
  --mm-primary: #0e5a40;
  --mm-primary-d: #0a3326;
  --mm-primary-d2: #10241b;
  --mm-gold: #c2a14d;
  --mm-gold-soft: #e4d6ac;
  --mm-gold-ink: #8b6e28;
  --mm-border: #e3dac4;
  --mm-cream-2: #f5efdf;
  --mm-utility-ink: #cbbE97;
  --mm-radius-lg: 22px;
  --mm-radius-md: 16px;
  --mm-radius-sm: 12px;
  --mm-container: 1240px;
  --mm-shadow-card: 0 14px 34px rgba(10, 51, 38, .10);
  --mm-shadow-hero: 0 24px 50px rgba(10, 51, 38, .14);
  --mm-shadow-mega: 0 30px 60px rgba(10, 51, 38, .18);
}

html[data-theme="dark"] {
  --mm-bg: #10170f;
  --mm-surface: #1b2620;
  --mm-ink: #edefe9;
  --mm-ink-soft: #a7b8ad;
  --mm-primary: #34a583;
  --mm-primary-d: #1f7d5f;
  --mm-primary-d2: #123b2c;
  --mm-gold: #d2b15c;
  --mm-gold-soft: #ead9a8;
  --mm-gold-ink: #d8bb72;
  --mm-border: #2e3c34;
  --mm-cream-2: #223028;
  --mm-utility-ink: #cbbE97;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  color: var(--mm-ink);
  background: var(--mm-bg);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body h1,
body h2,
body h3,
body h4 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  color: var(--mm-ink);
  letter-spacing: -.02em;
}

html[data-theme="dark"] body { background: var(--mm-bg); color: var(--mm-ink); }
html[data-theme="dark"] .mm-utilbar,
html[data-theme="dark"] .mm-footer { background: #123b2c; }
body a { color: var(--mm-primary); text-decoration: none; }
body a:hover { color: var(--mm-gold-ink); }
body ::selection { background: var(--mm-gold); color: #fff; }

.mm-skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mm-gold);
  color: var(--mm-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.mm-skip:focus { transform: translateY(0); }

.mm-container {
  width: 100%;
  max-width: var(--mm-container);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── Utility bar ─────────────────────────────────────────────────── */

.mm-topstack { position: sticky; top: 0; z-index: 90; }

.mm-utilbar {
  background: var(--mm-primary-d);
  color: var(--mm-utility-ink);
  font-size: .78rem;
  letter-spacing: .02em;
}
.mm-utilbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 24px;
  max-width: var(--mm-container);
  margin: 0 auto;
  box-sizing: border-box;
}
.mm-utilbar-left,
.mm-utilbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.mm-utilbar a { color: var(--mm-utility-ink); }
.mm-utilbar a:hover { color: #fff; }
.mm-utilbar .mm-hijri { color: var(--mm-gold-soft); font-weight: 600; }
.mm-utilbar .mm-sep { opacity: .45; }

.mm-a11y { display: inline-flex; align-items: center; gap: 4px; }
.mm-a11y button {
  min-width: 26px;
  min-height: 24px;
  padding: 2px 6px;
  border: 1px solid #3e5a4c;
  border-radius: 5px;
  background: transparent;
  color: var(--mm-utility-ink);
  font: inherit;
  font-size: .86em;
  cursor: pointer;
}
.mm-a11y button:hover { border-color: var(--mm-gold); color: #fff; }

.mm-utilbar .language-switcher { position: relative; }
.mm-utilbar .language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #3e5a4c;
  border-radius: 999px;
  color: var(--mm-utility-ink);
  list-style: none;
  cursor: pointer;
  font-size: .86em;
  font-weight: 700;
}
.mm-utilbar .language-switcher summary::-webkit-details-marker { display: none; }
.mm-utilbar .language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 3px;
  min-width: 156px;
  padding: 6px;
  border: 1px solid var(--mm-border);
  border-radius: 12px;
  background: var(--mm-surface);
  box-shadow: var(--mm-shadow-card);
  z-index: 120;
}
.mm-utilbar .language-options button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mm-ink);
  font: inherit;
  font-size: .86em;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.mm-utilbar .language-options button:hover,
.mm-utilbar .language-options button[aria-pressed="true"] {
  background: var(--mm-cream-2);
  color: var(--mm-primary);
}

/* ── Header + mega menu ──────────────────────────────────────────── */

.mm-header {
  position: relative;
  background: var(--mm-surface);
  border-bottom: 1px solid var(--mm-border);
  box-shadow: 0 2px 20px rgba(20, 40, 30, .06);
}
.mm-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  max-width: var(--mm-container);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.mm-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  min-width: 0;
  color: var(--mm-ink);
  font-weight: 700;
  letter-spacing: -.02em;
}
.mm-brand:hover { color: var(--mm-primary); }
.mm-brand .mm-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--mm-border);
  background: var(--mm-bg);
  color: var(--mm-primary);
}
.mm-brand .mm-mark svg { width: 25px; height: 25px; }
.mm-brand-name { display: grid; gap: 1px; min-width: 0; }
.mm-brand-name strong {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-brand-name small {
  color: var(--mm-ink-soft);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  min-width: 0;
}
.mm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 76px;
  padding: 0 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--mm-ink);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.mm-nav-link:hover,
.mm-nav-item[open] > .mm-nav-link { color: var(--mm-primary); border-bottom-color: var(--mm-gold); }
.mm-nav-item { position: static; }
.mm-nav-item > summary { list-style: none; }
.mm-nav-item > summary::-webkit-details-marker { display: none; }

.mm-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  background: var(--mm-surface);
  border-top: 1px solid var(--mm-border);
  border-bottom: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow-mega);
  z-index: 95;
}
.mm-nav-item[open] > .mm-mega { display: block; }
.mm-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: var(--mm-container);
  margin: 0 auto;
  padding: 26px 24px 30px;
  box-sizing: border-box;
}
.mm-mega-inner.mm-mega-1 { grid-template-columns: minmax(0, 360px); }
.mm-mega-inner.mm-mega-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-mega-inner.mm-mega-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-mega-inner.mm-mega-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm-mega-col { display: grid; gap: 8px; align-content: start; }
.mm-mega-col-title {
  color: var(--mm-gold-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mm-mega-col a {
  color: var(--mm-ink);
  font-size: .85rem;
  font-weight: 550;
  line-height: 1.35;
}
.mm-mega-col a:hover { color: var(--mm-primary); }
.mm-mega-note {
  margin: 0;
  color: var(--mm-ink-soft);
  font-size: .78rem;
  line-height: 1.55;
}

.mm-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.mm-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mm-border);
  border-radius: 999px;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-size: .95rem;
  cursor: pointer;
}
.mm-icon-btn:hover { border-color: var(--mm-gold); color: var(--mm-primary); }
.mm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--mm-gold);
  color: var(--mm-ink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mm-cta:hover { background: var(--mm-primary); color: #fff; }
.mm-menu-btn { display: none; }

/* ── Hero slider ─────────────────────────────────────────────────── */

.mm-hero {
  position: relative;
  overflow: hidden;
  background: var(--mm-primary-d);
}
.mm-hero-track { display: flex; transition: transform .8s cubic-bezier(.6, 0, .2, 1); }
.mm-hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(520px, 68vh, 650px);
  overflow: hidden;
  color: #fff;
}
.mm-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.mm-hero-slide:first-child img { object-position: center 60%; }
.mm-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 38, 28, .94) 0%, rgba(7, 38, 28, .78) 42%, rgba(7, 38, 28, .16) 76%),
    linear-gradient(0deg, rgba(3, 31, 24, .48), transparent 58%);
  pointer-events: none;
}
.mm-hero-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.mm-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-width: 700px;
  padding: 24px 0 54px;
}
.mm-hero-arabic {
  font-family: "Amiri", serif;
  color: var(--mm-gold);
  font-size: 1.8rem;
  line-height: 1;
}
.mm-hero-kicker {
  color: var(--mm-gold-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mm-hero-title {
  margin: 0;
  color: #fdfaf2;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.mm-hero-title em { color: var(--mm-gold); font-style: normal; }
.mm-hero-sub {
  max-width: 520px;
  margin: 0;
  color: #d9e5dc;
  font-size: 1rem;
  line-height: 1.65;
}
.mm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.mm-btn-gold,
.mm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mm-btn-gold { background: var(--mm-gold); border: 1.5px solid var(--mm-gold); color: var(--mm-ink); }
.mm-btn-gold:hover { background: var(--mm-bg); border-color: var(--mm-bg); color: var(--mm-ink); }
.mm-btn-outline { border: 1.5px solid rgba(247, 243, 234, .55); color: #f7f3ea; }
.mm-btn-outline:hover { border-color: var(--mm-gold); color: var(--mm-gold); }

.mm-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 243, 234, .38);
  border-radius: 50%;
  background: rgba(10, 51, 38, .38);
  color: #f7f3ea;
  font-size: 1.2rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.mm-hero-nav:hover { background: var(--mm-gold); border-color: var(--mm-gold); color: var(--mm-ink); }
.mm-hero-prev { left: 18px; }
.mm-hero-next { right: 18px; }
.mm-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.mm-hero-dots button {
  width: 30px;
  height: 32px;
  padding: 13px 0;
  border: 0;
  border-radius: 3px;
  background: rgba(247, 243, 234, .42);
  background-clip: content-box;
  cursor: pointer;
}
.mm-hero-dots button[aria-current="true"] { background: var(--mm-gold); background-clip: content-box; }

/* ── Prayer card ─────────────────────────────────────────────────── */

.mm-prayer {
  position: relative;
  z-index: 6;
  max-width: var(--mm-container);
  margin: -50px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}
.mm-prayer-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px 26px;
  border: 1px solid var(--mm-border);
  border-radius: 18px;
  background: var(--mm-surface);
  box-shadow: var(--mm-shadow-hero);
}
.mm-prayer-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 176px;
  padding-right: 22px;
  border-right: 1px solid var(--mm-border);
}
.mm-prayer-title .mm-eyebrow {
  color: var(--mm-gold-ink);
  font-size: .64rem;
  letter-spacing: .18em;
}
.mm-prayer-title .mm-place {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.12rem;
  color: var(--mm-ink);
  line-height: 1.2;
}
.mm-prayer-title .mm-hijri-small { color: var(--mm-ink-soft); font-size: .7rem; }
.mm-prayer-slots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.mm-prayer-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 3px;
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  background: transparent;
}
.mm-prayer-slot .lbl {
  color: var(--mm-gold-ink);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mm-prayer-slot .val {
  color: var(--mm-ink);
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mm-prayer-slot.is-next { background: var(--mm-primary); border-color: var(--mm-primary); }
.mm-prayer-slot.is-next .lbl { color: var(--mm-gold-soft); }
.mm-prayer-slot.is-next .val { color: #fff; }

/* ── Section chrome ──────────────────────────────────────────────── */

.mufti-home.mm-home { --home-ink: var(--mm-ink); color: var(--mm-ink); }
.mm-section { padding: 44px 0; }
.mm-section-lg { padding: 58px 0; }
.mm-section-tinted { background: var(--mm-cream-2); }
.mm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.mm-eyebrow {
  color: var(--mm-gold-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.mm-h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.mm-section-head p {
  max-width: 46ch;
  margin: 0;
  color: var(--mm-ink-soft);
  font-size: .9rem;
}
.mm-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mm-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mm-more:hover { color: var(--mm-gold-ink); }

/* ── e-Services ──────────────────────────────────────────────────── */

.mm-eservice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mm-eservice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  color: var(--mm-ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mm-eservice:hover {
  transform: translateY(-3px);
  border-color: var(--mm-gold);
  box-shadow: var(--mm-shadow-card);
  color: var(--mm-ink);
}
.mm-eservice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--mm-primary);
  color: var(--mm-gold);
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.1rem;
}
.mm-eservice-body { display: grid; gap: 3px; min-width: 0; }
.mm-eservice-body strong { font-size: .92rem; font-weight: 800; }
.mm-eservice-body span { color: var(--mm-ink-soft); font-size: .78rem; line-height: 1.55; }

/* ── Content cards ───────────────────────────────────────────────── */

.mm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.mm-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  color: var(--mm-ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mm-card:hover {
  transform: translateY(-4px);
  border-color: var(--mm-gold);
  box-shadow: var(--mm-shadow-card);
  color: var(--mm-ink);
}
.mm-card-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.mm-card-body { display: grid; gap: 7px; padding: 19px 20px 21px; }
.mm-card-body h3 { margin: 0; font-size: 1.25rem; line-height: 1.18; }
.mm-card-body p { margin: 0; color: var(--mm-ink-soft); font-size: .86rem; line-height: 1.55; }
.mm-card-link {
  margin-top: 3px;
  color: var(--mm-gold-ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mm-card:hover .mm-card-link { color: var(--mm-primary); }

/* ── News + announcements ────────────────────────────────────────── */

.mm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.mm-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mm-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  color: var(--mm-ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mm-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--mm-gold);
  box-shadow: var(--mm-shadow-card);
  color: var(--mm-ink);
}
.mm-news-thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--mm-primary-d), var(--mm-primary));
  background-size: cover;
  background-position: center;
}
.mm-news-body { display: grid; gap: 7px; padding: 17px; }
.mm-news-meta {
  color: var(--mm-gold-ink);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mm-news-title { margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.42; }
.mm-news-card p { margin: 0; color: var(--mm-ink-soft); font-size: .78rem; line-height: 1.55; }
.mm-announce-list { display: grid; gap: 11px; }
.mm-announce {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--mm-border);
  border-left: 4px solid var(--mm-primary);
  border-radius: 12px;
  background: var(--mm-surface);
  color: var(--mm-ink);
}
.mm-announce:hover { border-color: var(--mm-gold); border-left-color: var(--mm-gold); color: var(--mm-ink); }
.mm-announce .meta {
  color: var(--mm-gold-ink);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mm-announce strong { font-size: .9rem; line-height: 1.4; }
.mm-announce span { color: var(--mm-ink-soft); font-size: .78rem; line-height: 1.55; }

/* ── Falak strip ─────────────────────────────────────────────────── */

.mm-falak {
  position: relative;
  overflow: hidden;
  background: var(--mm-primary-d2);
  color: var(--mm-bg);
}
.mm-falak::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(194, 161, 77, .14), transparent 38%),
    radial-gradient(circle at 88% 80%, rgba(52, 165, 131, .16), transparent 42%);
}
.mm-falak-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  padding: 68px 0;
}
.mm-falak-left { display: grid; gap: 16px; }
.mm-falak-arabic { color: var(--mm-gold); font-family: "Amiri", serif; font-size: 2.1rem; line-height: 1; }
.mm-falak-h2 { margin: 0; color: var(--mm-bg); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; }
.mm-falak-lede { margin: 0; color: #b9c8bd; font-size: .92rem; line-height: 1.7; }
.mm-falak-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1.5px solid var(--mm-gold);
  border-radius: 999px;
  color: var(--mm-gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mm-falak-btn:hover { background: var(--mm-gold); color: var(--mm-primary-d2); }
.mm-falak-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mm-falak-card {
  display: grid;
  gap: 5px;
  padding: 19px;
  border: 1px solid rgba(194, 161, 77, .3);
  border-radius: var(--mm-radius-md);
  background: rgba(247, 243, 234, .05);
  color: var(--mm-bg);
}
.mm-falak-card:hover { background: rgba(194, 161, 77, .14); border-color: var(--mm-gold); color: var(--mm-bg); }
.mm-falak-card.is-featured { grid-column: 1 / -1; }
.mm-falak-card .meta {
  color: var(--mm-gold);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mm-falak-card strong { font-family: "Marcellus", Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.mm-falak-card.is-featured strong { font-size: 1.28rem; }
.mm-falak-card span { color: #b9c8bd; font-size: .76rem; line-height: 1.5; }

/* ── Visit planner ───────────────────────────────────────────────── */

.mm-visit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mm-visit-card {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  color: var(--mm-ink);
  transition: transform .2s ease, border-color .2s ease;
}
.mm-visit-card:hover { transform: translateY(-3px); border-color: var(--mm-gold); color: var(--mm-ink); }
.mm-visit-card .num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mm-primary);
  color: var(--mm-gold);
  font-family: "Marcellus", Georgia, serif;
  font-size: .9rem;
}
.mm-visit-card strong { font-size: .9rem; }
.mm-visit-card span { color: var(--mm-ink-soft); font-size: .76rem; line-height: 1.5; }

/* ── Booking calendar ────────────────────────────────────────────── */

.mm-booking .tcal {
  border: 1px solid rgba(194, 161, 77, .42);
  border-radius: 20px;
  background: linear-gradient(145deg, #0a3326, #0e5a40 62%, #08291f);
  box-shadow: 0 22px 54px rgba(8, 48, 36, .18);
}
.mm-booking .tcal-aurora {
  background: radial-gradient(ellipse at 78% 15%, rgba(194, 161, 77, .18), transparent 46%);
  filter: blur(30px);
  animation: none;
}
.mm-booking .tcal-nav { border-color: rgba(194, 161, 77, .5); background: rgba(194, 161, 77, .12); color: var(--mm-gold-soft); }
.mm-booking .tcal-nav:hover:not(:disabled) { background: rgba(194, 161, 77, .26); box-shadow: 0 0 16px rgba(194, 161, 77, .2); }
.mm-booking .tcal-week span,
.mm-booking .tcal-label { color: var(--mm-gold-soft); }
.mm-booking .tcal-day { border-color: rgba(247, 243, 234, .1); background: rgba(247, 243, 234, .06); color: #f7f3ea; }
.mm-booking .tcal-day .tcal-dot { background: var(--mm-gold); box-shadow: 0 0 8px var(--mm-gold); }
.mm-booking .tcal-day:hover:not(:disabled) { border-color: var(--mm-gold); box-shadow: 0 8px 18px rgba(194, 161, 77, .18); }
.mm-booking .tcal-day.is-selected,
.mm-booking .tcal-chip.is-selected { background: var(--mm-gold); border-color: var(--mm-gold); color: var(--mm-ink); }
.mm-booking .tcal-chip { border-color: rgba(194, 161, 77, .45); background: rgba(194, 161, 77, .08); color: #f7f3ea; }
.mm-booking .tcal-chip small { color: var(--mm-gold-soft); }
.mm-booking .tcal-chip.is-selected small { color: #45513f; }
.mm-booking .tcal-summary { color: #e8e1cf; }
.mm-booking .tcal-foot { border-top-color: rgba(247, 243, 234, .16); }
.mm-booking .tcal-cta { background: var(--mm-gold); color: var(--mm-ink); }
.mm-booking .tcal-day.is-full { background: rgba(247, 243, 234, .04); border-color: rgba(247, 243, 234, .12); color: #aab5a8; }
.mm-booking .tcal-chip.is-full { border-color: rgba(247, 243, 234, .14); color: #aab5a8; background: rgba(247, 243, 234, .04); }

/* ── Agencies ────────────────────────────────────────────────────── */

.mm-agency { text-align: center; }
.mm-agency-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.mm-agency-links a {
  padding: 9px 17px;
  border: 1px solid var(--mm-border);
  border-radius: 999px;
  background: var(--mm-surface);
  color: var(--mm-ink);
  font-size: .78rem;
  font-weight: 700;
}
.mm-agency-links a:hover { border-color: var(--mm-gold); color: var(--mm-primary); }

/* ── Footer ──────────────────────────────────────────────────────── */

.mm-footer { background: var(--mm-primary-d); color: #a9baae; }
.mm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 38px;
  padding: 58px 0 32px;
}
.mm-footer-brand { display: grid; gap: 10px; align-content: start; }
.mm-footer-brand .mm-brand { color: #f7f3ea; }
.mm-footer-brand .mm-mark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--mm-gold); }
.mm-footer-brand p { margin: 0; color: #a9baae; font-size: .82rem; line-height: 1.65; }
.mm-footer-col { display: grid; gap: 8px; align-content: start; }
.mm-footer-col-title {
  color: var(--mm-gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.mm-footer-col a,
.mm-footer-col p { margin: 0; color: #a9baae; font-size: .82rem; line-height: 1.55; }
.mm-footer-col a:hover { color: #fff; }
.mm-footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(194, 161, 77, .16);
}
.mm-footer-policy a { color: #a9baae; font-size: .74rem; }
.mm-footer-policy a:hover { color: #fff; text-decoration: underline; }
.mm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(194, 161, 77, .16);
  color: #a9baae;
  font-size: .72rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .mm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--mm-surface);
    border-bottom: 1px solid var(--mm-border);
    box-shadow: var(--mm-shadow-mega);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    z-index: 96;
  }
  .mm-nav.is-open { display: flex; }
  .mm-nav-link {
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--mm-border);
    font-size: .8rem;
  }
  .mm-nav-item { width: 100%; }
  .mm-mega {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    background: var(--mm-bg);
  }
  .mm-nav-item[open] > .mm-mega { display: block; }
  .mm-mega-inner { grid-template-columns: 1fr; gap: 16px; padding: 14px 12px 18px; }
  .mm-mega-col { gap: 6px; }
  .mm-menu-btn { display: inline-grid; }
  .mm-brand-name strong { font-size: .92rem; }
  .mm-brand-name small { display: none; }
  .mm-cta { display: none; }
  .mm-header-inner { min-height: 64px; }
  .mm-tools { margin-left: auto; }
}

@media (max-width: 900px) {
  .mm-hero-slide { height: clamp(480px, 72vh, 620px); }
  .mm-hero-body .mm-container { padding-inline: 24px; }
  .mm-hero-copy { max-width: 620px; }
  .mm-hero-nav { display: none; }
  .mm-prayer-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mm-prayer-title { border-right: 0; padding-right: 0; }
  .mm-eservice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-two-col { grid-template-columns: 1fr; }
  .mm-falak-grid { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .mm-visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 44px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 104px; }
  .mm-container { padding-inline: 18px; }
  .mm-utilbar-inner { padding: 6px 18px; gap: 8px; }
  .mm-utilbar-left .mm-sep,
  .mm-utilbar-left a:not(.mm-hijri),
  .mm-utilbar-right .mm-sep { display: none; }
  .mm-utilbar-right { margin-left: auto; gap: 8px; }
  .mm-utilbar .mm-util-online { display: none; }
  .mm-a11y button { min-width: 28px; min-height: 28px; }
  .mm-header-inner { padding-inline: 18px; gap: 8px; }
  .mm-brand .mm-mark { width: 38px; height: 38px; }
  .mm-brand .mm-mark svg { width: 22px; height: 22px; }
  .mm-brand-name strong { font-size: .84rem; }
  .mm-icon-btn { width: 38px; height: 38px; }
  .mm-hero-slide { height: clamp(470px, 76vh, 590px); }
  .mm-hero-body .mm-container { padding-inline: 18px; }
  .mm-hero-copy { gap: 13px; padding-bottom: 46px; max-width: 100%; }
  .mm-hero-arabic { font-size: 1.5rem; }
  .mm-hero-title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .mm-hero-sub { font-size: .9rem; }
  .mm-hero-actions .mm-btn-gold,
  .mm-hero-actions .mm-btn-outline { width: 100%; }
  .mm-hero-dots { bottom: 16px; }
  .mm-prayer { margin-top: -28px; padding-inline: 14px; }
  .mm-prayer-card { padding: 15px; gap: 12px; border-radius: 15px; }
  .mm-prayer-title { min-width: 100%; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
  .mm-prayer-title .mm-eyebrow { display: none; }
  .mm-prayer-title .mm-place { font-size: .95rem; }
  .mm-prayer-title .mm-hijri-small { font-size: .66rem; }
  .mm-prayer-slots { display: flex; overflow-x: auto; gap: 6px; padding: 0 0 6px; scrollbar-width: thin; scrollbar-color: var(--mm-gold) var(--mm-cream-2); }
  .mm-prayer-slots::-webkit-scrollbar { height: 4px; }
  .mm-prayer-slots::-webkit-scrollbar-track { background: var(--mm-cream-2); border-radius: 99px; }
  .mm-prayer-slots::-webkit-scrollbar-thumb { background: var(--mm-gold); border-radius: 99px; }
  .mm-prayer-slot { flex: 0 0 68px; }
  .mm-section { padding: 34px 0; }
  .mm-section-lg { padding: 42px 0; }
  .mm-section-head { margin-bottom: 18px; }
  .mm-h2 { font-size: 1.65rem; }
  .mm-eservice-grid,
  .mm-card-grid,
  .mm-news-grid,
  .mm-visit-grid,
  .mm-falak-cards { grid-template-columns: 1fr; }
  .mm-card-img { height: 180px; }
  .mm-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mm-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mm-hero-track { transition: none !important; }
  .mm-eservice,
  .mm-card,
  .mm-news-card,
  .mm-visit-card { transition: none !important; }
}
