
/* ==========================================
   NETWIRECOMM UNIVERSAL HEADER
   Version: 1.0.0
   ========================================== */

/* DIVI HEADER CONTAINER */

.et-l--header {
    position: relative;
    z-index: 999;
}

.et-l--header .et_pb_section,
.et-l--header .et_pb_row,
.et-l--header .et_pb_column,
.et-l--header .et_pb_code {
    overflow: visible;
}

.et-l--header .et_pb_section,
.et-l--header .et_pb_row {
    padding: 0 !important;
}

.et-l--header .et_pb_row {
    width: 100%;
    max-width: 100%;
}

/* MAIN HEADER */

.nwc-header {
    position: relative;
    width: 100%;
    background: var(--nwc-white);
    border-top: 4px solid var(--nwc-accent);
    border-bottom: 1px solid var(--nwc-border);
    z-index: 999;
}

.nwc-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: calc(100% - 100px);
    max-width: var(--nwc-max-width);
    min-height: 90px;
    margin: 0 auto;
}

/* COMPANY LOGO */

.nwc-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nwc-logo img {
    display: block;
    width: 240px;
    max-width: 100%;
    max-height: 75px;
    height: auto;
    object-fit: contain;
}

/* MAIN NAVIGATION */

.nwc-navigation {
    display: flex;
    align-items: center;
}

.nwc-header .nwc-menu,
.nwc-header .nwc-submenu {
    list-style: none !important;
    margin: 0;
    padding: 0 !important;
}

.nwc-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nwc-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nwc-menu > li > a {
    display: block;
    padding: 14px 0;
    color: var(--nwc-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--nwc-transition);
}

.nwc-menu > li > a:hover {
    color: var(--nwc-accent);
}

/* DROPDOWN ARROWS */

.nwc-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    border: 0;
    background: transparent;
    color: var(--nwc-primary);
    font-size: 13px;
    cursor: pointer;
}

.nwc-expanded > .nwc-dropdown-toggle {
    transform: rotate(180deg);
}

/* DROPDOWN MENUS */

.nwc-header .nwc-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--nwc-white);
    border: 1px solid var(--nwc-border);
    border-top: 3px solid var(--nwc-accent);
    border-radius: 0 0 var(--nwc-radius)
        var(--nwc-radius);
    z-index: 1000;
}

.nwc-dropdown.nwc-expanded > .nwc-submenu {
    display: block;
}

.nwc-submenu li {
    display: block;
    margin: 0;
    padding: 0;
}

.nwc-submenu li + li {
    border-top: 1px solid var(--nwc-border);
}

.nwc-submenu li a {
    display: block;
    padding: 13px 18px;
    color: var(--nwc-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--nwc-transition);
}

.nwc-submenu li a:hover {
    background: var(--nwc-primary);
    color: var(--nwc-white);
}

/* DESKTOP DROPDOWN HOVER */

@media (min-width: 1201px) and (hover: hover) {

    .nwc-dropdown:hover > .nwc-submenu {
        display: block;
    }

}

/* CUSTOMER PORTAL BUTTON */

.nwc-menu > li > a.nwc-portal-button {
    padding: 12px 20px;
    background: var(--nwc-primary);
    color: var(--nwc-white);
    border-radius: var(--nwc-radius);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--nwc-transition);
}

.nwc-menu > li > a.nwc-portal-button:hover {
    background: var(--nwc-accent);
    color: var(--nwc-primary);
}

/* MOBILE MENU BUTTON */

.nwc-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--nwc-primary);
    border: 0;
    border-radius: var(--nwc-radius);
    cursor: pointer;
}

.nwc-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--nwc-white);
    margin: 4px 0;
}

/* RESPONSIVE NAVIGATION */

@media (max-width: 1200px) {

    .nwc-header-container {
        width: calc(100% - 60px);
        min-height: 80px;
    }

    .nwc-logo img {
        width: 210px;
        max-height: 65px;
    }

    .nwc-mobile-toggle {
        display: block;
    }

    .nwc-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
        background: var(--nwc-white);
        border-top: 1px solid var(--nwc-border);
        border-bottom: 3px solid var(--nwc-accent);
    }

    .nwc-navigation.nwc-open {
        display: block;
    }

    .nwc-header .nwc-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 30px !important;
    }

    .nwc-menu > li {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        border-bottom: 1px solid var(--nwc-border);
    }

    .nwc-menu > li > a {
        flex: 1;
        padding: 15px 0;
    }

    .nwc-dropdown-toggle {
        width: 44px;
        min-height: 44px;
    }

    .nwc-header .nwc-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        border: 0;
        border-radius: 0;
        background: var(--nwc-background);
    }

    .nwc-menu > li:last-child {
        border-bottom: 0;
        padding: 15px 0;
    }

    .nwc-menu > li > a.nwc-portal-button {
        text-align: center;
    }

}

/* MOBILE PHONES */

@media (max-width: 767px) {

    .nwc-header-container {
        width: calc(100% - 40px);
        min-height: 75px;
        gap: 15px;
    }

    .nwc-logo img {
        width: 190px;
        max-height: 60px;
    }

    .nwc-header .nwc-menu {
        padding: 10px 20px !important;
    }

}
