/* css/core-nav.css */

/* =========================================================
   CORE NAVIGATION
   One shared nav system for all Manchester Boilers pages
   ========================================================= */

.mb-nav-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

.mb-nav {
  width: 100%;
  padding: 22px clamp(16px, 3vw, 38px) 0;
}

.mb-nav-inner {
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}

.mb-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.mb-brand img {
  display: block;
  width: auto;
  max-height: 104px;
  object-fit: contain;
}

.mb-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 38px);
  min-width: 0;
}

.mb-nav-links a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-family: "Outfit", Inter, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, opacity .2s ease;
}

.mb-nav-links a:hover,
.mb-nav-links a[aria-current="page"] {
  color: #fff;
}

.mb-nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.mb-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mb-social {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.mb-social svg {
  width: 23px;
  height: 23px;
  display: block;
}

.mb-social svg path,
.mb-social svg rect {
  fill: currentColor;
}

.mb-social-instagram .mb-instagram-shape {
  fill: url(#mbInstagramGradient);
}

.mb-social-google svg path {
  fill: currentColor;
}

.mb-social-google .mb-google-blue { fill: #4285f4; }
.mb-social-google .mb-google-green { fill: #34a853; }
.mb-social-google .mb-google-yellow { fill: #fbbc05; }
.mb-social-google .mb-google-red { fill: #ea4335; }

.mb-nav-cta .mb-btn {
  min-height: 58px;
  padding-inline: 30px;
  white-space: nowrap;
}

/* Burger hidden on desktop */
.mb-menu-toggle {
  display: none;
}

/* Mobile panel hidden by default */
.mb-mobile-panel {
  display: none;
}

/* Slightly tighter laptops */
@media (max-width: 1180px) {
  .mb-nav-inner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }

  .mb-brand img {
    max-height: 86px;
  }

  .mb-nav-links {
    gap: 22px;
  }

  .mb-nav-links a {
    font-size: 16px;
  }

  .mb-social {
    width: 44px;
    height: 44px;
  }

  .mb-nav-cta .mb-btn {
    min-height: 54px;
    padding-inline: 24px;
  }
}

/* Tablet/mobile nav */
@media (max-width: 900px) {
  .mb-nav {
    padding: 16px clamp(14px, 4vw, 24px) 0;
  }

  .mb-nav-inner {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .mb-brand img {
    max-height: 68px;
  }

  .mb-nav-links,
  .mb-nav-cta {
    display: none;
  }

  .mb-menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    gap: 4px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.16);
    cursor: pointer;
  }

  .mb-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: #fff;
    border-radius: 999px;
  }

  .mb-mobile-panel {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 92px;
    z-index: 60;
  }

  .mb-mobile-panel.is-open,
  .mb-nav-wrap.is-open .mb-mobile-panel {
    display: block;
  }

  .mb-mobile-panel-inner {
    border-radius: 24px;
    padding: 18px;
    background: rgba(12, 22, 42, .96);
    border: 1px solid rgba(62,166,255,.18);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
    display: grid;
    gap: 10px;
  }

  .mb-mobile-panel-inner a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
  }

  .mb-mobile-cta {
    display: grid;
    gap: 10px;
    margin-top: 8px;
  }
}

/* Small mobile */
@media (max-width: 520px) {
  .mb-brand img {
    max-height: 58px;
  }

  .mb-menu-toggle {
    width: 44px;
    height: 44px;
  }
}