/**
 * Pool Ready Home - Footer
 * Subscribe band, site footer columns and the bottom bar.
 */

/* ==========================================================================
   1. Subscribe band
   ========================================================================== */

.prh-subscribe-band {
  position: relative;
  max-width: 1200px;
  margin: auto;
}
.prh-subscribe-band::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: var(--prh-teal);
  z-index: -1;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0% 100%);
}

.prh-subscribe-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--prh-space-6);
  padding-block: var(--prh-space-8);
}

.prh-subscribe-band__title {
  margin: 0;
  max-width: 32rem;
  color: var(--prh-white);
  font-size: var(--prh-fs-h4);
}

.prh-subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prh-space-3);
  width: 100%;
  max-width: 30rem;
}

.prh-subscribe__field {
  flex: 1 1 220px;
  border: 0;
  border-radius: var(--prh-radius-pill);
  padding: 14px 22px;
}

.prh-subscribe__submit {
  flex: 0 0 auto;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--prh-radius-pill);
  background: var(--prh-navy);
  color: var(--prh-white);
  font-weight: var(--prh-fw-semibold);
  transition: background-color var(--prh-transition);
}

.prh-subscribe__submit:hover {
  background: var(--prh-navy-dark);
}

.prh-subscribe-embed :is(input, button) {
  border-radius: var(--prh-radius-pill);
}

/* ==========================================================================
   2. Site footer
   ========================================================================== */

.prh-footer {
  background: var(--prh-navy);
  color: var(--prh-on-dark-70);
}

.prh-footer a {
  color: var(--prh-on-dark-70);
}

.prh-footer a:hover {
  color: var(--prh-white);
}

.prh-footer__top {
  display: grid;
  gap: var(--prh-space-12);
  padding-block: var(--prh-space-16);
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, 1fr);
}

@media (max-width: 900px) {
  .prh-footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .prh-footer__top {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------
   Brand column
   ------------------------------------------------------------------------ */

.prh-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--prh-space-5);
}

.prh-footer__logo {
  width: auto;
}

.prh-footer__logo--fallback {
  color: var(--prh-white);
  font-size: 1.375rem;
  font-weight: var(--prh-fw-bold);
}

.prh-footer__about {
  margin: 0;
  max-width: 26rem;
  font-size: var(--prh-fs-sm);
  line-height: var(--prh-lh-loose);
}

.prh-socials {
  display: flex;
  gap: var(--prh-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.prh-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--prh-radius-circle);
  background: rgba(255, 255, 255, 0.08);
  color: var(--prh-white);
  transition: background-color var(--prh-transition);
}

.prh-socials a:hover {
  background: var(--prh-teal);
}

/* ------------------------------------------------------------------------
   Link columns
   ------------------------------------------------------------------------ */

.prh-footer__heading {
  margin: 0 0 var(--prh-space-5);
  color: var(--prh-white);
  font-size: var(--prh-fs-h5);
}

.prh-footer__menu {
  display: flex;
  flex-direction: column;
  gap: var(--prh-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--prh-fs-sm);
}

/* ------------------------------------------------------------------------
   Contact column
   ------------------------------------------------------------------------ */

.prh-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--prh-space-4);
  font-size: var(--prh-fs-sm);
}

.prh-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--prh-space-3);
  margin: 0;
}

.prh-footer__contact-item svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: white;
}

/* ==========================================================================
   3. Bottom bar
   ========================================================================== */

.prh-footer__bottom {
  border-top: 1px solid var(--prh-hairline);
}

.prh-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--prh-space-4);
  padding-block: var(--prh-space-5);
  font-size: var(--prh-fs-xs);
}

.prh-footer__copyright {
  margin: 0;
}

.prh-footer__legal {
  display: flex;
  gap: var(--prh-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
