/* Site footer. Sizes are read from the live footer at each breakpoint: 1400, 1200, 1024, 767. */
.amx-footer { padding-block: 85px 80px; color: #fff; background: var(--amx-navy) url("../../../../../uploads/2025/06/footer-banner.jpg") center / cover no-repeat; }
.amx-footer a { color: #fff; text-decoration: none; }
.amx-footer a:hover { color: #9fd0ff; }
.amx-footer ul { margin: 0; padding: 0; list-style: none; }
.amx-footer__title { margin: 0 0 30px; color: #fff; font-size: 26px; line-height: 36px; }
/* Four equal quarters, with the service list using two of them. */
.amx-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 25%)); row-gap: 32px; }
.amx-footer__col { padding-right: 20px; }
.amx-footer__col--services { grid-column: span 2; padding-right: 0; }
.amx-footer__col li { margin-bottom: 14px; font-size: 17px; line-height: 26px; }
.amx-footer__col--services ul { column-count: 2; column-gap: 0; }
.amx-footer__col--services li { padding-right: 20px; break-inside: avoid; }
.amx-footer__reach .amx-footer__title { margin-bottom: 20px; }
.amx-footer__reach address { display: flex; flex-direction: column; gap: 13px; font-size: 17px; font-style: normal; line-height: 26px; }
.amx-footer__reach strong { margin-bottom: -3px; font-size: 18px; line-height: 18px; font-weight: 500; text-transform: uppercase; }
.amx-footer__reach address > :nth-child(2) { margin-bottom: -3px; line-height: 28px; }
.amx-footer__bottom { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; margin-top: 55px; }
.amx-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.amx-socials a { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255, 255, 255, .1); border-radius: 50%; }
.amx-socials a:hover { color: #fff; background: var(--amx-blue); }
.amx-footer__follow .amx-footer__title { margin-bottom: 22px; }
.amx-footer__tagline { margin: 0; font-size: 50px; line-height: 60px; text-align: center; }
.amx-footer__copy { margin: 0; font-size: 18px; line-height: 28px; }

.amx-to-top { position: fixed; right: 24px; bottom: 90px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; background: var(--amx-navy); border: 0; border-radius: 50%; cursor: pointer; }
.amx-to-top[hidden] { display: none; }
.amx-to-top:hover { background: var(--amx-blue); }

@media (min-width: 1701px) {
  .amx-footer__bottom { margin-top: 41px; }
}
@media (max-width: 1400px) {
  .amx-footer { padding-bottom: 70px; }
  .amx-footer__title { font-size: 24px; line-height: 34px; }
  .amx-footer__bottom { margin-top: 44px; }
  .amx-footer__cols { margin-left: 2%; }
  .amx-footer__col li { font-size: 14px; }
  .amx-footer__reach address { font-size: 14px; }
  .amx-footer__reach strong { font-size: 15px; line-height: 25px; }
  .amx-footer__tagline { font-size: 38px; line-height: 48px; }
}
@media (max-width: 1200px) {
  .amx-footer { padding-bottom: 60px; }
  .amx-footer__title { font-size: 22px; line-height: 32px; }
  .amx-footer__bottom { margin-top: 49px; }
  .amx-footer__follow .amx-footer__title { margin-bottom: 15px; }
  .amx-footer__reach strong { margin-bottom: 1px; }
  .amx-footer__col li { margin-bottom: 9px; line-height: 24px; }
  .amx-footer__reach { margin-left: 10px; }
  .amx-footer__reach address { gap: 9px; line-height: 24px; }
  .amx-footer__reach address > :nth-child(2) { margin-bottom: 1px; line-height: 24px; }
  .amx-footer__reach strong { font-size: 13px; }
  .amx-footer__tagline { font-size: 34px; line-height: 44px; }
  .amx-footer__copy { font-size: 16px; }
}
@media (max-width: 1024px) {
  /* Plain navy, the two link lists side by side, and Reach us on its own row. */
  .amx-footer { background-image: none; }
  .amx-footer__title { margin-bottom: 20px; font-size: 20px; line-height: 30px; }
  .amx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; margin-left: 0; }
  .amx-footer__col--services { grid-column: auto; }
  .amx-footer__col--services ul { column-count: 1; }
  .amx-footer__col li { line-height: 22px; }
  .amx-footer__col li:last-child { margin-bottom: 0; }
  .amx-footer__reach { grid-column: 1 / -1; }
  .amx-footer__reach address { gap: 9px; line-height: 22px; }
  .amx-footer__reach address > :nth-child(2) { margin-bottom: 8px; }
  .amx-footer__reach strong { margin-bottom: 8px; }
  .amx-footer__bottom { margin-top: 40px; }
  .amx-socials { flex-wrap: nowrap; gap: 9px; }
  .amx-socials a { width: 32px; height: 32px; }
  .amx-socials svg { width: 14px; height: 14px; }
  .amx-footer__tagline { align-self: center; font-size: 32px; line-height: 42px; }
  .amx-footer__copy { font-size: 14px; line-height: 20px; }
}
/* Tablet portrait and below: the links flow along each line. */
@media (max-width: 900px) {
  .amx-footer__cols .amx-footer__col > nav ul, .amx-footer__cols .amx-footer__col > div ul { display: flex; flex-wrap: wrap; gap: 17px 22px; }
  .amx-footer__col li, .amx-footer__col--services li { margin: 0; padding: 0; }
}
@media (max-width: 767px) {
  .amx-footer { padding-block: 40px 30px; }
  .amx-footer__title { font-size: 19px; line-height: 29px; }
  .amx-footer__cols { grid-template-columns: 1fr; row-gap: 32px; }
  .amx-footer__col { padding-right: 0; }
  .amx-footer__cols .amx-footer__col > nav ul, .amx-footer__cols .amx-footer__col > div ul { gap: 15px 22px; }
  .amx-footer__col li, .amx-footer__col--services li { line-height: 26px; }
  .amx-footer__reach { margin-left: 0; }
  .amx-footer__reach address { line-height: 26px; }
  .amx-footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 60px; text-align: center; }
  .amx-footer__tagline { order: -1; font-size: 28px; line-height: 38px; }
  .amx-socials { justify-content: center; gap: 7px; }
  .amx-socials a { width: 34px; height: 34px; }
  .amx-footer__copy { margin-top: -10px; }
  .amx-to-top { right: 16px; bottom: 76px; width: 40px; height: 40px; }
}
