/**
 * Header en hoofdnavigatie voor Wieke Logistics.
 *
 * Onderdelen:
 * 1. Hoofdheader
 * 2. Logo en merknaam
 * 3. Desktopnavigatie
 * 4. Offerteknop
 * 5. Mobiele menuknop
 * 6. Open menu-status
 */
/* =========================================================
   0. BOVENBALK
   ========================================================= */

.site-topbar {
    position: relative;
    z-index: 1001;
    width: 100%;
    background:
        linear-gradient(
            110deg,
            var(--wieke-purple-darker) 0%,
            var(--wieke-purple-dark) 55%,
            var(--wieke-purple) 100%
        );
    color: var(--wieke-white);
}

.site-topbar::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(5rem, 18vw, 15rem);
    height: 2px;
    border-radius: var(--wieke-radius-pill) 0 0 0;
    background: var(--wieke-orange);
    content: "";
}

.site-topbar__inner {
    display: flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-topbar__message {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.2;
}

.site-topbar__message-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.site-topbar__message-item svg {
    flex: 0 0 auto;
    color: var(--wieke-orange-light);
}

.site-topbar__separator {
    width: 0.3rem;
    height: 0.3rem;
    flex: 0 0 0.3rem;
    border-radius: 50%;
    background: var(--wieke-orange);
}

.site-topbar__contact {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1.2rem;
}

.site-topbar__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--wieke-transition),
        transform var(--wieke-transition);
}

.site-topbar__contact-link svg {
    flex: 0 0 auto;
    color: var(--wieke-orange-light);
}

.site-topbar__contact-link:hover,
.site-topbar__contact-link:focus-visible {
    color: var(--wieke-white);
    transform: translateY(-1px);
}

.site-topbar__contact-link:focus-visible {
    border-radius: 0.2rem;
    outline: 2px solid var(--wieke-orange-light);
    outline-offset: 0.2rem;
}


/* Compacte desktopweergave */

@media (max-width: 1100px) {

    .site-topbar__message-item:last-child,
    .site-topbar__separator {
        display: none;
    }
}


/* Tablet */

@media (max-width: 860px) {

    .site-topbar__inner {
        min-height: 2.4rem;
        justify-content: center;
    }

    .site-topbar__message {
        display: none;
    }

    .site-topbar__contact {
        width: 100%;
        justify-content: center;
    }
}


/* Mobiel */

@media (max-width: 560px) {

    .site-topbar__inner {
        min-height: 2.3rem;
    }

    .site-topbar__contact {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .site-topbar__contact-link {
        font-size: 0.7rem;
    }
}


/* Zeer kleine schermen */

@media (max-width: 420px) {

    .site-topbar__contact {
        justify-content: center;
    }

    .site-topbar__contact-link--email {
        display: none;
    }
}
/* =========================================================
   1. HOOFDHEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--wieke-header-height);
    border-bottom: 1px solid rgba(89, 86, 115, 0.12);
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(248, 247, 250, 0.98) 100%
        );
    box-shadow:
        0 0.35rem 1.5rem rgba(36, 35, 44, 0.06);
    backdrop-filter: blur(14px);
    transition:
        min-height var(--wieke-transition),
        background-color var(--wieke-transition),
        box-shadow var(--wieke-transition);
}

.site-header::before {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(5rem, 10vw, 10rem);
    height: 0.3rem;
    border-radius: 0 0 0 var(--wieke-radius-pill);
    background: var(--wieke-orange);
    content: "";
}

.site-header::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: clamp(4rem, 8vw, 8rem);
    height: 3px;
    border-radius: 0 var(--wieke-radius-pill) var(--wieke-radius-pill) 0;
    background: var(--wieke-purple);
    content: "";
}

.site-header.is-scrolled {
    min-height: 76px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 0.65rem 2rem rgba(36, 35, 44, 0.11);
}

.site-header__inner {
    display: flex;
    min-height: inherit;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}


/* =========================================================
   2. LOGO EN MERKNAAM
   ========================================================= */

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

.site-header__branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: clamp(12rem, 21vw, 18rem);
    text-decoration: none;
}

.site-header__branding .custom-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 4.4rem;
    object-fit: contain;
    object-position: left center;
    transition:
        max-height var(--wieke-transition),
        transform var(--wieke-transition);
}

.site-header.is-scrolled .site-header__branding .custom-logo {
    max-height: 3.75rem;
}

