/* DROPDOWN */
header .dropdown {
    position: relative;
    display: flex;
	padding-right: 10px;
}
header .dropdown__trigger {
    cursor: pointer;
	font-weight: 600;
}
header .main-cta > .button{
	position: relative;
	padding-right: 40px;
}
header .main-cta > .button::after{
	content:'';
	position: absolute;
	right: 16px;
	top: calc(50% - 8px);
	width: 16px;
	height: 16px;
	transform: rotate(8deg);
	background-repeat: no-repeat;
	background-size: contain;
	background-image:url('/wp-content/uploads/2026/04/Website-assets_Muziekbalk-3-06.svg');
}
header .main-cta > .button:hover::after{
	background-image:url('/wp-content/uploads/2026/03/Website-assets_Muziekbalk-3-06-1.svg');
}
header .menu *{
	margin-bottom: 0;
	margin-top: 0;
}
header .dropdown::after{
	content:'';
	border-right: 2px solid;
	border-bottom: 2px solid;
	position: absolute;
	width: 4px;
    height: 4px;
    transform: rotate(45deg);
    right: -6px;
    top: 10px;
	transition: transform 0.2s;
}
header .dropdown .menu {
    display: none;
	position: absolute;
    top: 100%;
    left: -20px;
    list-style: none;
    margin: 0;
    background: var(--wit);
    z-index: 2;
    width: 200px;
    flex-direction: column;
    padding: 20px;
    border-radius:  var(--border-radius-medium);
}
header .dropdown .menu li.current-menu-item a,
header .dropdown .menu li a:hover{
	text-decoration: underline;
}
header .dropdown .menu li a{
	padding: 10px 0;
	width: 100%;
}
header .dropdown .menu li:first-child a{
	padding-top:0
}

header .dropdown:hover::after{
	transform: rotate(-45deg);
}
header .dropdown:hover .menu {
    display: flex;
}


/* WP DEFAULT MENU SUB-DROPDOWNS (menu-item-has-children) */
header .menu-item-has-children {
	position: relative;
	padding-right: 14px;
}
header .menu-item-has-children::after {
	content: '';
	border-right: 2px solid;
	border-bottom: 2px solid;
	position: absolute;
	width: 4px;
	height: 4px;
	transform: rotate(45deg);
	right: 0;
	top: calc(50% - 4px);
	transition: transform 0.2s;
	pointer-events: none;
}
header .menu-item-has-children:hover::after {
	transform: rotate(-135deg);
	top: calc(50% - 2px);
}
header .sub-menu {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	position: absolute;
	top: 100%;
	left: -20px;
	list-style: none;
	margin: 0;
	padding: 0px;
	background: var(--wit);
	z-index: 10;
	min-width: 290px;
	border-radius: var(--border-radius-medium);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s, visibility 0.15s;
}

header .menu-item-has-children:hover > .sub-menu,
header .menu-item-has-children:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
header .sub-menu li {
    margin: 0;
    padding: 0px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}
header .sub-menu li a{
	padding: 12px 24px;
	width: 100%;
	display: block;
	margin-bottom: 0;
}
header .sub-menu > li:last-child a{
	padding-bottom: 20px;
}
header .sub-menu > li:first-child a{
	padding-top: 20px;
}
header .sub-menu li a:hover,
header .sub-menu li.current-menu-item a {
	text-decoration: underline;
}


/* MENU */
.menu{
	padding-left: 0;
}
.menu ul{
	display: flex;
    gap: var(--gallery-gap);
	flex-direction: row;
	padding-left: 0;
	margin-top: 0;
	margin-bottom: 0;
}
.menu ul li{
    display: flex;
    margin: 0;
}
.menu ul li a{
	margin-bottom: 0;
    line-height: 1.1;
    padding-bottom: 0;	
}
.menu > li > a{
	margin-bottom: 0;
    font-weight: 600;
    font-size: 18px;
}
header a{
    text-decoration: unset;
}



/* NAVIGATIE */
.menu-item{
    margin: 12px 0;
    display: flex;
}
.menu-item:first-child{
    margin-top: 0;
}
.menu-item:last-child{
    margin-bottom: 0;
}



@media (max-width: 900px) {

    /* Desktop header verbergen op mobiel */
    .site-header--desktop {
        display: none;
    }

    /* Mobile header tonen */
    .site-header--mobile {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Topbalk: logo + hamburger */
    .mobile-header-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
    }

    /* Hamburger knop */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        width: 40px;
        height: 40px;
    }

    .hamburger__line {
		margin-bottom:0;
        display: block;
        width: 24px;
        height: 2px;
        background-color: currentColor;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* Hamburger → X animatie */
    .hamburger.is-active .hamburger__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.is-active .hamburger__line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.is-active .hamburger__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile menu panel */
    .mobile-menu {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease, padding 0.3s ease;
        padding: 0 20px;
        border-top: 1px solid transparent;
    }

    .mobile-menu.is-open {
        max-height: 80vh;
        overflow-y: auto;
        padding: 16px 20px 24px;
        border-top-color: #eee;
    }

    /* Secties binnen het menu */
    .mobile-menu__section {
        margin-bottom: 30px;
    }

    .mobile-menu__title {
        margin: 0 0 8px;
        font-weight: 900;
        font-size: 18px;
    }

    /* Nav lijsten */
    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-list li a {
        display: block;
        padding: 0 0 10px 0;
        text-decoration: none;
        font-size: 16px;
        color: inherit;
		margin-bottom: 0;
        transition: opacity 0.2s;
    }

    .mobile-nav-list li a:hover {
        opacity: 0.7;
    }

    /* CTA knop */
    .mobile-menu__cta {
        margin-top: 20px;
    }

    .mobile-menu__cta .button {
        display: inline-block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* ----------------------------------------------------------
     * Sub-menus op mobiel: geen popup, inline onder de parent
     * in dezelfde stijl als de parent menu-items.
     * ---------------------------------------------------------- */
    .mobile-menu .sub-menu {
        /* Reset desktop popup-styling */
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        flex-direction: initial !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
    }
	header .sub-menu > li:first-child{
		padding-top: 0;
	}
	header li.menu-item-has-children > a{
		font-weight: 500;
	}
	header .sub-menu > li:last-child{
		padding-bottom: 0;
	}
    /* Sub-menu items in dezelfde stijl als de parents (mobile-nav-list li/a) */
    .mobile-menu .sub-menu li {
        margin: 0;
        padding: 0;
        display: block;
        width: 100%;
    }

    .mobile-menu .sub-menu li a {
        display: block;
        padding: 0 0 10px 0;
        text-decoration: none;
        font-size: 16px;
        color: inherit;
        margin-bottom: 0;
        transition: opacity 0.2s;
        width: 100%;
    }

    .mobile-menu .sub-menu li a:hover {
        opacity: 0.7;
    }

    /* Pijltje naast de parent verbergen op mobiel — niets om uit te klappen */
    .mobile-menu .menu-item-has-children::after {
        content: none !important;
    }

    .mobile-menu .menu-item-has-children {
        padding-right: 0 !important;
        display: block;
    }
}



