﻿/* Prevent page scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* --- Kill Velocity inline transforms on the hamburger --- */
header .container .flexer .hamburger-wrap .McButton {
    transform: none !important;
}

    header .container .flexer .hamburger-wrap .McButton b {
        transform: none !important;
        top: auto !important;
        opacity: 1 !important;
        transition: transform 200ms ease, opacity 150ms ease, top 200ms ease !important;
        transform-origin: center;
    }

        /* Recreate the original 3-line positions (matches your existing CSS intent) */
        header .container .flexer .hamburger-wrap .McButton b:nth-child(1) {
            top: 0 !important;
        }

        header .container .flexer .hamburger-wrap .McButton b:nth-child(2) {
            top: 50% !important;
            transform: translateY(-50%) !important;
        }

        header .container .flexer .hamburger-wrap .McButton b:nth-child(3) {
            top: 100% !important;
            transform: translateY(-100%) !important;
        }

    /* Active => X */
    header .container .flexer .hamburger-wrap .McButton.active b:nth-child(1) {
        top: 50% !important;
        transform: translateY(-50%) rotate(45deg) !important;
    }

    header .container .flexer .hamburger-wrap .McButton.active b:nth-child(2) {
        opacity: 0 !important;
    }

    header .container .flexer .hamburger-wrap .McButton.active b:nth-child(3) {
        top: 50% !important;
        transform: translateY(-50%) rotate(-45deg) !important;
    }

/* Mobile overlay styling */
@media only screen and (max-width: 1024px) {
    .bg-overlay {
        width: 100%;
        height: 100%;
        position: fixed;
        display: none;
        background-color: #9d9d9d;
        z-index: 79;
        top: 0;
        left: 0;
        opacity: 0.7;
    }
}
