/* Enhanced Mobile Navigation Styles for HAD Consultants */

/* Mobile Offcanvas Styles */
.vl-offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    max-width: 90%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.vl-offcanvas.active {
    right: 0;
}

.vl-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.vl-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vl-offcanvas-wrapper {
    padding: 20px;
    height: 100%;
}

.vl-offcanvas-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.vl-offcanvas-close-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.vl-offcanvas-close-toggle:hover {
    color: #ff6b35;
}

/* Mobile Navigation Menu Styles */
.vl-offcanvas-menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vl-offcanvas-menu nav ul li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.vl-offcanvas-menu nav ul li:last-child {
    border-bottom: none;
}

.vl-offcanvas-menu nav ul li a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    border: none;
}

.vl-offcanvas-menu nav ul li a:hover {
    color: #ff6b35;
}

/* Mobile Dropdown Toggle Button */
.mobile-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    color: #ff6b35;
}

.mobile-dropdown-toggle.active {
    color: #ff6b35;
    transform: translateY(-50%) rotate(180deg);
}

/* Mobile Submenu Styles */
.vl-offcanvas-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    margin: 0 -20px;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.vl-offcanvas-menu .sub-menu.mobile-open {
    max-height: 400px;
    padding: 10px 20px;
}

.vl-offcanvas-menu .sub-menu li {
    border-bottom: 1px solid #eee;
}

.vl-offcanvas-menu .sub-menu li:last-child {
    border-bottom: none;
}

.vl-offcanvas-menu .sub-menu li a {
    padding: 12px 0 12px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.vl-offcanvas-menu .sub-menu li a:hover {
    color: #ff6b35;
}

/* Mobile Toggle Button */
.vl-offcanvas-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.vl-offcanvas-toggle:hover {
    color: #ff6b35;
}

/* Contact Info Section */
.vl-offcanvas-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.vl-offcanvas-info h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.vl-offcanvas-info .single-contact {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.vl-offcanvas-info .single-contact .icon {
    margin-right: 10px;
    width: 20px;
    display: flex;
    justify-content: center;
}

.vl-offcanvas-info .single-contact .icon img {
    width: 16px;
    height: 16px;
}

.vl-offcanvas-info .single-contact a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.vl-offcanvas-info .single-contact a:hover {
    color: #ff6b35;
}

/* Social Media Section */
.vl-offcanvas-social {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.vl-offcanvas-social h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.vl-copyright-social2 a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #666;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.vl-copyright-social2 a:hover {
    background: #ff6b35;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .vl-offcanvas {
        width: 100%;
        max-width: 100%;
    }
    
    .vl-offcanvas-wrapper {
        padding: 15px;
    }
}

/* Fix for header on mobile */
@media (max-width: 991px) {
    .vl-header-action-item {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }
    
    .vl-main-menu {
        display: none;
    }
}
