/*
Theme Name: Halo Impex
Theme URI: https://haloimpex.com
Author: Halo Impex Team
Description: A premium WordPress theme for Halo Impex - Global Sourcing & Logistics Excellence. Built with Tailwind CSS and Intersection Observer animations. All elements are fully dynamic via WordPress CMS.
Version: 1.0.0
License: GPL v2 or later
Text Domain: halo-impex
*/

img.custom-logo {
    max-height: 75px;
    width: auto;
}

/* Mega Menu Primary - Full Page Cover with Transparent Background */

#mega-menu-wrap-primary {
    position: relative;
    background: transparent;
    backdrop-filter: blur(12px) !important;
    z-index: 9999 !important;
}
#mega-menu-wrap-primary #mega-menu-primary {
    pointer-events: none;
}

#mega-menu-wrap-primary .mega-menu-toggle.mega-menu-open + #mega-menu-primary {
    pointer-events: all;
}
/* Menu content styling to match theme */
#mega-menu-wrap-primary #mega-menu-primary > li > a.mega-menu-link {
    color: #c29108 !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li > a.mega-menu-link:hover,
#mega-menu-wrap-primary #mega-menu-primary > li > a.mega-menu-link:focus,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-toggle-on > a.mega-menu-link {
    color: #c29108 !important;
}

/* Submenu styling */
#mega-menu-wrap-primary #mega-menu-primary ul.mega-sub-menu {
    background: rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

#mega-menu-wrap-primary #mega-menu-primary ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link {
    color: #e0e0e0 !important;
}

#mega-menu-wrap-primary #mega-menu-primary ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-primary #mega-menu-primary ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link:focus {
    color: #c29108 !important;
    background: rgba(255,255,255,0.08) !important;
}

@media(max-width:768px){
/* Mega Menu Primary - Full Page Cover with Transparent Background */
#mega-menu-wrap-primary,
#mega-menu-wrap-primary #mega-menu-primary {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  /*  width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important; */
    z-index: 9999 !important;
}
}

/* When menu is open - assuming the plugin adds 'mega-menu-open' class to the wrapper */
#mega-menu-wrap-primary.mega-menu-open,
#mega-menu-wrap-primary.mega-menu-open #mega-menu-primary {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    line-height: 40px;
    height: 40px;
    padding: 0px 10px;
    vertical-align: baseline;
    width: auto;
    display: block;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    text-align: left;
    background-color: rgba(0, 0, 0, 0);
    border: 0;
    border-radius: 0px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
    background-color: transparent;
    color: #333 !important;
}
#block-3 li {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: #c5c6cc !important;
    list-style: disc;
    margin-left: 15px;
}
#footer-location h4,
#nav_menu-3 .text-primary-fixed,
footer h2.wp-block-heading {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff !important;
     text-transform: capitalize;
}

#footer-location p,
#nav_menu-3 li a {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: #c5c6cc !important;
}

#footer-logo > p {
    margin-top: 1rem;
}

#nav_menu-3 li {
    margin-left: 15px;
}

.top-6, .right-6 {
    top: -0.5rem !important;
    right: 0.5rem !important;
    opacity: 0.25;
}

/* Mobile menu hamburger to X animation */
#mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
#mobile-menu {
    z-index: 40;
    background-color: rgba(248, 249, 250, 0.97);
}

/* Override levor-theme.css hiding of header controls on mobile - our hamburger needs to be visible */
@media(max-width:768px){
    header nav > .flex.items-center.gap-4 {
        display: flex !important;
        visibility: visible !important;
    }
}

