/* -------- Nav Menu ---------- */
#site-navigation {
  float: left;
  background: @accent;
  ul {
    li {
      a {
        padding: 20px 13px;
        color: #fff;
        font-weight: 400;
        .transition( 0.2s all ease );
        &:hover {
          background: darken(@accent,3%);
        }
      }
      &:hover {
        a {
          background: darken(@accent,3%);
        }
      }
      ul li .menu-desc {
        display: none;
      }
      ul.sub-menu, ul.children {
        background: darken(@accent,3%);
        bottom: 60px;
        display: block;
        overflow: hidden;
        //box-shadow: 0px -1px 1px 1px fade(#4a4a4a,10%);
        .transition( 0.4s all ease );
        perspective: 1000;
        -webkit-perspective: 1000;
        transform-origin: bottom;
        -webkit-transform-origin: bottom;
        transform: perspective(350px) rotateX(10deg);
        -webkit-transform: perspective(350px) rotateX(90deg);
        -moz-transform: perspective(350px) rotateX(90deg);
        opacity: 0;
        li ul {
          transform-origin: left;
          -webkit-transform-origin: left;
          .transition( 0.4s all ease );
          left: 100%;
          bottom: 0%;
          opacity: 0;
          -webkit-transform: rotateY(65deg) !important;
          transform: rotateY(65deg) !important;
          -moz-transform: rotateY(65deg) !important;
          li ul {
            display: none !important;
          }
        }
        li:hover {
          .transition(0.2s all ease);
          /* -webkit-transition: 0.2s all ease !important; */
          ul {
            opacity: 1;
            transform: rotateY(5deg) !important;
            -webkit-transform: rotateY(5deg) !important;
            -moz-transform: rotateY(5deg) !important;
          }
        }
        a {
          padding: 8px 15px;
          font-weight: normal;
          font-size: 14px;
          transition: 0.4s background ease, 0.6s padding ease;
          &:hover {
            background: darken(@accent,5%);
            padding-left: 19px;
          }
        }
      }
      &:hover {
        .transition(0.4s all ease);
        -webkit-transition: 0.4s all ease !important;
        ul.sub-menu, ul.children {
          display: block;
          opacity: 1;
          transform: rotateX(0deg);
          -webkit-transform: rotateX(0deg);
        }
      }
    }
    /* for the Currently active page */
    .current_page_item > a, .current-menu-item > a, .current_page_ancestor > a {
      background: darken(@accent, 10%);
    }
  }
  .fa {
    padding: 0 5px 0 0;
  }
  .menu-desc {
    font-size: 12px;
    font-weight: 300;
    color: #999;
    display: inline-block;
    margin-top: -5px;
    font-style: italic;
    text-transform: lowercase;
  }
  .current_page_item > a,
  .current-menu-item > a,
  .current_page_ancestor > a {
    color: #fff;
  }
  @media screen and (max-width: 767px) {
    margin-bottom: 20px;
  }
  .mobileMenu {
    margin: 15px;
    padding:3px;
    border-radius:4px;
    background: #ddd;
    padding: 5px;
    color: #888;
    border:none;
    outline:none;
    display: inline-block;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    cursor:pointer;
  }
}

/* TOP MENU */
#top-menu {
  float: left;
  background: @accent;
  padding-left: 0;
  @media screen and (max-width: 767px) {
    float: none;
    padding: 15px;
    text-align: center;
  }
  @media screen and (max-width: 991px) {
    background: lighten(@accent, 3%);;
  }
  ul {
    list-style: none;
    margin-bottom: 0;
    margin-left: 0px;
    li {
      position: relative;
    }
    ul {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      top: 100%;
      left: -2px;
      width: 200px;
      transform: translateY(10px);
      .transition(0.4s all ease);
      background: @accent;
      z-index: 99;
      li {
        border-right: none;
        width: 100%;
        padding: 0;
        &:nth-child(odd) { background: darken(@accent,2%);}
        &:nth-child(even) { background: @accent;}
        a {
          text-transform: none;
          padding: 8px;
          width: 100%;
          .transition(0.4s all ease);
          &:hover {
            text-decoration: none;
            padding-top: 8px;
            border-top: none;
          }
        }
      }
      /* level 3 onwards */
      ul {
        transform: translateX(10px);
        left: 100%;
        top: -1px;
      }
    }
    li {
      display: inline-block;
      &:last-of-type {
        border-right: none;
      }
      a {
        padding: 22px 12px;
        color: @onaccent;
        display: inline-block;
        font-size: 16px;
        font-weight: light;
        text-transform: uppercase;
        &:hover {
          background: darken(@accent, 5%);
          border-top: solid 2px @onaccent;
          padding-top: 20px;
        }
      }
      /* DROPDOWN TRIGGER */
      &:hover {
        & > ul {
          opacity: 1;
          visibility: visible;
          transform: translateY(0) translateX(0);
          .transition(0.8s all ease);
        }
      }
    }
  }
  @media screen and (max-width: 767px) {
  }
  .mobileMenu {
    padding:3px;
    margin: 0;
    border-radius:4px;
    background: lighten(@accent, 10%);
    border: solid 3px lighten(@accent, 15%);
    padding: 5px;
    color: @onaccent;
    outline:none;
    width: 200px;
    text-align: center;
    display: inline-block;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    cursor:pointer;
  }

}