/* ==========================================================================
   Footer: gradient panel with logo, tagline, link columns, legal + back to top
   ========================================================================== */
.site-footer {
  padding: 0 10px 10px;
}
.site-footer__panel {
  overflow: clip;
  padding: 64px 20px 28px;
  border-radius: 28px;
  background: linear-gradient(
    130.9deg,
    #31b4e7 0%,
    #458ebd 28.455%,
    #55719d 44.715%,
    #6a4b74 60.976%,
    #891538 81.301%
  );
}
@media (min-width: 768px) {
  .site-footer__panel {
    padding: 96px 46px 28px;
  }
}
.site-footer__inner {
  width: 100%;
  max-width: 1328px;
  margin-inline: auto;
}

.site-footer__top {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .site-footer__top {
    display: flex;
    gap: 40px;
  }
}

/* ---- Brand ---- */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .site-footer__brand {
    flex-shrink: 0;
    width: 340px;
  }
}
.site-footer__logo {
  position: relative;
  display: block;
  width: 220px;
  height: 58.047px;
  border-radius: 2px;
}
.site-footer__logo:focus-visible {
  outline-color: var(--white);
  outline-offset: 4px;
}
/* Figma logo layers, positioned with the design's insets. */
.site-footer__logo-part {
  position: absolute;
}
.site-footer__logo-part img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.site-footer__logo-part--mark { inset: 15.24% 80.26% 63.63% 6.68%; }
.site-footer__logo-part--ghc { inset: 15.05% 44.48% 15.05% 4.05%; }
.site-footer__logo-part--text-1 { inset: 54.44% 4.05% 30.78% 59.54%; }
.site-footer__logo-part--text-2 { inset: 70.76% 20.7% 15.05% 59.54%; }
.site-footer__logo-part--arabic { inset: 13.94% 11.72% 53.22% 59.56%; }

.site-footer__tagline {
  max-width: 340px;
  font-weight: var(--fw-news);
  font-size: 16px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Link columns ---- */
.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
@media (min-width: 768px) {
  .site-footer__columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .site-footer__columns {
    display: flex;
    flex: 1;
    gap: 40px;
  }
  .site-footer__col {
    flex: 1;
  }
}
.site-footer__col {
  min-width: 0;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__heading {
  font-weight: var(--fw-regular);
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}
.site-footer__spacer {
  height: 6px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__link {
  position: relative;
  border-radius: 2px;
  font-weight: var(--fw-news);
  font-size: 16px;
  line-height: 20px;
  color: var(--white);
}
/* Underline that grows from the left on hover */
.site-footer__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.site-footer__link:hover::after {
  transform: scaleX(1);
}
.site-footer__link:focus-visible,
.site-footer__top-link:focus-visible {
  outline-color: var(--white);
}

/* ---- Bottom bar ---- */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
@media (min-width: 768px) {
  .site-footer__bottom {
    margin-top: 146px;
  }
}
.site-footer__legal {
  font-weight: var(--fw-news);
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.8);
}
.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  border-radius: 2px;
  font-weight: var(--fw-news);
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s;
}
.site-footer__top-link:hover {
  color: var(--white);
}
.site-footer__top-arrow {
  transition: translate 0.3s var(--ease-out-expo);
}
.site-footer__top-link:hover .site-footer__top-arrow {
  translate: 0 -2px;
}
