// COMMON IMPORTS
@import "../config/imports";

// Logo
@media (min-width: 992px) {
	#header.header-narrow {
		.header-nav.header-nav-stripe {
			position: relative;
			z-index: 3;
		}

		.header-logo {
			.logo-default {
				margin: -37px -70px -102px 0;
				position: relative;
				z-index: 2;
				opacity: 1;
			}

			.logo-small {
				-webkit-backface-visibility: hidden;
				-moz-backface-visibility: hidden;
				backface-visibility: hidden;
				transform: translate3d(87px, 0, 0);
				position: absolute;
				z-index: 1;
				opacity: 0;
			}
		}
	}

	.sticky-header-active {
		#header.header-narrow {
			.header-logo {
				.logo-small {
					transform: translate3d(0, 0, 0);
					opacity: 1;
					z-index: 3;
				}

				.logo-default {
					opacity: 0;
					top: -90px;
				}
			}
		}
	}
}

@media (max-width: 991px) {
	.logo-default {
		display: none !important;
	}

	.logo-small {
		display: block;
	}

	#header .header-logo {
		width: auto !important;
		height: auto !important;
	}
}

// Header
@media (min-width: 992px) {
	html {
		#header.header-semi-transparent-light .header-body {
			@include transition (transform 0.3s ease);
			transform: translate3d(0px, 25px, 0px);
			&:before {
				background: #fff none repeat scroll 0 0;
				opacity: 1;
			}
		}

		&:not(.sticky-header-active) #header.header-semi-transparent-light .header-nav-main nav > ul > li:not(.active) {
			> a {
				color: #5e7279;
			}
			&:hover {
				> a {
					color: #FFF;
				}
			}
		}

		&.sticky-header-active {
			#header.header-semi-transparent-light .header-body {
				transform: translate3d(0px, 0, 0px);
			}
		}
	}

	#header.header-narrow {

		// Header Nav Main Styles
		.header-nav {
			
			// Header Nav
			&.header-nav-stripe, &.header-nav-dark-dropdown {
				nav {
					> ul {
						> li, > li:hover {
							> a {
								padding: side-values(39px 13px 36px 13px);
							}
						}
						> li.dropdown, > li.dropdown:hover {
							> a {
								padding: side-values(39px 23px 36px 13px);
								&.dropdown-toggle {
									&:after {
										top: 38px;
									}
								}
							}
						}
					}
				}
				.header-social-icons {
					margin-top: 35px;
				}
			}

		}

	}
}

// Social Icons
.social-icons {
	li {
		box-shadow: none;
		a {
			background: transparent;
		}
	}
}

// Slider
.tp-caption-custom-stripe {
	color: #FFF !important;
}

.tparrows {
	background: transparent;
	&:hover {
		background: transparent;
	}
	margin-top: 40px;
	&:before {
		position: relative;
		z-index: 1;
	}
	&:after {
		@include transition (all 0.2s ease);
		background: #000 none repeat scroll 0 0;
		opacity: 0.2;
		height: 40px;
		margin: -40px 0 0 ;
		position: relative;
		transform: rotate(-45deg);
		width: 40px;
		content: "";
		display: block;
		z-index: 0;
	}
	&:hover {
		&:after {
			opacity: 1;
		}
	}
}

// Home Concept
@media (min-width: 1199px) {
	.home-concept-construction {
		background: transparent url(../../img/home-concept-small.png) no-repeat center 63%;
	}
}

// Diamonds
.diamonds {
	font-size: 0;
	margin: 40px auto;
	position: relative;
	text-align: center;

	.csstransforms3d & {
		padding: 50px 0 0 57px;
	}

	.no-csstransforms3d & {
		max-width: 1060px;
	}

	> li {
		display: inline-block;
		font-size: 18px;
		margin-right: 135px;

		.no-csstransforms3d & {
			margin: 0 20px 20px 0;
		}

	}

	.diamond {
		background: #f4f4f4;
		display: block;
		height: 255px;
		overflow: hidden;
		position: relative;
		text-decoration: none;
		width: 255px;

		&:after {
			@include transition (all 0.2s ease);
			content: " ";
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
			background: #000;
			opacity: 0;
			transform: scale(0);
			z-index: 100;
		}

		&:hover {
			&:after {
				opacity: 0.3;
				transform: scale(1);
			}

			.content {
				&:after {
					opacity: 0.8;
					transform: scale(1);
				}
			}

		}

		.csstransforms3d & {
			overflow: hidden;
			transform: rotate(-45deg);
		}
	}

	.content {
		display: table-cell;
		height: 255px;
		padding: 0 10px;
		transform: rotate(45deg);
		text-align: center;
		vertical-align: middle;
		width: 255px;
		position: relative;

		&:after {
			@include transition (all 0.2s ease);
			color: #fff;
			content: "\e091";
			font-family: "simple-line-icons";
			font-size: 28px;
			left: 27%;
			margin: -6px -12px;
			opacity: 0;
			position: absolute;
			top: 50%;
			z-index: 1000;
			transform: scale(2);
		}

		img {
			margin-left: -25%;
			max-width: 375px;
		}
	}

	.diamond-sm {

		.content {
			&:after {
				left: 24%;
				top: 48%;
			}
		}

	}
}

