/* ===================================
   VO4U Custom Header — v1.0.0
   =================================== */

:root {
    --vo4u-green: #C2D42E;
    --vo4u-green-hover: #D4E640;
    --vo4u-dark: #1E2A35;
    --vo4u-darker: #161F28;
    --vo4u-text-light: #ffffff;
    --vo4u-text-muted: rgba(255,255,255,0.7);
    --vo4u-nav-height: 64px;
    --vo4u-topbar-height: 44px;
    --vo4u-radius: 6px;
    --vo4u-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset for our header elements */
.vo4u-topbar *,
.vo4u-navbar *,
.vo4u-mobile-overlay *,
.vo4u-whatsapp-btn * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =====================
   TOP BAR
   ===================== */
.vo4u-topbar {
    background: var(--vo4u-green);
    color: var(--vo4u-dark);
    position: relative;
    z-index: 10000;
    transition: margin-top var(--vo4u-transition);
}

.vo4u-topbar.vo4u-topbar-hidden {
    margin-top: calc(var(--vo4u-topbar-height) * -1);
    pointer-events: none;
    opacity: 0;
}

.vo4u-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    height: var(--vo4u-topbar-height);
    position: relative;
}
.vo4u-submenu-toggle {
    z-index: 3;
}
.vo4u-topbar-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.vo4u-topbar-cta {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border: 2px solid var(--vo4u-dark);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--vo4u-dark);
    transition: all var(--vo4u-transition);
    white-space: nowrap;
}

.vo4u-topbar-cta:hover {
    background: var(--vo4u-dark);
    color: var(--vo4u-green);
}

.vo4u-topbar-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vo4u-dark);
    opacity: 0.6;
    transition: opacity var(--vo4u-transition);
    padding: 6px;
    line-height: 0;
}

.vo4u-topbar-close:hover {
    opacity: 1;
}

/* =====================
   MAIN NAVBAR
   ===================== */
.vo4u-navbar {
    background: var(--vo4u-dark);
    position: relative;
    z-index: 9999;
    transition: box-shadow var(--vo4u-transition);
}


.vo4u-navbar-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--vo4u-nav-height);
    gap: 16px;
}

/* Logo */
.vo4u-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.vo4u-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.vo4u-logo-text {
    color: var(--vo4u-text-light);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.vo4u-logo-text strong {
    font-weight: 700;
}

/* Desktop Nav */
.vo4u-nav-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.vo4u-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vo4u-nav-list li {
    position: relative;
}

.vo4u-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--vo4u-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--vo4u-radius);
    transition: all var(--vo4u-transition);
    white-space: nowrap;
}

.vo4u-nav-list > li > a:hover,
.vo4u-nav-list > li.current-menu-item > a,
.vo4u-nav-list > li.current-menu-parent > a {
    color: var(--vo4u-green);
    background: rgba(194, 212, 46, 0.08);
}

/* Dropdown indicator */
.vo4u-nav-list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    opacity: 0.6;
    transition: transform var(--vo4u-transition);
}

/* Sub-menu */
.vo4u-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--vo4u-darker);
    border-radius: var(--vo4u-radius);
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--vo4u-transition);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
}

.vo4u-nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vo4u-nav-list .sub-menu li a {
    display: block;
    padding: 8px 18px;
    color: var(--vo4u-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all var(--vo4u-transition);
}

.vo4u-nav-list .sub-menu li a:hover {
    color: var(--vo4u-green);
    background: rgba(194, 212, 46, 0.06);
    padding-left: 22px;
}

/* Right actions */
.vo4u-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vo4u-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vo4u-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--vo4u-radius);
    transition: all var(--vo4u-transition);
    white-space: nowrap;
}

.vo4u-action-link:hover {
    color: var(--vo4u-text-light);
    background: rgba(255,255,255,0.06);
}

.vo4u-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--vo4u-green);
    border-radius: 50px;
    color: var(--vo4u-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--vo4u-transition);
    white-space: nowrap;
}

.vo4u-phone-btn:hover {
    background: var(--vo4u-green);
    color: var(--vo4u-dark);
}

.vo4u-signup-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--vo4u-green);
    color: var(--vo4u-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    transition: all var(--vo4u-transition);
    white-space: nowrap;
}

.vo4u-signup-btn:hover {
    background: var(--vo4u-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 212, 46, 0.3);
}

/* GTranslate */
.vo4u-gtranslate {
    display: flex;
    align-items: center;
}

.vo4u-gtranslate img {
    height: 18px !important;
    width: auto !important;
    border-radius: 2px;
}

/* Hamburger */
.vo4u-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--vo4u-radius);
    transition: background var(--vo4u-transition);
}

.vo4u-hamburger:hover {
    background: rgba(255,255,255,0.06);
}

.vo4u-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--vo4u-text-light);
    border-radius: 2px;
    transition: all var(--vo4u-transition);
}

.vo4u-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.vo4u-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.vo4u-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   HEADER SPACER
   ===================== */
.vo4u-header-spacer {
    height: 0;
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =====================
   MOBILE OVERLAY
   ===================== */
.vo4u-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--vo4u-transition);
}

.vo4u-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vo4u-mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 85vw);
    background: var(--vo4u-dark);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vo4u-mobile-overlay.active .vo4u-mobile-menu {
    transform: translateX(0);
}

.vo4u-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vo4u-mobile-top .vo4u-logo img {
    height: 30px;
}

.vo4u-mobile-close {
    background: none;
    border: none;
    color: var(--vo4u-text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--vo4u-radius);
    transition: all var(--vo4u-transition);
    line-height: 0;
}

