/* MENU CONTAINER EN ALGEMEEN */

html.menu-open {
    overflow: hidden;
}

.w--header{
	position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    background-color: var(--color-background-neutral);
    z-index: 9999999;
}

.w--header--right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.menu--container{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.w--burger{
	position: relative;
    display: none;
    align-items: center;
    align-self: center;
    flex-flow: row wrap;
    justify-content: center;
    width: var(--burger-width);
    height: 30px;
    padding: 0;
    border: unset;
    border-radius: unset;
    background-color: var(--burger-background);
    box-shadow: unset;
    cursor: pointer;
    z-index: 99999999;
}

.w--burger--wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--burger-bar-width);
    height: var(--burger-bar-height);
    margin: 0;
    padding: 0;
    transition: all var(--animate-fast);
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: #FFF;
}

.w--burger--wrapper:before {
    bottom: var(--burger-bar-spacing);
    transition: bottom var(--burger-delay) var(--animate-fast), transform var(--animate-fast);
}

.w--burger--wrapper:after {
    top: var(--burger-bar-spacing);
    transition: top var(--burger-delay) var(--animate-fast), transform var(--animate-fast);
}

.w--burger--wrapper:after, .w--burger--wrapper:before {
    position: absolute;
    left: 0;
    width: var(--burger-bar-width);
    height: var(--burger-bar-height);
    content: "";
    background: #FFF;
}

.w--header--mobile {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0 var(--spacing-x);
    background-color: #000;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform var(--animate);
    z-index: 999999;
}

.w--header--mobile__wrapper {
    padding: var(--spacing-y) 0;
}

