/* Menu Item Styles */
.header__menu .header__navigation .submenu:not(.level-1) li a {
  transition: all .4s ease;
  -moz-transition: all .4s ease;
  -webkit-transition: all .4s ease;
  -ms-transition: all .4s ease;
  -o-transition: all .4s ease;
}

.navigation-primary > ul > li > a {
  position: relative;
  display: block;
  font-size: 17px;
  line-height: 35px;
  font-weight: 600;
  opacity: 1;
  color: #fff;
  text-transform: capitalize;
  padding: 30px 0px;
  transition: all 300ms ease;
  text-decoration: none;
}
.header__menu .header__navigation .submenu.level-1>.menu-item {
  margin-right: 35px;
}
.header__menu .header__navigation .submenu.level-1>.menu-item:last-child {
  margin-right: 0;
}

.navigation-primary > ul > li > a:before {
  position: absolute;
  content: "";
  left: 0px;
  bottom: 20px;
  width: 0%;
  height: 2px;
  opacity: 0;
  background-color: #f8ad00;
  transition: all 500ms ease 0s;
}

.navigation-primary > ul > li > a:hover, .navigation-primary > ul > li > a:focus, .navigation-primary > ul > li > a:active {
  color: #f7b82d;
}

.navigation-primary > ul > li > a:hover:before, .navigation-primary > ul > li > a:focus:before, .navigation-primary > ul > li > a:active:before {
  opacity: 1;
  width: 100%;
}

.navigation-primary > ul > li > a.active-item {
  position: relative;
}

/******** Child Menus *******/
/* Desktop */
@media (min-width: 768px) {
  .submenu.level-2 {
    z-index: 1000;
    font-size: 1rem;
    color: #212529;
    list-style: none;
    left: 0px;
    top: 110%;
    width: 240px;
    padding: 0px 0px;
    opacity: 1;
    text-align: left;
    background: #9f0301;
    border-top: 3px solid #eec300;
    -ms-box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05);
    -o-box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05);
  }
  .submenu.level-2 .menu-item .menu-link {
    display: block;
    position: relative;
    padding: 9px 18px;
    font-size: 15px;
    line-height: 30px;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
  }
  .submenu.level-2 .menu-item .menu-link:hover {
    background-color: #eec300;
    color: #222;
  }
  .menu-arrow {
    display: none;
  }
}

/* Mobile */
/* Base styles */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .navigation-primary > ul > li > a:before {
    display: none;
  }
  .submenu {
    display: none;
  }
  .submenu > .has-submenu {
    position: relative;
  }
  .submenu > li > a {
    display: block;
    width: 100%;
  }
  .submenu > .has-submenu > a {
    width: 70%;
  }
  input[type='checkbox']:checked ~ .submenu {
    display: block;
  }
}

.submenu:not(.level-1) {
  z-index: 100;
}

.submenu:not(.level-1) .has-submenu {
  position: relative;
}

/* Top Level Menu */
.submenu.level-1 {
  display: inline-block;
}

.submenu.level-1 > li {
  display: inline-block;
  position: relative;
}

.submenu.level-1 > li:last-child {
  margin-right: 0;
}

.submenu.level-2 {
  left: -9999px;
  opacity: 0;
  position: absolute;
  top: 100%;
  width: 200px;
}

.submenu.level-3 {
  left: -9999px;
  position: absolute;
  top: 5%;
  width: 100%;
}

.submenu.level-1 > li:hover .submenu.level-2,
.submenu.level-1 > li.focus .submenu.level-2 {
  left: 0;
  opacity: 1;
}

.submenu.level-1 > li:hover:last-child .submenu.level-2,
.submenu.level-1 > li.focus:last-child .submenu.level-2 {
  left: auto;
  right: 0;
}

.submenu.level-2 > li:hover .submenu.level-3,
.submenu.level-2 > li.focus .submenu.level-3 {
  left: auto;
  opacity: 1;
  right: 100%;
}

.submenu.level-2 > li {
  margin: 0;
  padding: 0;
}

.submenu.level-2 > li:last-child,
.submenu.level-2 > li:last-child .submenu {
  border-bottom: none;
}

