.hamburger {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #C89B45;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    transform: translateY(-8px);
}

.hamburger span:nth-child(2) {
    transform: translateY(0);
}

.hamburger span:nth-child(3) {
    transform: translateY(8px);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile sticky header: keep logo and hamburger attached while scrolling */
@media (max-width: 1024px) {
    .mobile-head {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 1rem;
        background: rgba(43,33,26,0.95);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    /* Ensure the rest of the page is not hidden behind the fixed header */
    body {
        padding-top: 56px;
    }

    /* Slightly reduce logo size on small screens */
    .mobile-head img {
        height: 28px;
        width: auto;
    }

    /* Positioning for the hamburger when inside the mobile-head */
    .mobile-head .hamburger {
        width: 40px;
        height: 40px;
        margin-left: 8px;
    }
    /* Remove nav vertical padding so fixed mobile-head doesn't double space */
    header nav {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
}