/* Theme site footer — Al-Hilal V7 full-width columns */

.app > .footer {
  /* border-top: 1px solid #105ba821; */
  margin-top: 0px;
}

.theme-site-footer,
.theme-site-footer *,
.theme-site-footer *::before,
.theme-site-footer *::after {
  box-sizing: border-box;
}

.theme-site-footer {
  --sf-pad: clamp(24px, 5.5vw, 100px);
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 60px var(--sf-pad) 30px;
  background: var(--theme-footer-bg, var(--footer-primary-color, #000d29));
  color: var(--theme-footer-text, var(--footer-text-color-primary-bg, #fff));
  text-align: start;
  font-family: var(--font-body) !important;
  font-size: 14px;
  font-weight: 400;
  border: 0;
  -webkit-font-smoothing: antialiased;
}

.theme-site-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.theme-site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.theme-site-footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.theme-site-footer__social a:hover,
.theme-site-footer__social a:focus-visible {
  color: #fff;
  border-color: #fff;
}

.theme-site-footer__social svg {
  width: 15px;
  height: 15px;
  display: block;
}

.theme-site-footer__sig {
  margin: 12px 0 0;
  color: #b7c6db;
  /* Reference .footer-note */
  font-size: 13px;
  font-weight: 400;
  line-height: 2.1;
  max-width: 310px;
  font-family: var(--font-body) !important;
}

.theme-site-footer__rights {
  margin: 0;
  color: #a5b4ca;
  /* Reference .footer-bottom */
  font-size: 8px;
  font-weight: 400;
  line-height: 1.8;
  font-family: var(--font-body) !important;
}

.theme-site-footer.is-ltr .theme-site-footer__sig,
.theme-site-footer.is-ltr .theme-site-footer__rights {
  direction: ltr;
}

.theme-site-footer.is-ltr {
  direction: ltr;
}

/* Columns: brand + discover + bulk + pages (+ optional contact) — spread full width */
.theme-site-footer__top {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  text-align: start;
}

.theme-site-footer__top.has-contact {
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.theme-site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  background: transparent !important;
}

.theme-site-footer__logo-frame {
  position: relative;
  width: 220px;
  height: 85px;
  max-width: min(220px, 70vw);
  margin: 0 0 12px;
  overflow: hidden;
  background: transparent !important;
  mix-blend-mode: normal;
}

.theme-site-footer__logo-frame .theme-site-footer__logo,
.theme-site-footer__logo {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent !important;
  filter: none;
  mix-blend-mode: normal;
}

.theme-site-footer__title {
  margin: 15px 0 20px;
  color: var(--sf-titles-color, #fff);
  /* Reference .footer-links h2 */
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.8;
  letter-spacing: 0;
  cursor: unset;
  font-family: var(--font-body) !important;
}

html[lang="en"] .theme-site-footer__title {
  line-height: 1.5;
  letter-spacing: 0;
}

.theme-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.theme-site-footer__links a {
  display: block;
  width: fit-content;
  color: var(--sf-links-color, #b7c6db);
  /* Reference .footer-links a */
  font-size: 12px !important;
  font-weight: 400;
  line-height: 2.7;
  font-family: var(--font-body) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.theme-site-footer__links a:hover,
.theme-site-footer__links a:focus-visible {
  color: var(--sf-links-color, #fff);
  text-decoration: none;
}

.theme-site-footer__note {
  margin: 10px 0 0;
  max-width: 240px;
  color: var(--sf-links-color, #b7c6db);
  /* Reference .footer-links p */
  font-size: 10px !important;
  line-height: 2.2;
  font-family: var(--font-body) !important;
}

.theme-site-footer__col--contact {
  text-align: start;
}

html[dir="rtl"] .theme-site-footer:not(.is-ltr) .theme-site-footer__col--contact,
html[lang="ar"] .theme-site-footer:not(.is-ltr) .theme-site-footer__col--contact {
  direction: rtl;
  text-align: right;
}

.theme-site-footer.is-ltr .theme-site-footer__col--contact {
  direction: ltr;
  text-align: left;
}

.theme-site-footer__contact li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-bottom: 10px;
  width: 100%;
}

.theme-site-footer__label {
  color: var(--sf-links-color, #fff);
  opacity: 0.6;
  font-size: 12.8px;
}

/* Digits stay LTR inside <bdi>. The link itself follows the page
   direction. dir=ltr on the <a> makes iOS Safari pin the line to the
   physical left, because flex-start and auto margins use the item's direction. */
.theme-site-footer__contact a {
  direction: inherit;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  text-align: start;
}

html[dir="rtl"] .theme-site-footer:not(.is-ltr) .theme-site-footer__contact a,
html[lang="ar"] .theme-site-footer:not(.is-ltr) .theme-site-footer__contact a {
  direction: rtl;
  text-align: right;
}

.theme-site-footer.is-ltr .theme-site-footer__contact a,
html[lang="en"] .theme-site-footer__contact a {
  direction: ltr;
  text-align: left;
}

.theme-site-footer__contact a bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Payment icons — original brand colors, no top border */
.theme-site-footer__icons {
  width: 100%;
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.theme-site-footer__icons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.theme-site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.theme-site-footer__icon:hover,
.theme-site-footer__icon:focus-visible {
  opacity: 0.88;
}

.theme-site-footer__icon img {
  display: block;
  height: 20px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  filter: none;
}

/* Bottom bar: business info + copyright */
.theme-site-footer__bottom {
  width: 100%;
  margin-top: 24px;
  padding: 25px 0 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: color-mix(in srgb, var(--sf-legal-color, #fff) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.theme-site-footer__bottom .theme-site-footer__rights {
  margin: 0;
}

.theme-site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--sf-legal-color, #a5b4ca);
  font-size: 10px;
  line-height: 1.8;
}

.theme-site-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-site-footer__legal a:hover {
  color: var(--sf-legal-color, #fff);
}

/* Tax number → certificate: link without underline (Zid tax_registration_certificate) */
.theme-site-footer__legal a.theme-site-footer__tax-link,
.theme-site-footer__tax-link {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.theme-site-footer__tax-link:hover,
.theme-site-footer__tax-link:focus,
.theme-site-footer__tax-link:focus-visible {
  color: var(--sf-legal-color, #fff) !important;
  text-decoration: none !important;
  opacity: 0.92;
}

/* Tablet — keep columns readable before full mobile stack */
@media (max-width: 960px) {
  .theme-site-footer {
    --sf-pad: 28px;
    padding: 48px var(--sf-pad) 28px;
  }

  .theme-site-footer__top,
  .theme-site-footer__top.has-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .theme-site-footer__brand {
    grid-column: 1 / -1;
  }

  .theme-site-footer__col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .theme-site-footer {
    --sf-pad: 20px;
    --sf-gap: 24px;
    --sf-gap-x: 20px;
    padding: 36px var(--sf-pad) 28px;
    font-size: 13px;
  }

  .theme-site-footer__top,
  .theme-site-footer__top.has-contact {
    grid-template-columns: 1fr 1fr;
    gap: var(--sf-gap) var(--sf-gap-x);
  }

  .theme-site-footer__brand {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: start;
    /* Space before border = gap; grid gap handles space after */
    padding-bottom: var(--sf-gap);
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .theme-site-footer__logo-frame {
    width: min(180px, 56vw);
    height: 70px;
    margin-bottom: 10px;
  }

  .theme-site-footer__sig {
    max-width: 36em;
    font-size: 12px;
    line-height: 1.9;
  }

  .theme-site-footer__social {
    margin-top: 14px;
    gap: 12px;
  }

  .theme-site-footer__social a {
    width: 40px;
    height: 40px;
  }

  .theme-site-footer__title {
    margin: 0 0 10px;
    font-size: 12px !important;
    line-height: 1.5;
  }

  .theme-site-footer__links {
    gap: 2px;
  }

  .theme-site-footer__links a {
    font-size: 12px !important;
    line-height: 2.2;
    padding: 2px 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .theme-site-footer__note {
    max-width: none;
    margin-top: 8px;
    font-size: 11px !important;
    line-height: 1.8;
  }

  /* Contact — full row; grid gap above border, same gap as padding below it */
  .theme-site-footer__col--contact {
    grid-column: 1 / -1;
    padding-top: var(--sf-gap);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: start;
  }

  html[dir="rtl"] .theme-site-footer:not(.is-ltr) .theme-site-footer__col--contact,
  html[lang="ar"] .theme-site-footer:not(.is-ltr) .theme-site-footer__col--contact {
    direction: rtl;
    text-align: right;
  }

  .theme-site-footer__contact {
    gap: 4px;
    align-items: flex-start;
  }

  .theme-site-footer__contact li {
    margin-bottom: 4px;
    align-items: stretch;
    width: 100%;
  }

  .theme-site-footer__contact a {
    display: flex;
    justify-content: flex-start;
    font-size: 13px !important;
    line-height: 1.5;
    min-height: 40px;
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
    word-break: break-word;
  }

  .theme-site-footer__icons {
    margin-top: var(--sf-gap);
    padding-top: var(--sf-gap);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .theme-site-footer__icons-row {
    justify-content: flex-start;
    gap: 14px 16px;
  }

  .theme-site-footer__icon img {
    height: 18px;
    max-width: 64px;
  }

  .theme-site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: var(--sf-gap);
    padding: var(--sf-gap) 0 4px;
    line-height: 1.8;
    text-align: start;
  }

  .theme-site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 11px;
  }

  .theme-site-footer__rights {
    font-size: 10px;
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .theme-site-footer {
    --sf-gap: 24px;
  }

  .theme-site-footer__top,
  .theme-site-footer__top.has-contact {
    grid-template-columns: 1fr;
    gap: var(--sf-gap);
  }

  /* Single column: no extra contact border — gap alone separates blocks */
  .theme-site-footer__col--contact {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }
}
