/* Common header styles */
.menu-open{overflow: hidden;}
.header-backdrop{
  background: linear-gradient(180deg, rgba(19, 36, 14, 0.80) 0%, rgba(19, 36, 14, 0.00) 100%);
  width: 100%;
  height: 218px;
  position: absolute;
  top: 0px;
}
header#site-header {
  width: 100%;
  position: fixed;
  top: 0px;
  z-index: 99;
}
header#site-header.header-scrolled {
  background: var(--primary-color);
  z-index: 9999;
}
.header-scrolled .header-backdrop {
  opacity: 0;
  height: 75px;
}
.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 0px;
  position: relative;
  z-index: 1;
  transition: all 0.6s;
}

.header-scrolled .navbar {
  padding: 20px 0px;
  transition: all 0.6s;
}
.logo, .logo a{
  display: flex;
}

.logo img {height: 32px;}
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 38px;
}
.nav-menu a {
  text-decoration: none;
  color: #B3B8B6;
  font-size: 16px;
  font-weight: 700;
}
.nav-menu a:hover{color: #fff;}

.nav-menu a.active{
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.phone {
  font-size: 14px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  text-decoration: none;
}
.phone a { font-weight: 700; }
.phone a:hover{color: var(--primary-color);}
.phone-span{
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.quote-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -0.28px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}
.quote-btn img{
  transition: all 0.5s;
}
.quote-btn:hover img{animation: scrollX 400ms linear forwards; will-change: transform;} 

.for-mob-view, .menu-toggle{display: none;}

/* --- Mobile-only effects --- */

@media (max-width: 1240px) {
  .navbar{padding: 15px 5px;}
}

@media (min-width: 1025px) and (max-width: 1130px) {
  .phone-span span{display: none;}

}

@media (max-width: 1024px) {
  .menu-toggle{display: flex;}
  /* Hide normal desktop nav */
  .nav-menu, .nav-right { display: none; }

  /* Show mobile toggle */
  .for-mob-view{display: flex;align-items: center;gap: 20px;}
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 100%;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(57px);
    padding: 12px;
  }

  .menu-toggle span {
    height: 2px;
    width: 100%;
    background: #0a573d;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .menu-toggle.active {background: var(--primary-color);}
  .menu-toggle.active span {background-color: #fff;}
  .menu-toggle.active span:nth-child(1) {transform: rotate(45deg) translate(4px, 5px);}
  .menu-toggle.active span:nth-child(2) {opacity: 0;}
  .menu-toggle.active span:nth-child(3) {transform: rotate(-45deg) translate(3px, -4px);}

  /* Slide-in mobile menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 320px;
    background:  #fff;
    flex-direction: column;
    padding: 80px 20px;
    transform: translateX(130%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
  }

  .nav-menu.active { transform: translateX(0);justify-content: center; }
  .nav-menu.active ul.nav-ul{
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 25px;
  }
  .nav-menu.active ul.nav-ul a{font-size: 24px;font-weight: 500;}
  .nav-menu.active ul.nav-ul a.active,  .nav-menu.active ul.nav-ul a:hover{
    color: var(--primary-color);
  }
  /* Background blur overlay */
  .shade-blur {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgb(61 85 64 / 80%);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 500;
  }
  .menu-open .shade-blur {opacity: 1;visibility: visible;z-index: auto;}
  .menu-open .banner-wrap, .menu-open .banner-wrap-inner{
    z-index: auto;
  }
  #site-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }
  #site-header.fixed { 
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    
  }
 
  #site-header.fixed.show {transform: translateY(0);opacity: 1;}

  .header-scrolled .navbar{padding: 12px 0px;}
    
}

@media screen and (max-width: 767px) {
  .navbar {
    padding: 10px 0px;
  }
  .for-mob-view{
    gap: 5px; 
  }
}

@media screen and (max-width: 520px) {
  .logo img {
    height: 38px;
    position: relative;
    top: 2px;
  }
}