/* ==========================================================================
   Dawat-e-Islami Bangladesh — layout.css
   Header, footer, section scaffolding, grids
   ========================================================================== */

section { position: relative; padding-block: var(--section-space); }
section[id], #contact, #schools, .dept-card[id] { scroll-margin-top: calc(var(--header-h-compact) + 14px); }
.section-tight { padding: clamp(2.5rem, 2rem + 1.5vw, 4rem) 0; }

.bg-ivory  { background: transparent; } /* lets body's ambient bloom bleed through */
.bg-sand   { background: var(--sand-100); }
.bg-forest { background: var(--forest-950); color: var(--on-dark-90); }
.bg-forest p { color: var(--on-dark-60); }

/* --------------------------------------------------------------------
   Top utility bar
   -------------------------------------------------------------------- */
.topbar {
  background: var(--forest-950);
  color: var(--on-dark-60);
  font-size: .82rem;
  min-height: var(--topbar-h);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--topbar-h);
  padding-block: .3rem;
}
.topbar .topbar__bismillah {
  font-family: var(--font-ar);
  color: #fff;
  font-size: clamp(1.11rem, 1rem + .45vw, 1.31rem);
  letter-spacing: .02em;
  line-height: 1.7;
  text-align: center;
}
.topbar__bismillah--short { display: none; }

@media (max-width: 560px) {
  .topbar__bismillah:not(.topbar__bismillah--short) { display: none; }
  .topbar__bismillah--short { display: block; }
}

