/* NAVBAR */

nav {
    position: relative;
    z-index: 30;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;

}

/* Invisible viewport overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: transparent;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 1999; /* below menu, above page */
}

/* Activate overlay when menu is open */
#menu-toggle:checked ~ .menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Hide checkbox */
#menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Hamburger */
.hamburger {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;

    position: fixed;

    top: calc(clamp(2.6rem, 10vw + 1.5rem, 7.4rem) / 2);
    right: 4vw;

    transform: translateY(-50%);

    z-index: 3000;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 4px;
    transition: 0.3s ease;
}

/* FULL WIDTH OVERLAY MENU */
.menu {
    list-style: none;
    position: fixed;

    top: clamp(4vh, 12vw + 1rem, 15vh);
    left: 0;
    width: 100%;

    background: #1b4faf;

    display: flex;
    flex-direction: column;

    max-height: 0;
    overflow: hidden;
    overflow-y: auto;

    transition: max-height 0.35s ease;

    z-index: 2500;

    margin: 0;
    padding: 0;

    font-family: "acumin-variable", sans-serif;
}

/* Show menu */
#menu-toggle:checked ~ .menu {
    max-height: 500px;
}

/* Menu links */
.menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.menu a:hover {
    background: #374151;
}

/* ==========================================================================
   4. Large Devices (lg)
   - Screens: 992px and up (Laptops and small desktop monitors)
   ========================================================================== */
@media (min-width: 992px) {

    .hamburger {
        display: none;
    }

    nav {
        display: flex;
        justify-content: space-between;
        padding: 0;
        background-color: black;
    }
    
    .nav-container {
        width: 100%;
        padding: 0;
        margin-left: 1%;
        height: clamp(4vh, 4vw, 6vh);
    }

    .menu {
        display: flex;
        position: static;
        top: auto;
        left: auto;
        width: auto;


        max-height: none;
        overflow: visible;

        flex-direction: row;
        background: transparent;
        gap: 1rem;

        z-index: auto;
    }

    .menu li {
        border: none;
    }

    .menu a {
        padding: 0.75rem 1rem;
    }

    .menu a:hover {
        /* background: #374151; */
        background: #1b4faf;
        color: #ffffff;
    }
    .menu a.active {
        color: pink;
        font-weight: bold;
        border-bottom: 1px solid #ff5722;
    }
}

/* ==========================================================================
   6. Extra Extra Large Devices (xxl)
   - Screens: 1600px and up (Large external desktop monitors)
   ========================================================================== */
@media (min-width: 1600px) {
  /* Target ultra-wide displays here */
    .menu a {
        font-size: 1.5rem;
    }
}
