/*
 * Stellarnav.js 1.2.0
 * jQuery responsive multi-level dropdown menu designed to do most of the heavy CSS work for you.
 * Copyright (c) 2016 Vinny Moreira - http://vinnymoreira.com
 * Released under the MIT license
 */
/* all nav */
.stellarnav {
  line-height: normal;
  position: relative;
  width: 100%;
  z-index: 9900;
}
.stellarnav li {
  display: block;
  line-height: normal;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  vertical-align: middle;
}
.stellarnav li a {
  box-sizing: border-box;
  color: #777;
  display: block;
  font-family: inherit;
  font-size: inherit;
  padding: 15px;
  position: relative;
  text-decoration: none;
  transition: all .3s ease-out;
}

/* main level */
.stellarnav > ul > li {
  display: inline-block;
}
.stellarnav ul li a {
  color: #003b5b;
  font-size: 22px;
  font-weight: 700;
  padding: 11px 16px;
}

/* first level dd */
.stellarnav ul ul {
  background: #f0f0f0;
  border-radius: 5px;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
  display: none;
  left: 15px;
  padding: 10px;
  position: absolute;
  text-align: left;
  top: 58px;
  width: auto;
  z-index: 9900;
}
.stellarnav > ul > li:nth-last-child(2) > ul {
  left: auto;
  right: 15px;
}
.stellarnav li li {
  border-bottom: 1px solid white;
  display: block;
}