/* --------------------------------------------------------------------
   Main header
   -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 250, 244, .94);
  border-bottom: 1px solid var(--hairline-light);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled .container { min-height: var(--header-h-compact); }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
}
.brand__mark { width: 42px; height: auto; flex: 0 0 auto; transition: width var(--dur-base); }
.site-header.is-scrolled .brand__mark { width: 34px; }
.brand__word {
  font-family: var(--font-bn-display);
  font-size: 1.15rem;
  color: var(--forest-950);
  line-height: 1.15;
}
.brand__word small {
  display: block;
  font-family: var(--font-en-body);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-top: .15rem;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1vw + .5rem, 2rem);
}
.main-nav__list a {
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink-900);
  position: relative;
  padding: .4rem 0;
}
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width var(--dur-base) var(--ease-standard);
}
.main-nav__list a:hover::after,
.main-nav__list a:focus-visible::after,
.main-nav__list a[aria-current="page"]::after { width: 100%; }
.main-nav__list a[aria-current="page"] { color: var(--emerald-600); }
.main-nav__item--has-menu { position: relative; }
.main-nav__menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 0;
  padding: .35rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-900);
  font: inherit;
  font-size: .96rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur-base), border-color var(--dur-base), background var(--dur-base), box-shadow var(--dur-base);
}
.main-nav__menu-label { display: inline-flex; align-items: center; }
.main-nav__menu-chevron { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-standard); }
.main-nav__menu-toggle:hover, .main-nav__menu-toggle:focus-visible, .main-nav__menu-toggle[aria-current="page"] { background: transparent; color: var(--emerald-600); box-shadow: none; }
.main-nav__menu-toggle::after { display: none; }
.main-nav__item--has-menu:hover .main-nav__menu-chevron,
.main-nav__item--has-menu:focus-within .main-nav__menu-chevron,
.main-nav__item--has-menu.is-submenu-open .main-nav__menu-chevron { transform: rotate(180deg); }
.main-nav__submenu {
  position: absolute;
  top: calc(100% + .95rem);
  left: 50%;
  z-index: 75;
  display: grid;
  grid-template-columns: 1fr;
  width: min(270px, calc(100vw - 2rem));
  margin: 0;
  padding: .45rem;
  border: 1px solid rgba(201, 154, 67, .48);
  border-radius: 18px;
  background: rgba(252, 250, 244, .98);
  box-shadow: 0 20px 38px rgba(6, 46, 36, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.main-nav__submenu::before { content: ""; position: absolute; top: -.48rem; left: 50%; width: .8rem; height: .8rem; border-top: 1px solid rgba(201, 154, 67, .48); border-left: 1px solid rgba(201, 154, 67, .48); background: var(--ivory-50); transform: translateX(-50%) rotate(45deg); }
.main-nav__item--has-menu:hover .main-nav__submenu,
.main-nav__item--has-menu:focus-within .main-nav__submenu,
.main-nav__item--has-menu.is-submenu-open .main-nav__submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav__submenu a { display: block; min-height: 0; padding: .75rem .85rem; border-radius: 10px; color: var(--forest-900); line-height: 1.35; transition: color var(--dur-base), background var(--dur-base), transform var(--dur-base); }
.main-nav__submenu a::after { display: none; }
.main-nav__submenu a:hover, .main-nav__submenu a:focus-visible { background: var(--sand-100); color: var(--emerald-600); transform: translateY(-1px); }
.main-nav__submenu-copy { display: grid; gap: .12rem; min-width: 0; }
.main-nav__submenu-copy strong { font-size: .9rem; font-weight: 700; }
.main-nav__submenu-copy small { color: var(--ink-600); font-size: .71rem; font-weight: 400; line-height: 1.35; }
.main-nav__submenu a:hover small, .main-nav__submenu a:focus-visible small { color: var(--ink-600); }
.main-nav__submenu--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(470px, calc(100vw - 2rem)); }

.header__actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--forest-950);
  transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 0; z-index: 70; overflow: hidden; }
  .main-nav:not(.is-open) { pointer-events: none; }
  .main-nav__panel {
    position: absolute; inset: 0;
    background: var(--forest-950);
    display: flex; flex-direction: column;
    padding: 6.5rem 2rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
  }
  .main-nav.is-open .main-nav__panel { transform: translateX(0); }
  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .main-nav__list li { width: 100%; border-bottom: 1px solid var(--hairline-dark); }
  .main-nav__list a {
    display: block;
    font-family: var(--font-bn-display);
    font-size: 1.5rem;
    color: var(--ivory-50);
    padding: 1.05rem 0;
    opacity: 0;
    transform: translateY(10px);
  }
  .main-nav__list a[aria-current="page"] {
    color: var(--gold-300);
  }
  .main-nav__item--has-menu { position: static; }
  .main-nav__menu-toggle {
    display: flex;
    width: 100%;
    min-height: 0;
    margin: .36rem 0;
    padding: .85rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ivory-50);
    font-family: var(--font-bn-display);
    font-size: 1.35rem;
  }
  .main-nav__menu-toggle[aria-current="page"] { background: transparent; color: var(--gold-300); box-shadow: none; }
  .main-nav__menu-toggle:hover, .main-nav__menu-toggle:focus-visible { background: transparent; color: var(--gold-300); box-shadow: none; }
  .main-nav__menu-toggle::after { display: none; }
  .main-nav__item--has-menu:focus-within .main-nav__menu-chevron { transform: none; }
  .main-nav__item--has-menu.is-submenu-open .main-nav__menu-chevron { transform: rotate(180deg); }
  .main-nav__submenu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    margin: .1rem 0 .55rem;
    padding: .1rem 0 .1rem .8rem;
    border: 0;
    border-left: 1px solid rgba(232, 213, 162, .38);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav__submenu--wide { grid-template-columns: 1fr; width: auto; }
  .main-nav__submenu::before { display: none; }
  .main-nav__item--has-menu:hover .main-nav__submenu,
  .main-nav__item--has-menu:focus-within .main-nav__submenu { display: none; transform: none; }
  .main-nav__item--has-menu.is-submenu-open .main-nav__submenu { display: grid; }
  .main-nav__submenu li { border: 0; }
  .main-nav__submenu a {
    min-height: 0;
    margin: .15rem 0;
    padding: .55rem .35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--on-dark-90);
    font-family: var(--font-bn-body);
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .main-nav__submenu a:hover, .main-nav__submenu a:focus-visible { background: transparent; color: var(--gold-300); transform: none; }
  .main-nav__submenu-copy strong { font-size: 1rem; }
  .main-nav__submenu a small { color: var(--on-dark-60); font-size: .73rem; }
  .main-nav.is-open .main-nav__list a { animation: navItemIn var(--dur-slow) var(--ease-out) forwards; }
  .main-nav__list li:nth-child(1) a { animation-delay: .08s; }
  .main-nav__list li:nth-child(2) a { animation-delay: .14s; }
  .main-nav__list li:nth-child(3) a { animation-delay: .2s; }
  .main-nav__list li:nth-child(4) a { animation-delay: .26s; }
  .main-nav__list li:nth-child(5) a { animation-delay: .32s; }
  .main-nav__list li:nth-child(6) a { animation-delay: .38s; }
  .main-nav__list a::after { display: none; }
  .main-nav__close {
    position: absolute; top: 1.4rem; right: 1.4rem;
    width: 44px; height: 44px;
    background: none; border: none; color: var(--ivory-50);
  }
  a.main-nav__cta { display: block; margin-top: 1.6rem; opacity: 0; transform: translateY(10px); }
  .main-nav.is-open a.main-nav__cta { animation: navItemIn var(--dur-slow) var(--ease-out) forwards; animation-delay: .44s; }
  .nav-toggle { display: flex; }
}
@media (min-width: 981px) {
  .main-nav__close { display: none; }
  a.main-nav__cta { display: none; }
}
/* Preserve a clear search and menu affordance on phones; donation remains in the opened menu. */
@media (max-width: 600px) {
  .header__actions > a.btn { display: none; }
  .header__actions { gap: .45rem; }
  .nav-toggle { flex: 0 0 44px; }
}
@media (max-width: 460px) {
  :root { --header-h: 70px; --header-h-compact: 62px; --topbar-h: 32px; }
  .site-header .container { gap: .4rem; }
  .brand__word { font-size: .88rem; }
  .brand__word small { font-size: .56rem; letter-spacing: .09em; margin-top: .1rem; }
  .header__actions { gap: .4rem; }
  /* Donate stays available inside the opened mobile menu. */
  .header__actions > a.btn { display: none; }
}
@media (max-width: 360px) {
  .brand__word small { display: none; }
  .brand__word { font-size: .78rem; }
  .brand__mark { width: 36px; }
  .site-header .container { gap: .3rem; }
  .header__actions { gap: .3rem; }
  .icon-btn { width: 38px; height: 38px; }
  .nav-toggle { width: 38px; }
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 700px at 78% 12%, rgba(198,161,91,.16), transparent 62%),
    radial-gradient(900px 620px at 12% 88%, rgba(28,122,92,.20), transparent 60%),
    linear-gradient(165deg, #0D3327 0%, var(--forest-950) 45%, #071F18 100%);
  color: var(--on-dark-90);
  position: relative;
  overflow: hidden;
  padding: clamp(3.75rem, 3.2rem + 2.2vw, 5.75rem) 0 clamp(3.5rem, 3rem + 1.5vw, 4.5rem);
}
.hero__glow {
  position: absolute;
  top: 10%; right: 6%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(198,161,91,.28) 0%, rgba(198,161,91,0) 68%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 3vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__eyebrow { color: var(--gold-300); }
.hero__eyebrow::before { background: var(--gold-500); }
.hero h1 {
  font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem);
  color: var(--ivory-50);
  margin-bottom: 1.2rem;
}
.hero__arabic-note { color: var(--gold-300); font-family: var(--font-ar); font-size: .78em; font-weight: 400; white-space: nowrap; }
.hero__sub {
  font-size: 1.12rem;
  color: var(--on-dark-60);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero__trust {
  display: flex; flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline-dark);
}
.hero__trust-item { display: flex; align-items: baseline; gap: .4rem; }
.hero__trust-item strong {
  font-family: var(--font-bn-display);
  color: var(--gold-300);
  font-size: 1.3rem;
}
.hero__trust-item span { font-size: .85rem; color: var(--on-dark-60); }