.vo4u-mobile-close:hover {
    color: var(--vo4u-text-light);
    background: rgba(255,255,255,0.06);
}

/* Mobile nav list */
.vo4u-mobile-nav {
    flex: 1;
    padding: 12px 0;
}

.vo4u-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vo4u-mobile-nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vo4u-mobile-nav-list > li > a {
    display: block;
    padding: 14px 24px;
    color: var(--vo4u-text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--vo4u-transition);
}

.vo4u-mobile-nav-list > li > a:hover,
.vo4u-mobile-nav-list > li.current-menu-item > a {
    color: var(--vo4u-green);
    background: rgba(194, 212, 46, 0.06);
    padding-left: 28px;
}

/* Mobile sub-menu */
.vo4u-mobile-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.15);
}

.vo4u-mobile-nav-list .sub-menu a {
    display: block;
    padding: 10px 24px 10px 40px;
    color: var(--vo4u-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--vo4u-transition);
}

.vo4u-mobile-nav-list .sub-menu a:hover {
    color: var(--vo4u-green);
}

/* Mobile bottom actions */
.vo4u-mobile-actions {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.vo4u-mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--vo4u-transition);
    text-align: center;
}

.vo4u-mobile-phone {
    background: transparent;
    border: 1.5px solid var(--vo4u-green);
    color: var(--vo4u-green);
}

.vo4u-mobile-phone:hover {
    background: var(--vo4u-green);
    color: var(--vo4u-dark);
}

.vo4u-mobile-signup {
    background: var(--vo4u-green);
    color: var(--vo4u-dark);
}

.vo4u-mobile-signup:hover {
    background: var(--vo4u-green-hover);
}

.vo4u-mobile-login {
    color: var(--vo4u-text-muted);
    border: 1px solid rgba(255,255,255,0.12);
}

.vo4u-mobile-login:hover {
    color: var(--vo4u-text-light);
    border-color: rgba(255,255,255,0.25);
}

.vo4u-mobile-gtranslate {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

/* =====================
   WHATSAPP BUTTON
   ===================== */
.vo4u-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all var(--vo4u-transition);
    text-decoration: none;
}

.vo4u-whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.vo4u-whatsapp-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.2);
    animation: vo4u-wa-pulse 2s ease-in-out infinite;
}

@keyframes vo4u-wa-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1100px) {
    .vo4u-nav-list > li > a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .vo4u-action-link span,
    .vo4u-phone-btn span {
        display: none;
    }

    .vo4u-phone-btn {
        padding: 8px;
        border-radius: 50%;
    }
}

@media (max-width: 900px) {
    .vo4u-nav-desktop,
    .vo4u-login-link,
    .vo4u-phone-btn span {
        display: none;
    }

    .vo4u-hamburger {
        display: flex;
    }

    .vo4u-nav-actions {
        gap: 8px;
    }

    .vo4u-navbar-inner {
    width: 100%;
        padding: 0 16px;
    }

    /* Top bar responsive */
    .vo4u-topbar-text {
        font-size: 11px;
    }

    .vo4u-topbar-cta {
        font-size: 10px;
        padding: 5px 12px;
    }
}

@media (max-width: 600px) {
    :root {
        --vo4u-topbar-height: 40px;
        --vo4u-nav-height: 56px;
    }

    .vo4u-topbar-inner {
        gap: 10px;
        padding: 0 12px;
    }

    .vo4u-topbar-text {
        font-size: 10px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .vo4u-topbar-cta {
        display: none;
    }

    .vo4u-topbar-close {
        right: 10px;
    }

    .vo4u-navbar-inner {
    width: 100%;
        padding: 0 12px;
        height: var(--vo4u-nav-height);
    }

    .vo4u-logo img {
        height: 28px;
    }

    .vo4u-signup-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    /* WhatsApp smaller on mobile */
    .vo4u-whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 16px;
    }

    .vo4u-whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* =====================
   UTILITY: no scroll when mobile menu open
   ===================== */
body.vo4u-menu-open {
    overflow: hidden;
}

/* Fix: verwijder extra ruimte van verborgen Elementor header */
.elementor-location-header,
[data-elementor-type="header"].elementor-56 {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Dropdown: compact multi-column layout */
.vo4u-nav-list .sub-menu {
    min-width: 520px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.vo4u-nav-list .sub-menu li a {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.35;
    border-radius: 4px;
    white-space: normal;
}

.vo4u-nav-list .sub-menu li a:hover {
    padding-left: 14px;
}

/* Fix horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fix mobile overflow issues */
.cky-modal,
.cky-preference-center,
.cky-footer-wrapper {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}



.vo4u-mobile-overlay {
    max-width: 100vw;
}

/* Voorkom dat swiper de body uitduwt */
.swiper {
    max-width: 100vw;
    overflow: hidden;
}

/* Mobile: maak ruimte voor hamburger */
@media (max-width: 900px) {
    .vo4u-logo img {
        height: 28px !important;
    }
    .vo4u-signup-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    .vo4u-phone-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    .vo4u-navbar-inner {
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .vo4u-logo img {
        height: 24px !important;
    }
    .vo4u-signup-btn {
        display: none !important;
    }
}

/* Mobiel: betere verdeling navbar items */
@media (max-width: 900px) {
    .vo4u-nav-actions {
        gap: 12px !important;
        margin-left: auto;
    }
    .vo4u-nav-actions > * {
        flex-shrink: 0;
    }
}

/* Sticky navbar on scroll */
.vo4u-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
