/* The booking action spans the same four columns as the icon row below it. */
.footer-links {
  display: grid !important;
  grid-template-columns: repeat(4, 54px);
  gap: 10px 14px !important;
  align-items: center;
  justify-content: center;
}

.footer-links .footer-book-session {
  grid-column: 1 / -1;
  display: flex !important;
  width: 100% !important;
  height: 48px !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid rgba(238, 243, 248, 0.92) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.2), transparent 30% 68%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #d91a22 0%, #b50912 58%, #78070d 100%) !important;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34), inset 0 -4px 0 #071b5e !important;
}

.footer-links .footer-book-session::after {
  display: none !important;
}

.footer-links .footer-book-session svg {
  width: 21px;
  height: 21px;
}

.footer-links .footer-service-area,
.footer-links .footer-legal {
  grid-column: 1 / -1;
}

@media (min-width: 621px) and (max-width: 1024px) {
  .footer {
    padding: 28px 0 34px;
  }

  .footer-inner {
    width: min(100% - 24px, 920px);
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    gap: 12px 18px;
    align-items: center;
    padding: 12px;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
    justify-items: start;
    width: auto;
    padding-top: 0;
    border-top: 0;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .footer-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: center;
    gap: 4px;
  }

  .footer-brand img {
    width: 128px;
    max-height: 48px;
  }

  .footer-brand span {
    font-size: 0.72rem;
    line-height: 1.22;
    white-space: nowrap;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, 48px);
    gap: 10px;
    justify-content: center;
  }

  .footer-links a {
    width: 48px;
    height: 48px;
    border-width: 4px;
  }

  .footer-links svg {
    width: 21px;
    height: 21px;
  }

  .footer-service-area {
    margin-top: 0;
    font-size: 0.7rem;
  }

  .footer-legal {
    margin-top: 0;
    font-size: 0.62rem;
  }

  .footer-copy-address {
    justify-self: start;
    text-align: left;
  }

  .footer-copy-address::after,
  .footer-contact a::after {
    left: 0;
    right: auto;
    transform: translateY(6px);
  }

  .footer-copy-address:hover::after,
  .footer-copy-address:focus-visible::after,
  .footer-copy-address.is-copied::after,
  .footer-contact a:hover::after,
  .footer-contact a:focus-visible::after {
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .footer {
    padding: 22px 0 28px;
  }

  .footer-inner {
    width: min(100% - 24px, 520px);
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
    justify-items: center;
    padding: 14px 12px;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
    gap: 5px;
  }

  .footer-brand img {
    width: 132px;
    max-height: 50px;
  }

  .footer-brand span {
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .footer-links {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(4, 44px);
    gap: 9px;
    justify-content: center;
  }

  .footer-links a {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }

  .footer-links svg {
    width: 20px;
    height: 20px;
  }

  .footer-service-area {
    margin-top: 0;
    font-size: 0.66rem;
  }

  .footer-legal {
    margin-top: 0;
    gap: 4px 8px;
    font-size: 0.6rem;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 6px 18px;
    justify-content: center;
    justify-items: center;
    width: 100%;
    padding-top: 2px;
    border-top: 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .footer-copy-address {
    justify-self: center;
    text-align: center;
  }

  .footer-copy-address::after,
  .footer-contact a::after {
    left: 50%;
    right: auto;
    transform: translate(-50%, 6px);
  }

  .footer-copy-address:hover::after,
  .footer-copy-address:focus-visible::after,
  .footer-copy-address.is-copied::after,
  .footer-contact a:hover::after,
  .footer-contact a:focus-visible::after {
    transform: translate(-50%, 0);
  }
}

/* Keep legal text links out of the square navigation button sizing. */
.footer-links .footer-legal a {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: inherit;
  line-height: inherit;
}
.footer-links .footer-legal {
  gap: 6px 12px;
  line-height: 1.5;
}
@media (min-width: 621px) and (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: minmax(100px, 1fr) 264px minmax(128px, 1fr);
    gap: 20px;
    padding: 24px 18px;
  }
  .footer-contact { grid-column: 1; grid-row: 1; align-self: center; }
  .footer-brand { grid-column: 3; grid-row: 1; align-self: center; }
  .footer-links {
    grid-column: 2;
    grid-row: 1;
    gap: 12px !important;
    align-content: center;
  }
  .footer-links .footer-service-area { line-height: 1.5; text-align: center; }
  .footer-links .footer-legal { margin: 0; }
}
@media (min-width: 621px) and (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-contact { grid-column: 1; grid-row: 1; }
  .footer-brand { grid-column: 2; grid-row: 1; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .footer-brand { min-width: 0; }
  .footer-brand span { white-space: normal; font-size: 0.7rem; }
}

/* Copyright gets its own row on phones and tablets. */
@media (max-width: 1024px) {
  .footer-links .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    text-align: center;
  }
  .footer-links .footer-legal > span {
    flex: 0 0 100%;
    width: 100%;
  }
  .footer-links .footer-legal > a {
    flex: 0 0 auto;
  }
}

.footer-employee-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}
.footer-links .footer-employees {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-height: 32px;
  padding: 6px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none !important;
}
.footer-links .footer-employees::after { display: none !important; }
.footer-links .footer-employees:hover { background: rgba(255, 255, 255, 0.2) !important; }
.footer-links .footer-employees:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