.hero__portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.hero__dome-glow {
  position: absolute;
  inset: -12% -6%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(198, 161, 91, .38) 0%, rgba(198, 161, 91, 0) 65%);
}
.hero__dome-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 30px 42px rgba(10, 43, 33, .5));
}

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
    display: flex;
    align-items: center;
  }
  .hero .container { grid-template-columns: 1fr; }
  .hero__content { position: relative; z-index: 3; max-width: 650px; }
  .hero__portrait {
    position: absolute;
    right: -4%;
    bottom: -2%;
    z-index: 1;
    width: min(52vw, 460px);
    min-height: 0;
    margin: 0;
    opacity: .55;
    pointer-events: none;
  }
  .hero__sub { color: rgba(252, 250, 244, .76); }
}
@media (max-width: 600px) {
  .hero {
    min-height: 0;
    padding: 1rem 0 2.15rem;
  }
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 390px;
    text-align: center;
  }
  .hero__eyebrow { justify-content: center; margin-bottom: .35rem; font-size: .66rem; }
  .hero h1 {
    max-width: 90%;
    margin: 0 0 .7rem;
    font-size: clamp(1.72rem, 1.48rem + 3vw, 2.08rem);
    line-height: 1.24;
    text-wrap: balance;
  }
  .hero__arabic-note { display: block; margin-top: .12rem; font-size: .7em; }
  .hero__sub {
    max-width: 35ch;
    margin: 0 0 1.15rem;
    font-size: .9rem;
    line-height: 1.58;
    text-wrap: pretty;
  }
  .hero__ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 340px);
    max-width: none;
    gap: .55rem;
    margin: 0;
  }
  .hero__ctas .btn { width: 100%; min-height: 48px; padding: .55rem .45rem; font-size: .82rem; line-height: 1.28; }
  .hero__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding-top: 1.3rem;
    max-width: 360px;
  }
  .hero__trust-item { display: block; }
  .hero__trust-item strong,
  .hero__trust-item span { display: block; }
  .hero__portrait {
    position: relative;
    order: -1;
    right: auto;
    bottom: auto;
    width: min(100%, 290px);
    height: clamp(195px, 60vw, 240px);
    min-height: 0;
    margin: 0 0 -.15rem;
    opacity: 1;
    pointer-events: auto;
  }
  .hero__dome-glow { inset: -10% -4%; }
  .hero__dome-img {
    width: auto;
    height: clamp(195px, 60vw, 240px);
    max-width: 82vw;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 16px 24px rgba(6, 46, 36, .42));
  }
  .hero__trust,
  .feature-strip-wrap { display: none; }
}

/* --------------------------------------------------------------------
   Feature highlights — floating strip overlapping the hero seam
   -------------------------------------------------------------------- */
.feature-strip-wrap {
  position: relative;
  z-index: 5;
  margin-top: clamp(-3.5rem, -3rem - 1vw, -2.5rem);
}
.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .feature-strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
}
@media (max-width: 480px) {
  .feature-strip-wrap { margin-top: -1.25rem; }
  .feature-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------
   Explore the portal
   -------------------------------------------------------------------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }

