/* Header Wrapper */
:root {
    --padding_menuitems: clamp(2.5rem, -4.1477rem + 29.5455vw, 18.75rem);
    --header_height: 90px;
    --f_accent: #E16E7F;
    --f_font-family: 'futura-pt';
    --f_font-weight: 500;
    /* Keep in sync with the mobile breakpoint used in fellingen-maatwerk-public.js */
    --f_mobile_breakpoint: 992px;
}

.f_spacer {
    width: 100%;
    height: var(--header_height);
}

.f_header_wrapper {
    padding: 0px;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 999999 !important;
    width: 100%;
    height: var(--header_height);
    background-color: white;
    display: flex;
    align-items: center;
}

.f_header_wrapper .header_inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.f_header_wrapper .f_header_cta,
.f_header_wrapper .f_header_logo,
.f_header_toggle {
    position: absolute;
    top: 0px;
    height: 100%;
}

.f_header_wrapper .f_header_cta,
.f_header_wrapper .f_header_logo {
    left: 5%;
    width: 250px;
}

.f_header_wrapper .f_header_logo {
    background-image: url("/wp-content/uploads/2026/06/fellingen-logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.f_header_wrapper .f_header_content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0px !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    align-content: center;
}

.f_header_wrapper .f_header_menu {
    padding: 0px !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    list-style: none !important;
    gap: 20px;
    font-family: var(--f_font-family);
    font-weight: var(--f_font-weight);
    font-size: 19px;
}

.f_header_wrapper .f_header_menu .menu-item {
    padding: 0px !important;
}

.f_header_wrapper .f_header_cta {
    left: unset;
    right: 5%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: flex-end;
    background-color: white;
    width: auto !important;
}

.f_header_cta > a {
    padding: 10px 15px;
    background-color: var(--f_accent) !important;
    float: left;
    color: white !important;
    width: unset !important;
    height: unset !important;
    font-family: var(--f_font-family);
    font-weight: var(--f_font-weight);
    font-size: 19px;
}

ul > li.current-menu-item > a {
    color: var(--f_accent) !important;
}

/* Mobile toggle (hamburger) */
.f_header_toggle {
    display: none;
    right: 5%;
    width: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 3;
}

.f_header_toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.f_header_wrapper.mobile-menu-open .f_header_toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.f_header_wrapper.mobile-menu-open .f_header_toggle span:nth-child(2) {
    opacity: 0;
}

.f_header_wrapper.mobile-menu-open .f_header_toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile overlay + slide-out menu */
.f_mobile_overlay,
.f_mobile_menu {
    display: none;
}

body.f_no_scroll {
    overflow: hidden;
}

@media (max-width: 992px) {
    .f_header_wrapper .f_header_content,
    .f_header_wrapper .f_header_cta {
        display: none;
    }

    .f_header_toggle {
        display: flex;
    }

    .f_mobile_overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .f_mobile_menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85%);
        height: 100%;
        box-sizing: border-box;
        background-color: white;
        padding: calc(var(--header_height) + 20px) 30px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.35s ease;
        z-index: 2;
        overflow-y: auto;
    }

    .f_header_wrapper.mobile-menu-open .f_mobile_overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .f_header_wrapper.mobile-menu-open .f_mobile_menu {
        right: 0;
    }

    .f_mobile_menu_list {
        list-style: none !important;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 !important;
        margin: 0;
        font-family: var(--f_font-family);
        font-weight: var(--f_font-weight);
        font-size: 19px;
    }

    .f_mobile_menu_list .menu-item {
        padding: 0 !important;
    }

    .f_mobile_menu_list .menu-item a {
        font-size: clamp(1.875rem, 1.108rem + 3.4091vw, 3.75rem);
    }

    .f_mobile_cta {
        margin-top: 30px;
    }

    .f_mobile_cta a {
        display: inline-block;
        padding: 10px 15px;
        background-color: var(--f_accent) !important;
        color: white !important;
        font-family: var(--f_font-family);
        font-weight: var(--f_font-weight);
        font-size: 19px;
    }
}

