/* ==========================================================================
   Site Footer — Section 37
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-xl) var(--space-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--space-lg);
  }
}

.site-footer__logo {
  margin-bottom: var(--space-sm);
}
.site-footer__logo img,
.site-footer__logo svg {
  height: 96px; /* full stacked lockup (icon + two-line wordmark) needs more height than a horizontal mark to stay legible */
  display: block;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.site-footer p,
.site-footer address {
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

.site-footer__links li + li { margin-top: 0.6rem; }

.site-footer__links a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast);
}
.site-footer__links a:hover { color: var(--color-orange); }

.site-footer__contact li {
  display: flex;
  gap: 0.6rem;
  color: rgba(255,255,255,0.75);
}
.site-footer__contact li + li { margin-top: 0.8rem; }
.site-footer__contact i { color: var(--color-orange); width: 1.1em; margin-top: 0.2em; }

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.site-footer__social a:hover {
  background: var(--color-orange);
}

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  text-align: center;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
}

.site-footer__credit {
  position: relative;
  padding-left: 0.85rem;
}
.site-footer__credit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
@media (max-width: 480px) {
  .site-footer__credit { padding-left: 0; }
  .site-footer__credit::before { display: none; }
}
.site-footer__credit a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.site-footer__credit a:hover { color: var(--color-orange); }

/* ---- Mobile fixed action bar (Section 52) — shared across every page ---- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-white);
  box-shadow: 0 -4px 16px rgba(7,50,74,0.12);
}
@media (min-width: 1024px) {
  .mobile-action-bar { display: none; }
}
.mobile-action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-navy);
  border-right: 1px solid var(--color-border);
}
.mobile-action-bar a:last-child { border-right: none; }
.mobile-action-bar a i { font-size: 1.1rem; color: var(--color-orange); }
.mobile-action-bar a.is-quote { background: var(--color-orange); color: var(--color-white); }
.mobile-action-bar a.is-quote i { color: var(--color-white); }

/* Reserved on body (not .site-main) so the fixed bar never covers whatever
   renders last on the page — .site-main's content, or the footer after it. */
body.has-mobile-bar { padding-bottom: 64px; }
@media (min-width: 1024px) {
  body.has-mobile-bar { padding-bottom: 0; }
}
