/*
  Shared Clear Bay Footer
  This stays intentionally independent from legacy storefront layout rules.
  It contains only confirmed Pawnyra routes, policy URLs, and the public email.
*/
.clear-bay-footer {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 112px clamp(24px, 7vw, 112px) 0 !important;
  overflow: hidden;
  color: #f8fdff;
  background:
    radial-gradient(circle at 8% 22%, rgba(129, 222, 235, .22), transparent 24rem),
    radial-gradient(circle at 87% 32%, rgba(255, 213, 113, .16), transparent 22rem),
    linear-gradient(128deg, #057fa4 0%, #0796bc 58%, #007a9c 100%);
  font-size: 1rem;
  text-align: left;
}

/* Overrides the previous Home-only hide rule without touching its Hero geometry. */
.home-page .clear-bay-footer {
  display: block !important;
}

.clear-bay-footer::before {
  position: absolute;
  z-index: 0;
  top: -1px;
  right: 0;
  left: 0;
  height: 96px;
  content: "";
  pointer-events: none;
  background: url("../brand/clear-bay-wave.svg") center top / 100% 100% no-repeat;
}

.clear-bay-footer__inner,
.clear-bay-footer__legal {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.clear-bay-footer__inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(2, minmax(130px, .7fr)) minmax(240px, .95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding-bottom: 44px;
}

.clear-bay-footer__brand,
.clear-bay-footer__group,
.clear-bay-footer__contact {
  display: grid;
  align-content: start;
  gap: 9px;
}

.clear-bay-footer__brand {
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.clear-bay-footer__brand .brand-word {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.2vw, 3.65rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .86;
}

.clear-bay-footer__brand small {
  margin: 8px 0 0 5px;
  color: rgba(255, 255, 255, .84);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.clear-bay-footer__group strong,
.clear-bay-footer__contact strong {
  margin-bottom: 5px;
  color: #fff1b9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.clear-bay-footer a:not(.clear-bay-footer__brand) {
  width: fit-content;
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
  text-underline-offset: .22em;
}

.clear-bay-footer a:not(.clear-bay-footer__brand):hover,
.clear-bay-footer a:not(.clear-bay-footer__brand):focus-visible {
  color: #fff1b9;
  text-decoration: underline;
}

.clear-bay-footer__contact a {
  overflow-wrap: anywhere;
}

.clear-bay-footer__legal {
  padding: 18px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .74);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}

@media (max-width: 900px) {
  .clear-bay-footer {
    padding: 92px 24px 0 !important;
  }

  .clear-bay-footer::before { height: 78px; }

  .clear-bay-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px 24px;
    padding-bottom: 34px;
  }

  .clear-bay-footer__brand,
  .clear-bay-footer__contact { grid-column: 1 / -1; }

  .clear-bay-footer__brand .brand-word { font-size: 2.65rem; }
}

@media (max-width: 480px) {
  .clear-bay-footer { padding: 78px 20px 0 !important; }
  .clear-bay-footer::before { height: 64px; }
  .clear-bay-footer__inner { gap: 26px 18px; }
  .clear-bay-footer__legal { padding: 16px 0 18px; font-size: .71rem; }
}
