:root {
    --primary-yellow: #dfb347;
	--orange: #e9511c;
    --geel2: #f6e3b6;
    --blauw: #1275bb;
    --header-gradient: linear-gradient(90deg, #f8af41,#e94539, #be1d2e, #64318a, #2b3b8e, #1275bb, #39b072, #8dc044, var(--groen));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { display: flex; flex-direction: column; }

/* --- Header & Top Bar --- */
.main-header { 
    background: #fff;   
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar { 
    background: var(--header-gradient); 
    color: white; 
    padding: 10px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom-left-radius: 25px; 
    margin-left: 30%; 
}

/* Social Icons (Witte rondjes) */
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 30px; height: 30px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-icons a i { color: #2b3b8e; font-size: 14px; }

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 15px; 
    position: relative;
    background: #fff;
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--blauw); }

/* --- HET MENU: DESKTOP STYLING --- */
.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu a { text-decoration: none; color: var(--blauw); font-weight: 400; font-size: 1.1rem; }
.nav-menu li { position: relative; padding: 0; }

/* Dropdowns Desktop */
.nav-menu .submenu { 
    position: absolute; top: 100%; left: 0;  background-color: var(--orange); min-width: 200px; 
    list-style: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 0 0 10px 10px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 100;
}
.nav-menu li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu .submenu { left: 100%; top: 0; border-radius: 0 10px 10px 10px; } /* Derde laag opzij */

.submenu li a {padding: 0px 20px 16px; display: block; border-bottom: 1px solid #f5f5f5; font-size: 0.95rem; color: var(--wit); }
.submenu li a:hover {  }
.close-menu { display: none; }


/* 1. De donkere laag (overlay) */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none; 
    z-index: 2000; /* Een hoog getal */
    backdrop-filter: blur(3px);
}


/* --- 1. ALGEMENE STYLING VOOR LINKS (Nodig voor de streep) --- */
@media (min-width: 993px) {
    .nav-menu li a {
        position: relative; /* Cruciaal: dit is het anker voor het streepje */
        display: block;
        padding: 10px 20px;
    }
	
	}

/* --- 2. HOOFDMENU ACTIVE (Oranje) --- */
.nav-menu > li.mx_current > a {
    color: var(--oranje) !important; 
    font-weight: 700;
}

@media (min-width: 993px) {
    .nav-menu > li.mx_current > a::after {
        content: '';
        position: absolute;
        bottom: -2px; /* Iets onder de tekst */
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--oranje); /* Directe kleurcode werkt altijd */
        border-radius: 2px;
    }
	
	
}

/* --- 3. SUBMENU ACTIVE (Groen) --- */
.nav-menu .submenu li.mx_current > a {
    color: var(--groen) !important;
    font-weight: 700;
}

@media (min-width: 993px) {
    /* Optioneel: een groen streepje in het submenu */
    .nav-menu .submenu li.mx_current > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--groen);
        border-radius: 2px;
    }
}

/* --- 4. OVERIGE FIXES --- */
.submenu li.mx_last a {
    border-bottom: none !important;
}




@media (min-width: 993px) {
    .nav-menu .submenu li a:hover {
        color: var(--groen);
    }
	
}
@media (min-width:993px)  and (max-width:1200px) {
	.logo2 {display: inherit;
	    position: absolute;
    top: 5px;
    left: 5px;}
	
	.logo {display:none;}
}

/* Mobiel specifieke styling voor actieve submenu items */
@media (max-width: 992px) {
	

		    .nav-menu li a {
        position: relative;
        display: block;
        padding: 10px 5px;
    }
	    .navbar .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }
	    .navbar {
        position: relative !important;
        padding: 37px 5% !important;
    }
	
	
    /* Pas de achtergrond en de zijlijn aan voor actieve sub-items */
    .nav-menu .submenu li.mx_current {
        background-color: rgba(141, 192, 68, 0.05) !important; /* Lichtgroene gloed */
        border-left: 4px solid var(--groen) !important; /* Groene streep links */
    }

    /* Zorg dat het pijltje in een actief groen balkje ook groen wordt */
    .nav-menu .submenu li.mx_current > a .toggle-icon {
        color: var(--groen) !important;
    }
}




/* 2. De navigatie container op mobiel */
@media (max-width: 992px) {
    .nav-container {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100%;
        background: white;
        
        /* DIT IS DE FIX: 
           Zorg dat dit getal HOGER is dan de overlay z-index */
        z-index: 2001; 
        
        padding: 60px 20px;
        transition: 0.4s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        
        /* Zorg dat de container zelf kan scrollen als het menu heel lang is */
        overflow-y: auto; 
    }

    .nav-container.active {
        left: 0;
    }

  
}
@media (max-width: 1600px) {
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}
}

