/*
|--------------------------------------------------------------------------
| Trisha Web Enterprise SEO CMS
| Frontend Header CSS
|--------------------------------------------------------------------------
| FIXED TOP HEADER
| Responsive
| Page Content Protected
| Logo + Dynamic Menu + Phone + Quote
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| GLOBAL
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .tw-menu-item.tw-has-dropdown.dropdown-open > .tw-dropdown-menu {
        display: block;
    }

    .tw-menu-item.tw-has-dropdown.dropdown-open
    > .tw-menu-link
    .tw-dropdown-arrow {
        transform: rotate(180deg);
    }

}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/*
|--------------------------------------------------------------------------
| FIXED HEADER
|--------------------------------------------------------------------------
*/

.tw-site-header {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 82px !important;
    min-height: 82px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    border-bottom: 1px solid #e9eef5;

    z-index: 99999 !important;

    box-sizing: border-box;

    transform: none !important;
}


/*
|--------------------------------------------------------------------------
| NAVBAR
|--------------------------------------------------------------------------
*/

.tw-navbar {
    position: relative;

    width: 100%;
    height: 82px;
    min-height: 82px;

    margin: 0;
    padding: 0;

    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| MAIN CONTAINER
|--------------------------------------------------------------------------
*/

.tw-header-container {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 1200px;

    height: 82px;
    min-height: 82px;

    margin: 0 auto;
    padding: 0 15px;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| LOGO AREA
|--------------------------------------------------------------------------
*/

.tw-brand {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 165px;

    width: 165px;
    height: 82px;

    margin: 0;
    padding: 0;

    text-decoration: none;

    overflow: hidden;

    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| LOGO IMAGE
|--------------------------------------------------------------------------
*/

.tw-logo {
    display: block;

    width: 155px;
    max-width: 155px;

    height: auto;
    max-height: 68px;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: left center;

    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| NAVIGATION
|--------------------------------------------------------------------------
*/

.tw-navigation {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 auto;

    min-width: 0;

    height: 82px;

    margin: 0 8px;
    padding: 0;
}


/*
|--------------------------------------------------------------------------
| EMPTY MENU
|--------------------------------------------------------------------------
*/

.tw-navigation-empty {
    flex: 1 1 auto;

    margin: 0;
    padding: 0;
}


/*
|--------------------------------------------------------------------------
| MENU
|--------------------------------------------------------------------------
*/

.tw-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 82px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/*
|--------------------------------------------------------------------------
| MENU ITEM
|--------------------------------------------------------------------------
*/

.tw-menu-item {
    position: relative;

    display: block;

    margin: 0;
    padding: 0;

    list-style: none;
}


/*
|--------------------------------------------------------------------------
| MENU LINK
|--------------------------------------------------------------------------
*/

.tw-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 82px;

    padding: 0 11px;

    color: #111827;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


.tw-menu-link:hover {
    color: #0d6efd;
}


.tw-menu-item.is-active > .tw-menu-link {
    color: #0d6efd;
}


/*
|--------------------------------------------------------------------------
| MENU ARROW
|--------------------------------------------------------------------------
*/

.tw-menu-arrow {
    font-size: 9px;

    transition: transform 0.2s ease;
}


.tw-menu-item:hover .tw-menu-arrow {
    transform: rotate(180deg);
}


/*
|--------------------------------------------------------------------------
| DROPDOWN
|--------------------------------------------------------------------------
*/

.tw-dropdown-menu {
    position: absolute;

    top: calc(100% - 1px);
    left: 50%;

    z-index: 100000;

    display: block;

    min-width: 220px;

    margin: 0;
    padding: 8px 0;

    background: #ffffff;

    border: 1px solid #e8edf4;
    border-radius: 10px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.12);

    list-style: none;

    visibility: hidden;
    opacity: 0;

    transform: translate(-50%, 10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


.tw-menu-item:hover > .tw-dropdown-menu {
    visibility: visible;
    opacity: 1;

    transform: translate(-50%, 0);
}


/*
|--------------------------------------------------------------------------
| DROPDOWN ITEMS
|--------------------------------------------------------------------------
*/

.tw-dropdown-menu li {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}


.tw-dropdown-link {
    display: block;

    box-sizing: border-box;

    width: 100%;

    padding: 11px 18px;

    color: #172033;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


.tw-dropdown-link:hover {
    color: #0d6efd;

    background: #f5f8ff;
}


/*
|--------------------------------------------------------------------------
| HEADER ACTIONS
|--------------------------------------------------------------------------
*/

.tw-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    gap: 10px;

    margin: 0;
    padding: 0;

    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| PHONE BUTTON
|--------------------------------------------------------------------------
*/

.tw-phone-button {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 170px;
    min-width: 170px;

    height: 50px;

    padding: 0 15px;

    color: #0d6efd;

    background: #ffffff;

    border: 1.5px solid #0d6efd;
    border-radius: 50px;

    font-size: 15px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.tw-phone-button:hover {
    color: #ffffff;

    background: #0d6efd;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(13, 110, 253, 0.15);
}


/*
|--------------------------------------------------------------------------
| GET FREE QUOTE
|--------------------------------------------------------------------------
*/

.tw-quote-button {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    min-width: 190px;

    height: 50px;

    padding: 0 18px;

    color: #ffffff;

    background: #0d6efd;

    border: 1px solid #0d6efd;
    border-radius: 50px;

    font-size: 15px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.tw-quote-button:hover {
    color: #ffffff;

    background: #0b5ed7;

    border-color: #0b5ed7;

    transform: translateY(-1px);

    box-shadow:
        0 10px 25px rgba(13, 110, 253, 0.20);
}


/*
|--------------------------------------------------------------------------
| MOBILE TOGGLE
|--------------------------------------------------------------------------
*/

.tw-mobile-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    width: 44px;
    height: 42px;

    margin: 0 0 0 auto;
    padding: 0;

    background: #ffffff;

    border: 1px solid #dce3ed;
    border-radius: 8px;

    cursor: pointer;
}


.tw-mobile-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    background: #071b41;

    border-radius: 2px;
}


/*
|--------------------------------------------------------------------------
| IMPORTANT
| Because header is fixed, create space for it.
|--------------------------------------------------------------------------
*/

body {
    padding-top: 82px !important;
}


/*
|--------------------------------------------------------------------------
| DESKTOP 1200+
|--------------------------------------------------------------------------
*/

@media (min-width: 1200px) {

    .tw-site-header {
        height: 82px !important;
        min-height: 82px !important;
    }

    .tw-navbar {
        height: 82px;
        min-height: 82px;
    }

    .tw-header-container {
        width: 100%;
        max-width: 1320px;

        height: 82px;
        min-height: 82px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .tw-brand {
        flex: 0 0 165px;

        width: 165px;
        height: 82px;
    }

    .tw-logo {
        width: 155px;
        max-width: 155px;

        max-height: 68px;
    }

    .tw-navigation {
        height: 82px;
    }

    .tw-menu {
        height: 82px;
    }

    .tw-menu-link {
        min-height: 82px;
    }

}


/*
|--------------------------------------------------------------------------
| DESKTOP 992 - 1199
|--------------------------------------------------------------------------
*/

@media (min-width: 992px) and (max-width: 1199.98px) {

    .tw-site-header {
        height: 76px !important;
        min-height: 76px !important;
    }

    .tw-navbar {
        height: 76px;
        min-height: 76px;
    }

    .tw-header-container {
        max-width: 100%;

        height: 76px;
        min-height: 76px;

        padding-left: 15px;
        padding-right: 15px;
    }

    .tw-brand {
        flex-basis: 150px;

        width: 150px;
        height: 76px;
    }

    .tw-logo {
        width: 145px;
        max-width: 145px;

        max-height: 60px;
    }

    .tw-navigation {
        height: 76px;

        margin-left: 5px;
        margin-right: 5px;
    }

    .tw-menu {
        height: 76px;
    }

    .tw-menu-link {
        min-height: 76px;

        padding-left: 7px;
        padding-right: 7px;

        font-size: 14px;
    }

    .tw-phone-button {
        width: 145px;
        min-width: 145px;

        height: 46px;

        padding-left: 10px;
        padding-right: 10px;

        font-size: 14px;
    }

    .tw-quote-button {
        width: 160px;
        min-width: 160px;

        height: 46px;

        padding-left: 10px;
        padding-right: 10px;

        font-size: 14px;
    }

    body {
        padding-top: 76px !important;
    }

}


/*
|--------------------------------------------------------------------------
| TABLET / MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .tw-site-header {
        height: 72px !important;
        min-height: 72px !important;
    }

    .tw-navbar {
        height: 72px;
        min-height: 72px;
    }

    .tw-header-container {
        display: flex;

        flex-wrap: nowrap;

        width: 100%;
        max-width: 100%;

        height: 72px;
        min-height: 72px;

        padding-left: 15px;
        padding-right: 15px;
    }

    .tw-brand {
        flex: 0 0 150px;

        width: 150px;
        height: 72px;
    }

    .tw-logo {
        width: 145px;
        max-width: 145px;

        max-height: 58px;
    }

    /*
    | Mobile menu button
    */

    .tw-mobile-toggle {
        display: flex;

        flex-shrink: 0;
    }


    /*
    | Navigation becomes dropdown panel
    */

    .tw-navigation {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: none;

        width: 100%;

        height: auto;

        margin: 0;
        padding: 10px 15px 15px;

        background: #ffffff;

        border-top: 1px solid #edf1f6;

        box-shadow:
            0 15px 30px rgba(15, 23, 42, 0.10);
    }


    .tw-navigation.is-open {
        display: block;
    }


    .tw-navigation-empty {
        display: none;
    }


    .tw-menu {
        display: block;

        width: 100%;
        height: auto;
    }


    .tw-menu-item {
        width: 100%;
    }


    .tw-menu-link {
        display: flex;

        align-items: center;
        justify-content: space-between;

        width: 100%;

        min-height: 46px;

        padding: 10px 12px;

        border-radius: 7px;
    }


    /*
    | Mobile dropdown
    */

    .tw-dropdown-menu {
        position: static;

        display: none;

        visibility: visible;
        opacity: 1;

        min-width: 0;

        margin: 0;
        padding: 0 0 0 15px;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        transform: none;
    }


    .tw-menu-item:hover > .tw-dropdown-menu {
        display: block;

        transform: none;
    }


    /*
    | Header actions on mobile
    */

    .tw-header-actions {
        display: none;
    }


    body {
        padding-top: 72px !important;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {

    .tw-header-container {
        padding-left: 12px;
        padding-right: 12px;
    }


    .tw-brand {
        flex-basis: 140px;

        width: 140px;
    }


    .tw-logo {
        width: 135px;
        max-width: 135px;
    }


    .tw-mobile-toggle {
        width: 42px;
        height: 40px;
    }


    .tw-navigation {
        top: 72px;

        padding-left: 12px;
        padding-right: 12px;
    }

}


/*
|--------------------------------------------------------------------------
| GLOBAL HEADER SAFETY
|--------------------------------------------------------------------------
*/

.tw-site-header,
.tw-site-header *,
.tw-site-header *::before,
.tw-site-header *::after {
    box-sizing: border-box;
}


.tw-site-header img {
    display: block;

    max-width: 100%;
}


/*
|--------------------------------------------------------------------------
| FIXED HEADER SAFETY
|--------------------------------------------------------------------------
*/

.tw-site-header {
    isolation: isolate;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;
}


/*
|--------------------------------------------------------------------------
| NEVER ALLOW HEADER TO MOVE
|--------------------------------------------------------------------------
*/

.tw-site-header,
.tw-navbar,
.tw-header-container {
    transform: none !important;
}


/*
|--------------------------------------------------------------------------
| END
|--------------------------------------------------------------------------
*/