#masthead,
#masthead .main-navigation {
  background-color: #eeeeee;
}

/* ARBSTAX responsive header */
#masthead {
  background: #eeeeee;
  border-bottom: 1px solid #dddddd;
}

#masthead .inside-header {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
}

#masthead .main-navigation {
  background: transparent;
}

#masthead .site-logo img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

/* Account buttons */
#masthead #menu-navigation-panel > .arb-nav-signin > a,
#masthead #menu-navigation-panel > .arb-nav-start > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1;
}

#masthead a:focus-visible,
#masthead button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

/* WIDE DESKTOP: full navigation, no hamburger */
@media (min-width: 1101px) {
  #masthead .inside-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
  }

  #masthead .site-logo {
    flex: 0 0 150px;
    margin: 0;
  }

  #masthead #mobile-menu-control-wrapper,
  #masthead #site-navigation .menu-toggle {
    display: none !important;
  }

  #masthead #site-navigation {
    display: block !important;
    margin-left: auto;
  }

  #masthead #primary-menu {
    display: block !important;
  }

  #masthead #menu-navigation-panel {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  #masthead #menu-navigation-panel > li {
    display: block !important;
    float: none;
  }

  #masthead #menu-navigation-panel >
  li:not(.arb-nav-signin):not(.arb-nav-start) > a {
    padding: 0 10px;
    color: #111111;
    line-height: 48px;
    white-space: nowrap;
  }
}

/* NARROW DESKTOP + MOBILE: hamburger layout */
@media (max-width: 1100px) {
  #masthead .inside-header {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0 12px;
  }

  /* Hamburger */
  #masthead #mobile-menu-control-wrapper {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
  }

  #masthead #mobile-menu-control-wrapper .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: #111111;
    line-height: 1;
    cursor: pointer;
  }

  /* Logo beside hamburger */
  #masthead .site-logo {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0 !important;
  }

  /* Use the header grid for navigation items */
  #masthead #site-navigation,
  #masthead #site-navigation .inside-navigation,
  #masthead #primary-menu,
  #masthead #menu-navigation-panel {
    display: contents !important;
  }

  #masthead #site-navigation .menu-toggle {
    display: none !important;
  }

  /* Hide navigation links until menu opens */
  #masthead #menu-navigation-panel > li {
    display: none !important;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    float: none;
  }

  #masthead #site-navigation.toggled
  #menu-navigation-panel > li {
    display: block !important;
  }

  /* Keep both buttons visible */
  #masthead #menu-navigation-panel > .arb-nav-signin,
  #masthead #menu-navigation-panel > .arb-nav-start {
    display: block !important;
    grid-row: 1;
    width: auto;
  }

  #masthead #menu-navigation-panel > .arb-nav-signin {
    grid-column: 3;
  }

  #masthead #menu-navigation-panel > .arb-nav-start {
    grid-column: 4;
  }

  /* Expanded navigation links */
  #masthead #menu-navigation-panel >
  li:not(.arb-nav-signin):not(.arb-nav-start) > a {
    padding: 10px 12px;
    color: #111111;
    background: transparent;
    line-height: 1.6;
    border-bottom: 1px solid #dddddd;
  }

  /* Services submenu */
  #masthead #site-navigation .sub-menu {
    position: static !important;
    display: none !important;
    width: 100%;
    height: auto;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    float: none;
    box-shadow: none;
    background: #e6e6e6;
  }

  #masthead #site-navigation li.sfHover > .sub-menu,
  #masthead #site-navigation li:hover > .sub-menu,
  #masthead #site-navigation li:focus-within > .sub-menu,
  #masthead #site-navigation .sub-menu.toggled-on {
    display: block !important;
  }

  #masthead #site-navigation .sub-menu a {
    padding: 12px 24px;
    color: #111111;
    line-height: 1.5;
  }
}

/* SMALL MOBILE: tighter spacing */
@media (max-width: 600px) {
  #masthead .inside-header {
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    gap: 0 7px;
    padding: 10px 12px;
  }

  #masthead #mobile-menu-control-wrapper .menu-toggle {
    width: 30px;
  }

  #masthead .site-logo img {
    width: 110px;
  }

  #masthead .arb-nav-signin > a > span,
  #masthead .arb-nav-start > a > span {
    box-sizing: border-box !important;
    min-height: 40px;
    padding: 10px 11px !important;
    font-size: 12px !important;
  }
}
/* Reduce the gap between Services and Pricing */
@media (min-width: 1101px) {
  #masthead #menu-item-183 > a {
    padding-right: 0;
  }

  #masthead #menu-item-183 > a > .dropdown-menu-toggle {
    padding-left: 6px;
    padding-right: 0;
  }
}