/* 1) Push the header down for better visibility */
#custom-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index:2005;
    background: white;

  }

  /* Limit logo width */
.custom-logo img {
    max-width: 250px;
    height: auto;
  }
  
  .top-cta-text{
      font-size:0.85rem;
      color:white;
      margin-bottom:0;
  }
  
  @media (max-width: 768px) {
      .top-cta-text{
      font-size:0.5rem !important;
      }
  }
  
  /* Increase inner padding */
  .custom-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1485px;
    margin: 0 auto;
    padding: 0.7rem 0.5rem; /* was 1rem, now 1.5rem */
    
  }

  .custom-header-inner-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1485px;
    margin: 0 auto;  
    padding-top:12px;
    padding-bottom:12px;
  }
  
  /* 2) Desktop nav: horizontal, white text, modern hover */
  .custom-nav-menu {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important; /* force horizontal */
    gap: 2rem !important;           /* space between items */
    margin: 0 !important;
    padding: 0 !important;
  }

  .custom-nav {
    justify-content: center;
    align-items: center;
    align-self: center;
  }
  .custom-nav-menu li {
    margin: 0;
  }
  .custom-nav-menu a {
    color: #353535;                         /* white text */
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: bold;
  }
  /* underline slide on hover */
  .custom-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #363636;                 /* accent blue */
    transition: width 0.3s ease;
  }
  .custom-nav-menu a:hover {
    color: #202020;
  }
  .custom-nav-menu a:hover::after {
    width: 100%;
  }
  
  /* 3) Phone & Quote buttons: icon on right, border/background, hover */
  .custom-header-buttons a {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.3s ease;
  }
  
  /* Phone number */
  .custom-phone {
    border: 1px solid #142058;
    color: #142058;
    padding: 1rem 1rem;
    border-radius: 4px;
  }
  .custom-phone .phone-text {
    margin-left: 0.5rem;
    color:#142058;
  }
  .custom-phone .dashicons {
    margin-left: 0.5rem;
  }

  .custom-phone .dashicons:hover{
    color:white;
  }
  .custom-phone:hover {
    transform: translateY(-2px);
    background: #142058;
    color:white;
    border: 1px solid #165975;
  }

  .custom-phone .phone-text:hover {
    color:white;
  }


    /* Address top block */
  .custom-address {
    color: #ebebeb;
  }
  .custom-address .address-text {
    margin-left: 0.5rem;
    color:#e9e9e9;
    font-size: 0.8rem;
  }
  .custom-address .dashicons {
    margin-left: 0.5rem;
    color:#ececec;
  }
  
  /* Quick Quote */
  .custom-quote {
    flex-direction: row-reverse;  /* icon on the right */
    background: #142058;           /* light blue */
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 1rem;
  }
  .custom-quote .quote-text {
    margin-right: 0.5rem;
  }
  .custom-quote .dashicons {
    margin-left: 0.5rem;
  }
  .custom-quote:hover {
    transform: translateY(-2px);
    background: #142058;           /* slightly darker on hover */
    color:white;
  }
  
  /* Hamburger & mobile menu (unchanged) */
  .custom-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  .hamburger-icon {
    width: 25px;
    height: 3px;
    background: #000;
    margin: 4px 0;
  }
  .custom-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 4rem;
  }
  .custom-mobile-menu.open {
    transform: translateY(0);
  }
  .custom-mobile-nav > li {
    margin: 1rem 0;
    text-align: center;
  }
  
  /* Responsive tweaks */
  @media (max-width: 1024px) {
    .custom-nav { display: none; }
    .custom-hamburger { display: flex; align-self: center;}
  }
  @media (max-width: 550px) {
    .custom-quote { display: none; }
    .custom-header-buttons { display: none; }
  }


  /* 1) Make each top-level menu item a positioning context */
.custom-nav-menu li {
    position: relative;
  }
  
  /* 2) Hide all sub-menus by default */
  .custom-nav-menu .sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;        /* directly below its parent */
    left: 0;
    background: #fff; /* or whatever bg you prefer */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    list-style: none !important;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 200px; /* adjust to taste */
    z-index: 1000;
  }
  
  /* 3) Reveal on hover */
  .custom-nav-menu li:hover > .sub-menu {
    display: block !important;
  }
  
  /* 4) Style sub-menu links */
  .custom-nav-menu .sub-menu li {
    margin: 0;
  }
  .custom-nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;             /* adjust text color */
    white-space: nowrap;
    transition: background 0.2s ease;
  }
  .custom-nav-menu .sub-menu a:hover {
    background: #ffffff;      /* hover state */
  }



/* smooth line animation */
.hamburger-icon {
  transition: transform .3s ease, opacity .3s ease;
}

/* turn the three lines into an "X" when menu is open */
.custom-hamburger.is-active .hamburger-icon:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.custom-hamburger.is-active .hamburger-icon:nth-child(2) {
  opacity: 0;
}
.custom-hamburger.is-active .hamburger-icon:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}





  
  