/* Mobile Menu Styles */

/* Off-canvas wrapper */
.off-canvas-wrap,
aside#off-canvas-section {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #1a1a1a;
    z-index: 99999;
    overflow-y: auto;
    transition: all 0.3s ease;
    visibility: hidden;
    transform: translateX(-100%);
}

.off-canvas-wrap.is-active,
aside#off-canvas-section.is-active {
    left: 0;
    visibility: visible !important;
    transform: none !important;
}

.off-canvas-wrap.is-hidden,
aside#off-canvas-section.is-hidden {
    left: -320px;
    visibility: hidden;
    transform: translateX(-100%);
}

/* Ensure inner elements are visible */
aside#off-canvas-section.is-active .off-canvas-inner,
aside#off-canvas-section.is-active .off-canvas-inner.is-light-text,
aside#off-canvas-section.is-active nav#off-canvas-nav,
aside#off-canvas-section.is-active ul#off-canvas-menu {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Site mask overlay */
.site-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-mask.is-active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.off-canvas-active {
    overflow: hidden;
}

/* Close button */
.close-panel-wrap {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

#off-canvas-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

#off-canvas-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-close {
    width: 20px;
    height: 20px;
    position: relative;
}

.btn-close::before,
.btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
}

.btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Off-canvas header */
.off-canvas-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.off-canvas-logo img {
    max-height: 40px;
    width: auto;
}

/* Off-canvas menu */
.off-canvas-inner {
    padding: 20px 0;
}

.off-canvas-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.off-canvas-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.off-canvas-menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.off-canvas-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
    color: #fa897b;
}

.off-canvas-menu li.current-menu-item > a {
    color: #fa897b;
    background: rgba(250, 137, 123, 0.1);
}

/* Submenu styles */
.off-canvas-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
}

.off-canvas-menu .sub-menu li a {
    padding-left: 40px;
    font-size: 14px;
}

.off-canvas-menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

/* Mobile menu toggle button */
.off-canvas-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
}

.icon-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.icon-toggle::before,
.icon-toggle::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s;
}

.icon-toggle::before {
    box-shadow: 0 8px 0 currentColor;
}

/* Responsive */
@media (min-width: 769px) {
    .off-canvas-wrap {
        display: none;
    }
    
    .site-mask {
        display: none;
    }
}

@media (max-width: 768px) {
    .off-canvas-wrap {
        width: 280px;
        left: -280px;
    }
}
