/* Custom Mobile Menu Styles - Replacing MeanMenu */

/* Hide any existing dropdown chevron icons in mobile menu to prevent conflicts */
.mobile-menu-nav .dropdown-chevron,
.mobile-menu-nav .fa-chevron-down,
.mobile-menu-nav .fa-chevron-up {
    display: none !important;
}

/* Show mobile chevron icons */
.mobile-menu-nav .mobile-chevron {
    display: inline-block !important;
}

/* Hide all submenus by default in mobile menu */
.mobile-menu-nav ul ul,
.mobile-menu-nav .submenu,
.mobile-menu-nav li ul {
    display: none !important;
}

/* Hide any direct child ul elements that are not mobile-submenu or mobile-mega-menu */
.mobile-menu-nav li > ul:not(.mobile-submenu):not(.mobile-mega-menu) {
    display: none !important;
}

/* Hide desktop mega menu content in mobile */
.mobile-menu-nav .desktop-mega-menu {
    display: none !important;
}

/* Hide mega menu columns and content in mobile */
.mobile-menu-nav .mega-menu-content,
.mobile-menu-nav .mega-menu-column,
.mobile-menu-nav .mega-menu-links,
.mobile-menu-nav .mega-menu-main-title {
    display: none !important;
}

/* Hide any mega menu content that might be showing */
.mobile-menu-nav .desktop-mega-menu * {
    display: none !important;
}

/* Only show submenus when parent has dropdown-open class */
.mobile-menu-nav li.has-dropdown.dropdown-open ul,
.mobile-menu-nav li.has-dropdown.dropdown-open .submenu,
.mobile-menu-nav li.has-dropdown.dropdown-open .mobile-submenu,
.mobile-menu-nav li.has-dropdown.dropdown-open .mobile-mega-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
}

/* Force show any submenu when parent has dropdown-open class */
.mobile-menu-nav li.dropdown-open ul,
.mobile-menu-nav li.dropdown-open .submenu,
.mobile-menu-nav li.dropdown-open .mobile-submenu,
.mobile-menu-nav li.dropdown-open .mobile-mega-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
}

/* Additional aggressive rules for submenu display */
.mobile-menu-nav li.has-dropdown.dropdown-open > ul,
.mobile-menu-nav li.has-dropdown.dropdown-open > .submenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure only top-level menu items are visible by default */
.mobile-menu-nav > ul > li {
    display: block;
}

.mobile-menu-nav > ul > li > ul {
    display: none !important;
}

.mobile-menu-nav > ul > li.has-dropdown.active > ul {
    display: block !important;
}

/* Ensure main menu links with dropdowns have proper spacing for chevron */
.mobile-menu-nav li.has-dropdown > a {
    position: relative;
    padding-right: 50px !important;
}

/* Mobile chevron icon styling for offcanvas */
.offcanvas__info .mobile-menu .mobile-chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666666;
    transition: all 0.3s ease;
}

.offcanvas__info .mobile-menu li.has-dropdown.dropdown-open .mobile-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: #e6005c;
}