@media (min-width: 1199px) {
	.diamonds {

		> li {

			&:nth-child(3) {
				margin-right: 0;
			}

			&:nth-child(4) {
				right: 145px;
				top: 9px;
				position: absolute;
			}

			&:nth-child(5) {
				margin-left: 527px;
				margin-top: -70px;
			}

			&:nth-child(6) {
				position: absolute;
				margin: -6px 0 0 -27px;
				right: -15px;
			}

			&:nth-child(7) {
				position: absolute;
				margin: 97px 0 0 -133px;
				right: 88px;
			}

		}

		.diamond-sm {
			height: 128px;
			width: 128px;

			.content {
				height: 128px;
				width: 128px;

				img {
					max-width: 195px;
				}
			}
		}
	}
}

@media (max-width: 1199px) {
	.csstransforms3d .diamonds,
	.diamonds {
		padding-left: 0;
	}

	.diamonds > li:nth-child(2n+2) {
		margin-right: 0;
		margin-bottom: 135px;
	}

	.diamonds > li:last-child {
		margin-bottom: 50px;
		margin-right: 41px;
		margin-top: -110px;
		padding-left: 40px;
	}
}

@media (max-width: 748px) {
	.csstransforms3d .diamonds,
	.diamonds {
		max-width: 255px;
		padding-left: 0;
	}

	.diamonds > li {
		margin-right: 0;
		margin-bottom: 135px;
		clear: both;
	}

	.diamonds > li:last-child {
		margin-bottom: 50px;
		margin-right: 0;
		margin-top: 0;
		padding-left: 0;
	}
}

@media (min-width: 1199px) {
	.row-diamons-description {
		margin-top: -150px;
		float: $left;
	}
}

// Section Construction
.section-custom-construction {
	overflow: hidden;
	.container {
		position: relative;
		&:after {
			background: #000 none repeat scroll 0 0;
			bottom: -220px;
			content: "";
			height: 200px;
			position: absolute;
			right: 0;
			transform: rotate(50deg);
			width: 200px;
			z-index: 1;
		}
		&:before {
			background: #000 none repeat scroll 0 0;
			bottom: -235px;
			content: "";
			height: 200px;
			position: absolute;
			right: 75px;
			transform: rotate(50deg);
			width: 200px;
			z-index: 2;
		}
	}
}

@media (min-width: 992px) {
	.section-custom-construction-2 {
		overflow: hidden;
		position: relative;
		padding-bottom: 80px;
		&:after {
			background: #000 none repeat scroll 0 0;
			bottom: -140px;
			content: "";
			height: 200px;
			left: 25px;
			position: absolute;
			transform: rotate(50deg);
			width: 200px;
			z-index: 1;
		}
	}
}

// Testimonials
.testimonial.testimonial-with-quotes blockquote p {
	font-size: 20px;
}

// Section Background
@media (max-width: 991px) {
	section.section.section-background {
		background-size: auto 100%;
		background-repeat: no-repeat;
	}
}

// Project Detail
.project-detail-construction {
	padding: 6px 0 0 15px;
	.list-project-details {
		margin: 30px 0;
		padding: 0;
		list-style: none;
		li {
			padding: 0 0 15px 0;
			label {
				padding: 0;
				margin: 0;
				color: #999;
				font-size: 11px;
				text-transform: uppercase;
				font-weight: normal;
			}
			p {
				padding: 0;
				margin: 0;
				color: #111;
			}
		}
	}

	.progress-bars-project-detail {
		margin: 30px 0;
		.progress.progress-sm {
			margin-bottom: 32px;
		}
		.progress-label span {
			padding: 0;
			margin: 0;
			color: #999;
			font-size: 11px;
			text-transform: uppercase;
			font-weight: normal;
		}
	}
}

// Footer
#footer {
	background: #E9EFF2 url(../../img/demos/construction/footer-construction.jpg) no-repeat 50% 50%;
	border-top: 0;
	padding: 60px 0 30px;
	min-height: 400px;
	overflow: hidden;
	h1, h2, h3, h4, a {
		color: #333;
	}

	.list-footer-nav {
		list-style: none;
		margin: 0;
		padding: 0;

		a {
			font-size: 14px;
			color: #777;
			text-decoration: none;
			&:hover {
				color: #888;
			}
		}
	}

	.newsletter {
		form {
			max-width: 100%;
			margin: 27px 0 12px;
			input.form-control {
				height: 45px;
				padding: 12px;
			}
			.btn {
				height: 45px;
				width: 45px;
			}
		}
	}

	.fa {
		display: inline-block;
		padding-right: 2px;
		position: relative;
		top: 1px;
		color: #000;
	}

	.footer-copyright {
		background: transparent;
		margin: -10px 0 0;
		padding: 20px 0 0;
		border-top: 1px solid #FFF;

		p {
			color: #ababab;
		}
	}

}

@media (min-width: 992px) {
	#footer {
		margin-top: 0;

		.logo {
			margin-top: 75px;
		}

		&:after {
			background: #000 none repeat scroll 0 0;
			bottom: -233px;
			content: "";
			height: 400px;
			position: absolute;
			right: -177px;
			transform: rotate(50deg);
			width: 400px;
			z-index: 1;
		}

	}
}