/*--------------------------------------------------------------
Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
Links
--------------------------------------------------------------*/
a {
	color: $color-dark;
	text-decoration: none;

	&:hover {
		color: $color-black;
	}

	&:focus,
	&:active {
		color: $color-link-hover;
	}
}

/*--------------------------------------------------------------
Main Navigation
--------------------------------------------------------------*/
.main-navigation {
	font-size: rem(14);
	font-weight: 400;
	text-transform: uppercase;
	width: auto;

	@include media(768px) {
		margin-right: rem(20);
	}
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation li {
	float: left;
	position: relative;
}

.main-navigation a {
	color: #6a6a6a;
	display: block;
	text-decoration: none;

	&:hover {
		color: #b8b8b8;
	}

	@include media(768px) {
		line-height: rem(85);
		margin-right: rem(14);
	}
}

@include media(768px) {
	.main-navigation ul ul {
		background-color: rgba( 255, 255, 255, .9 );
		border-top: rem(4) solid $color-black;
		box-shadow: 0 6px 30px -10px rgba( 0, 0, 0 , 0.2 );
		float: left;
		position: absolute;
		display: block;
		top: rem(75);
		left: -999em;
		min-width: rem(240);
		z-index: 99999;

		&:before {
			content: "\f0d8";
			font-family: 'FontAwesome';
			position: absolute;
			left: 2em;
			height: auto;
			width: auto;
			line-height: 0;
			top: rem(-7);
		}

		a {
			display: block;
			line-height: 2.16666666666667em;
			padding: rem(10);
		}
	}

	.main-navigation ul ul ul {
		background-color: rgba( 255, 255, 255, .9 );
		box-shadow: 0 6px 30px -10px rgba( 0, 0, 0 , 0.2 );
		border: none;
		left: -999em;
		min-width: rem(240);
		top: 0;
		width: 100%;

		&:before {
			content: '';
		}
	}

	.main-navigation ul ul a {
		width: 240px;
		line-height: $line-height-body;
	}
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
}

/* Small menu. */
@include media(max-width 768px) {
	.menu-toggle,
	.main-navigation.toggled ul {
		display: block;
		margin: 0;
		padding: 0;
	}

	.menu-toggle {
		background: #fff;
		border: 1px solid #eee;
		color: $color-black;
		padding: rem(10);
		position: absolute;
		right: rem(20);
		top: 20px;

		&:hover {
			background: #eee;
		}
	}

	.toggled .menu-toggle {
		background: #eee;
		border-color: $color-dark;
	}

	.main-navigation.toggled {
		padding: rem(20) 0 0;
		width: 100%;
	}

	.main-navigation ul {
		margin: 0;
		padding: 0;

		li {
			display: block;
			margin: 0;
			padding: 0;
			width: 100%;
		}

		a {
			display: block;
			padding: rem(10) 0;
			text-align: center;
			width: 100%;

			&:hover {
				background: $color-whitesmoke;
				color: $color-black;
			}
		}
	}
}

@include media(768px) {
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}
}


// Navigation
.posts-navigation {
	clear: both;
	display: block;
	overflow: hidden;
}

.nav-links {
	border-top: 1px solid #eee;
	clear: both;
	display: block;
	font-size: rem(14);
	margin: rem(20) 0;
	padding: rem(20) 0;
	overflow: hidden;
	text-transform: uppercase;

	.nav-previous {
		color: $color-dark;
		float: left;
		width: 50%;

		&:before {
			content: '\f100';
			font-family: $font-icon;
			position: relative;
			margin-right: rem(5);
			top: -1px;
		}
	}

	.nav-next {
		color: $color-dark;
		float: right;
		text-align: right;
		width: 50%;

		&:after {
			content: '\f101';
			font-family: $font-icon;
			position: relative;
			margin-left: rem(5);
			top: -1px;
		}
	}
}

.blog .nav-links {
	border: none;
}
