/*---*\
Flexible Content Footer
Footer for the Flexible Content page template (footer-flexible.php).

KEY FEATURES:
- Mobile: centred single column - logo, socials, CTAs, contact details, then legal links
- Desktop (1200px+): brand column left, contact column right, legal row below a divider
- Large logo watermark behind the content

IMPLEMENTATION NOTES:
- Loads after base.css; selectors use footer.fxf to out-rank the global footer rules
- Type scales with the viewport and tops out at the 1920px design sizes
\*---*/

footer.fxf {
  position: relative;
  overflow: hidden;
  padding: 48px 22px;
  border-radius: 24px 24px 0 0;
  background: var(--blue);
  color: var(--white);
}

.fxf__shape {
  position: absolute;
  top: 50%;
  left: -107px;
  width: 589px;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.fxf__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fxf a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.fxf__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fxf__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.fxf__logo {
  display: block;
  width: min(100%, 280px);
  line-height: 0;
}

.fxf__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.fxf__socials {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}

.fxf__social {
  display: block;
  line-height: 0;
}

.fxf__social img {
  display: block;
  width: 32px;
  height: 32px;
}

.fxf__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-family: AeonikMedium, sans-serif;
  font-size: 15px;
  line-height: 1.24;
  text-decoration: none;
}

.fxf__cta img {
  display: block;
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.fxf__cta:hover span,
.fxf__link:hover,
.fxf__links a:hover {
  text-decoration: underline;
}

.fxf__cta:hover img {
  transform: translate(2px, -2px);
}

.fxf__help {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
  text-align: center;
}

.fxf__heading {
  margin: 0;
  color: var(--white);
  font-family: AeonikRegular, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.fxf__text {
  margin: 0;
  color: var(--white);
  font-family: AeonikRegular, sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 1.6;
}

.fxf__link {
  color: var(--white);
  font-family: AeonikMedium, sans-serif;
  text-decoration: underline;
  text-decoration-thickness: from-font;
}

.fxf__bottom {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fxf__divider {
  width: 100%;
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--white);
}

.fxf__legal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--white);
  font-family: AeonikRegular, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.fxf__copyright {
  margin: 0;
  color: var(--white);
  font-size: inherit;
  line-height: inherit;
  text-align: center;
}

.fxf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fxf__links a {
  color: var(--white);
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  footer.fxf {
    padding: 80px clamp(24px, 3.33vw, 64px);
  }

  .fxf__shape {
    left: 19.17%;
    width: 53.75%;
  }

  .fxf__inner {
    gap: 80px;
  }

  .fxf__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .fxf__brand {
    flex: 0 1 424px;
    align-items: flex-start;
    gap: 40px;
  }

  .fxf__logo {
    width: min(100%, 350px);
  }

  .fxf__socials {
    gap: 20px;
    padding-bottom: 0;
  }

  .fxf__cta {
    justify-content: flex-start;
    gap: 10px;
    font-size: clamp(18px, 1.3vw, 25px);
  }

  .fxf__cta img {
    width: 20px;
    height: 20px;
  }

  .fxf__help {
    flex: 0 1 424px;
    gap: 20px;
    padding-top: 25px;
    text-align: left;
  }

  .fxf__heading {
    font-size: clamp(28px, 2.08vw, 40px);
  }

  .fxf__text {
    font-size: clamp(16px, 1.04vw, 20px);
  }

  .fxf__bottom {
    gap: 40px;
  }

  .fxf__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: clamp(14px, 0.94vw, 18px);
  }

  .fxf__copyright {
    text-align: left;
  }

  .fxf__links {
    flex-wrap: nowrap;
    gap: 20px;
  }

  .fxf__nav:last-child .fxf__links {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fxf__cta img {
    transition: none;
  }
}
