/* Generated by src/build.js (rtlcss) from css/components/footer.css — LTR version, do not edit: edit css/components/footer.css and rebuild */
/* ==========================================================================
   footer.css — site footer (all pages)
   Brand + socials, two link columns, partner logo, bottom bar.
   ≤900px: brand spans the grid and its socials move to .ft__socials--mobile.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shell + watermark
   -------------------------------------------------------------------------- */
.ft {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(-180deg, var(--color-navy-700) 0%, var(--color-navy-900) 100%);
  color: var(--color-slate-300);
}

.ft__wm {
  position: absolute;
  z-index: -1;
  bottom: -120px;
  right: -120px;
  width: 460px;
  height: auto;
  opacity: 0.05;
  filter: invert(1);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}

.ft__inner {
  box-sizing: border-box;
  max-width: var(--cw, 1180px);
  margin: 0 auto;
  padding: 72px 24px 0;
}

.ft__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  padding-bottom: 48px;
}

/* --------------------------------------------------------------------------
   Brand column
   -------------------------------------------------------------------------- */
.ft__brand {
  display: flex;
  flex: 1.6 1 300px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ft__logo {
  display: block;
  align-self: flex-start;
  width: auto;
  height: 72px;
}

.ft__desc {
  max-width: 340px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--color-slate-300);
}

/* Social links (brand column on desktop, own row on mobile) */
.ft__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ft__socials--mobile {
  display: none;
}

.ft__soc {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .2s ease, border-color .2s ease;
}

.ft__soc:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.ft__soc svg {
  display: block;
  flex: none;
  fill: var(--color-on-navy);
}

/* --------------------------------------------------------------------------
   Link columns + partner block
   -------------------------------------------------------------------------- */
.ft__nav {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
}

.ft__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 6px;
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: normal;
  color: var(--color-white);
}

/* small gold bar under each heading */
.ft__heading-bar {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-gold-500);
}

.ft__link {
  color: var(--color-slate-300);
  text-decoration: none;
  transition: color .2s ease;
}

.ft__link:hover {
  color: var(--color-white);
}

.ft__partner {
  display: flex;
  flex: 1.2 1 220px;
  flex-direction: column;
  gap: 16px;
}

.ft__partner-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */
.ft__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--color-slate-400);
}

.ft__domain {
  unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ft__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .ft__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .ft__logo {
    align-self: center;
  }

  .ft__desc {
    max-width: 440px;
  }

  /* socials leave the brand column and sit centred under the columns */
  .ft__brand .ft__socials {
    display: none;
  }

  .ft__socials--mobile {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: -12px;
  }
}

@media (max-width: 560px) {
  .ft__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft__partner {
    grid-column: 1 / -1;
    align-items: center;
  }

  .ft__partner .ft__heading {
    align-items: center;
  }

  .ft__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Back to top — a round brand-blue button at the bottom right of the screen
   (on the LTR pages too: not mirrored), shown once the page is scrolled down
   (.is-shown, js/components/footer.js). Under the header's panels and the
   audio mini player; above it while that bar is open on narrow screens.
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  z-index: 35;
  bottom: 24px;
  right: 24px;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-blue-500);
  border-radius: 50%;
  background: var(--color-blue-500);
  color: var(--color-white);
  box-shadow: 0 14px 30px -14px rgba(59, 117, 150, .8);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s,
    background .2s ease, border-color .2s ease, color .2s ease;
}

.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s,
    background .2s ease, border-color .2s ease, color .2s ease;
}

.to-top svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* hover: the site's hover on filled blue buttons — cream, navy ink; no movement */
.to-top:hover {
  background: var(--hover-cream);
  border-color: var(--hover-cream-border);
  color: var(--hover-cream-ink);
}

.to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 117, 150, .35);
}

@media (max-width: 640px) {
  .to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* the audio page's mini player (73px, 16px from the bottom) spans the
   width on narrow screens: sit above it while it is open */
@media (max-width: 720px) {
  body.has-mini .to-top {
    bottom: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top.is-shown {
    transform: none;
    transition: none;
  }
}
