
/* =========================================
   JEXTO INFRA - CORPORATE HEADER
   Reference Design | Responsive
========================================= */

.jexto-main-header {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.025);
}

.jexto-header-container {
    max-width: 1400px;
    width: 95%;
    min-height: 72px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

/* LOGO */

.jexto-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.jexto-logo img {
    width: 85px;
    height: 65px;
    object-fit: contain;
    display: block;
}

/* LOGO DIVIDER */

.jexto-logo-divider {
    height: 38px;
    width: 1px;
    background: #a30d24;
    flex-shrink: 0;
}

/* NAVIGATION */

.jexto-navigation {
    flex: 1;
    display: flex !important;
    justify-content: center;
}

.jexto-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.jexto-nav-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jexto-nav-item > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 25px 13px;
    color: #17202c;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jexto-nav-item > a:hover,
.jexto-nav-item.show > a {
    color: #a80d26;
}

.jexto-nav-item > a i {
    font-size: 11px;
}

/* DROPDOWN */

.jexto-main-header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 225px;
    margin: 0;
    padding: 10px 0;
    background: #ffffff;
    border: none;
    border-top: 3px solid #ae102b;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.jexto-main-header .dropdown.show > .dropdown-menu {
    display: block;
}

.jexto-main-header .dropdown-menu a {
    display: block;
    padding: 11px 20px;
    color: #293442;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.jexto-main-header .dropdown-menu a:hover {
    background: #fff5f6;
    color: #a80d26;
    padding-left: 25px;
}

/* MEGA MENU */

.jexto-main-header .jexto-mega-menu {
    width: 680px;
    max-width: 90vw;
    padding: 25px;
}

.jexto-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.jexto-mega-grid h5 {
    font-size: 13px;
    font-weight: 700;
    color: #a80d26;
    margin: 0 0 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.jexto-mega-grid a {
    padding: 7px 0 !important;
    font-size: 12px !important;
    line-height: 1.5;
}

.jexto-mega-grid a:hover {
    padding-left: 5px !important;
    background: transparent !important;
}

/* GET IN TOUCH BUTTON */

.jexto-header-action {
    flex-shrink: 0;
}

.jexto-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #a80d26;
    color: #ffffff !important;
    padding: 13px 19px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.jexto-contact-btn:hover {
    background: #7d091b;
    color: #ffffff;
    transform: translateY(-2px);
}

.jexto-contact-btn i {
    font-size: 13px;
}

/* MOBILE TOGGLE */

.jexto-mobile-toggle {
    display: none;
    width: 42px;
    height: 40px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    cursor: pointer;
}

.jexto-mobile-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: #a80d26;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1199px) {

    .jexto-header-container {
        gap: 12px;
        width: 97%;
    }

    .jexto-logo img {
        width: 75px;
    }

    .jexto-nav-item > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }

    .jexto-contact-btn {
        padding: 12px 13px;
        font-size: 11px;
    }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */


/* ======================================
   JEXTO MOBILE NAVIGATION FIX
====================================== */

@media (max-width: 991px) {

    .jexto-main-header {
        position: relative;
        width: 100%;
        z-index: 999999;
        background: #fff;
    }

    .jexto-header-container {
        min-height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    /* Mobile menu button */

    .jexto-mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 40px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
    }

    .jexto-mobile-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 3px 0;
        background: #a80d26;
        transition: all 0.3s ease;
    }

    /* Hamburger animation */

    .jexto-mobile-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .jexto-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .jexto-mobile-toggle.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Navigation closed */

    .jexto-main-header .jexto-navigation {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        background: #ffffff;
        border-top: 2px solid #a80d26;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        z-index: 999999;
    }

    /* Navigation open */

    .jexto-main-header .jexto-navigation.is-open {
        display: block !important;
    }

    .jexto-nav-list {
        display: block !important;
        width: 100%;
        padding: 8px 18px 15px;
        margin: 0;
    }

    .jexto-nav-item {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .jexto-nav-item > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 8px !important;
        font-size: 14px;
        color: #17202c;
    }

    /* Dropdown menu */

    .jexto-main-header .jexto-nav-item > .dropdown-menu {
        display: none !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border: none !important;
        border-top: 1px solid #eeeeee !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        background: #fafafa !important;
    }

    .jexto-main-header .jexto-nav-item.show > .dropdown-menu {
        display: block !important;
    }

    .jexto-main-header .dropdown-menu a {
        display: block;
        padding: 11px 12px !important;
        font-size: 13px !important;
        color: #344458;
    }

    /* Mobile mega menu */

    .jexto-main-header .jexto-mega-menu {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
    }

    .jexto-mega-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .jexto-mega-grid h5 {
        margin-bottom: 8px;
    }

    /* Contact button */

    .jexto-header-action {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 8px;
    }

    .jexto-contact-btn {
        padding: 10px 11px;
        font-size: 10px;
    }

    /* Sticky mobile header */

    .jexto-main-header.is-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
    }

    .jexto-main-header.is-sticky .jexto-header-container {
        min-height: 62px;
    }
}

/* Very small screens */

@media (max-width: 360px) {

    .jexto-logo img {
        width: 55px;
    }

    .jexto-contact-btn {
        padding: 9px 7px;
        font-size: 9px;
    }

    .jexto-mobile-toggle {
        width: 36px;
        height: 36px;
    }
}


/* =================================
   JEXTO FIXED STICKY HEADER
================================= */

.jexto-main-header {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
}

/* Active sticky state */

.jexto-main-header.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-bottom: 2px solid #a80d26;
}

/* Header animation */

.jexto-main-header .jexto-header-container {
    transition: min-height 0.3s ease;
}

.jexto-main-header.is-sticky .jexto-header-container {
    min-height: 62px;
}

/* Logo animation */

.jexto-main-header .jexto-logo img {
    transition: all 0.3s ease;
}

.jexto-main-header.is-sticky .jexto-logo img {
    width: 70px;
    height: 52px;
}

/* Navigation */

.jexto-main-header.is-sticky .jexto-nav-item > a {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Contact button */

.jexto-main-header.is-sticky .jexto-contact-btn {
    padding-top: 11px;
    padding-bottom: 11px;
}

/* Mobile */

@media (max-width: 991px) {
    .jexto-main-header.is-sticky .jexto-header-container {
        min-height: 62px;
    }

    .jexto-main-header.is-sticky .jexto-logo img {
        width: 65px;
        height: 50px;
    }
}
