/* ===== SITE FOOTER ===== */
/* Compact footer with strong overrides to avoid inherited white bars. */

footer.site-footer {
  background-color: var(--site-bg-section, #0f1118) !important;
  color: var(--site-text-soft, #d9e3ff);
  padding: 20px 16px 0;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.45;
  width: 100%;
  box-sizing: border-box;
}

/* Prevent inherited generic paragraph/link styles from page-level CSS */
footer.site-footer,
footer.site-footer *,
footer.site-footer p,
footer.site-footer a,
footer.site-footer li,
footer.site-footer div,
footer.site-footer span,
footer.site-footer ul,
footer.site-footer h3,
footer.site-footer h4 {
  background-image: none !important;
  box-shadow: none !important;
  max-width: none !important;
}

footer.site-footer .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

footer.site-footer .footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer.site-footer .footer-col > * {
  width: 100%;
}

footer.site-footer .footer-heading {
  color: var(--site-text, #ffffff);
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

/* If any text backplate appears, force it to card-blue instead of white */
footer.site-footer p.footer-text,
footer.site-footer p.footer-address,
footer.site-footer .footer-bottom p {
  background-color: var(--site-surface, #1f2a44) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  margin: 0 auto 8px !important;
  width: min(100%, 260px);
  display: block;
}

footer.site-footer p.footer-text {
  color: var(--site-text-soft, #e7eeff) !important;
  font-size: 13px;
  text-align: center;
}

footer.site-footer p.footer-address {
  text-align: center;
}

footer.site-footer .footer-hours {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: fit-content;
}

footer.site-footer .footer-hours li {
  display: grid;
  grid-template-columns: 42px max-content;
  justify-content: start;
  column-gap: 8px;
  padding: 2px 0;
  color: var(--site-text-soft, #e7eeff);
  font-size: 13px;
}

footer.site-footer .footer-hours li span:first-child {
  font-weight: 700;
  color: var(--site-text, #ffffff);
  min-width: 34px;
  text-align: left;
}

/* Footer links requested color */
footer.site-footer .footer-col a,
footer.site-footer .footer-town-links a,
footer.site-footer .footer-address a {
  color: var(--site-yellow, #fee500) !important;
  text-decoration: none;
}

footer.site-footer .footer-col a:hover,
footer.site-footer .footer-town-links a:hover,
footer.site-footer .footer-address a:hover {
  color: var(--site-white, #ffffff) !important;
}

footer.site-footer .footer-subheading {
  color: var(--site-text, #ffffff);
  font-size: 12px;
  margin: 10px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

footer.site-footer .footer-town-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

footer.site-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 0;
  align-items: center;
  width: fit-content;
}

footer.site-footer .footer-social a {
  display: inline-flex;
  line-height: 1;
  opacity: 0.95;
}

footer.site-footer .footer-social a:hover {
  opacity: 1;
}

footer.site-footer .footer-social a svg {
  width: 20px;
  height: 20px;
}

/* Brand icon colors (no default blue/purple overlay) */
footer.site-footer .footer-social a.facebook { color: #1877F2 !important; }
footer.site-footer .footer-social a.instagram { color: #E4405F !important; }

footer.site-footer .footer-bottom {
  border-top: 1px solid var(--site-border, #27314a) !important;
  margin-top: 14px;
  padding: 10px 0 12px;
  text-align: center;
}

footer.site-footer .footer-bottom p {
  color: var(--site-text-soft, #d2ddfb) !important;
  font-size: 12px;
  margin: 0;
  display: inline-block;
}

@media screen and (max-width: 768px) {
  footer.site-footer {
    padding: 16px 12px 0;
  }

  footer.site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  footer.site-footer p.footer-text,
  footer.site-footer p.footer-address {
    text-align: center;
  }

  footer.site-footer .footer-hours li {
    justify-content: center;
  }

  footer.site-footer .footer-social {
    justify-content: center;
  }
}
