:root {
    --primary: rgb(33, 70, 108);
    --primary-light: rgb(180, 210, 240);
    --on-primary: rgb(255, 255, 255);
    --surface: rgb(249, 250, 239);
    --text-main: rgb(26, 28, 22);
    --text-muted: rgb(68, 72, 61);
    --accent-pop: #e3f2fd;
}


/* ─── NAVIGATIE ─────────────────────────────── */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}


.nav-container {
    background-color: rgba(33, 70, 108, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 50px;
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.12);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-links {
    display: none;
    gap: 28px;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: 1.5px solid transparent;
    text-decoration: none;
}

.nav-links a.active {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.4);
}

.nav-links a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.4);
}

.nav-actions { 
    display: none; 
    align-items: center;
    order: 3; /* Op desktop rechts */
}


/* ─── HAMBURGER BUTTON ───────────────────────────── */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    order: 4; /* Op mobiel rechts van het logo */
    margin-right: -8px;
}

.hamburger .material-symbols-rounded {
    font-size: 30px;
    display: block;
}


/* Nav-specific button style */
.nav-btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgb(33, 70, 108);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.nav-btn:hover { 
  background: rgb(22, 52, 85); 
  transform: translateY(-1px); 
}

.btn-in-nav { background-color: #fff; color: var(--primary); }

.btn-in-nav:hover { background: #fff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background-color: #fff; color: var(--primary); }
.btn-primary:hover { box-shadow: 0 4px 12px rgba(255,255,255,0.3); }

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    background: transparent;
}
.btn-outline:hover {
    border-color: white;
    background-color: rgba(255,255,255,0.1);
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-in-nav { background-color: #fff; color: var(--primary); }

@media (max-width: 767px) {
    .nav-wrapper { top: 12px; padding: 0 14px; }
    
    .nav-container {
        flex-wrap: wrap; 
        /* Zet logo links en hamburger rechts */
        justify-content: space-between; 
        align-items: center;
    }

    .nav-container.menu-open {
        border-radius: 24px;
    }

    .nav-logo {
        order: 1;
        /* Zorg dat het logo niet alle ruimte opeist */
        flex: 0 1 auto; 
    }

    .hamburger {
        order: 2;
        flex: 0 1 auto;
        margin-right: -8px; /* Optioneel: iets strakker tegen de rand */
    }

    .nav-links {
        order: 3;
        /* Dwingt een nieuwe regel af door de volle breedte te pakken */
        width: 100%; 
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        transition: all 0.4s ease-in-out;
    }

    .nav-actions {
        order: 4;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center; /* Zorgt dat de knop onderaan gecentreerd is */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        transition: all 0.4s ease-in-out;
    }

    /* Open state fixes */
    .nav-container.menu-open .nav-links {
        max-height: 400px;
        opacity: 1;
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .nav-container.menu-open .nav-actions {
        max-height: 150px;
        opacity: 1;
        padding-top: 16px;
        padding-bottom: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        color: #fff;
        padding: 8px 0;
        width: 100%; /* Maakt de klikbare zone breder */
        text-decoration: none;
    }
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-actions { 
        display: flex; 
        gap: 12px;
    }
    .hamburger { display: none; }
    
    .nav-container {
        flex-wrap: nowrap;
    }
}