/* =========================================================
   FOOTER - PREMIUM MORTGAGE FOOTER
   ========================================================= */

:root {
  --footer-bg: #032121;
  --footer-bg-secondary: #063232;
  --footer-panel: #0b3f3f;
  --footer-text: #d5e5e5;
  --footer-muted: #9db7b7;
  --footer-heading: #ffffff;
  --footer-accent: #fbb12f;
  --footer-accent-dark: #f59e0b;
  --footer-border: rgba(255, 255, 255, 0.10);
  --footer-card-border: rgba(255, 255, 255, 0.12);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-main {
  padding: 72px 0 48px;
  background:
    linear-gradient(180deg, var(--footer-bg-secondary), var(--footer-bg));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  align-items: start;
}

.site-footer h2 {
  margin: 0 0 20px;
  color: var(--footer-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-contact-list {
  display: grid;
  gap: 16px;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.6;
}

.footer-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-card-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.footer-icon svg,
.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer a {
  color: var(--footer-text);
  transition:
    color 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.site-footer a:hover {
  color: var(--footer-accent);
}

.footer-map-frame {
  overflow: hidden;
  border: 1px solid var(--footer-card-border);
  border-radius: 14px;
  background: var(--footer-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.footer-map-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  border: 0;
}

.footer-links ul {
  display: grid;
  gap: 14px;
}

.footer-links a {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
}

.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu-list a::before {
  width: auto;
  height: auto;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: #fff;
  content: "›";
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  content: "➤";
  line-height: 1;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.footer-menu-list a:hover::before {
  background: transparent;
  color: #fff;
  transform: translateX(3px);
}

.footer-menu-list .current-menu-item > a {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

.footer-links a span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(251, 177, 47, 0.12);
  color: var(--footer-accent);
  line-height: 1;
}

.footer-links a span svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.footer-links a:hover {
  border-color: transparent;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}

.footer-social-list {
  display: grid;
  gap: 14px;
}

.footer-social-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--footer-text);
  font-size: 15px;
  font-weight: 700;
}

.footer-social-link span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-card-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--footer-heading);
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-social-link:hover span {
  border-color: rgba(251, 177, 47, 0.45);
  background: rgba(251, 177, 47, 0.12);
  color: var(--footer-accent);
}

.footer-lender-logo {
  display: inline-flex;
  margin-top: 24px;
}

.footer-lender-logo img {
  width: 72px;
  height: auto;
}

.footer-legal {
  padding: 32px 0 42px;
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
}

.footer-legal-text {
  max-width: 1280px;
  margin: 0 auto;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.footer-legal-text a {
  color: var(--footer-accent);
}

.footer-legal-text a:hover {
  color: var(--footer-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
  }
}

@media (max-width: 767px) {
  .footer-main {
    padding: 52px 0 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-map-frame iframe {
    min-height: 240px;
  }

  .footer-legal {
    padding: 28px 0 34px;
  }

  .footer-legal-text {
    font-size: 12px;
    text-align: left;
  }
}
