/* =========================================================
   CORE FOOTER
   Shared footer styling for all Manchester Boilers pages
   Use with the same footer HTML structure on every page
   ========================================================= */

.mb-footer {
  position: relative;
  padding: clamp(42px, 6vw, 76px) 0 clamp(28px, 4vw, 46px);
  overflow: hidden;
}

.mb-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(255,77,77,.10), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(62,166,255,.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.025));
  pointer-events: none;
}

.mb-footer-shell {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,77,77,.08), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(62,166,255,.11), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(62,166,255,.12);
  box-shadow: var(--shadow, 0 28px 70px rgba(0,0,0,.32));
  backdrop-filter: blur(12px);
}

.mb-footer-main,
.mb-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, .65fr) minmax(220px, .85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.mb-footer-brand {
  min-width: 0;
}

.mb-footer-brand img {
  display: block;
  width: min(190px, 70vw);
  height: auto;
  margin-bottom: 16px;
}

.mb-footer-brand h3,
.mb-footer-col h4,
.mb-footer-areas h4,
.mb-footer-seo-card h4 {
  margin: 0;
  font-family: "Outfit", Inter, sans-serif;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.02em;
}

.mb-footer-brand h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.mb-footer-col h4,
.mb-footer-areas h4,
.mb-footer-seo-card h4 {
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.mb-footer-brand p,
.mb-footer-seo-card p,
.mb-footer-contact div,
.mb-footer-contact span {
  margin: 0;
  color: var(--muted, rgba(255,255,255,.76));
  line-height: 1.68;
  font-size: 15px;
}

.mb-footer-brand p {
  max-width: 430px;
}

.mb-footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(62,166,255,.14);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.mb-footer-trust::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-1, #ff4d4d), var(--blue-1, #3ea6ff));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mb-footer-links,
.mb-footer-contact {
  display: grid;
  gap: 10px;
}

.mb-footer-links a,
.mb-footer-contact a,
.mb-footer-bottom a {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.mb-footer-links a:hover,
.mb-footer-contact a:hover,
.mb-footer-bottom a:hover,
.mb-footer-area-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mb-footer-areas,
.mb-footer-seo-card {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mb-footer-seo-card p {
  max-width: 960px;
}

.mb-footer-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mb-footer-area-links a,
.mb-footer-area-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(62,166,255,.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.mb-footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 800;
}

.mb-footer-bottom-left,
.mb-footer-bottom-right,
.mb-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.mb-footer-bottom-right {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 900px) {
  .mb-footer-main,
  .mb-footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mb-footer-brand img,
  .mb-footer-brand p,
  .mb-footer-trust {
    margin-left: auto;
    margin-right: auto;
  }

  .mb-footer-links,
  .mb-footer-contact {
    justify-items: center;
  }

  .mb-footer-area-links,
  .mb-footer-bottom,
  .mb-footer-bottom-left,
  .mb-footer-bottom-right,
  .mb-footer-bottom-links {
    justify-content: center;
  }

  .mb-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mb-footer-bottom-right {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .mb-footer {
    padding-top: 34px;
  }

  .mb-footer-shell {
    border-radius: 28px;
  }

  .mb-footer-area-links a,
  .mb-footer-area-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
  }
}