.site-header__branding .custom-logo-link:hover .custom-logo {
    transform: scale(1.015);
}

.site-header__brand-link {
    display: inline-flex;
    flex-direction: column;
    color: var(--wieke-purple-dark);
    line-height: 1.05;
    text-decoration: none;
}

.site-header__brand-name {
    font-family: var(--wieke-font-heading);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.025em;
}

.site-header__brand-description {
    margin-top: 0.3rem;
    color: var(--wieke-orange-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* =========================================================
   3. DESKTOPNAVIGATIE
   ========================================================= */

.site-header__navigation-wrap {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.site-navigation {
    display: flex;
    align-items: center;
}

.site-navigation__list {
    display: flex;
    align-items: center;
    gap: clamp(0.15rem, 0.5vw, 0.55rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation__list > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-navigation__list > li > a {
    position: relative;
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.8rem;
    border-radius: var(--wieke-radius-pill);
    color: var(--wieke-purple-dark);
    font-size: 0.93rem;
    font-weight: 730;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color var(--wieke-transition),
        color var(--wieke-transition),
        transform var(--wieke-transition);
}

.site-navigation__list > li > a::after {
    position: absolute;
    right: 0.85rem;
    bottom: 0.35rem;
    left: 0.85rem;
    height: 0.16rem;
    border-radius: var(--wieke-radius-pill);
    background: var(--wieke-orange);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition:
        opacity var(--wieke-transition),
        transform var(--wieke-transition);
}

.site-navigation__list > li > a:hover,
.site-navigation__list > li > a:focus-visible {
    background: var(--wieke-purple-light);
    color: var(--wieke-orange-dark);
    transform: translateY(-1px);
}

.site-navigation__list > li > a:hover::after,
.site-navigation__list > li > a:focus-visible::after,
.site-navigation__list > li.current-menu-item > a::after,
.site-navigation__list > li.current_page_item > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-navigation__list > li.current-menu-item > a,
.site-navigation__list > li.current_page_item > a {
    background: var(--wieke-purple-light);
    color: var(--wieke-purple-dark);
}

.site-navigation__list > li > a[href*="#"] {
    scroll-margin-top: calc(var(--wieke-header-height) + 1rem);
}


/* =========================================================
   4. OFFERTEKNOP
   ========================================================= */

.site-header__cta {
    flex: 0 0 auto;
    min-height: 3rem;
    padding-inline: clamp(1rem, 2vw, 1.4rem);
    box-shadow:
        0 0.55rem 1.5rem rgba(235, 103, 9, 0.22);
    white-space: nowrap;
}

.site-header__cta::after {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.1rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform var(--wieke-transition);
}

.site-header__cta:hover::after {
    transform: translateX(0.2rem) rotate(45deg);
}


/* =========================================================
   5. MOBIELE MENUKNOP
   ========================================================= */

.site-header__menu-toggle {
    display: none;
    min-width: 3rem;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--wieke-border);
    border-radius: var(--wieke-radius-pill);
    background: var(--wieke-white);
    color: var(--wieke-purple-dark);
    box-shadow: var(--wieke-shadow-small);
    transition:
        border-color var(--wieke-transition),
        background-color var(--wieke-transition),
        color var(--wieke-transition),
        box-shadow var(--wieke-transition);
}

.site-header__menu-toggle:hover {
    border-color: var(--wieke-orange);
    background: var(--wieke-orange-light);
    color: var(--wieke-orange-dark);
}

.site-header__menu-toggle-icon {
    position: relative;
    display: flex;
    width: 1.35rem;
    height: 1rem;
    flex-direction: column;
    justify-content: space-between;
}

.site-header__menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: var(--wieke-radius-pill);
    background: currentColor;
    transform-origin: center;
    transition:
        opacity var(--wieke-transition),
        transform var(--wieke-transition);
}

.site-header__menu-toggle-text {
    font-size: 0.88rem;
    font-weight: 750;
}


/* =========================================================
   6. OPEN MENU-STATUS
   ========================================================= */

.site-header__menu-toggle[aria-expanded="true"] {
    border-color: var(--wieke-orange);
    background: var(--wieke-orange);
    color: var(--wieke-white);
}

.site-header__menu-toggle[aria-expanded="true"]
.site-header__menu-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"]
.site-header__menu-toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header__menu-toggle[aria-expanded="true"]
.site-header__menu-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   7. WORDPRESS ADMINBAR
   ========================================================= */

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

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}