/* Shared site footer (app/footer.php). Scoped under footer.site-footer so
   the per-page footer rules each page stylesheet still carries can't
   restyle it, and self-contained (no page variables) for pages that have
   no footer styles at all. Matches the homepage footer. */
footer.site-footer {
  background: #4A0E0F;
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 30px;
  margin: 30px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  text-align: start
}

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

footer.site-footer .sf-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px
}

footer.site-footer .sf-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px
}

footer.site-footer .sf-logo {
  font-family: "Fraunces", Georgia, serif;
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 8px
}

footer.site-footer .sf-about {
  font-size: .88rem;
  max-width: 320px;
  margin: 0
}

footer.site-footer .sf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

footer.site-footer .sf-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s, color .2s, border-color .2s, transform .2s
}

footer.site-footer .sf-social a:hover,
footer.site-footer .sf-social a:focus-visible {
  background: #fff;
  color: #4A0E0F;
  border-color: #fff;
  transform: translateY(-2px)
}

footer.site-footer .sf-social a:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 2px
}

footer.site-footer .sf-social svg {
  display: block;
  flex: none
}

footer.site-footer h5 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 14px
}

footer.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  display: flex;
  flex-direction: column;
  gap: 8px
}

footer.site-footer li {
  margin: 0
}

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

footer.site-footer a:hover {
  color: #fff
}

footer.site-footer .sf-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 36px;
  padding-top: 20px;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

footer.site-footer .sf-bottom a {
  text-decoration: underline
}

html[lang="ar"] footer.site-footer .sf-logo {
  font-family: "Tajawal", "Inter", system-ui, sans-serif;
  font-weight: 700
}

html[lang="ar"] footer.site-footer h5 {
  letter-spacing: 0;
  text-transform: none
}

@media(max-width:780px) {
  footer.site-footer .sf-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  footer.site-footer .sf-wrap {
    padding: 0 18px
  }

  /* room under the last line for the floating accessibility / chat buttons */
  footer.site-footer .sf-bottom {
    padding-bottom: 76px
  }
}