.w--header--mobile .w--header__menu ul {
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.w--header--mobile .w--header__menu ul li {
    font-size: var(--font-size);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.75em;
}

.menu-open .w--header--mobile {
    transform: translateX(0);
    transition: transform var(--animate-fast);
}

.menu-open .w--burger--wrapper {
    transition: background-color var(--animate-fast) calc(var(--burger-delay) / 1.5);
    background-color: transparent;
}

.menu-open .w--burger--wrapper:before {
    bottom: 0;
    transition: bottom var(--animate-fast), transform var(--animate-fast) var(--burger-delay);
    transform: rotate(45deg) scaleX(0.8);
    background: #fff;;
}

.menu-open .w--burger--wrapper:after {
    top: 0;
    transition: top var(--animate-fast), transform var(--animate-fast) var(--burger-delay);
    transform: rotate(-45deg) scaleX(0.8);
    background: #fff;
}

/* TOPMENU */

.w--h--r--top{
	display: flex;
    align-items: center;
	margin-bottom: 2rem;
}

.w--h--r--top ul{
	display: flex;
	padding-left: 0;
	margin-bottom: 0;
}

.w--h--r--top ul li{
	font-size: var(--font-size-small);
	font-weight: 500;
	list-style-type: none;
	
}

.w--socials a:last-child{
	margin-right: 0rem;
}

.menu--container .current_page_item{
	text-decoration: none;
}

/* HOOFDMENU */

.w--h--r--bottom{
	display: flex;
}

.w--h--r--bottom ul{
	display: flex;
	padding-left: 0;
	margin-bottom: 0;
    margin-top:0;
}

.w--h--r--bottom ul li{
	font-size: var(--font-size);
	list-style-type: none;
	margin-right: 2rem;
}

.w--h--r--bottom ul li a{
	font-weight: 300;
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.w--h--r--bottom ul li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.35s ease;
}

.w--h--r--bottom ul li a:hover::after{
    width: 100%;
}

.w--h--r--bottom ul li.current_page_item a::after,
.w--h--r--bottom ul li.current-menu-item a::after{
    width: 100%;
}

.w--h--r--bottom .mnu--contacteerons a{
	padding: 10px 25px;
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    transition: 0.5s ease;
}

.w--h--r--bottom .mnu--contacteerons a:hover{
	padding: 10px 25px;
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 15px;
}

.w--h--r--bottom .mnu--belons a{
	padding: 10px 25px;
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 15px;
    transition: 0.5s ease;
}

.w--h--r--bottom .mnu--belons a:hover{
	padding: 10px 25px;
    border: 2px solid var(--color-primary);
    background-color: #fff;
    color: var(--color-primary);
    border-radius: 15px;
}

.w--h--r--bottom ul li:last-child{
	margin-right: 0rem;
}

.w--header--logo a{
		--ratio: 25.18%;
		display: inline-block;
		width: max(300px, min(calc(0.0992907801*(100vw - 37.5em) + 300px), 356px));
        max-width:200px;
}

.w--header--logo--wrapper {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: var(--ratio);
}

.w--header--logo img {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.w--socials{
	display: inline-flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
}


/* SUBMENU - voor als er 1 is */

.menu-item-has-children{
    position: relative;
}

ul.sub-menu {
    position: absolute;
    display: none;
    flex-direction: column;
    z-index: 100;
    background-color: #000;
}
.sub-menu li{
margin-right:0 !important;
}

.menu-item-has-children:hover > ul.sub-menu{
    display: flex;
}

.menu-item-has-children ul.sub-menu li a {
    padding: 10px;
    width: auto;
    display: inline-block;
    color: #fff;
	transition: 0.5s ease;
    width:100%;
}

.menu-item-has-children ul.sub-menu li a:hover{
    padding: 10px;
    background-color: var(--color-primary);
    color: #fff;
}

@media screen and (max-width: 600px) {

    .w--header {
        height: 120px;
    }

    .w--header--logo svg {
        width: 70%;
    }

    .w--header--right .w--header--menu {
        display: none;
    }
}

@media screen and (max-width: 1440px) {
    .w--burger {
        display: flex;
    }

    .w--header--mobile__wrapper ul {
        flex-flow: column wrap;
        justify-content: flex-start;
        align-items: flex-start;
        list-style-type: none;
    }

    .w--header--mobile__wrapper ul li {
        margin-left: 0;
        margin-right: 0;
    }


    .w--header--mobile__wrapper ul li a {
        font-size: max(20px, min(calc(.0774822695*(100vw - 37.5em) + 20px), 28px));
        font-weight: 700;
    }

    .w--header--mobile__wrapper ul li a:hover {
        color: var(--colorBasis1);
    }

    .w--header--mobile__wrapper ul li.current_page_item a {
        color: var(--colorBasis1);
    }

    .menu-topmenu-container{
        margin-top: 2rem;
    }

    .menu-topmenu-container a{
        font-size: max(22px, min(calc(.0435460993*(100vw - 37.5em) + 22px), 38px)) !important;
        margin-bottom: .25em;
    }

    .w--header--mobile .w--socials{
        padding-left: 40px;
    }

    .w--header--mobile .w--socials a svg {
        width: 1.5em;
        height: 1.5em;
        fill: var(--colorBlack);
        transition: fill var(--animate-very-slow);
    }

    .w--header--mobile .w--socials a:hover svg {
        fill: var(--colorBasis1);
    }
	
	ul.sub-menu {
		position: relative;
		display: flex;
		flex-direction: column;
		z-index: 100;
		padding-top: 10px;
        padding-left: 10px;
		background-color: #000;
	}
	
	.menu-item-has-children ul.sub-menu li a {
		padding: 10px 0px 5px 0px;
		font-size: max(16px, min(calc(.0774822695*(100vw - 37.5em) + 16px), 20px));
	}
	
	.menu-item-has-children ul.sub-menu li a:hover {
		padding: 10px 0px 5px 0px;
		background-color: transparent;
	}

	/* VOOR TOPMENU */

	.menu-topmnu_wcreate-container {
        margin-top: 2rem;
    }

	.menu-topmnu_wcreate-container a {
        font-size: max(22px, min(calc(.0435460993*(100vw - 37.5em) + 22px), 38px)) !important;
        margin-bottom: .25em;
    }
	
	/* VOOR ALS ER NIETS BOVEN HET MENU STAAT*/
	.w--header--right .w--header--menu {
        display: none;
    }

}

@media screen and (max-width: 1440px) {
    .w--header--right .w--header--menu ul li {
        display: none;
    }
}

/* MOBIEL MENU */

.w--header--mobile {
    background-color: var(--color-near-black);
    overflow-y: auto;
}

.w--header--mobile__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    height: 100%;
    padding: calc(100px + 1.5rem) 0 calc(var(--spacing-y) * 0.3);
    z-index: 1;
}

/* Header is 120px hoog op kleine schermen, menu inhoud mee opschuiven */
@media screen and (max-width: 600px) {
    .w--header--mobile__wrapper {
        padding-top: calc(120px + 1rem);
    }
}

.w--header--mobile .tvo--square--big {
    pointer-events: none;
    z-index: 0;
    left: auto;
    right: 30px;
    transform: scaleX(-1);
}

@media screen and (max-width: 811px) {
    .w--header--mobile .tvo--square--big {
        left: auto;
        right: 15px;
    }
}

/* Genummerde hoofditems */
.w--header--mobile .w--header__menu ul.menu {
    counter-reset: mobielmenu;
    margin: 0;
    padding: 0;
}

.w--header--mobile .w--header__menu ul.menu > li {
    counter-increment: mobielmenu;
    margin-bottom: 1em;
}

.w--header--mobile .w--header__menu ul.menu > li > a {
    display: inline-block;
    font-size: max(20px, min(calc(0.05 * (100vw - 37.5em) + 20px), 40px));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.w--header--mobile .w--header__menu ul.menu > li > a::before {
    content: counter(mobielmenu, decimal-leading-zero);
    margin-right: 0.7em;
    font-size: var(--font-size-small);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    vertical-align: 0.95em;
}

.w--header--mobile .w--header__menu ul.menu > li > a:hover,
.w--header--mobile .w--header__menu ul.menu li.current-menu-item > a,
.w--header--mobile .w--header__menu ul.menu li.current_page_item > a {
    color: var(--color-primary);
}

/* Submenu subtieler dan de hoofditems */
.w--header--mobile ul.sub-menu {
    background-color: transparent;
    padding-left: 2.6em;
    padding-top: 0.25em;
}

.w--header--mobile .menu-item-has-children ul.sub-menu li a {
    color: var(--color-gray-500);
    text-transform: none;
    font-weight: 300;
}

.w--header--mobile .menu-item-has-children ul.sub-menu li a:hover {
    color: var(--color-white);
    background-color: transparent;
}

/* Contactblok onderaan */
.mobile-menu__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid #504A4A;
}

.mobile-menu__contact-link {
    font-size: var(--font-size-h4);
    font-weight: 300;
}

.mobile-menu__contact .socials {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.mobile-menu__contact .socials a:hover svg path,
.mobile-menu__contact .socials a:focus-visible svg path {
    fill: var(--color-primary);
}

/* Gestaggerde inkom van de items zodra het menu opent */
.w--header--mobile .hero--eyebrow,
.w--header--mobile .w--header__menu ul.menu > li,
.w--header--mobile .mobile-menu__contact {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
}

.menu-open .w--header--mobile .hero--eyebrow,
.menu-open .w--header--mobile .w--header__menu ul.menu > li,
.menu-open .w--header--mobile .mobile-menu__contact {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .w--header--mobile .hero--eyebrow { transition-delay: 0.1s; }
.menu-open .w--header--mobile .w--header__menu ul.menu > li:nth-child(1) { transition-delay: 0.18s; }
.menu-open .w--header--mobile .w--header__menu ul.menu > li:nth-child(2) { transition-delay: 0.25s; }
.menu-open .w--header--mobile .w--header__menu ul.menu > li:nth-child(3) { transition-delay: 0.32s; }
.menu-open .w--header--mobile .w--header__menu ul.menu > li:nth-child(4) { transition-delay: 0.39s; }
.menu-open .w--header--mobile .w--header__menu ul.menu > li:nth-child(5) { transition-delay: 0.46s; }
.menu-open .w--header--mobile .w--header__menu ul.menu > li:nth-child(6) { transition-delay: 0.53s; }
.menu-open .w--header--mobile .mobile-menu__contact { transition-delay: 0.6s; }

/* Reduced motion: geen verschuivingen, enkel korte fades */
@media (prefers-reduced-motion: reduce) {
    .w--header--mobile,
    .menu-open .w--header--mobile {
        transition: none;
    }

    .w--header--mobile .hero--eyebrow,
    .w--header--mobile .w--header__menu ul.menu > li,
    .w--header--mobile .mobile-menu__contact {
        transform: none;
        transition: opacity 0.3s ease;
        transition-delay: 0s;
    }
}