/* --- Navigation --- */
nav { 
    /* Start at 0% background opacity using rgba */
    background: rgba(26, 26, 26, 0); 
    padding: 20px 5%; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    /* Hardware accelerated transition for ultra-smooth scrolling transformation */
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background, padding;
}

/* This class gets added via JS on scroll (scrollY > 50) -> transitions smoothly to ~100% opacity */
nav.scrolled { 
    background: rgba(26, 26, 26, 0.98); 
    padding: 12px 5%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    backdrop-filter: blur(10px); /* Modern Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px);
}

.nav-container { 
    max-width: 1200px;
    margin: 0 auto;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-logo {
    height: 50px; 
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* --- NAV LINKS --- */
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 35px; 
    margin: 0; 
    align-items: center;
}

.nav-links a { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.9rem;
    text-transform: uppercase; 
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

/* The 'Hover Expand' underline for menu items */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-yellow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--brand-yellow);
}

/* --- HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px; 
    cursor: pointer;
    z-index: 2000; /* Keeps it strictly over the full screen menu layer */
    position: relative;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff; 
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
                opacity 0.2s ease,
                background-color 0.3s ease;
}

/* HAMBURGER CROSS-CENTERING ANIMATION */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--brand-yellow, #f5b041);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--brand-yellow, #f5b041);
}

/* --- Navigation Dropdown (Desktop Hover) --- */
.nav-links .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111; 
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 4px;
    border-top: 3px solid var(--brand-yellow, #f5b041);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu li a {
    color: #fff;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--brand-yellow, #f5b041);
    color: #111;
}

/* Desktop Hover Trigger */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        top: 110%; 
    }
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 5px 0;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* Language Selector Styling */
.lang-dropdown .dropdown-menu {
    min-width: 80px;
    text-align: center;
}

.lang-dropdown .dropdown-menu a {
    padding: 8px 12px;
    display: block;
}

/* --- MOBILE MENU OVERLAY (FULLSCREEN KINETIC GRID OVERLAY) --- */
@media (max-width: 768px) {
    nav {
        padding: 20px 5%;
        background: rgba(26, 26, 26, 0); 
    }

    nav.scrolled {
        background: rgba(26, 26, 26, 0.98);
    }

    .menu-toggle {
        display: flex;
    }

    /* Minimalist Fullscreen Overlay Container */
    .nav-links {
        position: fixed; 
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #141414; /* Deep, luxury satin matte black */
        flex-direction: column;
        justify-content: center; /* Centers the list menu elements perfectly vertically */
        align-items: center;
        gap: 15px;
        padding: 80px 10% 40px 10%;
        
        /* Smooth scale-and-fade curtain entrance */
        opacity: 0;
        visibility: hidden;
        transform: scale(1.05);
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s;
        z-index: 1500;
        display: flex; 
        overflow-y: auto;
    }

    /* Smooth Fade-In Reveal */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    /* Dynamic Sizing for Primary Links */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem; /* Large minimal typography format */
        font-weight: 600;
        letter-spacing: 2px;
        display: inline-block;
        padding: 10px 0;
        width: auto;
        color: #ffffff;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    /* Tactile Hover/Press feedback scales text up gently */
    .nav-links a:active,
    .nav-links a:hover {
        color: var(--brand-yellow, #f5b041);
        transform: scale(1.05);
    }

    /* --- Nested Menus (Services Submenu) --- */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none; 
        background: transparent;
        box-shadow: none;
        border-top: none;
        text-align: center;
        padding: 10px 0;
        margin: 5px 0 15px 0;
    }

    .dropdown-menu li a {
        font-size: 1.05rem;
        font-weight: 400;
        letter-spacing: 1px;
        color: #aaaaaa;
        padding: 8px 0;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-divider {
        display: none; /* Hides dividers to keep the mobile grid clean */
    }

    /* --- Anchored Footer Mechanics (Call-Now & Languages) --- */
    
    /* Forces the Call Button to be a premium full-width strip across the base */
    .nav-links .nav-cta {
        background: var(--brand-yellow, #f5b041);
        color: #111 !important;
        font-weight: 700;
        font-size: 1.1rem;
        text-align: center;
        border-radius: 50px; /* Pillow-soft circular capsule pill design */
        margin-top: 30px;
        padding: 16px 40px;
        display: block;
        width: 100%;
        max-width: 320px; /* Keeps the button balanced on wider screens */
        box-shadow: 0 10px 25px rgba(245, 176, 65, 0.25);
    }
    
    .nav-links .nav-cta:active {
        transform: scale(0.97);
    }

    /* Re-engineers Language list node to stand cleanly beneath the primary button */
    .lang-dropdown {
        margin-top: 15px;
    }

    .lang-dropdown > a {
        display: none; /* Hides the initial dropdown toggle link block on mobile overlay */
    }

    /* Displays the languages (NL | EN | FR) flatly side-by-side */
    .lang-dropdown .dropdown-menu {
        display: flex; 
        justify-content: center;
        gap: 25px;
        margin: 0;
        padding: 0;
    }
    
    .lang-dropdown .dropdown-menu a {
        font-size: 1rem;
        font-weight: 500;
        color: #777777;
        padding: 5px 10px;
        letter-spacing: 1px;
    }

    .lang-dropdown .dropdown-menu a:hover,
    .lang-dropdown .dropdown-menu a:active {
        color: #ffffff;
        transform: none;
    }
}