/* --------------------------------------------------------------------
   About
   -------------------------------------------------------------------- */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; }
  .about__video { order: -1; }
}
.about__body p { max-width: 58ch; }

.stat-strip {
  margin-top: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  padding-top: clamp(2rem, 1.7rem + 1vw, 2.75rem);
  border-top: 1px solid var(--hairline-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  /* divider must sit between each row's two columns, not before every card */
  .stat:not(:first-child)::after { display: none; }
  .stat:nth-child(2n)::after { display: block; }
}

/* --------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------- */
.mission { text-align: center; }
.mission .container { max-width: 820px; }
.mission blockquote {
  text-align: left;
  border-left: 3px solid var(--gold-500);
  padding: 1.8rem clamp(1.6rem, 3vw, 2.6rem) 1.8rem clamp(1.4rem, 3vw, 2.4rem);
  margin: 2.2rem 0 1.6rem;
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.mission blockquote p {
  font-family: var(--font-bn-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  color: var(--forest-950);
  line-height: 1.5;
}
.mission__honorific {
  display: block;
  margin-top: .9rem;
  font-family: var(--font-ar);
  font-size: 1.3rem;
  color: var(--gold-700);
}
.mission cite {
  display: block;
  margin-top: .6rem;
  font-style: normal;
  font-size: .92rem;
  color: var(--ink-600);
}
.mission__support { max-width: 62ch; margin: 1.8rem auto 0; font-size: 1.05rem; }

/* --------------------------------------------------------------------
   Generic content grids: services / apps-strip / videos / centers-projects
   -------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* Homepage departments use the same seamless carousel behaviour as the
   featured books, while the dedicated departments page keeps its normal grid. */
.services-carousel__track {
  gap: 1.6rem;
  padding: .25rem 0 1.2rem;
}
.services-carousel__track .service-card {
  flex: 0 0 calc((100% - 3.2rem) / 3);
  min-height: 262px;
}
.services-carousel__track .service-card--link { color: inherit; text-decoration: none; cursor: pointer; }
@media (max-width: 900px) {
  .services-carousel__track .service-card { flex-basis: calc((100% - 1.6rem) / 2); }
}
@media (max-width: 560px) {
  .services-carousel .carousel__nav { display: none; }
  .services-carousel__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    overflow: visible;
    padding: 0;
  }
  .services-carousel__track .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: initial;
    min-width: 0;
    min-height: 188px;
    padding: 1rem .75rem;
    text-align: center;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(252, 250, 244, .84)) padding-box,
      linear-gradient(145deg, rgba(201, 154, 67, .78), rgba(20, 122, 89, .72)) border-box;
  }
  .services-carousel__track .service-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: .85rem;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .68), 0 8px 18px -12px rgba(6, 46, 36, .32);
  }
  .services-carousel__track .service-card__icon svg { width: 29px; height: 29px; }
  .services-carousel__track .service-card h3 { max-width: 12ch; font-size: 1rem; line-height: 1.36; margin: 0; }
  .services-carousel__track .service-card p { display: none; }
}

.section-foot-cta { margin-top: 2.25rem; text-align: center; }

/* --------------------------------------------------------------------
   Books carousel
   -------------------------------------------------------------------- */
.contact-centers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 760px) { .contact-centers-grid { grid-template-columns: 1fr; } }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 224px);
  justify-content: center;
  gap: 2.2rem 1.6rem;
}
.tab-row {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 2.4rem;
}
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 auto; }
/* Must follow the generic carousel rules: phones use a fixed department grid. */
@media (max-width: 560px) {
  .services-carousel .services-carousel__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    overflow-x: visible;
    padding: 0;
  }
  .services-carousel .services-carousel__track > * { flex: initial; }
  .services-carousel .services-carousel__track > [data-carousel-clone] { display: none; }
}
.carousel__nav {
  display: flex; gap: .7rem;
  justify-content: flex-end;
  margin-bottom: 1.2rem;
}
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-light);
  background: var(--ivory-50);
  display: grid; place-items: center;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.carousel__btn:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__motion-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid var(--hairline-light);
  border-radius: 50%;
  background: var(--ivory-50);
  color: var(--emerald-600);
  font-family: var(--font-en-body);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 12px -10px rgba(6, 46, 36, .48);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-base), background-color var(--dur-base), color var(--dur-base);
}
.carousel__motion-toggle:hover,
.carousel__motion-toggle:focus-visible {
  border-color: var(--emerald-600);
  background: var(--emerald-600);
  color: var(--ivory-50);
  transform: translateY(-2px);
}
.carousel__motion-toggle[aria-pressed="true"] {
  border-color: var(--gold-500);
  background: var(--sand-100);
  color: var(--gold-700);
}
.carousel__motion-toggle--floating { margin: 0 0 .85rem auto; }
@media (max-width: 600px) {
  .books-carousel .carousel__motion-toggle { display: none; }
}
@media (max-width: 560px) {
  .services-carousel .carousel__motion-toggle { display: none; }
}

