/*--------------------------------------------------------------
BOTTOM HEADER CSS
--------------------------------------------------------------*/

#masthead {
  margin-bottom: 30px;
}

.bottom-header-wrapper {
  background: rgba(0, 0, 0, 0.05) none repeat scroll 0 0;
}

.is-sticky .bottom-header-wrapper {
  background: #f1f1f1 none repeat scroll 0 0;
  z-index: 999;
}

.home-icon, #site-navigation {
  float: left;
}

.home-icon {
  font-size: 22px;
  padding: 0 10px;
  background: $prime_color;
  a {
    color: #ffffff;
    &:hover {
      color: #ffffff;
    }
  }
}

#site-navigation {
  ul {
    margin: 0;
    list-style: none;
    padding: 0;
    li {
      border-bottom: 2px solid $prime_color;
      float: left;
      line-height: 38px;
      margin: 0 1px;
      position: relative;
      text-transform: capitalize;
      a {
        margin: 0 1px;
        padding: 0 15px;
        color: #5d5c5c;
        font-weight: 600;
        display: block;
        &:hover {
          color: $prime_color;
        }
      }
      &.current-menu-item a {
        color: $prime_color;
      }
    }
    &.sub-menu, &.children {
      background: #f2f2f2 none repeat scroll 0 0;
      left: 0;
      min-width: 200px;
      position: absolute;
      top: 120%;
      z-index: 99;
      opacity: 0;
      visibility: hidden;
      -webkit-transition: all 0.5s ease;
      -moz-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
      -o-transition: all 0.5s ease;
      transition: all 0.5s ease;
    }
    li:hover > ul {
      &.sub-menu, &.children {
        opacity: 1;
        visibility: visible;
        top: 100%;
      }
    }
    &.sub-menu li, &.children li {
      float: none;
      display: block;
      border-bottom: 1px solid #e1e1e1;
    }
    &.sub-menu li:last-child, &.children li:last-child {
      border: none;
    }
    &.sub-menu ul, &.children ul {
      right: -100%;
      left: auto;
      top: -20%;
    }
    &.sub-menu li:hover > ul, &.children li:hover > ul {
      top: 0;
    }
  }
  li {
    &.menu-item-has-children > a:after, &.page_item_has_children > a:after {
      content: "\f107";
      font-family: FontAwesome;
      position: absolute;
      right: 15px;
      top: 2px;
    }
  }
  ul {
    &.sub-menu li.menu-item-has-children > a:after, &.children li.page_item_has_children > a:after {
      content: "\f105";
    }
    li {
      &.menu-item-has-children a, &.page_item_has_children a {
        margin-right: 15px;
      }
    }
  }
}

.header-search-wrapper {
  float: right;
  position: relative;
}

.search-main {
  display: block;
  line-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  color: #ffffff;
  background: $prime_color;
}

.header-search-wrapper .search-form-main {
  background: #ffffff none repeat scroll 0 0;
  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
  border-top: 2px solid $prime_color;
  padding: 15px;
  position: absolute;
  right: 0;
  top: 130%;
  width: 300px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  &:before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid $prime_color;
    content: "";
    position: absolute;
    right: 15px;
    top: -10px;
  }
  .search-field {
    border-radius: 0;
    padding: 4px 10px;
    width: 80%;
    float: left;
  }
  .search-submit {
    border: medium none;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    float: left;
    padding: 10px 0 10px;
    width: 20%;
    height: 36px;
    background: $prime_color;
  }
}

.search-form-main.active-search {
  opacity: 1;
  visibility: visible;
}

.menu-toggle {
  color: #333;
  display: none;
  float: left;
  font-size: 20px;
  padding: 2px 15px;
}

.sub-toggle {
  display: none;
}