/**
 * AutoCheckView — site footer (shared)
 * Loaded by partials/footer.php so every page matches the landing footer.
 */

.site-footer {
  --sf-bg: #0f172a;
  --sf-text: rgba(255, 255, 255, 0.92);
  --sf-muted: rgba(255, 255, 255, 0.62);
  --sf-border: rgba(148, 163, 184, 0.28);
  --sf-accent: #38bdf8;

  background: var(--sf-bg) !important;
  color: var(--sf-text) !important;
  margin-top: 3rem !important;
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  border-top: 0;
  position: relative;
  z-index: 5;
  clear: both;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer h5,
.site-footer .sf-title {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff !important;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.site-footer p {
  color: var(--sf-muted) !important;
  margin-bottom: 0.85rem;
}

.site-footer .sf-brand-name {
  color: #fff !important;
}

.site-footer .sf-disclaimer {
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.82rem;
  margin-bottom: 0 !important;
}

.site-footer a {
  color: var(--sf-text) !important;
  text-decoration: none !important;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.site-footer .footer-contact p {
  color: var(--sf-text) !important;
  margin-bottom: 0.85rem;
}

.site-footer .footer-contact i {
  color: var(--sf-accent);
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}

.site-footer .footer-links a {
  color: var(--sf-muted) !important;
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem !important;
  padding: 0.1rem 0;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
  color: #fff !important;
}

.site-footer .footer-links i {
  font-size: 0.65rem;
  opacity: 0.7;
}

.site-footer .footer-bottom {
  margin-top: 2rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid var(--sf-border) !important;
}

.site-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.48) !important;
  margin-bottom: 0 !important;
}

/* Keep contact rows left-aligned even when global footer rules center text */
.site-footer .footer-contact .d-flex,
.site-footer .sf-brand {
  justify-content: flex-start !important;
  text-align: left;
}

@media (max-width: 991.98px) {
  .site-footer {
    margin-top: 2.25rem !important;
    padding-top: 2.25rem !important;
  }

  .site-footer .sf-col {
    margin-bottom: 1.75rem;
  }

  .site-footer .sf-col:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    text-align: left;
    padding-top: 2rem !important;
  }

  .site-footer .container {
    text-align: left !important;
  }

  .site-footer .footer-links a {
    padding: 0.25rem 0;
  }
}