/* second level dd */
.stellarnav ul ul ul {
  left: 220px;
  top: 0; /* dd animtion - change to auto to remove */
}
.stellarnav > ul > li:hover > ul > li:hover > ul {
  opacity: 1;
  top: 0;
  visibility: visible;
}
/* .drop-left */
.stellarnav > ul > li.drop-left > ul {
  right: 0;
}
.stellarnav li.drop-left ul ul {
  left: auto;
  right: 220px;
}
/* sticky nav */
.stellarnav.fixed {
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

/* only used when 'scrollbarFix' is set to true in the js. This fixes horizontal scrollbar caused by the dd menus that are very long.*/
body.stellarnav-noscroll-x {
  overflow-x: hidden;
}

/* general styling */
.stellarnav.hide-arrows li.has-sub > a:after,
.stellarnav.hide-arrows li li.has-sub > a:after,
.stellarnav.hide-arrows li.drop-left li.has-sub > a:after {
  display: none;
}
.stellarnav .menu-toggle,
.stellarnav .close-menu,
.stellarnav .call-btn-mobile,
.stellarnav .location-btn-mobile {
  display: none;
  text-decoration: none;
  text-transform: uppercase;
}
.stellarnav .dd-toggle {
  background-color: #e8e8e8;
  border: 0;
  display: none;
  height: 48px;
  padding: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 48px;
  z-index: 9999;
}
.stellarnav .dd-toggle i {
  -moz-transition: transform 0.3s ease-out;
  -webkit-transition: transform 0.3s ease-out;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 33%;
  transform: rotate(-90deg);
  transition: transform 0.3s ease-out;
}
.stellarnav.mobile > ul > li > a.dd-toggle {
  height: 100%;
  padding: 0;
  width: 60px;
}
.stellarnav li.call-btn-mobile,
.stellarnav li.location-btn-mobile {
  display: none;
}
.stellarnav li.open > a.dd-toggle i {
  transform: rotate(0deg);
}

/* mobile nav */
.stellarnav .menu-toggle,
.stellarnav .call-btn-mobile,
.stellarnav .location-btn-mobile,
.stellarnav .close-menu {
  box-sizing: border-box;
  color: #777;
  padding: 15px;
}
.stellarnav .full {
  width: 100%;
}
.stellarnav .half {
  width: 50%;
}
.stellarnav .third {
  text-align: center;
  width: 33%;
}
.stellarnav .location-btn-mobile.third {
  text-align: center;
}
.stellarnav .location-btn-mobile.half {
  text-align: right;
}


@media (max-width: 1199px) {
  .stellarnav ul li a {
    font-size: 16px;
    padding: 15px 16px;
  }

  .stellarnav ul ul li a {
    font-size: 16px;
  }
}
@media (min-width: 992px) {
  /*--- navbar ---*/
  .mn-menu::before,
  .mn-menu::after {
    content: "";
    width: 1px;
    height: 46px;
    position: absolute;
    background: linear-gradient(rgba(0, 0, 0, 0), #9e9e9e, rgba(0, 0, 0, 0));
    top: 0;
    left: -1px;
    bottom: 0;
    margin: auto;
  }
  .mn-menu::after {
    left: inherit;
    right: -1px;
    background: -webkit-linear-gradient(
      rgba(255, 255, 255, 0),
      #ffffff,
      rgba(255, 255, 255, 0)
    );
    background: -moz-linear-gradient(
      rgba(255, 255, 255, 0),
      #ffffff,
      rgba(255, 255, 255, 0)
    );
    background: linear-gradient(
      rgba(255, 255, 255, 0),
      #ffffff,
      rgba(255, 255, 255, 0)
    );
  }
  .mn-menu:first-child::before {
    width: 0;
  }
  li:nth-last-child(2):after {
    width: 0;
  }
  .mn-menu > a::before {
    content: "";
    background: url(../images/menu-top-arrow.png) left;
    background-repeat: no-repeat;
    position: absolute;
    width: 17px;
    left: 0;
    bottom: 0;
    right: 0;
    height: 15px;
    margin: auto;
    display: none;
  }
  .mn-menu > a::after {
    content: "";
    background: url(../images/menu-bottom-arrow.png) left;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 26px;
    bottom: -12px;
    height: 20px;
    z-index: 9999;
    display: none;
  }
  .mn-menu:hover a::before,
  .mn-menu:hover a::after {
    display: block;
  }
  .stellarnav > ul > li {
    display: block;
    float: left;
  }
  .stellarnav ul ul::before {
    content: '';
    height: 20px;
    left: 0;
    position: absolute;
    top: -20px;
    width: 100%;
  }
    /*-- active menu --*/
  .stellarnav ul li.mn-menu.active a::before {
    right: 0;
  }
  .stellarnav.mobile.active > ul {
    right: 0px;
    top: 60px;
    transition: right 0.5s;
    -webkit-transition: right 0.5s;
    -moz-transition: right 0.5s;
    padding: 0;
  }



  .stellarnav.mobile ul li ul {
    background: #e8e8e8;
    border-radius: 0;
    color: #003b5b;
    padding: 0;
    position: absolute;
  }
  .stellarnav ul ul li.menu-item-has-children {
    background-color: transparent;
    background-image: url('../images/select_arrow--right.png');
    background-position: calc(100% - 1rem) 50%;
    background-repeat: no-repeat;
    background-size: 12px auto;
    padding-right: 2rem;
  }
  .stellarnav ul ul li a {
    font-size: 16px;
  }
  .stellarnav {
    background: #f0f0f0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    z-index: 998;
  }
  .stellarnav ul ul li a {
    padding-left: 30px;
    color: #003b5b;
    font-size: 18px;
    font-weight: 600;
    padding-left: .5rem;
    padding-right: .5rem;
    white-space: nowrap;
  }
  .stellarnav ul ul li a:hover {
    color: #fff;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(70, 70, 70, 1) 20%,
      rgba(70, 70, 70, 1) 52%,
      rgba(70, 70, 70, 1) 53%,
      rgba(70, 70, 70, 1) 80%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .stellarnav ul ul.about-us-submenu a:hover {
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 88, 75, 1) 20%,
      rgba(255, 88, 75, 1) 52%,
      rgba(255, 88, 75, 1) 53%,
      rgba(255, 88, 75, 1) 80%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}




/* Fallback for slow javascript load */
@media only screen and (max-width: 991px) {
  .stellarnav {
    overflow: hidden;
    display: block;
  }
  .stellarnav ul {
    position: relative;
    display: none;
  }

  /*MMENU*/
  .mm-menu a {
    border: none !important;
    color: #003b5b !important;
    font-size: 16px;
    font-weight: bold;
    padding: 20px 30px;
  }
  .mm-menu .mm-panel:first-child a:hover {
    background-color: #e8e8e8 !important;
  }
  .mm-menu .mm-panel a:hover {
    background-color: #cccccc !important;
  }
  .mm-menu .mm-panel:first-child .mm-listitem {
    background-color: #ffffff;
  }
  .mm-menu .mm-panel .mm-listitem {
    background-color: #e8e8e8;
  }
  .mm-listitem__btn {
    background-color: #e8e8e8 !important;
  }
  .mm-listitem:after {
    display: none;
  }
  .mm-listitem {
    border-bottom: 1px solid #e8e8e8;
  }
  .mm-navbars_top {
    border-bottom-color: #e8e8e8;
  }
  .mm-btn_next:after {
    display: block;
    content: " ";
    background-image: url("../images/mmenu-arrow.svg");
    background-size: 20px 14px;
    height: 14px;
    width: 20px;
    transform: none;
    border: none;
    left: 21px;
  }
  .mm-btn_prev:before {
    display: block;
    content: " ";
    background-image: url("../images/mmenu-arrow.svg");
    background-size: 20px 14px;
    height: 14px;
    width: 20px;
    transform: none;
    border: none;
    left: 21px;
    transform: rotate(180deg);
  }
  .mm-navbar__title {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* mobile nav */
@media only screen and (max-width: 420px) {
  .stellarnav.mobile .call-btn-mobile.third span,
  .stellarnav.mobile .location-btn-mobile.third span {
    display: none;
  }
}
