/* ===========================================================================
   The public site footer.

   Scoped to .site-footer and self-contained, the same way home-header.css is
   scoped to .header: tokens are read with a literal fallback so this renders
   the same whether or not the page also loads landing.css.

   .site-footer__top and .site-footer__bottom restate the width and centring
   that `.container` gives on a page that loads landing.css, the same reason
   `.header__inner` restates them instead of relying on that bare class: a
   content page such as /about or /help loads neither landing.css nor any
   rule for `.container`, and the footer still has to centre itself there.

   The markup this file styles is resources/views/site/include/public-footer.blade.php.
   =========================================================================== */

.site-footer {
  background: #102620;
  color: #fff;
  padding: 56px 0 22px;
  font-family: Tajawal, Arial, sans-serif;
}

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

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer__top {
  width: var(--container, min(1080px, calc(100% - 40px)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
}

.site-footer__logo {
  display: inline-flex;
}

.site-footer__logo img {
  width: 100px;
  height: 66px;
}

.site-footer__brand > p {
  color: #a8bdb6;
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #b3c6c0;
}

.site-footer__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__contact svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: #6ee0b6;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  color: #6ee0b6;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__col h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer__col a {
  font-size: 13px;
  color: #b3c6c0;
  transition: color 0.15s;
  width: fit-content;
}

.site-footer__col a:hover,
.site-footer__col a:focus-visible {
  color: #6ee0b6;
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid rgba(110, 224, 182, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__bottom {
  width: var(--container, min(1080px, calc(100% - 40px)));
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: center;
  color: #93a8a2;
  font-size: 12px;
}

@media (max-width: 950px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

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

@media (max-width: 620px) {
  .site-footer__top,
  .site-footer__bottom {
    width: var(--container, min(100% - 26px, 1180px));
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 40px 0 20px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }
}

/* The floating support button (`live-chat-widget.css`) is fixed to the bottom corner on every
   public page. At this width it tightens to bottom:16px, ~50px tall; this reserves enough clear
   space under the copyright line so it never sits over real footer text at the end of the page. */
@media (max-width: 600px) {
  .site-footer__bottom {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

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