/* =============================== */
/* VARIABELEN */
/* =============================== */
:root {
    --menu-height: 67px;
    --gold: #ffc857;
    --green: #375248;
}

/* =============================== */
/* BASISINSTELLINGEN */
/* =============================== */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
    margin: 0;
    padding: 0;
}

/* =============================== */
/* HEADER STRUCTUUR */
/* =============================== */
#custom-menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(180deg, var(--green), rgba(55, 82, 72, 0.85));
    transition: background 0.4s ease, box-shadow 0.4s ease;
    font-family: 'Fauna One', serif;
    border-bottom: 2px double var(--gold);
}

#custom-menu.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =============================== */
/* CONTAINER (GRID) */
/* =============================== */
.custom-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: var(--menu-height);
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* logo | nav | rechts */
    align-items: center;
    position: relative;
}

/* =============================== */
/* LOGO */
/* =============================== */
.custom-menu-logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

/* =============================== */
/* NAVIGATIE LINKS (DESKTOP) */
/* =============================== */
.custom-menu-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.custom-menu-nav a {
    display: inline-flex;
    align-items: center;
    height: var(--menu-height);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.05rem);
    color: #f0f0f0 !important;
    transition: color 0.3s ease;
}

.custom-menu-nav a:hover {
    color: var(--gold) !important;
}

/* =============================== */
/* RECHTERZIJDE (CART + HAMBURGER) */
/* =============================== */
.custom-menu-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Winkelwagen */
.custom-cart a {
    color: #f0f0f0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.custom-cart a:hover {
    color: var(--gold) !important;
}

/* Hamburger */
.custom-menu-toggle {
    display: none;
    /* alleen mobiel */
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.custom-menu-toggle span {
    width: 26px;
    height: 3px;
    background: #f0f0f0;
    transition: 0.3s ease;
}

/* Hamburger animatie */
.custom-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.custom-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================== */
/* MOBIEL / TABLET STIJLEN */
/* =============================== */
@media (max-width: 992px) {

    .custom-menu-container {
        grid-template-columns: auto auto;
        /* logo | rechterzijde */
        justify-content: space-between;
        padding: 0 14px;
        border-bottom: 0px double var(--gold);
    }

    /* Logo links */
    .custom-menu-logo {
        justify-self: start;
    }

    /* Nav verbergen tot hamburger openklapt */
    .custom-menu-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(55, 82, 72, 0.87), rgba(128, 205, 167, 0.86));
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
    }

    .custom-menu-nav.open {
        max-height: 520px;
    }

    .custom-menu-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 0;
    }

    .custom-menu-nav a {
        height: auto;
        padding: 3px 0;
        font-size: 1rem;
        color: #fff;
    }

    /* Rechterzijde (cart + hamburger) rechts naast elkaar */
    .custom-menu-right {
        justify-self: end;
    }

    .custom-menu-toggle {
        display: flex;
    }
}

/* SUBMENU BASIS */
.custom-menu-nav .submenu {
    display: none;
    position: absolute;
    background: var(--green);
    border: 1px solid var(--gold);
    padding: 10px 0;
    list-style: none;
    margin: 0;
    top: var(--menu-height);
    min-width: 200px;
    z-index: 9999;
}

/* Toon submenu bij hover (desktop) */
.custom-menu-nav li.has-submenu:hover>.submenu {
    display: block;
}

/* Submenu links */
.custom-menu-nav .submenu a {
    height: auto;
    padding: 8px 18px;
    display: block;
    color: #fff;
    text-transform: none;
    font-size: 0.95rem;
}

.custom-menu-nav .submenu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}