/* Ensure offcanvas menu items have proper structure */
.offcanvas__info .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas__info .mobile-menu li {
    list-style: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.offcanvas__info .mobile-menu li:last-child {
    border-bottom: none;
}

.offcanvas__info .mobile-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.offcanvas__info .mobile-menu li a:hover {
    color: #e6005c;
    background: rgba(230, 0, 92, 0.05);
}

/* Hide ALL desktop mega menu structure in offcanvas */
.offcanvas__info .desktop-mega-menu,
.offcanvas__info .desktop-mega-menu * {
    display: none !important;
    visibility: hidden !important;
}

/* Hide mega menu columns and links that might be loose */
.offcanvas__info .mega-menu-content,
.offcanvas__info .mega-menu-column,
.offcanvas__info .mega-menu-links,
.offcanvas__info .mega-menu-main-title {
    display: none !important;
    visibility: hidden !important;
}

/* Show only submenu when dropdown is open */
.offcanvas__info .mobile-menu li.has-dropdown.dropdown-open > .submenu,
.offcanvas__info .mobile-menu li.has-dropdown.dropdown-open > ul.submenu {
    display: block !important;
    visibility: visible !important;
}

/* Style submenu items */
.offcanvas__info .mobile-menu .submenu,
.offcanvas__info .mobile-menu .mobile-submenu {
    background: #f8f9fa;
    padding-left: 0;
}

.offcanvas__info .mobile-menu .submenu li,
.offcanvas__info .mobile-menu .mobile-submenu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas__info .mobile-menu .submenu li:last-child,
.offcanvas__info .mobile-menu .mobile-submenu li:last-child {
    border-bottom: none;
}

.offcanvas__info .mobile-menu .submenu li a,
.offcanvas__info .mobile-menu .mobile-submenu li a {
    padding: 15px 20px 15px 40px;
    font-size: 15px;
    font-weight: 400;
    color: #666;
}

.offcanvas__info .mobile-menu .submenu li a:hover,
.offcanvas__info .mobile-menu .mobile-submenu li a:hover {
    color: #e6005c;
    background: rgba(230, 0, 92, 0.05);
}

/* Hide all direct child ul's by default - only show .submenu */
.offcanvas__info .mobile-menu li > ul {
    display: none !important;
}

/* Make exception for .submenu when parent has dropdown-open */
.offcanvas__info .mobile-menu li.has-dropdown.dropdown-open > ul.submenu {
    display: block !important;
}

/* Prevent ANY mega menu structure from appearing at all */
.offcanvas__info .desktop-mega-menu,
.offcanvas__info .mega-menu-content,
.offcanvas__info .mega-menu-column,
.offcanvas__info ul.mega-menu-links {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Hide any loose li elements outside of ul containers - these are duplicates */
.offcanvas__info .mobile-menu > li {
    display: none !important;
}

/* Only show li elements that are inside ul */
.offcanvas__info .mobile-menu ul > li {
    display: list-item !important;
}

/* Hide duplicate menus and loose items */
.offcanvas__info .mobile-menu ul + ul,
.offcanvas__info .mobile-menu ul.mega-menu-links {
    display: none !important;
}

/* Ensure only the first ul is shown */
.offcanvas__info .mobile-menu > ul:not(:first-of-type) {
    display: none !important;
}

/* Offcanvas specific arrow styling */
.offcanvas__info .mobile-menu-nav .mobile-chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666666;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.offcanvas__info .mobile-menu-nav li.has-dropdown > a {
    position: relative;
    padding-right: 50px !important;
}

.offcanvas__info .mobile-menu-nav li.has-dropdown.dropdown-open .mobile-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: #e6005c;
}

/* Ensure arrows are visible in offcanvas */
.offcanvas__info .mobile-menu-nav li.has-dropdown > a::after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666666;
    transition: all 0.3s ease;
}

.offcanvas__info .mobile-menu-nav li.has-dropdown.dropdown-open > a::after {
    transform: translateY(-50%) rotate(180deg);
    color: #e6005c;
}

/* Main Menu Wrapper - Updated from mean__menu-wrapper */
.main-menu-wrapper {
    position: relative;
}

/* Header Layout - Three Column Design */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Desktop Menu Centering */
@media (min-width: 1200px) {
    .header-center {
        display: flex !important;
    }
    
    .header-center .main-menu-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .header-center .main-menu {
        display: flex;
        justify-content: center;
    }   
    
   
}

/* Header CTA Button Styling */
.header-cta-button {
    margin-left: 20px;
}



/* Mobile CTA Button in Menu */
.mobile-menu-nav .mobile-cta-button {
    margin-top: 20px;
    padding: 0 20px;
}

