/*** Topbar Start ***/
.topbar {
    position: relative;
    z-index: 1000;
    background: var(--dark-0);
    color: #FFFFFF;
}

.wa-topbar {
    font-size: 1.3rem;
}
/*** Topbar End ***/

/*** Navbar Styles ***/
/* Base Navbar Styles */
.nav-bar {
    transition: all 0.3s ease;
    z-index: 998;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.nav-bar.sticky-header {
    position: fixed;
    transition: 1s all;
    top: 0;
    left: 0;
    z-index: 998;
    width: 100%;
    background: #FFFFFF !important;
    box-shadow: 0 10px 30px rgba(0, 71, 55, 0.1);
}

/* Logo Styles */
.logo-white {display: block;}
.logo-blue {display: none;}
.menu-logo {
    width: 25px;
    height: 25px;
}

.sticky-header .logo-white {display: none;}
.sticky-header .logo-blue {display: block;}

.navbar-brand img {
    max-height: 50px;
    transition: all 0.3s ease;
}

/*** Navbar Toggler ***/
.navbar-toggler { color: #FFFFFF; }
.sticky-header .navbar-toggler { color: var(--primary); }

/* Main Navigation Items */
.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar .navbar-nav .nav-item {
    padding: 10px 5px;
    color: var(--white);
}

.nav-link {
    font-size: 18px;
    color: var(--white);
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link.sticky-header {
    color: var(--primary);
    font-weight: 500;
}

.sticky-header .nav-link,
.navbar-nav .nav-item.sticky-header {
    color: var(--primary);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--secondary);
}

/* Dropdown Arrows */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.navbar .dropdown {
    position: relative;
}

/* Shared Dropdown Menu Styles */
.navbar .dropdown-menu {
    position: absolute;
    left: 0;
    margin-top: 18px !important;
    border-radius: 0 0 8px 8px;
    border-bottom: 2px solid var(--red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: var(--light);
}

/* Specific Overrides */
.navbar > .dropdown-menu {
    transform: rotateX(0deg);
}

.navbar .nav-item .dropdown-menu {
    margin-top: 0;
    transform: translateY(10px);
}


.navbar .nav-item:hover .dropdown-menu,
.navbar .nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*.navbar .nav-item:hover .dropdown-toggle::after {*/
/*    transform: rotate(180deg);*/
/*}*/

/* Mega Menu Styles */
.mega-menu {
    position: static !important;
}

.mega-menu-content,
.small-menu-content{
    position: absolute;
    width: 100%;
    left: 0;
    padding: 20px;
    border: none;
    border-radius: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    display: block;
    transition: all 0.3s ease;
}

.small-menu-content {
    width: 300px;
}

.mega-menu:hover .mega-menu-content,
.mega-menu:focus-within .mega-menu-content,
.small-menu:hover .mega-menu-content,
.small-menu:focus-within .mega-menu-content {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.menu-section {
    padding: 0 15px;
}

.menu-section-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.menu-section-title:hover,
.menu-section-title a:hover {
    color: var(--secondary);
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item,
.solution-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    transition: all 0.2s ease;
}

.service-item i,
.solution-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.2s ease;
}
.solution-text {
    flex: 1;
    overflow: hidden;
}

.service-text h6,
.solution-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.service-text p,
.solution-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-list .dropdown-item:hover .service-item i,
.menu-list .dropdown-item:hover .solution-item i {
    color: var(--primary);
}

/*** Right-side Actions ***/
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to the far right */
    gap: 20px; /* Consistent spacing between items */
}

.search-button {
    color: #fff;
    border: 1px solid #FFFFFF;
    background: transparent;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button.sticky-header {
    color: var(--primary);
    border-color: var(--primary);
}



.btn-quote {
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-quote {
    padding: 8px 20px;
    font-weight: 500;
    white-space: nowrap;
}

.search-button:hover,
.btn-quote:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.contact-info {
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.sticky-header .contact-info {
    border-left-color: rgba(0, 0, 0, 0.1);
}

/*.btn-phone {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    color: var(--white);*/
/*    text-decoration: none;*/
/*    font-weight: 500;*/
/*    white-space: nowrap;*/
/*}*/
.sticky-header .btn-phone {
    color: var(--dark);
}

.btn-phone i {
    font-size: 1.4rem;
}

.btn-phone:hover {
    color: var(--secondary);
}

@media (min-width: 992px) {
    .wa-button {
        display: none;
    }
}

/*** Mobile Styles ***/
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #FFFFFF;
        margin-top: 15px;
        padding: 8px 12px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        color: var(--dark) !important;
        padding: 10px 15px !important;
        font-size: 16px;
        width: 100%;
    }

    /* Dropdown menus */
    .dropdown-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 0 !important;
        padding-left: 20px;
        background: rgba(0, 0, 0, 0.03);
        display: none;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    /* Mega menu adjustments */
    .mega-menu-content {
        position: static !important;
        box-shadow: none;
        padding: 0;
        display: none;
        background: transparent;
        width: 100%;
    }

    .mega-menu.show .mega-menu-content {
        display: block;
    }

    .menu-section {
        padding-left: 15px;
    }

    .menu-section-title {
        font-size: 0.95rem;
        padding: 8px 0;
        margin-bottom: 5px;
    }

    .service-item,
    .solution-item {
        padding: 0;
        align-items: center;
    }

    .service-text h6,
    .solution-title {
        font-weight: 500;
    }

    .service-item i,
    .solution-item i {
        margin-right: 10px;
    }

    /* Right-side actions */
    .nav-actions {
        width: 100%;
        margin-top: 15px;
        padding: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
        gap: 10px;
    }

    .search-button {
        display: none;
        color: var(--primary);
        border: 1px solid var(--primary);
    }

    .btn-quote {
        width: 100%;
        text-align: center;
        margin-right: 1rem;
    }

    .wa-button {
        visibility: visible;
        font-size: 2.3rem;
        margin: 0 1rem;
        color: #25D366;
    }

    .btn-phone {
        font-size: 1rem;
    }

    .contact-info {
        border-left: none;
        padding-left: 0;
    }

    .navbar-brand img {
        max-height: 45px !important;
    }

    /* Dropdown arrows */
    .navbar .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

    .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Hide phone links on mobile */
    .d-none.d-xl-flex {
        display: none !important;
    }
}

@media (max-width: 575.98px) {

    .service-item,
    .solution-item {
        padding: 0.5rem 0.6rem;
    }

    .nav-actions {
        gap: 8px;
        justify-content: center;
    }
}


/* Animation for dropdown items */
.dropdown-item {
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Active state indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.grecaptcha-badge {
    visibility: hidden;
}