/* Shared mobile drawer override */

.hamburger {
    display: none !important;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    gap: 5px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #5C3A2D;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1),
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2),
.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3),
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 350px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(92, 58, 45, 0.2);
    z-index: 1001;
    display: flex !important;
    flex-direction: column;
    padding: 80px 0 20px 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.mobile-menu.active,
.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #5C3A2D;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background: #FDF6F0;
    color: #D4AF37;
    padding-left: 24px;
}

.mobile-menu a i {
    font-size: 1.2rem;
    color: #D4AF37;
    width: 24px;
    text-align: center;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #5C3A2D;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    color: #D4AF37;
    transform: rotate(90deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-overlay.active,
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
    }
}
