/* ---------------------------------------------
   HEADER BASIS
--------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11,10,9,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease, background 0.3s ease;
    animation: headerFadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* COMPACT BIJ SCROLLEN */
header.scrolled {
    padding: 8px 30px;
    background: rgba(5,5,9,0.97);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ---------------------------------------------
   HEADER INNER
--------------------------------------------- */
.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ---------------------------------------------
   NAVIGATIE DESKTOP
--------------------------------------------- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    flex: 1;
}

.top-nav > a,
.dropdown-toggle {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.top-nav > a:hover,
.dropdown-toggle:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-2px);
    opacity: 1;
}

.top-nav > a.active {
    background: var(--gold);
    color: #111;
}

/* ---------------------------------------------
   DROPDOWN
--------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-block;
}

.dropdown-toggle a {
    color: inherit;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(11,10,9,0.97);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 280px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease forwards;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 18px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(212,175,55,0.15);
    padding-left: 24px;
}

/* ---------------------------------------------
   HAMBURGER (mobiel)
--------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

/* ---------------------------------------------
   MOBIEL MENU
--------------------------------------------- */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .top-nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(5,5,9,0.98);
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        border-bottom: 2px solid var(--gold);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        display: block;
    }

    .top-nav.show {
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
    }

    .top-nav > a,
    .dropdown-toggle {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(212,175,55,0.25);
        text-align: center;
        padding: 14px;
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(212,175,55,0.05);
        animation: none;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 10px;
        border-top: 1px solid rgba(212,175,55,0.1);
    }

    .btn-primary {
        margin: 10px auto;
        display: block;
        width: calc(100% - 40px);
    }
}

/* ---------------------------------------------
   ANIMATIE
--------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}