.header-spacer {
  height: 100px; 
}
/* Header Layout */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  transition: all 0.3s ease;=
}
#header.sticky {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: all 0.3s ease;
}
 
.header-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  padding: 0;
  gap: 20px;
  justify-content: space-between;
  position: relative;
  min-height: 110px;
}

#nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: -5px;
}
#nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}
#nav ul li {
  position: relative;
}
#nav ul li a {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-gray);
  text-decoration: none;
  padding: 10px;
  display: inline-flex;
  align-items: center;
}

#nav ul li a.active,
#nav ul li a:hover
{
  color: var(--color-blue);
}

#nav ul li.hs-item-has-children > a:after {
  content: '\f078';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.3s ease;
  margin-top: 5px;
}


#header .hs-menu-children-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 15px 0;
  min-width: 300px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 99;
}
#header .hs-menu-item.hs-item-has-children .hs-menu-children-wrapper a {
  padding-left: 20px;
  font-size: 18px;
}
#header .hs-menu-item.hs-item-has-children:hover .hs-menu-children-wrapper {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
} 

/* Responsive */
@media (max-width: 991px) {
  #header { 
    border-bottom: 0;
    box-shadow: none!important; 
  }
  #header.sticky {
    background: #FFF;
  }
  #header .container {
    padding: 0; 
  }
  #header.open {
    background: #FFF; 
  }
  .menu-toggle {
    display: flex;
    display: block;
  }
  .menu-toggle {
    z-index: 9999;
  }
  .menu-toggle .bar {
    width: 100%;
  }
  #nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    flex-direction: column;
    padding: 20px;
    display: none;
    min-height: 100vh;
  }
  #nav.open {
    display: block;
  }
  #nav ul {
    display: block;
  }
  
  #nav ul li.hs-item-has-children > a:after {
    content: '\f078'; /* down */
  }
  #nav ul li.open > a:after {
    content: '\f077'; /* up */
  }
  #header .hs-menu-children-wrapper {
    position: static;
    box-shadow: none;
    padding-left: 15px;
    display: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  #header .hs-menu-item.open .hs-menu-children-wrapper {
    display: block !important;
  }
  #header .logo {
    margin-left: 20px; 
  }
  #nav ul li a {
    display: block;
    padding-bottom: 10px;
  }
  #nav ul {
    text-align: left; 
  }
  #nav {
    padding-left: 40px;
    padding-right: 40px;
  }
  #nav ul li a{
    font-size: 20px;
    padding-top: 15px;
  }

  
  /* Menu Toggle */
  .menu-toggle{
    display: block;
    margin-right: 20px;
    z-index: 9999;
    position: relative;            
    background: transparent;
    border: 0;
    padding: 0;
    width: 37px;                    
    height: 37px;                   
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    /* default color (hero is dark) */
    color: #fff;
    color: #081245;
    pointer-events: auto;
  }
  /* icon sizing (the inline SVG uses stroke="currentColor") */
  .menu-toggle .icon{
    display: block;
    width: 32px;
    height: 32px;
    pointer-events: none;       
  }
  /* swap hamburger/close using the class your JS toggles (.open) */
  .menu-toggle .icon--close{ display: none; }
  .menu-toggle.open .icon--menu{ display: none; }
  .menu-toggle.open .icon--close{ display: block; }

  /* color logic to match your old scheme */
  #header.sticky .menu-toggle{
    color: var(--color-black, #111);   /* dark icon on light sticky header */
    color: #081245;
  }
  /* when the mobile menu is open you darken the header; keep icon white */
  #header.open .menu-toggle{
    color: #fff;
    color: #081245;
  }
  .menu-toggle .icon line{
    vector-effect: non-scaling-stroke;
  }
  /* End Menu Toggle */
  
}

@media (min-width: 992px) {
  #nav ul li.hs-item-has-children:hover > a:after {
    transform: rotate(180deg);
  }
  .mobile-nav {
    display: none; 
  }
}