.site-footer {
  --footer-background: var(--calabash-navy);
  --footer-background-deep: var(--calabash-navy-dark);
  --footer-border: var(--calabash-white-22);
  --footer-text: var(--calabash-white);
  --footer-muted: var(--calabash-light-grey);
  --footer-fine-print: #a9b3bd;
  --footer-accent: var(--calabash-company-turquoise);
  background:
    radial-gradient(
      circle at 78% 40%,
      var(--calabash-turquoise-08),
      transparent 31rem
    ),
    linear-gradient(
      110deg,
      var(--footer-background-deep) 0%,
      var(--footer-background) 58%,
      var(--calabash-navy-dark) 100%
    );
  color: var(--footer-text);
  font-size: 0.94rem;
  line-height: 1.55;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--footer-accent);
}

.site-footer a:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--footer-accent);
  outline-offset: 0.25rem;
}

.site-footer__inner {
  width: min(100% - 3rem, 112rem);
  margin-inline: auto;
  padding: 2.5rem 0 0;
}

.site-footer__main {
  display: grid;
  grid-template-columns:
    minmax(13rem, 1.1fr) minmax(10rem, 1fr) minmax(8rem, 0.9fr)
    minmax(8rem, 0.95fr) minmax(10rem, 1fr) minmax(15rem, 1.2fr);
  align-items: start;
}

.site-footer__main--no-badges {
  grid-template-columns:
    minmax(13rem, 1.1fr) minmax(10rem, 1fr) minmax(8rem, 0.9fr)
    minmax(8rem, 0.95fr) minmax(10rem, 1fr);
}

.site-footer__brand,
.site-footer__column,
.site-footer__accreditations {
  min-width: 0;
  padding: 0 2.5rem;
}

.site-footer__brand {
  padding-left: 0;
}

.site-footer__accreditations {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  contain: size;
  padding-right: 0;
}

.site-footer__column,
.site-footer__accreditations {
  border-left: 1px solid var(--footer-border);
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  max-width: 12rem;
}

.site-footer__logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 4.4rem;
  object-fit: contain;
  object-position: left center;
}

.site-footer__description {
  max-width: 18rem;
  margin: 1.4rem 0 1.6rem;
  color: var(--footer-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer__socials {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social-link {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid var(--calabash-white-82);
  border-radius: 50%;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-footer__social-link:hover {
  border-color: var(--footer-accent);
  transform: translateY(-2px);
}

.site-footer__social-link svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.site-footer__social-link:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer__social-link:nth-child(2) .site-footer__social-dot {
  fill: currentColor;
  stroke: none;
}

.site-footer__heading {
  margin: 0 0 1.1rem;
  color: var(--calabash-company-orange-a11y-on-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.site-footer__heading--accent {
  color: var(--calabash-company-orange-a11y-on-dark);
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.site-footer__links a {
  transition: color 180ms ease;
}

.site-footer__badge-list {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 10rem));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
}

.site-footer__badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 87.5625rem) {
  .site-footer__badge-list:has(.site-footer__badge:nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: 0.86rem;
}

.site-footer__copyright {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.site-footer__company {
  display: block;
  margin-top: 0.3rem;
  color: var(--footer-fine-print);
  font-size: 0.75rem;
}

@media (max-width: 87.5rem) {
  .site-footer__main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 2.25rem;
  }

  .site-footer__brand,
  .site-footer__accreditations {
    grid-row: 1;
    align-self: stretch;
    border-bottom: 1px solid var(--footer-border);
  }

  .site-footer__brand {
    grid-column: 1 / 3;
    padding: 0 0 2rem;
  }

  .site-footer__main--no-badges .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__accreditations {
    grid-column: 3 / -1;
    padding: 0 0 2rem clamp(1.5rem, 3vw, 2.5rem);
    border-left: 0;
  }

  .site-footer__column {
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
  }

  .site-footer__column--services {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer__badge-list {
    gap: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .site-footer__inner {
    width: min(100% - 2rem, 42rem);
    padding-top: 2rem;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 0;
  }

  .site-footer__column {
    padding: 0 1.5rem 0 0;
    border-left: 0;
  }

  .site-footer__column--company,
  .site-footer__column--support {
    padding: 0 0 0 1.5rem;
    border-left: 1px solid var(--footer-border);
  }

  .site-footer__column--shop,
  .site-footer__column--support {
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
  }

  .site-footer__accreditations {
    display: none;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.65rem;
    text-align: center;
  }

  .site-footer__copyright {
    grid-column: 1;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social-link,
  .site-footer__links a {
    transition: none;
  }
}
