/* site-header.css — the header of every standard Arabic page (2026-09-13).
 * See site-header.js. Its own classes (.mbh, .mbh-strip) so the 312 rules the
 * old .site-header / .hotline-strip collected across eleven files do not reach
 * it. Fixed, at the old heights, so header-v2.css's main offset (108px above
 * 1280px, 72px below) still clears it on every page. */

.mbh, .mbh-strip, .mbh-drawer {
  --mbh-navy: #0A2A3D; --mbh-teal: #12525C; --mbh-gold: #C9A227; --mbh-gold-2: #DFBE55;
  --mbh-ink: #0A2A3D; --mbh-muted: #5A6B74; --mbh-line: rgba(10, 42, 61, 0.10); --mbh-tint: #EEF4F5;
  --mbh-ease: cubic-bezier(.22, .61, .36, 1);
  font-family: "Alexandria", "Noto Kufi Arabic", system-ui, sans-serif;
}
.mbh a, .mbh-strip a, .mbh-drawer a { color: inherit; text-decoration: none; }
.mbh button, .mbh-strip button, .mbh-drawer button { font: inherit; color: inherit; margin: 0; }
.mbh-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mbh :focus-visible, .mbh-strip :focus-visible, .mbh-drawer :focus-visible { outline: 3px solid var(--mbh-gold); outline-offset: 2px; border-radius: 8px; }

/* ================================================================ strip === */
.mbh-strip {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1011; height: 36px;
  background: var(--mbh-navy); color: rgba(231, 240, 243, .84); font-size: 12.5px;
  transition: transform 260ms var(--mbh-ease);
}
.mbh-strip__in { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mbh-strip__licence { display: inline-flex; align-items: center; gap: 8px; }
.mbh-strip__licence .mbh-i { width: 15px; height: 15px; stroke: var(--mbh-gold); }
.mbh-strip__licence b { color: var(--mbh-gold); font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.mbh-strip__tools { display: flex; align-items: center; gap: 2px; }
.mbh-strip__tools > a, .mbh-strip__tools > button, .mbh-lang button {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer; color: inherit; font-size: 12.5px;
  transition: background-color 160ms ease, color 160ms ease;
}
.mbh-strip__tools > a:hover, .mbh-strip__tools > button:hover, .mbh-lang button:hover { background: rgba(255,255,255,.09); color: #fff; }
.mbh-strip__tools .mbh-i { width: 15px; height: 15px; }
.mbh-strip [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.mbh-lang { display: inline-flex; align-items: center; gap: 0; margin-inline-start: 4px; padding-inline-start: 6px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.mbh-lang button.active { color: var(--mbh-gold); font-weight: 700; }

/* ================================================================== bar === */
.mbh {
  position: fixed; inset-block-start: 36px; inset-inline: 0; z-index: 1000; height: 72px;
  background: rgba(255, 255, 255, .96); color: var(--mbh-ink);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--mbh-line);
  transition: inset-block-start 260ms var(--mbh-ease), box-shadow 220ms ease;
}
.mbh.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10, 42, 61, .35); }
/* Moved with transform, not top: measured, a rule elsewhere holds the bar's
   top at 36px, and a transform is both unaffected by it and cheaper to animate. */
@media (min-width: 1281px) {
  .mbh-strip.is-away { transform: translateY(-100%); }
  .mbh { transition: transform 260ms var(--mbh-ease), box-shadow 220ms ease; }
  .mbh.is-compact { transform: translateY(-36px); }
}
.mbh__in { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 20px; }
.mbh__logo { flex: none; display: block; }
.mbh__logo img { display: block; height: 46px; width: auto; }

.mbh__nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; }
.mbh-item { position: static; }
.mbh-item:not(.mbh-item--mega) { position: relative; }
.mbh-link {
  height: 72px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--mbh-ink); position: relative;
}
/* The icon sits in a small tile that answers the pointer: it tints, then
   turns teal with a white mark, and lifts 1px. */
