/* ==========================================================
   footer.css — Wauwatosa Site Footer
   Layout/spacing handled by Bootstrap utility & grid classes.
   This file only sets brand colors, typography, and a11y states
   that Bootstrap doesn't provide.
   All values use tokens defined in style.css :root
   ========================================================== */

/* ── Shell ── */
.site-footer {
  background: var(--color-dark-blue);
  color: var(--color-off-white);
}

/* ── Top utility strip ── */
.tosa-footer-top {
  background: var(--color-light-blue);
}

.tosa-footer-top-nav {
  font-family: var(--font-family-tiktok);
  padding: 14px 0;
  position: relative;
  z-index: 2;
}

.tosa-footer-top-link,
.tosa-footer-sep {
  color: var(--color-dark-blue) !important;
  text-decoration: none;
  font-size: 24px;
  font-weight: var(--fw-bold);
}

.tosa-footer-social {
  position: relative;
  z-index: 2;
}

.tosa-footer-social-link:hover,
.tosa-footer-social-link:focus {
  /* background: var(--color-burgendy); */
  color: var(--color-off-white);
}

/* ── Main footer body ── */
.tosa-footer-main {
  background: var(--color-dark-blue);
  background-image: url("/wp-content/uploads/2026/07/Wauwatosa_Design_Element_Letter_W-Light-Blue-1.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: inherit;
}

.tosa-footer-badge {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-top: -160px;
  margin-inline: auto;
}

/* ── Headings & text ── */
.tosa-footer-heading {
  font-family: var(--font-family-tiktok);
  font-size: 18px;
  color: var(--color-off-white);
  margin-bottom: 12px;
}

.tosa-footer-address p {
  font-family: var(--font-family-tiktok);
  font-style: normal;
  font-size: 18px;
  color: var(--color-off-white);
  line-height: var(--body-line-height);
}

/* ── Footer nav links ── */
.tosa-footer-nav,
.tosa-footer-nav-fallback ul {
  margin: 0;
}

.tosa-footer-nav li,
.tosa-footer-nav-fallback li {
  margin-bottom: 10px;
}

.tosa-footer-link,
.tosa-footer-link a {
  font-family: var(--font-family-tiktok);
  font-weight: var(--fw-bold);
  font-size: 18px;
  color: var(--color-off-white) !important;
  text-decoration: none;
}

a.tosa-footer-link:hover,
a.tosa-footer-link:focus, 
.tosa-footer-link a:hover,
.tosa-footer-link a:focus {
  color: var(--color-light-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

address .tosa-footer-link {
  font-weight: var(--fw-regular);
}

/* ── Accessibility: visible focus states (WCAG 2.4.7) ── */
.tosa-footer-top-link:focus-visible,
.tosa-footer-link:focus-visible,
.tosa-footer-badge-link:focus-visible,
.tosa-footer-social-link:focus-visible {
  outline: 2px solid var(--color-light-green);
  outline-offset: 3px;
}
.footer-menu-column {
  grid-template-columns: 1fr 1fr 1fr;
}

.address-column {
  padding-right: 50px;
}
.tosa-footer-details {
  gap: 100px;
  padding-top: 100px;
  padding-bottom: 56px;
}
@media (min-width: 1820px) {
  .tosa-footer-top-link,
  .tosa-footer-sep {
    font-size: 36px;
  }
  .tosa-footer-top-nav {
    padding: 34px 0;
  }
  .tosa-footer-badge {
    margin-top: -200px;
  }
  .tosa-footer-address p,
  .tosa-footer-link a,
  .tosa-footer-heading {
    font-size: 20px;
  }
}

@media (max-width: 1500px) {
  .address-column {
    padding-right: 0px;
  }
}

@media (max-width: 1200px) {
  .tosa-footer-details {
    gap: 50px;
  }
  .tosa-footer-link {
    margin: 0;
  }
  .footer-menu-column {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
@media (max-width: 1080px) {
  .tosa-footer-badge {
    margin-top: 0;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .tosa-footer-top-nav {
    text-align: right;
    display: flex;
  }
  .tosa-footer-badge {
    width: 75%;
    margin-bottom: 20px;
  }

  address.tosa-footer-address {
    margin-bottom: 0.5rem;
  }
  .footer-menu-column {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .address-column,
  .tosa-footer-address p {
    padding: 0px;
    margin-bottom: 20px;
  }
  .tosa-footer-top-link,
  .tosa-footer-sep {
    font-size: 18px;
  }
  .tosa-footer-link {
    gap: 1.5rem;
  }
  .tosa-footer-main {
    background-image: url("/wp-content/uploads/2026/07/Wauwatosa_Design_Element_Letter_W-Light-Blue-1-1.svg");
    background-size: contain;
  }
}

@media (max-width: 767px) {
  .footer-menu-column,
  .tosa-footer-link {
    gap: 0.7rem;
  }
  .tosa-footer-sep {
    padding: 7px;
  }
}

@media (max-width: 580px) {
  .tosa-footer-social img {
    width: 30px;
  }
  .tosa-footer-badge {
    margin-top: -140px;
  }
  .tosa-footer-social {
    padding-top: 7px;
  }
   .tosa-footer-sep {
    padding: 0px;
  }
}
@media (max-width: 380px) {
  .tosa-footer-top-link,
  .tosa-footer-sep {
    /* font-size: 16px; */
    position: relative;
    z-index: 2;
  }
  .tosa-footer-social {
    margin-top: -33px !important;
  }
  .tosa-footer-badge {
    margin-top: -122px;
  }
  .tosa-footer-top-nav {
    text-align: left;
  }
  .tosa-footer-top-nav {
    display: block;
  }
}