/* --------------------------------------------------------------------
   Apps
   -------------------------------------------------------------------- */
.apps__lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: center;
  min-height: 440px;
  padding: clamp(1.5rem, 1rem + 2vw, 3.25rem) clamp(1.25rem, 1rem + 2vw, 3.5rem);
  border: 1px solid rgba(201, 154, 67, .35);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .14)),
    radial-gradient(circle at 88% 42%, rgba(232, 213, 162, .33), transparent 31%),
    rgba(252, 250, 244, .58);
  box-shadow: 0 20px 46px rgba(77, 55, 20, .1), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.apps__lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  pointer-events: none;
  background: url('../assets/icons/star-pattern.svg') repeat center / 152px;
}
.apps__lead::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -50%;
  width: min(48%, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 154, 67, .42);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(201, 154, 67, .06), 0 0 0 76px rgba(201, 154, 67, .035);
  pointer-events: none;
  z-index: -1;
}
.apps__body { position: relative; z-index: 1; max-width: 620px; }
.apps__body > .eyebrow {
  width: fit-content;
  padding: .55rem .8rem;
  border: 1px solid rgba(201, 154, 67, .48);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: var(--emerald-700);
}
.apps__body > p:not(.eyebrow):not(.apps__trust) { max-width: 59ch; color: var(--ink-600); line-height: 1.9; }
.apps__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.apps__features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .5rem .7rem;
  border: 1px solid rgba(20, 122, 89, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .52);
  color: var(--forest-900);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.35;
}
.apps__features li:last-child { grid-column: 1 / -1; }
.apps__features svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--emerald-600); }
.apps__phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
}
.apps__phones > picture {
  display: block;
  width: 100%;
  max-width: 520px;
}
.apps__phones img {
  width: min(100%, 520px);
  height: auto;
  transform: translateY(1.2rem) scale(1.035);
  transform-origin: center bottom;
  filter: drop-shadow(0 28px 34px rgba(10, 43, 33, .25));
}
.apps-showcase { padding-block: clamp(3.75rem, 6vw, 6.5rem); }
.apps__lead--neki {
  border-color: rgba(27, 138, 102, .38);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .86), rgba(248, 251, 247, .38)),
    radial-gradient(circle at 88% 36%, rgba(46, 145, 110, .18), transparent 34%),
    rgba(252, 250, 244, .66);
}
.apps__lead--neki::after {
  border-color: rgba(27, 138, 102, .32);
  box-shadow: 0 0 0 38px rgba(27, 138, 102, .06), 0 0 0 76px rgba(27, 138, 102, .03);
}
.apps__lead--neki .section-title { margin-block: .75rem; }
.apps__phones--neki { align-items: center; }
.apps__phones--neki > picture { max-width: 460px; }
.apps__phones--neki img {
  width: min(100%, 460px);
  transform: translateY(.6rem);
  filter: drop-shadow(0 25px 31px rgba(9, 64, 44, .22));
}
.apps__lead--quran {
  border-color: rgba(201, 154, 67, .56);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .9), rgba(252, 246, 226, .34)),
    radial-gradient(circle at 87% 42%, rgba(201, 154, 67, .2), transparent 34%),
    rgba(252, 250, 244, .7);
}
.apps__lead--quran::after {
  border-color: rgba(201, 154, 67, .46);
  box-shadow: 0 0 0 38px rgba(201, 154, 67, .07), 0 0 0 76px rgba(201, 154, 67, .035);
}
.apps__lead--quran .section-title { margin-block: .75rem; }
.apps__phones--quran { align-items: center; }
.apps__phones--quran > picture { max-width: 470px; }
.apps__phones--quran img {
  width: min(100%, 470px);
  transform: translateY(.65rem);
  filter: drop-shadow(0 27px 33px rgba(32, 56, 31, .28));
}
/* Apps page — editorial product showcase with an individual identity for each app. */
body[data-page="apps"] .apps-page-hero .page-hero__lead { max-width: 62ch; }
/* Keep the app catalogue calm and product-led: no repeating lattice behind
   the app cards, only the cards' own restrained colour treatment. */
