/* Harbor Custom Menu Styles */

/* Full screen backdrop for clicking outside to close */
.harbor-custom-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.harbor-custom-menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Menu overlay positioned from right */
.harbor-custom-menu-overlay {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 50%;
    height: calc(100% - 100px);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.harbor-custom-menu-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.harbor-custom-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%); */
    overflow-y: auto;
    overflow-x: clip;
    /* padding: 60px 20px 20px; */
    /* color: white; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.harbor-custom-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000000;
}

.harbor-menu-close-icon {
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.harbor-menu-close-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.harbor-custom-menu-content .harbor-column-padding {
    padding: 60px !important;
}

/* Hide default mobile menu when custom menu is active */
body.harbor-custom-menu-active #slide-out-widget-area,
body.harbor-custom-menu-active #mobile-menu {
    display: none !important;
}

/* HIDE ALL EXISTING HAMBURGER MENUS */
.slide-out-widget-area-toggle,
#top nav .buttons .slide-out-widget-area-toggle,
.right-aligned-menu-items .slide-out-widget-area-toggle,
#header-outer .slide-out-widget-area-toggle,
body[data-slide-out-widget-area="true"] .slide-out-widget-area-toggle {
    display: none !important;
}

/* Hide all default menus completely */
#slide-out-widget-area,
#mobile-menu,
#top nav,
.header_mobile {
    display: none !important;
}

/* CUSTOM HAMBURGER BUTTON STYLES */
#harbor-custom-hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999998;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#harbor-custom-hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.harbor-hamburger-lines {
    width: 25px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.harbor-hamburger-lines .line {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}
#harbor-custom-hamburger.active{
    display: none;
}
/* Hamburger animation when menu is open */
/* #harbor-custom-hamburger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#harbor-custom-hamburger.active .line2 {
    opacity: 0;
}

#harbor-custom-hamburger.active .line3 {
    transform: rotate(-45deg) translate(7px, -6px);
} */

/* Responsive positioning */
@media (max-width: 768px) {
    .harbor-custom-menu-overlay{
        width: 100%;
        right: 0;
        top: 0;
        height: 100%;
    }

    #harbor-custom-hamburger {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    .harbor-hamburger-lines {
        width: 18px;
        height: 14px;
    }
}
