/* Shared site footer, used on every page. */

.footer {
  min-height: auto;
  margin-top: 0;
  background-color: var(--primary-color);
}

.footer_spacer {
  display: none;
}

.footer_wrapper {
  position: relative;
  bottom: auto;
  display: block;
  min-height: 0;
  padding-top: 0;
  background-color: var(--primary-color);
}

.footer_wrapper > .padding-global {
  display: none;
}

.home-footer {
  position: relative;
  padding:  clamp(1.5rem, 4vw, 4rem) 1.75rem;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  font-family: "Century Gothic", sans-serif;
  will-change: transform;
}

.home-footer__shell {
  display: flex;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  flex-direction: column;
  row-gap: clamp(2.5rem, 4vw, 3.5rem);
  will-change: opacity, transform;
}

.home-footer__top,
.home-footer__bottom {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(25rem, 1fr);
  column-gap: clamp(4rem, 10vw, 11rem);
}

.home-footer__logo {
  display: block;
  width: min(17rem, 78%);
}

.home-footer__badge {
  display: block;
  width: min(11rem, 48%);
  margin-top: 1.75rem;
}

.home-footer__socials {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
}

.home-footer__socials a {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: var(--secondary-color);
  place-items: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.home-footer__socials a:hover,
.home-footer__socials a:focus-visible {
  color: var(--accent-color);
  transform: translateY(-0.2rem);
}

.home-footer__socials svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.home-footer__socials svg path:first-child,
.home-footer__socials .is-filled {
  fill: currentColor;
  stroke: none;
}

.home-footer__enquiries {
  padding-top: 0.25rem;
}

.home-footer__enquiries p {
  margin: 0 0 1.35rem;
  color: var(--secondary-color);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.home-footer__enquiries a,
.home-footer__address a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease;
}

.home-footer__enquiries a:hover,
.home-footer__enquiries a:focus-visible,
.home-footer__address a:hover,
.home-footer__address a:focus-visible {
  color: var(--accent-color);
}

.home-footer__bottom {
  align-items: end;
}

.home-footer__nav,
.home-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.home-footer__nav {
  gap: 0.7rem 1.75rem;
}

.home-footer__nav a {
  color: var(--secondary-color);
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.home-footer__nav a:hover,
.home-footer__nav a:focus-visible {
  color: var(--accent-color);
}

.home-footer__legal {
  gap: 0.55rem 1.4rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.75rem;
}

.home-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.home-footer__legal a:hover,
.home-footer__legal a:focus-visible {
  color: var(--secondary-color);
}

.home-footer__address {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.45;
}

.home-footer__address strong {
  font-weight: 600;
}

.home-footer__to-top {
  position: absolute;
  top: clamp(2.5rem, 5vw, 4.75rem);
  right: clamp(1.5rem, 4vw, 4rem);
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--secondary-color);
  place-items: center;
}

.home-footer__to-top span {
  width: 1.2rem;
  height: 1.2rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(0.3rem) rotate(45deg);
  transition: color 0.25s ease, transform 0.25s ease;
}

.home-footer__to-top:hover span,
.home-footer__to-top:focus-visible span {
  color: var(--accent-color);
  transform: translateY(0) rotate(45deg);
}

@media screen and (max-width: 767px) {
  .home-footer {
    padding-top: 3rem;
  }

  .home-footer__top,
  .home-footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }

  .home-footer__enquiries {
    padding-top: 0;
  }

  .home-footer__address {
    grid-row: 1;
  }

  .home-footer__nav {
    gap: 0.3rem;
  }

  .home-footer__to-top {
    top: 2rem;
  }
}
