/* ================================
   NAVBAR RESET (START OVER)
   Center logo BIG + overlap allowed
   ================================ */

#mainNavbar{
  background: rgba(0,0,0,0.85) !important;
  padding: 14px 28px !important;
  overflow: visible !important;          /* allow logo to overlap */
  z-index: 9999 !important;
}

/* Remove theme junk that breaks alignment */
#mainNavbar ul,
#mainNavbar li{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
}

#mainNavbar .navbar-inner{
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  position: relative !important;         /* needed for absolute logo */
}

/* Desktop layout: left | (center logo) | right */
@media (min-width: 992px){

  #mainNavbar .nav-left,
  #mainNavbar .nav-right{
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  #mainNavbar .nav-left{ justify-content: flex-start !important; }
  #mainNavbar .nav-right{ justify-content: flex-end !important; }

  /* TRUE centered logo that can overlap */
  #mainNavbar .brand-center{
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2000 !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }

  /* Make logo bigger */
  #mainNavbar .brand-center img{
    height: 92px !important;  /* change this number to taste */
    width: auto !important;
    display: block !important;
  }

  /* Give nav “breathing room” so it never runs under the logo */
  #mainNavbar .nav-left{  padding-right: 230px !important; }
  #mainNavbar .nav-right{ padding-left: 230px !important; }

  /* Keep the collapse wrapper from affecting desktop spacing */
  #mainNavbarCollapse{
    flex: 0 0 auto !important;
    width: auto !important;
  }
}

/* Link styling */
#mainNavbar .nav-link{
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  padding: 6px 0 !important;
}

/* Mobile: keep it simple (logo normal size, menu drops down) */
@media (max-width: 991.98px){

  #mainNavbar .brand-center img{
    height: 56px !important;
  }

  #mainNavbarCollapse{
    padding: 12px 0 !important;
  }

  #mainNavbar .navbar-nav.d-lg-none .nav-link{
    padding: .75rem 0 !important;
  }
}

/* Optional: when scrolled, do NOT move layout (only visuals) */
#mainNavbar.scrolled{
  background: rgba(0,0,0,0.92) !important;
}

/* Auto section heading visibility */
#section4 .section-heading h2,
#section4 .section-heading .lead {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}

/* Optional: make the heading area pop with a subtle panel */
#section4 .section-heading {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

/* Match Auto header (#section4) to Residential header style */
#section4 .section-heading{
  position: relative;
  padding: 70px 40px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Dark overlay like the Residential header */
#section4 .section-heading::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 0;
}

/* Make text sit above overlay + force white */
#section4 .section-heading h2,
#section4 .section-heading .lead{
  position: relative;
  z-index: 1;
  color: #fff !important;
}

/* Remove the gray pill/label background if your CSS is adding it */
#section4 .section-heading h2,
#section4 .section-heading .lead{
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Optional: match sizing/weight more closely */
#section4 .section-heading h2{
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 12px;
}
#section4 .section-heading .lead{
  margin: 0;
  max-width: 980px;
}

/* Remove the pill badge look on Auto section header */
#section4 .section-heading h2,
#section4 .section-heading .lead{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;   /* stops inline-badge behavior */
}