/* --- MOBIEL STYLING (Aangepast via Media Query) --- */
@media (max-width: 992px) {
	.menu-toggle {
        display: flex;             /* Gebruik flex om het icoon perfect te centreren */
        align-items: center;
        justify-content: center;
        
        position: fixed;
        bottom: 20px;              /* Iets van de bodem af voor een moderne 'app' look */
        left: 50%;                 /* Zet de linkerkant op het midden van het scherm */
        transform: translateX(-50%); /* Schuif de knop exact de helft van zijn eigen breedte terug */
        
        width: 55px;               /* Iets groter is makkelijker voor duimen */
        height: 55px;
        background-color: #fff;
        color: var(--blauw);
        
        border-radius: 50%;        /* Maak er een cirkel van */
        box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Voeg schaduw toe zodat hij boven de content zweeft */
        z-index: 2500;             /* Zorg dat hij BOVEN de overlay en alles uitkomt */
        
        cursor: pointer;
        font-size: 1.5rem;
    }

    /* Optioneel: geef de knop een kleurtje of border om hem extra op te laten vallen */
    .menu-toggle i {
        color: var(--blauw);
    }
	.menu-toggle {
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        background-color: #fff;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 2500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

    /* De container voor de lijntjes */
    .hamburger-box {
        width: 30px;
        height: 22px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* De drie lijntjes */
    .line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--blauw);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    /* ANIMATIE NAAR KRUIS (X) */
    
    /* Bovenste lijn: draai 45 graden en naar beneden */
    .menu-toggle.is-active .line:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
        background-color: #e94539; /* Optioneel: kleur verandert bij sluiten */
    }

    /* Middelste lijn: verdwijnt (opacity 0) */
    .menu-toggle.is-active .line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    /* Onderste lijn: draai -45 graden en naar boven */
    .menu-toggle.is-active .line:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
        background-color: #e94539;
    }
	 /* Zorg dat de LI geen eigen padding heeft die de klik blokkeert */
    .nav-menu li {
        padding: 0; 
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Optioneel: subtiel lijntje tussen balkjes */
    }

    /* Maak van de A-tag de volledige klikbare balk */
    .nav-menu li a {
        display: flex;             /* Maakt flexbox van de link */
        justify-content: space-between; /* Zet tekst links en icoon rechts */
        align-items: center;       /* Alles netjes verticaal in het midden */
        width: 100%;               /* Volledige breedte */
        padding: 15px 20px;        /* Hierdoor wordt het balkje hoog en klikbaar */
        box-sizing: border-box;
        text-decoration: none;
    }

    /* Zorg dat het icoontje geen eigen kliks "steelt" maar onderdeel is van de balk */
    .toggle-icon {
        pointer-events: none;      /* Kliks gaan "door" het icoon heen naar de link */
        padding: 5px;
    }
	
    .top-bar { margin-left: 0; border-radius: 0; }
  

    /* Nav container wordt het zijmenu */
    .nav-container {
        position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
        background: white; z-index: 1000; padding: 60px 5px;
        transition: 0.4s ease; box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-container.active { left: 0; }
    .close-menu { display: block; position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; }

    .nav-menu { flex-direction: column; gap: 10px; }
    
    /* Submenu's op mobiel worden 'Accordions' */
    .nav-menu .submenu { 
        position: static; opacity: 1; visibility: visible; transform: none; 
        box-shadow: none; display: none; padding-left: 20px; 
    }
    .nav-menu .submenu.open { display: block; }
    
    .nav-menu .toggle-icon { float: right; padding: 5px; transition: 0.3s; }
    .nav-menu .toggle-icon.rotate { transform: rotate(180deg); }
}

/* De rest van de styling (Hero, Footer, Scroller) houd je zoals je al had */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; z-index: 999; backdrop-filter: blur(3px); }

.main-footer { background: var(--header-gradient); color: white; padding: 12px 5%; flex-shrink: 0;     margin-top: 40px; display: flex; justify-content: space-between; }

@media (max-width: 680px) {
	
	.menu-toggle {
        position: fixed;
        bottom: 45px;
	}
	  .main-footer {
    flex-direction: column;
    height: auto;              /* belangrijk */
    gap: 12px;                 /* ruimte tussen items */
    align-items: center;       /* optioneel */
 padding-bottom: 20px;
    margin-bottom: env(safe-area-inset-bottom, 40px);
		          position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
              height: 65px;
        line-height: 35px;
        z-index: 999;
        padding-top: 17px;
  }
}