.mobile-menu-nav .mobile-cta-button .btn {
    width: 100%;
    background: linear-gradient(135deg, #e6005c 0%, #ff6b9d 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu-nav .mobile-cta-button .btn:hover {
    background: linear-gradient(135deg, #d40052 0%, #e55a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 92, 0.3);
    color: white;
    text-decoration: none;
}

/* Hide the original menu on mobile - it will be replaced by custom mobile menu */
@media (max-width: 1199px) {
    .main-menu-wrapper .main-menu {
        display: none;
    }
}

/* Show the original menu on desktop */
@media (min-width: 1200px) {
    .main-menu-wrapper .main-menu {
        display: block;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: relative;
    z-index: 9999;
    width: 45px;
    height: 45px;
    color: #ffffff;
    background: transparent;
    border: none;
    text-align: center;
    line-height: 45px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    padding: 0;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sticky .mega-menu-wrapper .header-main .mobile-menu-toggle,
.sticky .mobile-menu-toggle {
    color: #000000 !important;
}

/* Force mobile toggle visibility on mobile screens */
@media (max-width: 1199px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure header-right is visible and hamburger is visible */
    .header-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Menu Container */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-container.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.mobile-menu-close {
    width: 35px;
    height: 35px;
    background: #e6005c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #c4004a;
    transform: scale(1.05);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.mobile-menu-nav li:last-child {
    border-bottom: none;
}

.mobile-menu-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-nav li a:hover {
    background: rgba(230, 0, 92, 0.05);
    color: #000000;
    padding-left: 25px;
}

/* Dropdown Toggle Button */
.mobile-menu-nav li.has-dropdown > a {
    padding-right: 50px;
    position: relative;
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: transparent;
    color: #e6005c;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-dropdown-toggle:hover {
    color: #c4004a;
    transform: translateY(-50%) scale(1.1);
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #e6005c;
}

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

.mobile-menu-nav li.has-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
    display: none !important;
    background: rgba(230, 0, 92, 0.02);
    border-left: 3px solid #e6005c;
    margin: 5px 0;
    padding: 10px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-menu-nav li.has-dropdown.active .mobile-submenu {
    display: block !important;
}

/* Ensure submenu items are properly styled */
.mobile-submenu li {
    border-bottom: none;
    list-style: none;
}

.mobile-submenu li a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-submenu li a:hover {
    color: #e6005c;
    background: rgba(230, 0, 92, 0.1);
    padding-left: 45px;
}

/* Duplicate rules removed */

.mobile-submenu li a::before {
    content: "→";
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #e6005c;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-submenu li a:hover::before {
    opacity: 1;
}

/* Mobile Mega Menu Styles */
.mobile-mega-menu {
    display: none !important;
    background: rgba(230, 0, 92, 0.02);
    border-left: 3px solid #e6005c;
    margin: 5px 0;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-menu-nav li.has-dropdown.active .mobile-mega-menu {
    display: block !important;
}

.mobile-mega-menu .mega-menu-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6005c;
}

.mobile-mega-menu .mega-menu-content {
    display: block;
    gap: 0;
}

.mobile-mega-menu .mega-menu-column {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-mega-menu .mega-menu-column:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mobile-mega-menu .mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-mega-menu .mega-menu-links li {
    margin-bottom: 8px;
    border-bottom: none;
}

.mobile-mega-menu .mega-menu-links li a {
    font-size: 14px;
    color: #666666;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding-left: 15px;
    position: relative;
    font-weight: 500;
}

.mobile-mega-menu .mega-menu-links li a:hover {
    color: #e6005c;
    background: rgba(230, 0, 92, 0.1);
    padding-left: 20px;
}

.mobile-mega-menu .mega-menu-links li a::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e6005c;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-mega-menu .mega-menu-links li a:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1199px) {
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }
    
    /* Hide desktop CTA button on mobile */
    .header-cta-button {
        display: none !important;
    }
    
    /* Hide centered menu on mobile */
    .header-center {
        display: none !important;
    }
    
    /* Ensure header-right is properly aligned */
    .header-right {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        visibility: visible !important;
    }
    
    /* Mobile header layout */
    .header-main {
        justify-content: space-between;
    }
    
    /* Hamburger icon hover effect */
    .mobile-menu-toggle:hover {
        opacity: 0.8 !important;
    }
}

/* Ensure hamburger is always visible on mobile, even when scrolled */
@media (max-width: 1199px) {
    #header-sticky .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #header-sticky.sticky .mobile-menu-toggle {
        color: #000000 !important;
    }
}

@media (min-width: 1200px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu-container {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    /* Show desktop CTA button on desktop */
    .header-cta-button {
        display: block !important;
    }
    
    /* Ensure proper desktop layout */
    .header-main {
        justify-content: space-between;
        align-items: center;
    }
    
    .header-center {
        flex: 1;
        display: flex !important;
        justify-content: center;
    }
    
    .header-left,
    .header-right {
        flex: 0 0 auto;
    }
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Animation for menu items */
.mobile-menu-nav li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.3s ease forwards;
}

.mobile-menu-nav li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-nav li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-nav li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-nav li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-nav li:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-nav li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile CTA Button Styling */
.mobile-menu-nav .mobile-cta-button {
    margin-top: 20px;
    padding: 0 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.mobile-menu-nav .mobile-cta-button a {
    display: block;
    background: #e6005c;
    color: #ffffff;
    text-align: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e6005c;
}

.mobile-menu-nav .mobile-cta-button a:hover {
    background: #ffffff;
    color: #e6005c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 92, 0.3);
}

/* Offcanvas Let's Talk Button Styling */
.offcanvas-lets-talk {
    padding: 0 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.offcanvas-lets-talk .btn {
    background: #e6005c;
    color: #ffffff;
    border: 2px solid #e6005c;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.offcanvas-lets-talk .btn:hover {
    background: #ffffff;
    color: #e6005c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 92, 0.3);
}

/* Mobile Let's Talk Button - Generated by JavaScript */
.mobile-lets-talk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6005c 0%, #c6004f 100%);
    color: #ffffff !important;
    padding: 15px 30px;
    margin: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 92, 0.3);
    gap: 10px;
}

.mobile-lets-talk-btn:hover {
    background: linear-gradient(135deg, #c6004f 0%, #a60042 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 92, 0.4);
    color: #ffffff !important;
}

.mobile-lets-talk-btn i {
    background: white;
    color: #e6005c;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
