/* Hide hamburger by default on desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    z-index: 1001; 
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #d4af37;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- Mobile Breakpoint (Below 768px) --- */
@media (max-width: 768px) {
    .split-header-container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .center-logo {
        order: 1;
        margin: 0;
    }

    /* Hide desktop side menus by default on mobile */
    .nav-side {
        display: none;
        width: 100%;
        background-color: #590d0d;
        position: absolute;
        left: 0;
    }

    /* When toggled open via custom.js */
    .split-header.is-open .nav-side {
        display: block;
    }

    .split-header.is-open .nav-left {
        top: 100%;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
    }

    .split-header.is-open .nav-right {
        top: calc(100% + var(--nav-left-h, 120px));
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
        padding-bottom: 15px;
    }

    /* Stack links vertically */
    .nav-side .menu-list {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-bottom: none !important;
        gap: 12px !important;
        padding: 10px 0 !important;
    }

    .nav-side .menu-list li a {
        font-size: 16px;
        display: block;
        padding: 4px 10px;
    }

    /* Animate Hamburger into 'X' */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-0.5px) rotate(-45deg);
    }
}