body[data-page="apps"]::after { display: none; }
body[data-page="apps"] .bg-ivory { background: #FBFAF6; }
body[data-page="apps"] .apps__lead::before { display: none; }
.apps-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.65rem;
}
.apps-hero__nav a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.55rem;
  padding: .42rem .8rem .42rem .48rem;
  border: 1px solid rgba(248, 234, 197, .35);
  border-radius: 999px;
  background: rgba(4, 43, 33, .3);
  color: var(--on-dark-90);
  font-size: .82rem;
  font-weight: 700;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.apps-hero__nav a span {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(232, 213, 162, .18);
  color: var(--gold-100);
  font-family: var(--font-en-body);
  font-size: .68rem;
}
.apps-hero__nav a:hover,
.apps-hero__nav a:focus-visible {
  border-color: var(--gold-100);
  background: rgba(232, 213, 162, .12);
  transform: translateY(-2px);
}
body[data-page="apps"] .apps__lead {
  min-height: 470px;
  border-width: 1.5px;
  border-radius: 30px;
}
body[data-page="apps"] .apps__lead--prayer {
  border-color: rgba(35, 130, 103, .48);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .9), rgba(237, 249, 243, .36)),
    radial-gradient(circle at 88% 42%, rgba(35, 130, 103, .18), transparent 34%),
    rgba(252, 250, 244, .7);
}
body[data-page="apps"] .apps__lead--prayer::after {
  border-color: rgba(35, 130, 103, .35);
  box-shadow: 0 0 0 38px rgba(35, 130, 103, .06), 0 0 0 76px rgba(35, 130, 103, .03);
}
body[data-page="apps"] .app-feature__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 1.55rem;
  margin: 0 0 .75rem;
  padding: 0 .58rem;
  border: 1px solid rgba(201, 154, 67, .48);
  border-radius: 999px;
  color: var(--gold-700);
  font-family: var(--font-en-body);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}
