/* ========================================
   NAVIGATION STYLES
   Modern 3-level menu for desktop & mobile
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors */
    --nav-bg: #ea5901;
    --nav-text: #ffffff;
    --nav-hover: rgba(255, 255, 255, 0.1);
    --submenu-bg: #333333;
    --mobile-overlay: rgba(0, 0, 0, 0.7);
    --mobile-menu-bg: #2a2a2a;
    
    /* Dimensions */
    --header-height: 80px;
    --nav-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index layers */
    --z-header: 1000;
    --z-overlay: 999;
    --z-mobile-menu: 1001;
}

/* ========================================
   Header Container
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--nav-bg);
    z-index: var(--z-header);
    transition: all var(--nav-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Logo
   ======================================== */
.logo {
    display: flex;
    align-items: center;
    z-index: var(--z-mobile-menu);
    transition: all var(--nav-transition);
}

.logo img {
    max-width: 280px;
    height: auto;
    transition: all var(--nav-transition);
	    margin-top: 71px;

}

.header.scrolled .logo img {
      max-width: 65px;
    margin-top: 1px;
}

/* ========================================
   Desktop Navigation
   ======================================== */
.main-nav {
    display: flex;
    align-items: center;
}

/* Hide quick actions on desktop */
.mobile-quick-actions {
    display: none !important;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.menu > li {
    position: relative;
}
/* Laatste hoofdniveau-menu-item */
.menu > li:last-child > a {
    background-color: #fff;        /* witte achtergrond */
    color: var(--color-primary);                /* oranje letters */
}
/* Hover voor het laatste menu-item */
.menu > li:last-child > a:hover {
    background-color: var(--color-primary); /* oranje achtergrond */
    color: #fff;               /* letters wit bij hover */
}

.menu > li > a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--nav-transition);
    position: relative;
}

.menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--nav-text);
    transition: all var(--nav-transition);
    transform: translateX(-50%);
}

.menu > li > a:hover::after,
.menu > li.active > a::after {
    width: 80%;
}

.menu > li > a:hover {
    background-color: var(--nav-hover);
}

/* ========================================
   Level 1 Submenu (Desktop)
   ======================================== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--submenu-bg);
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--nav-transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.menu > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    position: relative;
}

.submenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--nav-transition);
}

.submenu li a:hover {
    background-color: var(--nav-hover);
    padding-left: 1.5rem;
}

/* Submenu arrow indicator */
.has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';

    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 12px;
    transition: transform var(--nav-transition);
}

.submenu .has-submenu > a::after {
    content: '\f105';
}

.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

.submenu .has-submenu:hover > a::after {
    transform: rotate(0deg) translateX(4px);
}

/* ========================================
   Level 2 Submenu (Desktop)
   ======================================== */
.submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 1px;
}

.submenu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========================================
   Mobile Menu Toggle Button
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-mobile-menu);
    position: relative;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: var(--nav-text);
    border-radius: 2px;
    transition: all var(--nav-transition);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* ========================================
   Mobile Overlay
   ======================================== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background-color: var(--mobile-overlay);
    backdrop-filter: blur(3px);
}

/* ========================================
   Mobile Navigation - MODERNE VERSIE
   ======================================== */