@media (max-width: 767px) {
  .submenu.level-1 {
    width: 100%;
    background-color: #9f0301;
    padding: 20px 5px;
  }
  .submenu.level-1 > li {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .submenu.level-1 > li > a {
    padding: 0.7rem 2.1rem;
  }
}

@media (max-width: 767px) {
  .submenu.level-2 {
    opacity: 1;
    position: static;
    visibility: visible;
    width: 100%;
  }
  .submenu.level-2 .menu-item {
    background: transparent;
    border-bottom: none;
    padding: 0;
  }
  .submenu.level-2 .menu-item .menu-link {
    padding: 0.7rem 2.8rem;
    font-size: 15px;
    line-height: 30px;
    font-weight: 600;
    color: #fff;
  }
  .submenu.level-2 .menu-item .menu-link:hover {
    background-color: inherit;
    color: #eec300;
  }
  .submenu.level-2 > .has-submenu .menu-link {
    width: 100%;
  }
  .submenu.level-2 > .has-submenu > .menu-arrow {
    display: none;
  }
  .submenu.level-3 {
    display: block;
  }
}

.submenu.level-3 .menu-item .menu-link {
  padding-left: 2.8rem;
}

@media (max-width: 767px) {
  .submenu.level-3 {
    background-color: inherit;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .submenu.level-3 > li {
    background-color: inherit;
    padding: 0;
  }
  .submenu.level-3 .menu-item .menu-link {
    padding: 0.7rem 3.5rem !important;
  }
}

/* Mobile Navigation */
#nav-toggle,
.submenu-toggle {
  display: none;
}

@media screen and (max-width: 767px) {
  .header__navigation {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    padding-left: 18px;
  }
  .header__navigation-toggle {
    cursor: pointer;
    display: block;
  }
  .header__mobile-menu-icon,
  .header__mobile-menu-icon:after,
  .header__mobile-menu-icon:before {
    border-radius: 0;
    display: inline-block;
    height: 2px;
    width: 30px;
    background-color: #fff;
  }
  .header__mobile-menu-icon {
    position: relative;
    top: -6px;
  }
  .header__mobile-menu-icon:before {
    top: -10px;
  }
  .header__mobile-menu-icon:after {
    top: 10px;
  }
  .header__mobile-menu-icon:after,
  .header__mobile-menu-icon:before {
    content: '';
    position: absolute;
  }
  #nav-toggle:checked ~ .header__navigation {
    display: block;
  }
  /* prettier-ignore */
  #nav-toggle:checked + .header__navigation-toggle .header__mobile-menu-icon {
    margin: 0 auto;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  /* prettier-ignore */
  #nav-toggle:checked + .header__navigation-toggle .header__mobile-menu-icon:before {
    content: none;
  }
  /* prettier-ignore */
  #nav-toggle:checked + .header__navigation-toggle .header__mobile-menu-icon:after {
    top: 0;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
  .menu-arrow-icon,
  .menu-arrow-icon:after {
    background-color: #fff;
    border-radius: 10px;
    display: block;
    height: 2px;
    width: 20px;
  }
  .menu-arrow-icon {
    margin: 0 auto;
    position: relative;
    top: 8px;
  }
  .menu-arrow-icon:after {
    content: '';
    position: absolute;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
  input[type='checkbox']:checked ~ .menu-arrow .menu-arrow-bg {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: -webkit-transform 0.4s;
    transition: transform 0.4s;
    transition: transform 0.4s, -webkit-transform 0.4s;
  }
  .submenu.level-1 > .has-submenu > .menu-arrow,
  .submenu > .has-submenu > .menu-arrow,
  .submenu .menu-arrow {
    border: none;
    cursor: pointer;
    padding: 13px 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
  }
  .submenu.level-1 > .has-submenu > .menu-arrow-bg,
  .submenu > .has-submenu > .menu-arrow-bg,
  .submenu .menu-arrow-bg {
    display: block;
    height: 20px;
    margin-left: auto;
    margin-right: 30px;
    transition: -webkit-transform 0.4s;
    transition: transform 0.4s;
    transition: transform 0.4s, -webkit-transform 0.4s;
    width: 20px;
  }
}

/* HubSpot Editor Styles */
.hs-inline-edit .submenu.level-1 > li.has-submenu:hover .submenu.level-2,
.hs-inline-edit > li.has-submenu.focus .submenu.level-2 {
  visibility: hidden;
}
