/* ========== Algemene Structuur ========== */

.container-header {
	position: fixed;
	top: 0;
	width: 80%;
	height: var(--nav-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	z-index: 4000;
	margin: 0 auto;
	margin-top: 25px;
	gap: 20px;
	left: calc(10% - 20px);
	transition: .7s ease;
}

.is-scrolled2 {
	height: 4rem;
}

.container-wrapper {
	position: fixed;
	display: flex;
	width: 100%;
	height: calc(var(--nav-height) + 50px);
	z-index: 4000;
}

.is-scrolled {
	background-color: var(--color5);
	transition: background-color .9s ease;
	background: linear-gradient(to bottom, var(--color5) 99%, rgba(0,0,0,0.1) 100%);
}

.box-header {
	position: relative;
	height: 100%;
	align-items: center;
	display: inline-flex;
	z-index: 4000;
}

/* ========== Logo ========== */

.logo-header img {
	height: var(--nav-height);
}

/* ========== Desktop menu ========== */

.menu-header {
	width: auto;
	flex: 1;
	display: flex;
	justify-content: center;
}

.menu {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu li {
	position: relative;
}

.menu a {
	color: var(--color8);
	text-decoration: none;
	padding: 15px 20px;
	display: block;
}

.has-dropdown .dropdown {
	display: none;
	position: absolute;
	background-color: var(--color1);
	top: 100%;
	left: 0;
	min-width: 160px;
	flex-direction: column;
}

.has-dropdown:hover .dropdown {
	display: flex;
	padding-left: 0;
	list-style: none;
}

.has-dropdown .arrow i {
	display: inline-block;
	transition: transform .4s ease;
}

.has-dropdown:hover .arrow i {
	transform: rotate(90deg);
}

.arrow {
	margin-left: 8px;
}

/* ========== Contactknop ========== */

.button-header {
	max-width: 25%;
}

.nav-btn {
	color: var(--color8);
	border: 2px solid var(--color6);
	background-color: var(--color5);
	padding: 10px 25px;
	border-radius: 50px;
	text-decoration: none;
	cursor: pointer;
}

.nav-btn:hover {
	color: var(--color1);
	border-color: var(--color1);
	background-color: var(--color6);
	transition: .4s;
}

/* ========== Hamburger menu (mobiel) ========== */

.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 22px;
	cursor: pointer;
	z-index: 5001;
	margin-left: -5%;
	position: fixed;
}

.hamburger span {
	height: 4px;
	background-color: var(--color8);
	border-radius: 2px;
	transition: .3s ease;
}

.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translateY(9px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translateY(-9px);
}

/* ========== Mobiele slide menu ========== */

.mobile-menu {
	position: fixed;
	top: 0;
	left: -100%;
	width: 250px;
	height: 100dvh;
	background-color: var(--color5);
	padding-top: var(--nav-height);
	transition: left 0.3s ease;
	z-index: 4000;
	overflow-y: auto;
}

.mobile-menu.active {
	left: 0;
}

.mobile-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu li {
	border-bottom: 1 px solid rgba(255,255,255,0.1);
}

.mobile-menu a {
	display: block;
	padding: 15px 20px;
	color: var(--color1);
	text-decoration: none;
}

/* ========== Submenu mobiel ========== */

.has-submenu > a::after {
	content: " ▼";
	float: right;
	transition: transform .3s;
}

.has-submenu.open > a::after {
	transform: rotate(180deg)
}

.submenu {
	display: none;
	background-color: var(--color6);
}

.has-submenu.open .submenu {
	display: block;
}

/* ========== Sluitknop mobiel menu ========== */

.close-mobile-menu {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 26px;
	color: var(--color1);
	cursor: pointer;
	z-index: 5002;
}

/* ========== Responsive ========== */

@media screen and (max-width: 1149px) {
	.menu-header,
	.button-header {
		display: none;
	}
	
	.hamburger {
		display: flex;
		order: 1;
		margin-left: 5%;
	}
	
	.logo-header {
		order: 2;
		margin-left: auto;
		margin-right: 10%
	}
	
	.container-header {
		left: 0;
		width: 100%;
		margin-top: 0;
		padding-top: 25px;
	}
	
	.container-header-scrolled {
		background-color: var(--color8);
		transition: .4s;
	}
	
	.container-wrapper {
		height: calc(var(--nav-height) + 25px);
	}
}/* CSS Document */