@media (max-width: 1085px), 
       (max-height: 500px) and (orientation: landscape) { 
	
	.logo img {
    max-width: 105px;
    height: auto;
    transition: all var(--nav-transition);
    margin-top: 37px;
}
	
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    /* Modern Mobile Menu - 80% breedte, slides van rechts */
    .main-nav {
        position: fixed;
        top: 0;
        right: -85%; /* Start buiten beeld */
        width: 80%; /* Neemt 80% van scherm in beslag */
        height: 100vh;
        background-color: var(--mobile-menu-bg);
        overflow-y: auto; /* Scrollen mogelijk als menu te lang is */
        overflow-x: hidden;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide animatie */
        z-index: var(--z-mobile-menu);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
        display: flex; /* BELANGRIJK: Flexbox voor verticale layout */
        flex-direction: column; /* BELANGRIJK: Vertical layout */
        
        /* Scroll styling */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }
    
    /* Webkit scrollbar styling */
    .main-nav::-webkit-scrollbar {
        width: 6px;
    }
    
    .main-nav::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .main-nav::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .main-nav::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }
    
    /* Menu actief - slide in van rechts */
    .main-nav.active {
        right: 0; /* Schuift naar binnen */
    }
    
    /* Transparante overlay - alleen de 20% links van het scherm */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 20%; /* Alleen de linker 20% */
        height: 100%;
        background-color: transparent;
        z-index: calc(var(--z-header) + 1); /* BOVEN HEADER */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        background-color: var(--mobile-overlay);
        backdrop-filter: blur(3px);
    }
    
    /* Mobile quick actions bovenin menu */
    .mobile-quick-actions {
        display: flex !important;
        justify-content: space-between;
        align-items: stretch; /* Alle even hoog */
        padding: 1.5rem 1rem;
        gap: 0.75rem; /* Iets meer ruimte tussen buttons */
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
        backdrop-filter: blur(10px);
        flex-shrink: 0;
        width: 100%;
    }
    
    /* Quick action buttons - ALLE 4 EXACT GELIJK */
    .mobile-quick-actions a,
    .mobile-quick-actions button.mobile-menu-close {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: #fff;
        text-decoration: none;
        padding: 0.875rem 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        flex: 1; /* Alle 4 even breed */
        background: rgba(30, 30, 30, 0.8);
        border: 2px solid rgba(150, 170, 130, 0.6); /* Groene border zoals in screenshot */
        cursor: pointer;
        min-height: 85px;
        font-family: inherit;
    }
    
    /* Close button - zelfde styling, subtiel highlight */
    .mobile-quick-actions button.mobile-menu-close {
        background: rgba(139, 69, 19, 0.3); /* Bruine tint voor close */
        border-color: rgba(139, 69, 19, 0.6);
    }
    
    /* Hover effects */
    .mobile-quick-actions a:hover,
    .mobile-quick-actions a:active,
    .mobile-quick-actions button.mobile-menu-close:hover {
        background: rgba(50, 50, 50, 0.9);
        border-color: rgba(150, 170, 130, 1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-quick-actions button.mobile-menu-close:hover {
        background: rgba(139, 69, 19, 0.5);
        border-color: rgba(139, 69, 19, 0.8);
    }
    
    /* Icon styling - ALLE GELIJK */
    .mobile-quick-actions i {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    /* Tekst styling - ALLE GELIJK */
    .mobile-quick-actions span {
        font-size: 0.75rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    /* Menu items container */
    .menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 1rem 0;
        flex: 1; /* BELANGRIJK: Neemt resterende ruimte */
    }
    
    /* Menu items */
    .menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .menu > li:last-child {
        border-bottom: none;
    }
    
    .menu > li > a {
        padding: 1.2rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
    }
    
    .menu > li > a:hover {
        background-color: rgba(255, 255, 255, 0.08);
        padding-left: 2rem;
    }
    
    .menu > li > a::after {
        display: none;
    }
    
    /* Active menu item */
    .menu > li.active > a {
        background-color: rgba(234, 89, 1, 0.2);
        border-left: 4px solid var(--nav-bg);
    }
    
    /* Mobile submenu styling */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(0, 0, 0, 0.4);
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .has-submenu.active > .submenu {
        max-height: 2000px; /* Verhoogd voor lange submenu's */
    }
    
    .submenu li a {
        padding: 1rem 1.5rem;
        padding-left: 3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 13px;
        transition: all 0.3s ease;
    }
    
    .submenu li a:hover {
        padding-left: 3.5rem;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    /* Level 2 submenu mobile */
    .submenu .submenu {
        position: static;
        margin-left: 0;
        background-color: rgba(0, 0, 0, 0.6);
    }
    
    .submenu .submenu li a {
        padding-left: 4rem;
        font-size: 12px;
    }
    
    .submenu .submenu li a:hover {
        padding-left: 4.5rem;
    }
    
    /* Mobile submenu arrows */
    .has-submenu > a::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: auto;
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .has-submenu.active > a::after {
        transform: rotate(180deg);
    }
    
    .submenu .has-submenu > a::after {
        content: '\f107';
        transform: none;
    }
    
    .submenu .has-submenu.active > a::after {
        transform: rotate(180deg);
    }
}

/* ========================================
   Small Mobile Adjustments
   ======================================== */
@media (max-width: 480px) {
    .header .container {
        padding: 0 1rem;
    }
    
    .logo img {
     
    }
    
    .header.scrolled .logo img {
            
    }
    
    /* Menu neemt 85% in op kleine schermen */
    .main-nav {
        
    }
    
    .mobile-quick-actions {
        padding: 1rem 0.5rem;
    }
    
    .mobile-quick-actions span {
        font-size: 0.65rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.menu a:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--nav-text);
    outline-offset: 2px;
}

.menu a:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .mobile-menu-toggle,
    .mobile-overlay {
        display: none;
    }
    
    .main-nav {
        position: static;
        display: block;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
    }
}