/* =========================== HEADER =========================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--background-color);
    border-bottom: 1px solid var(--color-gray-200);
    transition: transform 0.5s var(--easing), background 0.4s var(--easing), border-color 0.4s var(--easing);
}

.site-header.is-weg {
    transform: translateY(-101%);
}

.menu-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
}

.site-header__binnen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.merk {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--text-color);
}

.merk:hover {
    color: var(--text-color);
}

/* =========================== MENUKNOP =========================== */

.burger {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    padding: 0 18px 0 20px;
    border: 1px solid var(--text-color);
    background: transparent;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s var(--easing), color 0.3s var(--easing);
}

.burger:hover,
.menu-open .burger {
    background: var(--text-color);
    color: var(--background-color);
}

.burger__streepjes {
    position: relative;
    width: 18px;
    height: 10px;
}

.burger__streepjes::before,
.burger__streepjes::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.45s var(--easing), top 0.45s var(--easing);
}

.burger__streepjes::before { top: 1px; }
.burger__streepjes::after { top: 8px; }

.menu-open .burger__streepjes::before {
    top: 4.5px;
    transform: rotate(45deg);
}

.menu-open .burger__streepjes::after {
    top: 4.5px;
    transform: rotate(-45deg);
}

/* =========================== MENU OP VOLLEDIG SCHERM =========================== */

.site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    overflow-y: auto;
    padding: 104px 0 48px;
    background: var(--background-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--easing), visibility 0.45s;
}

.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
}

.menu-open {
    overflow: hidden;
}

.site-nav__binnen {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: stretch;
    min-height: calc(100vh - 152px);
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__lijst > ul > li {
    padding: 4px 0;
    border-bottom: 1px solid var(--color-gray-200);
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--easing), transform 0.7s var(--easing);
}

.menu-open .site-nav__lijst > ul > li {
    opacity: 1;
    transform: none;
}

.menu-open .site-nav__lijst > ul > li:nth-child(1) { transition-delay: 0.08s; }
.menu-open .site-nav__lijst > ul > li:nth-child(2) { transition-delay: 0.14s; }
.menu-open .site-nav__lijst > ul > li:nth-child(3) { transition-delay: 0.2s; }
.menu-open .site-nav__lijst > ul > li:nth-child(4) { transition-delay: 0.26s; }
.menu-open .site-nav__lijst > ul > li:nth-child(5) { transition-delay: 0.32s; }
.menu-open .site-nav__lijst > ul > li:nth-child(6) { transition-delay: 0.38s; }
.menu-open .site-nav__lijst > ul > li:nth-child(7) { transition-delay: 0.44s; }

.site-nav a {
    display: block;
    color: var(--text-color);
    transition: color 0.35s var(--easing), transform 0.5s var(--easing);
}

.site-nav__lijst > ul > li > a {
    padding: 6px 0;
    font-size: clamp(2.1rem, 2.4vw + 2vh, 4.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.site-nav__lijst > ul > li > a:hover,
.site-nav__lijst > ul > li > a:focus-visible {
    transform: translateX(0.5rem);
}

/* De andere links worden zacht grijs terwijl je er een aanwijst */
.site-nav__lijst > ul:has(a:hover) a:not(:hover),
.site-nav__lijst > ul:has(a:focus-visible) a:not(:focus-visible) {
    color: var(--color-gray-500);
}

.site-nav .current-menu-item > a::after {
    content: "";
    display: inline-block;
    width: 0.32em;
    height: 0.32em;
    margin-left: 0.3em;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.site-nav .sub-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 24px;
    padding: 0 0 14px;
}

.site-nav .sub-menu a {
    padding: 3px 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-gray-700);
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a:focus-visible {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.site-nav__beeld {
    position: relative;
    align-self: start;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    aspect-ratio: 4 / 5;
    max-height: calc(100vh - 170px);
    overflow: hidden;
    background: var(--color-gray-100);
    opacity: 0;
    transition: opacity 0.7s var(--easing) 0.2s;
}

.menu-open .site-nav__beeld {
    opacity: 1;
}

.site-nav__beeld img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.6s var(--easing), transform 1s var(--easing);
}

.site-nav__beeld img.is-actief {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1100px) {

    .site-nav__binnen {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .site-nav__beeld {
        display: none;
    }

    .site-nav__lijst > ul > li > a {
        font-size: clamp(2rem, 8.5vw, 3.5rem);
    }
}
