/* Footer ported from the CPAS Health website. */
footer.footer {
  padding: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(153, 159, 221, 0.144), transparent 35%),
    #0d1f38;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

footer.footer .hero-divider {
  width: 100%;
  height: 8px;
  background-color: #99d8e6;
}

footer.footer > .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 28px;
}

footer.footer .footer-left {
  min-width: 300px;
  justify-self: start;
}

footer.footer .footer-contact h2 {
  margin: 20px 0 8px;
  color: #dddddd;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

footer.footer .footer-contact p {
  margin: 0 0 15px;
}

footer.footer .footer-contact a,
footer.footer .footer-contact-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

footer.footer a {
  display: inline-block;
  transition: transform 180ms ease;
}

footer.footer .footer-contact a {
  transition: color 0.2s ease, transform 180ms ease;
}

footer.footer .footer-contact a:hover,
footer.footer .footer-contact a:focus-visible {
  color: #00a0df;
}

footer.footer .phone-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

footer.footer .phone-item h2 {
  margin: 0 0 5px;
}

footer.footer .socialMedia {
  margin-top: 20px;
}

footer.footer .socialMedia img {
  display: block;
  width: auto;
  height: 24px;
}

footer.footer .footer-center {
  display: flex;
  min-width: 220px;
  align-items: center;
  justify-content: center;
  text-align: center;
  justify-self: center;
}

footer.footer .product-links-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

footer.footer .footer-logo img {
  display: block;
  width: 250px;
  height: auto;
  margin: 0;
}

footer.footer .seperator {
  width: min(300px, 100%);
  height: 6px;
  background-color: #9aa6dd;
  border-radius: 50px;
}

footer.footer .hero-badge {
  /* width: 50%; */
  margin-bottom: 1rem;
  padding: 4px 12px;
  color: #b5d4f4;
  background: rgba(255, 255, 255, 0.15);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer.footer .footer-right {
  display: flex;
  min-width: 200px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

footer.footer .award {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
}

footer.footer .award img {
  display: block;
  width: auto;
  max-height: 140px;
  opacity: 0.95;
}

footer.footer .footer-bottom {
  display: flex;
  max-width: 1400px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 18px 28px 28px;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  text-align: center;
}

footer.footer .footer-bottom p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

footer.footer .footer-bottom a {
  font-size: inherit;
}

footer.footer .footer-contact-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  transform-origin: left bottom;
  transition: color 0.25s ease, transform 180ms ease;
}

footer.footer .footer-contact-link:hover,
footer.footer .footer-contact-link:focus-visible {
  color: #99d8e6;
  transform: scale(1.05);
}

footer.footer a:hover,
footer.footer a:focus-visible {
  transform: scale(1.05);
}

footer.footer a:focus-visible {
  outline: 3px solid rgba(153, 216, 230, 0.55);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  footer.footer > .container {
    grid-template-columns: 1fr;
    padding: 44px 20px 28px;
    text-align: center;
  }

  footer.footer .footer-left,
  footer.footer .footer-center,
  footer.footer .footer-right {
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    justify-self: center;
    text-align: center;
  }

  footer.footer .footer-center {
    order: -1;
  }

  footer.footer .phone-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  footer.footer .socialMedia {
    margin-top: 0;
  }

  footer.footer .footer-logo img {
    margin: 0 auto;
  }

  footer.footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    padding: 18px 20px 24px;
    text-align: center;
  }

  footer.footer .footer-contact-link {
    transform-origin: center;
  }
}

@media (max-width: 420px) {
  footer.footer > .container {
    gap: 32px;
    padding: 38px 16px 24px;
  }

  footer.footer .footer-logo img {
    width: min(220px, 75vw);
  }

  footer.footer .phone-container {
    width: 100%;
  }

  footer.footer .footer-contact a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.footer a,
  footer.footer a img {
    transition: none;
  }
}
