/* ==========================================================================
   Site footer — full-width map, CTA bar, link columns, bottom bar
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: var(--text-light-blue-2);
  font-family: var(--font-sans);
}

/* --- Full-width map --- */
.footer-map {
  width: 100%;
  height: 360px;
  line-height: 0;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

/* Pages that already show their own map (home, contact) suppress this one,
   so the same map never appears twice on a single page. */
.has-page-map .footer-map {
  display: none;
}

/* --- CTA bar --- */
.footer-cta {
  background: var(--blue-accent);
}

.footer-cta__inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-cta__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-cta__title {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.15;
  color: var(--white);
}

.footer-cta__sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: #D6EEFB;
}

.footer-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-cta__actions .btn {
  padding: 14px 22px;
}
.footer-cta__actions .btn--fill-white {
  padding: 15px 26px;
}

/* --- Single-row nav mirroring the header --- */
.footer-nav {
  border-bottom: 1px solid #1B3446;
}
.footer-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer-nav__inner a {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light-blue-2);
  text-decoration: none;
  white-space: nowrap;
}
.footer-nav__inner a:hover {
  color: var(--white);
}

/* --- Main columns --- */
.footer-main {
  padding-top: 56px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col--brand {
  gap: 22px;
}

/* Footer logo artwork is already light, so it sits directly on the dark
   background — no white plate needed. */
.footer-logo {
  height: 81px;
  width: auto;
  align-self: flex-start;
}

.footer-col--brand p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-light-blue-2);
  max-width: 340px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid #2B4759;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-blue-2);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: var(--white);
}
.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

.footer-col__title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col__links a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-light-blue-2);
  text-decoration: none;
}
.footer-col__links a:hover {
  color: var(--white);
}

.footer-address {
  font-style: normal;
}
.footer-address a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light-blue-2);
  text-decoration: none;
}
.footer-address a:hover {
  color: var(--white);
}

.footer-phone {
  font-size: 13px;
  line-height: 1.6;
  color: var(--white);
  text-decoration: none;
}
.footer-phone:hover {
  color: var(--blue-accent);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-hours__day {
  color: var(--white);
}
.footer-hours__day--spaced {
  margin-top: 8px;
}

/* --- Bottom bar --- */
.footer-bottom {
  border-top: 1px solid #1B3446;
}

.footer-bottom__inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted-4);
}

.footer-bottom__links {
  display: flex;
  gap: 22px;
}
.footer-bottom__links a {
  color: var(--text-muted-4);
  text-decoration: none;
}
.footer-bottom__links a:hover {
  color: var(--white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .footer-map {
    height: 260px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-nav__inner {
    gap: 8px 26px;
  }
}

@media (max-width: 640px) {
  .footer-map {
    height: 220px;
  }

  .footer-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta__actions {
    width: 100%;
    flex-direction: column;
  }
  .footer-cta__actions .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Stack the nav so long labels never wrap mid-item on a phone */
  .footer-nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
