/* Mobile floating button tray */
.mobile-btn-tray {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 6px;
    gap: 6px;
    align-items: center;
}

/* Mobile menu toggle button */
.menu-toggle {
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    height: 45px;
    border-radius: 5px;
}

/* Mobile order button */
.mobile-order-btn {
    background: #44a122;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
    height: 45px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

/* Button press effect */
.menu-toggle:active,
.mobile-order-btn:active {
    transform: scale(0.93);
    transition: transform 0.1s ease;
}

/* Desktop navigation bar */
nav {
    background: #333;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.0rem;
    position: relative;
    font-family: 'Fraunces', serif;
    font-weight: 300;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    text-decoration: none;
}

.order-online-link {
    background: #7a7a7a;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 450;
    transition: 0.3s ease;
}

.order-online-link::after,
.order-online-link:hover::after {
    display: none;
}

.order-online-link:hover {
    background: #3aa456;
    text-decoration: none;
}

/* Menu dropdown styles */
.menu-dropdown {
    position: relative;
}

.menu-toggle-link {
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    min-width: 150px;
    padding: 0;
    margin-top: 0rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.submenu li {
    border-bottom: 1px solid #555;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.submenu a:hover {
    background: #555;
    text-decoration: none;
}

.menu-dropdown:hover .submenu {
    display: block;
}

.menu-dropdown.active .submenu {
    display: block;
}

@media (max-width: 768px) {

    .mobile-btn-tray {
        display: flex;
    }

    nav {
        left: -250px;
        width: 250px;
        height: 100vh;
        padding: 6rem 0 0 0;
        transition: left 0.3s ease;
    }

    nav.open {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        border-bottom: 1px solid #555;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
    }

    nav a::after {
        display: none;
    }

    /* Mobile submenu styles */
    .submenu {
        position: static;
        display: none;
        background: #555;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        z-index: 100;
    }

    .menu-dropdown.active .submenu {
        display: block;
    }

    .submenu li {
        border-bottom: 1px solid #666;
        background: #555;
    }

    .submenu a {
        padding: 0.75rem 2.5rem;
        font-size: 0.95rem;
    }

    .menu-toggle-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-online-link {
        display: none;
    }

}