@-webkit-keyframes headerSlideDown {
	0% {
		margin-top: -100px;
	}
	100% {
		margin-top: 0;
	}
}

@-webkit-keyframes headerSlideDown {
	0% {
		margin-top: -100px;
	}
	100% {
		margin-top: 0;
	}
}

.page-header {
	position: relative;
	z-index: 4;
}

.header-wrapper {
	border-bottom: 1px solid transparent;
}

.page-header-behind {
	/*.headroom--top {
		.page-header-inner {
			position: absolute;
			top: 0;
			left: 0;
			z-index: 9999;
			width: 100%;
		}
	}*/
	.header-inner {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 9999;
		width: 100%;
	}
	.page-header {
		/*&:not(.headroom) {
			.page-header-inner {
				position: absolute;
				top: 0;
				left: 0;
				z-index: 9999;
				width: 100%;
			}
		}*/
	}
}

.header-sticky-both {
	.headroom.headroom--not-top {
		position: relative;
		z-index: 9999;
		.page-header-inner {
			position: fixed;
			top: 0;
			left: 0;
			z-index: 9999;
			width: 100%;
			box-shadow: 0 8px 20px 0 rgba(0, 0, 0, .1);
			animation: headerSlideDown 0.95s ease forwards;
			.container,
			.row {
				height: 100%;
			}
		}
		.main-logo {
			display: none;
		}
		.sticky-logo {
			display: block;
		}
	}
}

.header-sticky-up {
	.headroom.headroom--not-top.headroom--pinned {
		position: relative;
		z-index: 9999;
		.page-header-inner {
			position: fixed;
			top: 0;
			left: 0;
			z-index: 9999;
			width: 100%;
			box-shadow: 0 8px 20px 0 rgba(0, 0, 0, .1);
			animation: headerSlideDown 0.95s ease forwards;
			.container,
			.row {
				height: 100%;
			}
		}
		.main-logo {
			display: none;
		}
		.sticky-logo {
			display: block;
		}
	}
}

.header-sticky-down {
	.headroom.headroom--not-top.headroom--unpinned {
		position: relative;
		z-index: 9999;
		.page-header-inner {
			position: fixed;
			top: 0;
			left: 0;
			z-index: 9999;
			width: 100%;
			box-shadow: 0 8px 20px 0 rgba(0, 0, 0, .1);
			animation: headerSlideDown 0.95s ease forwards;
			.container,
			.row {
				height: 100%;
			}
		}
		.main-logo {
			display: none;
		}
		.sticky-logo {
			display: block;
		}
	}
}

.sticky-logo,
.dark-logo,
.light-logo {
	display: none;
}

.header-right {
	display: flex;
	align-items: center;
}

.popup-search-wrap {
	width: 40px;
	height: 30px;
	text-align: center;
	font-size: 15px;
	line-height: 30px;
}

.page-open-main-menu {
	display: none;
	height: 30px;
	align-items: center;
	div {
		position: relative;
		width: 24px;
		height: 18px;
		cursor: pointer;
	}
	i {
		position: absolute;
		top: 50%;
		left: 0;
		margin-top: -1px;
		width: 100%;
		height: 2px;
		&:before,
		&:after {
			position: absolute;
			left: 0;
			width: 100%;
			height: 100%;
			content: '';
			transition: transform .3s, top .3s, background-color 0s;
		}
		&:before {
			top: -8px;
		}
		&:after {
			top: 8px;
		}
	}
	.page-navigation-opened & {
		i {
			background-color: transparent !important;
			&:before {
				top: 0;
				transform: rotate(-45deg);
			}
			&:after {
				top: 0;
				transform: rotate(45deg);
			}
		}
	}
}

.page-close-main-menu {
	@extend %transit2;
	position: fixed;
	top: 65px;
	right: 100px;
	z-index: 100000;
	visibility: hidden;
	height: 30px;
	opacity: 0;
	div {
		position: relative;
		width: 24px;
		height: 18px;
		cursor: pointer;
	}
	i {
		position: absolute;
		top: 50%;
		left: 0;
		margin-top: -1px;
		width: 100%;
		height: 2px;
		&:before,
		&:after {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: #ffffff;
			content: '';
			transition: transform .3s, top .3s, background-color 0s;
		}
		&:before {
			transform: rotate(-45deg);
		}
		&:after {
			transform: rotate(45deg);
		}
	}
}

.page-off-canvas-main-menu {
	@extend %transit2;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	visibility: hidden;
	overflow: hidden;
	overflow-y: auto;
	opacity: 0;
	transform: scale(.3);
	.menu--primary {
		.sm-simple {
			li {
				display: block;
			}
		}
	}
	.navigation {
		display: table;
		padding: 30px 0;
		width: 100%;
		height: 100%;
		text-align: center;
		.menu__container {
			display: table-cell;
			vertical-align: middle;
		}
	}
	ul {
		margin: 0;
		padding: 0;
	}
	li {
		list-style-type: none;
	}
	.sub-menu {
		display: none;
	}
	.widgettitle {
		font-size: 24px;
		margin-top: 10px;
	}
	.vc_column_container {
		display: block !important;
		float: none;
		width: 100% !important;
	}
	.admin-bar & {
		top: 32px;
	}
	.insight-core-bmw li {
		margin-bottom: 0;
	}

	.tm-heading,
	.tm-button {
		display: none;
	}
	.wpb_column {
		background: none !important;
	}
}

.page-off-canvas-menu-opened {
	overflow: hidden;
	.page-header {
		z-index: 99999;
	}
	.page-off-canvas-main-menu {
		visibility: visible;
		opacity: 1;
		transform: scale(1);
	}
	.page-close-main-menu {
		visibility: visible;
		opacity: 1;
	}
}

.menu-item-image_hover {
	display: none;
	width: 0;
	visibility: hidden;
	opacity: 0;
}

.header01,
.header03,
.header04,
.header05,
.header06 {
	.menu--primary {
		.menu-item-image_hover {
			@extend %transit2;
			position: absolute;
			top: -10px;
			right: -100px;
			box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
			z-index: 1;
			transform: translateX(20px);
			visibility: hidden;
			opacity: 0;
			width: 150px;
			height: auto;
			border-radius: 5px;
			max-width: 100%;
			display: block;
			img {
				border-radius: 5px;
			}
		}
		.has-image-hover {
			&:hover {
				> a {
					> .menu-item-image_hover {
						visibility: visible;
						opacity: 1;
						transform: translateX(0);
					}
				}
			}
		}
	}
}

.desktop-menu {
	.page-open-main-menu {
		display: flex;
	}
}
