/* =========================================================
   PalPrints — الفوتر الموحّد لكل صفحات الموقع
   يستخدمه: resources/views/partials/footer.blade.php
   (مضمّن من layouts/front و customer/layouts/app، حتى يظهر
   بنفس الشكل بالصفحة الرئيسية وصفحات المتجر معًا)

   قيم ثابتة (مش متغيّرات CSS) عن قصد، حتى يشتغل الملف لحاله
   بدون ما يعتمد على متغيّرات storefront.css المحصورة بصفحات المتجر.
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  width: auto;
  margin: 36px 0 0;
  padding: 28px 0 12px;
  color: #0b1f3a;
  background: #fff;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Cairo", sans-serif;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(120px, 1fr));
  gap: 24px;
  width: min(100% - 44px, 1240px);
  margin-inline: auto;
}

.site-footer__brand {
  max-width: 320px;
}

.site-footer__logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 8px;
}

.site-footer__logo-link:hover .site-footer__logo,
.site-footer__logo-link:focus-visible .site-footer__logo {
  filter: drop-shadow(0 4px 8px rgb(22 119 255 / 18%));
}

.site-footer__brand p {
  margin: 0;
  color: #62677f;
  font-size: 0.88rem;
  line-height: 1.65;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.site-footer__social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1677ff;
  border: 1px solid #d8dcea;
  border-radius: 50%;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease,
    transform 220ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: #fff;
  background: #1677ff;
  border-color: #1677ff;
  transform: translateY(-2px);
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-footer__column h2 {
  margin: 0 0 4px;
  color: #0b1f3a;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer__column a {
  color: #62677f;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
  color: #1677ff;
  transform: translateX(-3px);
}

.site-footer__column--contact span {
  color: #62677f;
  font-size: 0.82rem;
}

.site-footer__column--contact a,
.site-footer__column--contact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 44px, 1240px);
  margin: 24px auto 0;
  padding-top: 12px;
  color: #62677f;
  border-top: 1px solid #e7e9f1;
  font-size: 0.78rem;
}

.site-footer__bottom p {
  margin: 0;
}

@media (max-width: 991px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin: 28px 0 0;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .site-footer__brand {
    grid-column: auto;
    text-align: center;
  }

  .site-footer__wordmark {
    font-size: 27px;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__column {
    align-items: center;
    text-align: center;
  }

  .site-footer__bottom {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social a,
  .site-footer__column a {
    transition: none;
  }
}

@media (max-width: 640px) {
  .storefront-page .site-footer {
    padding: 28px 0 20px;
  }

  .storefront-page .site-footer__inner,
  .storefront-page .site-footer__bottom {
    width: calc(100% - 32px);
  }

  .storefront-page .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .storefront-page .site-footer__brand {
    grid-column: 1 / -1;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7e9f1;
    text-align: center;
  }

  .storefront-page .site-footer__logo-link {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
  }

  .storefront-page .site-footer__logo {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
  }

  .storefront-page .site-footer__column {
    min-width: 0;
    align-items: stretch;
    gap: 0;
    text-align: start;
  }

  .storefront-page .site-footer__column h2 {
    margin-bottom: 6px;
    font-size: 0.9rem;
  }

  .storefront-page .site-footer__column a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-block: 6px;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .storefront-page .site-footer__column--contact {
    grid-column: 1 / -1;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e7e9f1;
    text-align: center;
  }

  .storefront-page .site-footer__column--contact a {
    justify-content: center;
    max-width: 100%;
  }

  .storefront-page .site-footer__bottom {
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    line-height: 1.7;
  }

  .storefront-page .site-footer__social {
    gap: 12px;
    margin-top: 0;
  }

  .storefront-page .site-footer__social a {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}