body[data-page="apps"] .apps__body .section-title {
  margin-block: .72rem .8rem;
  font-size: clamp(2rem, 1.45rem + 1.4vw, 3.1rem);
}
body[data-page="apps"] .apps__lead .feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-block: 1.5rem;
}
body[data-page="apps"] .apps__lead .feature-list li {
  min-height: 3.55rem;
  padding: .7rem .78rem;
  border: 1px solid rgba(20, 122, 89, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .56);
  color: var(--forest-900);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.42;
  box-shadow: 0 .4rem 1.1rem rgba(29, 57, 42, .035);
}
body[data-page="apps"] .apps__lead .feature-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
body[data-page="apps"] .apps__lead .feature-list svg { width: 18px; height: 18px; margin-top: .1rem; }
body[data-page="apps"] .apps__phones::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 3%;
  bottom: 5%;
  width: min(86%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 213, 162, .46), rgba(232, 213, 162, 0) 69%);
  filter: blur(4px);
}
body[data-page="apps"] .apps__phones img { transition: transform .55s var(--ease-out), filter .55s var(--ease-out); }
body[data-page="apps"] .apps__lead:hover .apps__phones img { transform: translateY(-.2rem) scale(1.025); }
body[data-page="apps"] .apps__lead--quran:hover .apps__phones img,
body[data-page="apps"] .apps__lead--neki:hover .apps__phones img { transform: translateY(-.2rem) scale(1.015); }
@media (max-width: 900px) {
  .apps__lead { grid-template-columns: 1fr; min-height: 0; }
  .apps__phones { order: -1; max-width: 340px; min-height: 270px; margin-inline: auto; }
  .apps__phones img { transform: translateY(1rem); }
  body[data-page="apps"] .apps__lead { min-height: 0; border-radius: 22px; }
  body[data-page="apps"] .apps__lead .feature-list { grid-template-columns: 1fr; }
  body[data-page="apps"] .apps__lead .feature-list li:last-child:nth-child(odd) { grid-column: auto; }
  body[data-page="apps"] .apps__phones::before { right: 7%; bottom: 7%; width: min(90%, 310px); }
}
.apps__badges { display: flex; align-items: center; gap: .8rem; flex-wrap: nowrap; margin: 1.5rem 0 .85rem; }
.apps__trust { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: .92rem; color: var(--ink-600); }
.apps__trust-num { font-family: var(--font-bn-display); color: var(--gold-700); font-size: 1.15rem; }
.apps__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 370px;
  margin: 1.15rem 0 0;
  border: 1px solid rgba(201, 154, 67, .27);
  border-radius: 14px;
  background: rgba(255, 255, 255, .48);
  overflow: hidden;
}
.apps__metrics > div {
  min-width: 0;
  padding: .7rem .55rem;
  text-align: center;
}
.apps__metrics > div + div { border-left: 1px solid rgba(201, 154, 67, .22); }
.apps__metrics dt {
  color: var(--emerald-700);
  font-family: var(--font-en-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}
.apps__metrics dt span { color: var(--gold-600); }
.apps__metrics dd { margin: .25rem 0 0; color: var(--ink-600); font-size: .7rem; line-height: 1.2; }
.apps-strip {
  margin-top: clamp(2.25rem, 2rem + 1vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (max-width: 1000px) {
  .apps-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .apps-strip { grid-template-columns: 1fr; gap: .85rem; }
}

/* Homepage-only density: keep every destination while presenting a tighter,
   more editorial overview than the dedicated catalogue pages. */
body[data-page="home"] .section-head { margin-bottom: clamp(2rem, 1.7rem + 1vw, 2.8rem); }
body[data-page="home"] #apps .apps__lead::before { display: none; }
body[data-page="home"] #books .carousel .book-card { width: 200px; }
body[data-page="home"] .channel__featured { margin-bottom: 1.75rem; }

/* The desktop programme rail mirrors the books loop.  The small-screen
   channel keeps its intentionally minimal featured-video presentation. */
@media (min-width: 561px) {
  body[data-page="home"] #channel .video-carousel { display: block; }
  body[data-page="home"] #channel .video-carousel__track { gap: 1.6rem; padding: .25rem 0 1rem; }
  body[data-page="home"] #channel .video-carousel .video-card { width: min(330px, 78vw); }
}

@media (max-width: 600px) {
  body[data-page="home"] section { padding-block: 3.25rem; }
  body[data-page="home"] .section-head { margin-bottom: 1.8rem; }
  body[data-page="home"] #books .books-carousel .carousel__nav { display: none; }
  body[data-page="home"] #books .books-carousel .carousel__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem .75rem;
    overflow: visible;
    padding: 0;
  }
  body[data-page="home"] #books .books-carousel .carousel__track > .book-card { width: auto; }
  body[data-page="home"] #books .books-carousel .carousel__track > [data-carousel-clone] { display: none; }
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 1.35rem .75rem;
  }
  .books-grid .book-card { width: auto; }
  .book-card__cover { margin-bottom: .7rem; }
  .book-card__actions { gap: .25rem; padding: .28rem; margin-bottom: .65rem; }
  .book-card__action { height: 34px; }
  .book-card__action svg { width: 15px; height: 15px; }
  .book-card .bl-bn { font-size: .9rem; }
  .book-card .bl-en { font-size: .64rem; }
  body[data-page="apps"] .apps-showcase { padding-block: 2.25rem; }
  .apps__lead { gap: 1.25rem; padding: 1.2rem; border-radius: 20px; }
  body[data-page="apps"] .apps__lead { padding: 1.25rem; }
  body[data-page="apps"] .apps__phones { width: min(100%, 250px); max-width: 250px; min-height: 0; margin-bottom: .35rem; }
  body[data-page="apps"] .apps__phones img { width: 100%; transform: none; }
  body[data-page="apps"] .apps__lead:hover .apps__phones img,
  body[data-page="apps"] .apps__lead--quran:hover .apps__phones img,
  body[data-page="apps"] .apps__lead--neki:hover .apps__phones img { transform: none; }
  .apps__features { grid-template-columns: 1fr; }
  .apps__features li:last-child { grid-column: auto; }
  .apps__badges { justify-content: center; gap: .45rem; margin-block: 1.15rem .8rem; }
  .apps__badges .store-badge { flex: 0 1 auto; min-width: 0; }
  .apps__badges .store-badge img { height: clamp(33px, 10.5vw, 40px); max-width: 100%; }
  body[data-page="apps"] .apps__trust { justify-content: center; text-align: center; font-size: .84rem; }
  body[data-page="apps"] .apps__body { text-align: center; }
  body[data-page="apps"] .app-feature__number { display: none; }
  body[data-page="apps"] .apps__body > .eyebrow { width: auto; max-width: 100%; margin: 0 auto .55rem; padding: 0; border: 0; border-radius: 0; background: transparent; justify-content: center; color: var(--emerald-700); font-size: .78rem; line-height: 1.4; text-align: center; }
  body[data-page="apps"] .apps__body .section-title { margin-block: .85rem .7rem; line-height: 1.2; }
  body[data-page="apps"] .apps__body > p:not(.eyebrow):not(.apps__trust) { margin-inline: auto; }
  body[data-page="apps"] .apps__lead .feature-list { text-align: left; }
  body[data-page="apps"] .apps__metrics { width: 100%; max-width: 330px; margin-inline: auto; }
  body[data-page="apps"] .apps__metrics > div { padding: .65rem .35rem; }
  body[data-page="apps"] .apps__metrics dt { font-size: .92rem; }
  body[data-page="apps"] .apps__metrics dd { font-size: .65rem; }
  body[data-page="home"] #apps .apps__metrics { width: 100%; max-width: 330px; }
  body[data-page="home"] #apps .apps__metrics > div { padding: .65rem .35rem; }
  body[data-page="home"] #apps .apps__metrics dt { font-size: .92rem; }
  body[data-page="home"] #apps .apps__metrics dd { font-size: .65rem; }
  body[data-page="home"] #apps .home-title-ribbon__ribbon { display: none; }
  body[data-page="home"] #apps .section-head { margin-bottom: 1.35rem; }
  body[data-page="home"] #apps .section-head .section-title { font-size: clamp(2rem, 8.5vw, 2.55rem); }
  .apps-hero__nav { display: grid; grid-template-columns: 1fr; gap: .45rem; }
  .apps-hero__nav a { justify-content: flex-start; min-height: 2.35rem; font-size: .78rem; }
  body[data-page="apps"] .apps__body .section-title { font-size: clamp(1.85rem, 8vw, 2.25rem); }
  body[data-page="apps"] .apps__lead .feature-list li { min-height: 0; font-size: .82rem; }
}

/* --------------------------------------------------------------------
   Madani Channel
   -------------------------------------------------------------------- */
.channel__featured { margin-bottom: 2.5rem; }
.channel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
@media (max-width: 980px) { .channel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .channel__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------
   Donation
   -------------------------------------------------------------------- */
.donate__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: start;
}
@media (max-width: 980px) { .donate__layout { grid-template-columns: 1fr; } }

.fund-list { display: grid; gap: .9rem; }

.donate__form { display: grid; gap: 1.6rem; }
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
@media (max-width: 420px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}
.pay-tabs__list { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%, rgba(27, 138, 102, .2), transparent 31%),
    linear-gradient(180deg, var(--forest-950), #071F18);
  padding-top: clamp(3.5rem, 3rem + 2vw, 5.5rem);
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../assets/icons/star-pattern.svg');
  background-repeat: repeat;
  background-size: 130px;
  opacity: .05;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 10%, rgba(232, 213, 162, .06) 48%, transparent 86%);
  pointer-events: none;
}
.footer__shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.footer__shimmer::before,
.footer__shimmer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 2%, rgba(201, 154, 67, .35) 22%, #FFE3A3 48%, rgba(201, 154, 67, .35) 74%, transparent 98%);
  background-size: 200% 100%;
  animation: footerShimmer 8s linear infinite;
}
.footer__shimmer::before { top: 0; }
.footer__shimmer::after { bottom: 0; animation-direction: reverse; }
.footer__mosque-art {
  position: absolute;
  z-index: 1;
  right: max(-2rem, calc((100vw - var(--container-w)) / 2 - 3rem));
  bottom: 2.2rem;
  width: min(40vw, 550px);
  height: auto;
  color: rgba(109, 195, 157, .38);
  opacity: .42;
  pointer-events: none;
}
.footer__mosque-art path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes footerShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.site-footer .container { position: relative; z-index: 2; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) .82fr .9fr minmax(240px, 1.04fr);
  gap: clamp(1.75rem, 2vw, 2.7rem);
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand-logo { display: inline-flex; width: min(100%, 248px); margin-bottom: 1rem; }
.footer__brand-logo img { display: block; width: 100%; height: auto; }
.footer__desc { margin: .8rem 0 1.4rem; max-width: 32ch; font-size: .92rem; line-height: 1.72; color: var(--on-dark-60); }
.footer__social { display: flex; gap: .7rem; }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(232, 213, 162, .62);
  background: rgba(6, 46, 36, .2);
  display: grid; place-items: center;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-base);
}
.footer__social a:hover, .footer__social a:focus-visible {
  border-color: var(--gold-300);
  background: linear-gradient(135deg, var(--emerald-500), var(--gold-500));
  box-shadow: 0 0 0 4px rgba(27, 138, 102, .18), 0 0 20px rgba(232, 213, 162, .22);
  transform: translateY(-3px);
}
.footer__social svg { width: 16px; height: 16px; color: var(--gold-300); transition: color var(--dur-fast); }
.footer__social a:hover svg, .footer__social a:focus-visible svg { color: var(--ivory-50); }