.mbh-link__ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: transparent; color: var(--mbh-teal);
  transition: background-color 200ms ease, color 200ms ease, transform 220ms var(--mbh-ease);
}
.mbh-link__ico .mbh-i { width: 18px; height: 18px; }
.mbh-link::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: 14px; height: 2px; border-radius: 2px;
  background: var(--mbh-gold); transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--mbh-ease);
}
.mbh-link:hover .mbh-link__ico, .mbh-link[aria-expanded="true"] .mbh-link__ico { background: var(--mbh-tint); transform: translateY(-1px); }
.mbh-link[aria-expanded="true"] .mbh-link__ico { background: var(--mbh-teal); color: #fff; }
.mbh-link:hover::after, .mbh-link[aria-expanded="true"]::after { transform: scaleX(.55); }
.mbh-link[aria-current="page"]::after, .mbh-link.is-active::after { transform: scaleX(1); }
.mbh-link[aria-current="page"] .mbh-link__ico, .mbh-link.is-active .mbh-link__ico { background: var(--mbh-tint); }
.mbh-chev { width: 14px; height: 14px; color: var(--mbh-muted); transition: transform 220ms var(--mbh-ease); }
.mbh-link[aria-expanded="true"] .mbh-chev { transform: rotate(180deg); }
.mbh.is-tight .mbh-link { padding: 0 8px; gap: 6px; font-size: 14px; }
.mbh.is-tight .mbh-link__ico { width: 26px; height: 26px; }
.mbh.is-tighter .mbh__in { gap: 12px; }
.mbh.is-tighter .mbh__nav { margin-inline-start: 0; }
.mbh.is-tighter .mbh-link { padding: 0 6px; gap: 4px; font-size: 13.5px; }
.mbh.is-tighter .mbh-link__ico { width: 24px; height: 24px; }
.mbh.is-tighter .mbh-link__ico .mbh-i { width: 16px; height: 16px; }
.mbh.is-tighter .mbh-chev, .mbh.is-tighter .mbh__desk { display: none; }
.mbh.is-tighter .mbh-cta { padding: 0 14px; margin-inline-start: 2px; }

/* ---- tools ---- */
.mbh__tools { flex: none; display: flex; align-items: center; gap: 4px; }
.mbh-tool {
  position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--mbh-ink);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.mbh-tool[hidden] { display: none; }
.mbh-tool:hover { background: var(--mbh-tint); border-color: var(--mbh-line); }
.mbh-tool.has-items { color: var(--mbh-teal); }
.mbh__badge {
  position: absolute; inset-block-start: 4px; inset-inline-start: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--mbh-gold); color: var(--mbh-navy); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.mbh__badge[hidden] { display: none; }
.mbh__badge.is-bump { animation: mbh-bump 380ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mbh-bump { 40% { transform: scale(1.35); } }
.mbh-cta {
  height: 44px; padding: 0 18px 0 20px; border-radius: 12px; background: var(--mbh-gold); color: var(--mbh-navy) !important;
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-inline-start: 6px;
  white-space: nowrap; box-shadow: 0 8px 20px -12px rgba(201, 162, 39, .9);
  transition: background-color 160ms ease, transform 120ms ease;
}
.mbh-cta:hover { background: var(--mbh-gold-2); }
.mbh-cta:active { transform: scale(.98); }
.mbh-cta__i, .mbh-cta .mbh-i { transform: scaleX(-1); }
.mbh__menu { display: none; }

/* ---- dropdown ---- */
.mbh-dd {
  position: absolute; inset-block-start: calc(100% - 8px); inset-inline-start: 0; min-width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--mbh-line); border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(10,42,61,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 180ms ease, transform 200ms var(--mbh-ease), visibility 0s 200ms;
}
.mbh-item.is-open > .mbh-dd { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 200ms var(--mbh-ease); }
.mbh-dd a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; transition: background-color 140ms ease; }
.mbh-dd a:hover, .mbh-dd a[aria-current="page"] { background: var(--mbh-tint); }
.mbh-dd strong { display: block; font-size: 14.5px; font-weight: 700; }
.mbh-dd small { display: block; color: var(--mbh-muted); font-size: 12.5px; line-height: 1.55; margin-block-start: 1px; }
.mbh-tile {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--mbh-tint); color: var(--mbh-teal); transition: background-color 180ms ease, color 180ms ease, transform 220ms var(--mbh-ease);
}
.mbh-dd a:hover .mbh-tile, .mbh-doors a:hover .mbh-tile { background: var(--mbh-teal); color: #fff; transform: scale(1.05); }
.mbh-tile--gold { background: var(--mbh-gold); color: var(--mbh-navy); }

/* ---- mega menu ---- */
.mbh-mega {
  position: absolute; inset-block-start: 100%; inset-inline: 0; background: #fff; border-block: 1px solid var(--mbh-line);
  box-shadow: 0 30px 60px -30px rgba(10,42,61,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 200ms ease, transform 220ms var(--mbh-ease), visibility 0s 220ms;
}
.mbh-item--mega.is-open > .mbh-mega { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 220ms var(--mbh-ease); }
.mbh-mega__in { max-width: 1320px; margin: 0 auto; padding: 24px 28px 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.mbh-mega h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--mbh-muted); }
.mbh-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; }
.mbh-doors a { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 12px; transition: background-color 140ms ease; }
.mbh-doors a:hover { background: var(--mbh-tint); }
.mbh-doors strong { font-size: 14.5px; font-weight: 700; }
/* The doors arrive in a short sequence when the menu opens. */
.mbh-item--mega.is-open .mbh-doors a { animation: mbh-in 260ms var(--mbh-ease) both; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(2) { animation-delay: 20ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(3) { animation-delay: 40ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(4) { animation-delay: 60ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(5) { animation-delay: 80ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(6) { animation-delay: 100ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(7) { animation-delay: 120ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(8) { animation-delay: 140ms; }
.mbh-item--mega.is-open .mbh-doors a:nth-child(9) { animation-delay: 160ms; }
@keyframes mbh-in { from { opacity: 0; transform: translateY(6px); } }
.mbh-mega__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--mbh-line); }
.mbh-mega__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--mbh-teal); padding: 4px 2px; }
.mbh-mega__links a .mbh-i { width: 16px; height: 16px; }
.mbh-mega__links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--mbh-gold); }
.mbh-mega__side { display: grid; gap: 12px; align-content: start; }
.mbh-card { border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: center; border: 1px solid var(--mbh-line); transition: border-color 160ms ease, box-shadow 160ms ease, transform 200ms var(--mbh-ease); }
.mbh-card:hover { border-color: rgba(201,162,39,.55); box-shadow: 0 12px 26px -18px rgba(10,42,61,.4); transform: translateY(-2px); }
.mbh-zakat { background: linear-gradient(135deg, #FBF6E6, #fff); }
.mbh-zakat .mbh-tile { width: 46px; height: 46px; border-radius: 14px; }
.mbh-card strong { display: block; font-size: 15px; }
.mbh-card small { color: var(--mbh-muted); font-size: 12.5px; }
.mbh-zakat__links { display: flex; gap: 14px; margin-block-start: 4px; font-size: 13px; font-weight: 700; color: var(--mbh-teal); }
.mbh-zakat__links span:hover { text-decoration: underline; text-underline-offset: 4px; }
.mbh-camp { padding: 0; overflow: hidden; display: grid; grid-template-columns: 132px 1fr; align-items: stretch; }
.mbh-camp img { width: 100%; height: 100%; min-height: 118px; object-fit: cover; display: block; }
.mbh-camp__body { padding: 14px 14px 14px 16px; display: block; }
.mbh-camp__tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--mbh-teal); background: var(--mbh-tint); padding: 2px 8px; border-radius: 999px; }
.mbh-camp strong { margin: 6px 0 8px; font-size: 14.5px; line-height: 1.5; }
.mbh-bar { display: block; height: 7px; border-radius: 999px; background: #E8EDEF; overflow: hidden; }
.mbh-bar i { display: block; height: 100%; background: var(--mbh-teal); border-radius: 999px; }
.mbh-camp__figs { display: flex; justify-content: space-between; align-items: center; margin-block-start: 6px; font-size: 12px; color: var(--mbh-muted); }
.mbh-go { display: inline-flex; align-items: center; gap: 4px; color: var(--mbh-teal); font-weight: 700; }
.mbh-go .mbh-i { width: 14px; height: 14px; transition: transform 200ms var(--mbh-ease); }
.mbh-camp:hover .mbh-go .mbh-i { transform: translateX(-3px); }

/* =============================================================== drawer === */
.mbh-scrim { position: fixed; inset: 0; z-index: 1090; background: rgba(10,42,61,.45); opacity: 0; transition: opacity 240ms ease; }
.mbh-drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1100; width: min(88vw, 380px);
  background: #fff; color: var(--mbh-ink); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 300ms var(--mbh-ease); box-shadow: -20px 0 50px -30px rgba(10,42,61,.5);
}
.mbh-scrim[hidden], .mbh-drawer[hidden] { display: none; }
.mbh-scrim.is-open { opacity: 1; }
.mbh-drawer.is-open { transform: none; }
.mbh-drawer__head { height: 64px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; border-block-end: 1px solid var(--mbh-line); flex: none; }
.mbh-drawer__head img { height: 38px; width: auto; }
.mbh-drawer__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 14px; border-block-end: 1px solid var(--mbh-line); flex: none; }
.mbh-drawer__quick > a, .mbh-drawer__quick > button {
  display: grid; justify-items: center; gap: 5px; padding: 10px 2px; border-radius: 12px; border: 0; background: var(--mbh-tint); cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--mbh-ink);
}
.mbh-drawer__quick > [hidden] { display: none; }
.mbh-drawer__quick .mbh-i { color: var(--mbh-teal); }
.mbh-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 18px; }
.mbh-grp { border-block-end: 1px solid var(--mbh-line); }
.mbh-grp__top {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 6px; border: 0; background: none; cursor: pointer;
  font-size: 15.5px; font-weight: 700; text-align: start; color: var(--mbh-ink);
}
.mbh-grp__top .mbh-tile { width: 36px; height: 36px; border-radius: 10px; }
.mbh-grp__top[aria-current="page"] { color: var(--mbh-teal); }
.mbh-grp__top .mbh-chev { margin-inline-start: auto; width: 16px; height: 16px; }
.mbh-grp.is-open .mbh-grp__top .mbh-chev { transform: rotate(180deg); }
.mbh-grp__list { display: none; padding: 0 6px 10px; }
.mbh-grp.is-open .mbh-grp__list { display: grid; gap: 2px; animation: mbh-in 220ms var(--mbh-ease); }
.mbh-grp__list a { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 10px; font-size: 14.5px; color: #26404E; }
.mbh-grp__list a:hover, .mbh-grp__list a[aria-current="page"] { background: var(--mbh-tint); }
.mbh-grp__list .mbh-i { width: 18px; height: 18px; color: var(--mbh-teal); }
.mbh-drawer__foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--mbh-line); }
.mbh-drawer__foot .mbh-cta { width: 100%; height: 50px; margin: 0; }

/* ======================================================== ≤ 1280px: phone === */
@media (max-width: 1280px) {
  .mbh-strip { display: none; }
  .mbh { inset-block-start: 0; }
  .mbh__nav, .mbh__desk, .mbh__tools > .mbh-cta, .mbh__tools > [data-open-search] { display: none; }
  .mbh__menu { display: grid; }
  .mbh__in { padding: 0 12px 0 16px; justify-content: space-between; gap: 8px; }
  .mbh__logo img { height: 40px; }
}
@media (max-width: 380px) {
  .mbh__logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mbh, .mbh-strip, .mbh-drawer, .mbh-scrim, .mbh-dd, .mbh-mega, .mbh-link::after, .mbh-link__ico, .mbh-tile, .mbh-card, .mbh-chev { transition: none !important; }
  .mbh-item--mega.is-open .mbh-doors a, .mbh-grp.is-open .mbh-grp__list, .mbh__badge.is-bump { animation: none !important; }
}
