/**
 * Header
 *
 * Bestand:
 * assets/css/02-header.css
 */


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

.mvd-site-header,
.mvd-site-header * {
    box-sizing: border-box;
}

.mvd-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(24, 56, 113, 0.10);
    box-shadow: 0 4px 18px rgba(23, 32, 51, 0.05);
}

.admin-bar .mvd-site-header {
    top: 32px;
}

.mvd-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 36px;
}


/* =========================================================
   LOGO
   ========================================================= */

.mvd-site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.mvd-site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.mvd-site-branding .custom-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 52px;
    object-fit: contain;
}

.mvd-site-branding__fallback {
    display: flex;
    flex-direction: column;
    color: var(--mvd-blue, #183871);
    text-decoration: none;
}

.mvd-site-branding__name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.mvd-site-branding__description {
    margin-top: 2px;
    color: var(--mvd-grey, #8b8d8d);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   DESKTOP MENU
   ========================================================= */

.mvd-header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    min-width: 0;
}

.mvd-primary-navigation {
    display: block;
}

.mvd-primary-navigation__list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mvd-primary-navigation__item {
    margin: 0;
    padding: 0;
}

.mvd-primary-navigation__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    color: var(--mvd-dark, #172033);
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.mvd-primary-navigation__link:hover,
.mvd-primary-navigation__link:focus-visible {
    color: var(--mvd-blue, #183871);
    background: rgba(24, 56, 113, 0.06);
    outline: none;
}

.mvd-primary-navigation__link--active {
    color: var(--mvd-blue, #183871);
}

.mvd-primary-navigation__link--active::after {
    position: absolute;
    right: 11px;
    bottom: 3px;
    left: 11px;
    height: 2px;
    background: var(--mvd-blue, #183871);
    border-radius: 2px;
    content: "";
}


/* =========================================================
   TRANSPORT REQUEST BUTTON
   ========================================================= */

.mvd-header-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    color: #ffffff;
    background: var(--mvd-blue, #183871);
    border: 1px solid var(--mvd-blue, #183871);
    border-radius: 6px;
    box-shadow: 0 7px 18px rgba(24, 56, 113, 0.16);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.mvd-header-request-button:hover,
.mvd-header-request-button:focus-visible,
.mvd-header-request-button--active {
    color: #ffffff;
    background: var(--mvd-blue-dark, #102752);
    border-color: var(--mvd-blue-dark, #102752);
    box-shadow: 0 9px 22px rgba(16, 39, 82, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.mvd-header-request-button__icon {
    display: block;
    flex: 0 0 auto;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mvd-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--mvd-dark, #172033);
    background: transparent;
    border: 1px solid rgba(24, 56, 113, 0.18);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.mvd-menu-toggle:hover,
.mvd-menu-toggle:focus-visible {
    color: var(--mvd-blue, #183871);
    background: rgba(24, 56, 113, 0.05);
    border-color: rgba(24, 56, 113, 0.32);
    outline: none;
}

.mvd-menu-toggle__icon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 21px;
    height: 18px;
}

.mvd-menu-toggle__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.mvd-menu-toggle[aria-expanded="true"]
.mvd-menu-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mvd-menu-toggle[aria-expanded="true"]
.mvd-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.mvd-menu-toggle[aria-expanded="true"]
.mvd-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   SKIP LINK
   ========================================================= */

.mvd-skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99999;
    display: block;
    width: auto;
    height: auto;
    padding: 12px 16px;
    color: #ffffff;
    background: var(--mvd-blue, #183871);
    clip: auto;
    clip-path: none;
    font-size: 0.85rem;
    text-decoration: none;
}


/* =========================================================
   TABLET EN MOBIEL
   ========================================================= */

@media (max-width: 980px) {

    .mvd-site-header__inner {
        min-height: 70px;
    }

    .mvd-site-branding .custom-logo {
        max-width: 205px;
        max-height: 47px;
    }

    .mvd-menu-toggle {
        display: inline-flex;
    }

    .mvd-header-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        max-height: 0;
        padding: 0;
        background: #ffffff;
        border-top: 1px solid rgba(24, 56, 113, 0.08);
        box-shadow: 0 18px 35px rgba(23, 32, 51, 0.12);
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            max-height 260ms ease,
            padding 260ms ease,
            opacity 180ms ease,
            visibility 180ms ease,
            transform 180ms ease;
    }

    .mvd-header-menu.is-open {
        max-height: calc(100vh - 90px);
        padding: 14px 20px 22px;
        opacity: 1;
        overflow-y: auto;
        visibility: visible;
        transform: translateY(0);
    }

    .mvd-primary-navigation__list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .mvd-primary-navigation__link {
        display: flex;
        width: 100%;
        min-height: 46px;
        padding: 11px 12px;
        font-size: 0.86rem;
    }

    .mvd-primary-navigation__link--active::after {
        top: 10px;
        right: auto;
        bottom: 10px;
        left: 0;
        width: 3px;
        height: auto;
    }

    .mvd-header-request-button {
        width: 100%;
        margin-top: 12px;
        min-height: 48px;
        font-size: 0.84rem;
    }

}

@media (max-width: 782px) {

    .admin-bar .mvd-site-header {
        top: 46px;
    }

}

@media (max-width: 520px) {

    .mvd-site-header__inner {
        min-height: 64px;
        gap: 15px;
    }

    .mvd-site-branding .custom-logo {
        max-width: 165px;
        max-height: 40px;
    }

    .mvd-menu-toggle {
        min-width: 44px;
        padding: 8px 10px;
    }

    .mvd-menu-toggle__text {
        display: none;
    }

    .mvd-header-menu.is-open {
        padding-right: 16px;
        padding-left: 16px;
    }

}
@media (max-width: 980px) {

    body.mvd-menu-open {
        overflow: hidden;
    }

}