.footer__heading {
  font-family: var(--font-en-body);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer__heading::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--gold-500);
}
.footer__links { display: grid; gap: .75rem; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .93rem;
  color: var(--on-dark-60);
  transition: color var(--dur-fast);
}
.footer__links a::before {
  content: "";
  width: 5px; height: 5px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  background: var(--gold-500);
  opacity: .6;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.footer__links a:hover, .footer__links a:focus-visible { color: var(--gold-300); }
.footer__links a:hover::before, .footer__links a:focus-visible::before { opacity: 1; transform: rotate(45deg) scale(1.4); }
.footer__contact-card {
  align-self: start;
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid rgba(232, 213, 162, .2);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(27, 138, 102, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 30px rgba(2, 29, 22, .14);
  backdrop-filter: blur(7px);
}
.footer__contact-card .footer__heading { margin-bottom: 1rem; }
.footer__contact { display: grid; gap: .9rem; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--on-dark-60); }
.footer__contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .15rem; color: var(--gold-500); }
.footer__contact a { color: inherit; transition: color var(--dur-fast); }
.footer__contact a:hover, .footer__contact a:focus-visible { color: var(--gold-300); }

.footer__bottom {
  border-top: 1px solid var(--hairline-dark);
  padding: 1.4rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .82rem; color: var(--on-dark-60);
}
.footer__legal { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: rgba(232, 213, 162, .78); }
@media (max-width: 560px) {
  .site-footer { padding-top: 3.25rem; }
  .footer__grid { padding-bottom: 2.25rem; gap: 2rem; }
  .footer__mosque-art { right: -18vw; bottom: 2.6rem; width: 118vw; opacity: .25; }
  .footer__bottom { padding: 1.2rem 0 1.35rem; }
  .footer__legal { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__shimmer::before,
  .footer__shimmer::after { animation: none; background-position: 50% 0; }
}

/* Centers grid (contact page) — auto-fit so 1/2/3 columns fall out of the width */
.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  align-items: stretch; /* equal-height cards so the action rows line up */
}
@media (max-width: 680px) { .centers-grid { grid-template-columns: 1fr; } }
