.footer {
  background-image:
    radial-gradient(ellipse at 8% 0%, hsl(205 100% 55% / 0.14), transparent 34%),
    radial-gradient(ellipse at 92% 100%, hsl(265 90% 65% / 0.09), transparent 38%);
}

.footer__main {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.75rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.footer__column {
  min-width: 0;
}

.footer__column:first-child .footer-item {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--footer-border);
  border-radius: 1.125rem;
  background: linear-gradient(145deg, hsl(0 0% 100% / 0.055), hsl(0 0% 100% / 0.012));
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.055);
}

.footer__column:first-child .footer-item::before {
  position: absolute;
  top: 0;
  right: 1.25rem;
  left: 1.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--footer-accent), transparent);
  content: "";
  opacity: 0.8;
}

.footer__column:not(:first-child) .footer-item__title::after {
  transform: scaleX(0.75);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.footer__column:first-child .footer-item__logo {
  margin-bottom: 1.125rem;
}

.footer-item__logo a img {
  height: auto;
  object-fit: contain;
}

.footer-item__desc {
  margin-bottom: 0;
  max-width: 38ch;
}

.footer-item__title {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.footer-item__title::after {
  width: 2rem;
  height: 3px;
}

.footer .social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.375rem 0 0;
  padding: 0;
  list-style: none;
}

.footer .social-list__link {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  transform: none;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: transform 180ms ease;
}

.footer .social-list__link::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: var(--footer-social-hover-bg);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.footer .social-list__link:hover,
.footer .social-list__link:focus {
  color: var(--footer-social-hover-icon) !important;
  fill: var(--footer-social-hover-icon) !important;
  background-color: var(--footer-social-bg) !important;
  background-image: none !important;
  border-color: var(--footer-social-border) !important;
  box-shadow: none !important;
  transform: translateY(-3px);
}

.footer .social-list__link:hover::after,
.footer .social-list__link:focus-visible::after {
  opacity: 1;
}

.footer .social-list__link > * {
  transition: transform 180ms ease;
}

.footer .social-list__link:hover > *,
.footer .social-list__link:focus-visible > * {
  transform: scale(1.08);
}

.footer-menu__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  margin-left: -0.625rem;
  padding-inline: 0.625rem;
  align-items: center;
  overflow-wrap: anywhere;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: transform 180ms ease;
}

.footer-menu__link::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 1rem;
  border-radius: 2px;
  background: var(--footer-accent);
  content: "";
  opacity: 0;
  transform: translateY(-50%) scaleY(0.5);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.footer-menu__link:hover,
.footer-menu__link:focus-visible {
  background-color: transparent;
  transform: translateX(3px);
}

.footer-menu__link:hover::before,
.footer-menu__link:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.footer__column:not(:first-child) .footer-item:hover .footer-item__title::after,
.footer__column:not(:first-child) .footer-item:focus-within .footer-item__title::after {
  transform: scaleX(1);
}

.footer-menu__item {
  padding-bottom: 0.375rem;
}

.footer__bottom-content {
  width: 100%;
}

.bottom-footer {
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.035), transparent);
}

.bottom-footer.py-4 {
  padding-block: 0.75rem !important;
}

.bottom-footer__text {
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--footer-text);
}

.bottom-footer__text a {
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.bottom-footer__text a:hover {
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer__column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .footer__column:first-child .footer-item {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    column-gap: clamp(1rem, 3vw, 2rem);
  }

  .footer__column:first-child .footer-item__logo {
    margin-bottom: 0;
  }

  .footer__column:first-child .footer-item__desc {
    grid-column: 2;
  }

  .footer__column:first-child .social-list {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .footer__main {
    padding-block: 3rem 2.5rem;
  }

  .footer__grid {
    gap: 1.75rem 1rem;
  }

  .footer__column:first-child .footer-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .footer__column:first-child .footer-item__desc,
  .footer__column:first-child .social-list {
    grid-column: 1;
  }

  .footer__column:first-child .footer-item__logo {
    margin-bottom: 1rem;
  }

  .footer__column:first-child .social-list {
    margin-top: 1rem;
  }

  .footer-item__title {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
  }

  .footer-menu__item {
    padding-bottom: 0.5rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .footer__column:first-child .footer-item {
    transition: transform 180ms ease;
  }

  .footer__column:first-child .footer-item:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__column:first-child .footer-item,
  .footer__column:not(:first-child) .footer-item__title::after,
  .footer .social-list__link,
  .footer .social-list__link::after,
  .footer .social-list__link > *,
  .footer-menu__link,
  .footer-menu__link::before {
    transition: none;
  }

  .footer__column:first-child .footer-item:hover,
  .footer .social-list__link:hover,
  .footer .social-list__link:focus,
  .footer .social-list__link:hover > *,
  .footer .social-list__link:focus-visible > *,
  .footer-menu__link {
    transform: none;
  }

  .footer-menu__link:hover,
  .footer-menu__link:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .footer,
  .footer__column:first-child .footer-item,
  .bottom-footer {
    background-image: none;
  }
}
