/* Navigation Menu */

.site-header {
    .shadow();
    z-index: 1;

    .row {
        vertical-align: middle;
    }

    .site-branding {
        margin-top: .6rem;
        float: left;
    }

    .site-description {
        display: inline-block;
    }

    .menu-all-pages-container {
        float: right;
    }
}

/* For devices smaller than 991.98px */
@media (max-width: 991.98px) {
    .site-header {
        .site-branding {
            float: none;
        }
    }
}

nav {
    display: inline-block;
	position: relative;
	z-index: 2;
}

nav a {
	font-size: 1.6rem;
	font-weight: 700;
}

.main-nav li {
	list-style-type: none;
}

.main-nav>li {
	float: left;
}

.main-nav li a:hover {
    color: @primary-color;
}

.main-nav>li>a {
	color: @dark-color;
	display: block;
	//padding: 2.2rem 1.6rem;
}

.sub-menu {
    li {
        margin-bottom: .6rem;
    }
}

.main-nav>.menu-item-has-children>ul {
	background-color: #fff;

	position: absolute;
	padding: 1.6rem 2.4rem;
	width: 160px;

	opacity: 0;
	visibility: hidden;

  	-webkit-transition: all .3s;
  	-moz-transition: all .3s;
  	-o-transition: all .3s;
  	transition: all .3s;
}

.main-nav>.menu-item-has-children:hover>ul {
	border-bottom: 1px solid @primary-color;
	opacity: 1;
	visibility: visible;
}

.main-nav .menu-item-has-children>a:after {
  content: "\f107";
  padding-left: 6px;
  font: normal normal normal 16px/1 FontAwesome;
}

.main-nav .menu-item-has-children .menu-item-has-children>ul {
	background-color: #fff;

	position: absolute;
	margin-left: -1.1rem;
	padding: 1.6rem 2.4rem;
	border-left: 1px solid @primary-color;
	width: 160px;
	left: 100%;

	opacity: 0;
	visibility: hidden;

	-webkit-transform: translateY(-2.4rem);
	-moz-transform: translateY(-2.4rem);
	-o-transform: translateY(-2.4rem);
	transform: translateY(-2.4rem);

  	-webkit-transition: all .2s;
  	-moz-transition: all .2s;
  	-o-transition: all .2s;
  	transition: all .2s;
}

.main-nav .menu-item-has-children .menu-item-has-children:hover>ul {
	opacity: 1;
	visibility: visible;
}

.main-nav .menu-item-has-children .menu-item-has-children>a:after {
  	content: "\f105";
    display: inline-block;

    font: normal normal normal 1.6rem/1 FontAwesome;

    right: 0;
    padding-top: .4rem;
    padding-right: 2.4rem;
    position: absolute;
}

.main-nav li ul li a {
	color: @dark-color;
}

/* Mobile Navigation Menu */

.mobile-menu-container {
	position: absolute;
	top: 0;
	right: 3.2rem;
}

.menubar-right,
.menubar-close {
	cursor: pointer;
	position: absolute;
	font-size: 2.7rem;

	right: 1.2rem;
	top: 2.4rem;
	z-index: 2;
}

.menubar-close {
	right: 0;
    top: 0;
    padding: .45rem .75rem .6rem;
    line-height: 1;
    background-color: @primary-color;
    color: @white-color;
}

.has-logo {
    top: 1.6rem;
}

.mobile-navigation .fa-bars,
.mobile-navigation .fa-close {
    font-size: 2.6rem;
}

.admin-bar .mobile-menu-open {
    top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .mobile-menu-open {
    top: 46px;
  }

  .site-title a {
    font-size: 30px;
  }
}

.dropdown-toggle {
	cursor: pointer;
	font-size: 2.2rem;
    padding: 0 1rem;

	position: absolute;
	top: .6rem;
	right: -.1rem;

	-webkit-transition: -webkit-transform .2s ease-out;
	-moz-transition: -moz-transform .2s ease-out;
	-o-transition: -o-transform .2s ease-out;
    transition: transform .2s ease-out;
}

.nav-parent {
	background-color: #fff;
	border-left: 1px solid #e3e3e3;

	padding: 4rem;
	position: fixed;
	overflow-y: scroll;

	top: 0;
	right: 0;
	bottom: 0;

	max-width: 28rem;
    width: 100%;

    z-index: 9902;

    -webkit-transition: all .2s;
  	-moz-transition: all .2s;
  	-o-transition: all .2s;
    transition: all .2s ease;

	-webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    .shadow();
}

.mobile-menu-open {
	-webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
}

.mobile-nav li {
	position: relative;
	list-style-type: none;
}

.mobile-nav>li {
	border-bottom: 1px solid #e3e3e3;
    padding: 0;
}

.mobile-nav>li:last-child {
	border-bottom: none;
}

.mobile-nav li a {
	padding: 1rem;
	display: block;
}

.mobile-nav li ul li ul a,
.mobile-nav li ul a {
	display: block;
}

.mobile-nav>li>ul {
	display: none;
	padding-left: 1.6rem;
}

.mobile-nav>li>ul>li>ul {
	display: none;
	padding-left: 1.6rem;
}

.toggled {
	-o-transform: rotate(-180deg);
	-ms-transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    transform: rotate(-180deg);
}

/**
 *
 * #.# Media Queries
 *
 */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
	.main-nav {
		display: none;
	}
}

/* Larger than tablet */
@media (min-width: 992px) {
	.mobile-navigation {
		display: none;
	}
}

.highlight {
    position: relative;
}

ul .highlight::after {
    content: "\f111";
    font-family: Fontawesome;
    font-size: 1rem;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
    color: @primary-color;
}

.menu-item-has-children::after {
    right: 1.6rem !important;
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    ul .highlight::after {
        top: .4rem;
    }
}

.menu-item {
    padding: 2.2rem .6rem;

    &:after {
        display: block;
        content: "";
        border-top: 0.3rem solid @primary-color;
        width: 0%;
        margin-top: .5rem;
        transform: translateY(-.4rem);
        transition: width .2s ease;
    }

    &:hover {
        &:after {
            width: 100%;
        }
    }
}

.widgetarea,
.sub-menu {
    .menu-item {
        padding: 0;

         &:after {
            content: unset;
         }
    }
}

.site-header .main-nav .menu-button {
    a {
        color: @white-color !important;
        background-color: @primary-color;
        border-radius: 50px;
        box-shadow: 0px 2px 16px 0px rgba(0,0,0,0.16);
        line-height: 1;
        margin-top: -5px;
        padding: @font-size/1.5 @font-size*1.5;
    }

    &::after {
        content: unset;
    }
}
