/**
 * Theme Name:  Sundt (2019)
 * Theme URI:   https://skyhookinteractive.com/
 * Description: Custom theme built for Sundt.
 * Version:     1.0.0
 * Author:      Skyhook Interactive
 * Author URI:  https://skyhookinteractive.com/
 * Text Domain: titan
 * License:     MIT License
 * License URI: http://opensource.org/licenses/MIT
 */

 .container.container--lg {
    max-width: 1670px;
    width: 100%;
}
/* #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner,
#mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner::before,
#mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner::after {
   background-color: #898A8D !important;
} */

body.transparent-header .header-mm {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;

    .header-nav {
        padding-left: 0;
    }
}
body:not(.transparent-header) .header-mm {
    position: relative;

    .header-nav {
        padding-left: 0;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    body #mega-menu-wrap-primary_navigation #mega-menu-primary_navigation > li.mega-menu-item > a.mega-menu-link {
        padding: 0 15px;
    }
}

@media (min-width: 1201px) {
    /*
    styles for desktop sticky navbar default
     */
    body.mega-menu-primary-navigation {
        .header-mm {
            div#mega-menu-wrap-primary_navigation ul#mega-menu-primary_navigation {
                > li.mega-logo-white {
                    display: inline-block;
                }
                > li.mega-logo-color {
                    display: none;
                }
            }
        }
    }

    /*
    styles for desktop sticky navbar when scrolling up
     */

    body.mega-menu-primary_navigation-mega-sticky:not(.mega-menu-primary_navigation-mega-hide) .header-mm,
    body:not(.transparent-header) .header-mm,
    body.mega-menu-primary-navigation .header-mm:hover,
    body.mega-menu-primary-navigation .header-mm.mm-open {
        background-color: #fff;

        &:after {
            content: ' ';
            display: inline-block;
            position: absolute;
            height: 1px;
            width: 100%;
            bottom: 0;
            left: 0;
            background-color: #b7babc;
        }

        div#mega-menu-wrap-primary_navigation {
            background-color: #fff;

            ul#mega-menu-primary_navigation {
                > li.mega-logo-white {
                    display: none;
                }
                > li.mega-logo-color {
                    display: inline-block;
                }

                > li.mega-menu-item,
                > li.mega-toggle-search {
                    > a.mega-menu-link,
                    span.search-icon:before {
                        color: #4A4A4A !important;
                        &:hover {
                            color: #ee373d !important;
                        }
                    }

                    &.mega-toggle-on {
                        > a.mega-menu-link {
                            color: #ee373d !important;
                        }
                    }

                    form.mega-search-open > input {
                        border-bottom: 1px solid #4a4a4a !important;
                        padding: 8px !important;
                    }
                }
            }
        }
    }

    .header-mm {
        .container {
            min-width: 1560px;
            max-width: 95%;
            width: 100%;
        }

        #mega-menu-wrap-primary_navigation #mega-menu-primary_navigation {
            display: flex;
            justify-content: center;

            li.mega-logo-white,
            li.mega-logo-color,
            li:last-child {
                flex-grow: 1;
            }

            /*
            styles the main navbar on desktop
             */
            > li.mega-menu-item {
                > a.mega-menu-link {
                    > span.mega-indicator {
                        position: absolute;
                        height: 25px;
                        left: 27px;
                        bottom: 65px;
                        margin: 0;
                        width: calc(100% - 54px);
                        transition: bottom .25s;
                        &:after {
                            width: 100%;
                            text-align: center;
                            opacity: 0.3;
                        }
                    }
                }

                &.mega-toggle-on {
                    > a.mega-menu-link {
                        color: #ee373d !important;
                        > span.mega-indicator {
                            bottom: 31px;
                            z-index: 99999;
                            &:after {
                                left: 0;
                                right: 0;
                                opacity: 1;
                            }
                            &:before {
                                content: ' ';
                                display: inline-block;
                                position: absolute;
                                height: 3px;
                                width: 100%;
                                bottom: -31px;
                                left: 0;
                                background-color: #ee373d;
                            }
                        }
                    }
                }

                &.mega-toggle-search {
                    text-align: right;
                }
            }

            /*
            adds "full width" bg behind mega menu since the menu is in a container
            also adds default link styles to all mega menu layouts
             */
            .mega-menu-item.mega-menu-grid,
            .mega-menu-item.mega-menu-tabbed {
                > .mega-sub-menu::after {
                    content: none;
                    display: inline-block;
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    width: 200vw;
                    margin-left: -100vw;
                    margin-right: -100vw;
                    background: linear-gradient(to right, #4A4A4A 0% 50%, #fff 50% 100%);
                    z-index: -1;
                }

                .mega-sub-menu a.mega-menu-link:hover {
                    text-decoration: underline !important;
                }
            }

            /*
            styles that apply to all mmm grid layouts
            we have three custom sub-layouts that are styled more specifically below
             */
            .mega-menu-item.mega-menu-grid {
                .mega-sub-menu {
                    .mega-sub-menu {
                        display: flex;

                        .mega-sub-menu {
                            display: inline-block;
                        }

                        .mega-menu-columns-3-of-12 {
                            background-color: #fff;
                            padding-left: 1.5%;
                            padding-right: 1.5%;
                            /*width: 22%;*/
                            padding-top: 60px;
                            padding-bottom: 60px;
                        }

                        .mega-menu-columns-3-of-12,
                        .mega-menu-columns-6-of-12 {
                            .widget_block,
                            .widget_text {
                                font-weight: 300;
                                color: #4A4A4A !important;
                                padding-top: 0px !important;
                                margin-top: -18px;
                            }

                            .widget_block h4,
                            .widget_text h4 {
                                color: #4A4A4A !important;
                                font-family: Univers, sans-serif;
                                font-size: 42px;
                                text-transform: uppercase;
                                border-bottom: 1px solid #b7babc;
                            }
                            .widget_block h4:hover,
                            .widget_text h4:hover {
                                border-bottom: 1px solid #b7babc;
                            }
                        }

                        .mega-menu-columns-6-of-12 {
                            background-color: #fff;
                            padding-left: 3%;
                            padding: 94px 0;

                            .widget_block {
                                color: #4A4A4A !important;
                                padding-top: 0px !important;
                                margin-top: -18px;
                            }

                            > .mega-sub-menu {
                                display: flex;
                                flex-wrap: wrap;

                                > .mega-menu-item:first-child {
                                    width: 100%;
                                }
                                > .mega-menu-item {
                                    width: 50%;
                                }
                            }
                        }


                        .mega-menu-columns-3-of-12:first-child {


                            .widget_custom_html {
                                color: #FFFFFF !important;
                            }

                            .widget_custom_html h4 {
                                position: relative;
                                color: #FFFFFF !important;
                                font-style: italic;
                                padding-bottom: 20px;
                            }

                            .widget_custom_html h4::after {
                                content: '';
                                display: block;
                                position: absolute;
                                width: 30px;
                                height: 1px;
                                bottom: 10px;
                                left: 0;
                                background-color: #fff;
                            }

                            .textwidget {
                                max-width: 90%;
                                font-size: 18px;
                            }
                        }
                    }
                }
            }

            ul.mega-sub-menu li.mega-mm-grid.mm-grid ul.mega-sub-menu {
                li.mega-menu-columns-3-of-12:nth-child(2),
                li.mega-menu-columns-3-of-12:nth-child(3),
                li.mega-menu-columns-3-of-12:nth-child(4) {
                    .mega-sub-menu {
                        .mega-menu-item {
                            .mega-menu-link {
                                font-size: 20px;
                                font-weight: bold;
                            }
                        }
                    }
                }
            }

            ul.mega-sub-menu li.mega-mm-list.mm-list ul.mega-sub-menu {
                li.mega-menu-columns-3-of-12:nth-child(2),
                li.mega-menu-columns-6-of-12 {
                    padding-top: 60px;
                    padding-bottom: 60px;
                }
            }

            ul.mega-sub-menu li.mega-mm-list-images.mm-list-images ul.mega-sub-menu {
                li.mega-menu-columns-3-of-12:first-child {
                    li.mega-menu-item:last-child {
                        text-align: left;

                        a.mega-menu-link {
                            display: inline-block;
                            background-color: #fff;
                            color: #EE373D;
                            width: auto;
                            padding: 6px 10px;
                            margin-right: 36px;
                            font-family: Univers, sans-serif;
                            font-size: 33px;
                            font-weight: normal;
                            text-transform: uppercase;
                            line-height: 35px;
                        }
                    }
                }
                li.mega-menu-column:nth-child(2) {
                    padding-top: 40px;
                    padding-bottom: 40px;
                }
                li.mega-menu-column:nth-child(3),
                li.mega-menu-column:nth-child(4) {
                    padding-top: 30px;
                    padding-bottom: 30px;

                    .widget_block, .widget_text {
                        padding-left: 0;
                        padding-right: 0;
                        margin-top: 0;

                        p {
                            font-size: 15px;
                            font-weight: 500;

                            a {
                                font-size: 22px;
                                line-height: 25px;
                                color: #4a4a4a;
                            }
                        }
                    }
                }
            }


            /*
            styles that apply to the mmm tabbed layout
             */
            .mega-menu-item.mega-menu-tabbed {
                > .mega-sub-menu {
                    padding: 40px 0;

                    > .mega-menu-item:last-child {
                        width: 26%;

                        > a {
                            display: inline-block;
                            background-color: #fff;
                            color: #EE373D;
                            width: auto;
                            float: right;
                            padding: 6px 10px;
                            margin-right: 36px;
                        }
                    }

                    > .mega-menu-item .mega-indicator {
                        &::after {
                            opacity: 0;
                            color: #4A4A4A;
                            margin-right: -64px;
                            z-index: 99;
                            font-size: 44px;
                        }
                    }

                    > .mega-menu-item.mega-toggle-on .mega-indicator {
                        &::after {
                            opacity: 1;
                        }
                    }

                    .mega-menu-link {
                        text-align: right;
                    }

                    > .mega-menu-item > .mega-sub-menu {
                        background-color: #fff;

                        .mega-menu-row > ul > li {
                            padding-left: 40px;
                        }

                        .mega-menu-columns-12-of-12 {
                            padding: 30px 0;
                            background-color: #eeeeee;
                            margin-bottom: 0px;

                            &::after {
                                content: '';
                                display: inline-block;
                                position: absolute;
                                top: 0;
                                bottom: 0;
                                left: 0;
                                width: 200vw;
                                margin-right: -100vw;
                                background-color: #eeeeee;
                                z-index: -1;
                            }

                            .widget_text {
                                display: flex;
                                align-items: center;

                                h4, p {
                                    color: #4A4A4A;
                                    padding: 0;
                                    margin: 0;
                                }

                                h4 {
                                    font-family: Univers, sans-serif;
                                    font-size: 42px;
                                    text-transform: uppercase;
                                    white-space: nowrap;
                                    padding-right: 80px;
                                }
                            }
                        }
                    }
                }
            }

            /*
            styles that apply to desktop mm search
             */
            li.mega-toggle-search {
                padding-right: 27px;
            }
        }
    }
}

@media (max-width: 1201px) {

   .mega-hide-on-mobile {
        display: none !important
    }
    .header-mm {
        .header-nav {
            #mega-menu-wrap-primary_navigation {
                .mega-menu-toggle {
                    padding: 0 15px;

                    .mega-toggle-blocks-left {
                        /* #mega-toggle-block-2 {
                            display: none;
                        } */

                        /* #mega-toggle-block-1 {
                            display: none;
                        } */
                    }
                }
            }
        }
    }

    body.mega-menu-primary_navigation-mega-sticky:not(.mega-menu-primary_navigation-mega-hide) .header-mm,
    body:not(.transparent-header) .header-mm,
    body.mega-menu-primary-navigation .header-mm:hover,
    body.mega-menu-primary-navigation .header-mm.mm-open,
    body.mega-menu-primary_navigation-mobile-open .header-mm {
        background-color: #fff;

        #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner, #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner::before, #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner::after {
            background-color: #898A8D;
        }

        .header-nav {
            #mega-menu-wrap-primary_navigation {
                background-color: #fff;

                .mega-menu-toggle {
                    .mega-toggle-blocks-left {
                        #mega-toggle-block-1 {
                            display: none;
                        }
                        #mega-toggle-block-2 {
                            display: flex;
                        }
                    }
                }

                ul#mega-menu-primary_navigation {
                    border-top: 2px solid #b7babc;
                    padding: 28px 0 0;
                    width: 100vw !important;
                    height: calc(100vh - 94px);
                    overflow-y: scroll;

                    > li.mega-menu-item {
                        border-bottom: 1px solid #eeeeee;

                        > a.mega-menu-link{
                            margin: 20px 0;
                            padding: 0 22px;
                        }

                        > a.mega-menu-link > span.mega-indicator {
                            float: none;
                            font-size: 18px;
                        }
                        > a.mega-menu-link > span.mega-indicator:after {
                            vertical-align: baseline;
                        }

                        ul.mega-sub-menu {
                            border-top: 1px solid #eeeeee;
                            li.mega-menu-item {
                                border-bottom: 1px solid #eeeeee;
                            }
                        }

                        > ul.mega-sub-menu {
                            > li.mega-menu-item {
                                > a.mega-menu-link {
                                    padding: 20px 10px 20px 22px;
                                }
                                > ul.mega-sub-menu {
                                    > li.mega-menu-item {
                                        > a.mega-menu-link {
                                            font-size: 28px;
                                            padding: 18px 10px 18px 58px;
                                        }
                                    }
                                }
                            }
                        }
                    }

                    > li.mega-menu-item.mega-toggle-on {
                        > a.mega-menu-link {
                            padding-left: 0;

                            > span.mega-indicator {
                                float: left;
                                transform: rotate(-90deg);
                                margin-right: 10px;
                                width: 22px;
                                margin: 0;
                            }
                        }
                    }

                    > li.mega-menu-item.mobile-hide-submenu {
                        display: none;
                    }
                }
            }
        }
    }
}

@media (max-width: 1201px) {
    #mega-menu-wrap-primary_navigation .mega-menu-toggle {
        display: flex; !important;
    }

    header.header-mm {
        background-color: #ffffff;
    }



    #mega-toggle-block-1 {
        display: none !important;
    }

    #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner, #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner::before, #mega-menu-wrap-primary_navigation .mega-menu-toggle .mega-toggle-block-3 .mega-toggle-animated-inner::after {
        background-color: #000000 !important;
    }


}

/* @media (max-width: 767px) {
    body .header-nav {
        background-color: transparent;
    }
} */

/* .project-single .container{
    width: 100%;
}  */

/* Fix for mega menu grid layout */
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation {
    .mega-sub-menu {
        width: 100%;
    }

    .mega-menu-row {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .mega-menu-column {
        width: calc(var(--span, 1) * 100% / var(--columns, 12));
        box-sizing: border-box;
    }

    .mega-menu-columns-12-of-12 {
        .widget_text {
            padding: 30px;
            background: #eeeeee;

            h4 {
                font-family: Univers, sans-serif;
                font-size: 42px;
                text-transform: uppercase;
                margin: 0;
                padding-right: 80px;
            }

            p {
                margin: 0;
            }
        }
    }

    .mega-menu-link {
        display: block;
        padding: 8px 12px;
        transition: color 0.2s ease;

        &:hover {
            color: #ee373d;
        }
    }
}

/* Mobile adjustments */
@media (max-width: 1201px) {
    #mega-menu-wrap-primary_navigation #mega-menu-primary_navigation {
        .mega-menu-row {
            flex-direction: column;
        }

        .mega-menu-column {
            width: 100%;
        }

        .mega-menu-link {
            padding: 12px 20px;
        }
    }
}

/* Ensure proper spacing in menu items */
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation > li.mega-menu-megamenu > ul.mega-sub-menu {
    padding: 20px;
    width: 100%;
}

/* Fix for menu item alignment */
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation > li.mega-menu-item {
    display: flex;
    align-items: center;
}

/* Base mega menu resets and structure */
#mega-menu-wrap-primary_navigation,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation ul.mega-sub-menu,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation li.mega-menu-item,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation li.mega-menu-row,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation li.mega-menu-column,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation a.mega-menu-link {
    transition: none;
    border-radius: 0;
    box-shadow: none;
    background: none;
    border: 0;
    bottom: auto;
    box-sizing: border-box;
    clip: auto;
    color: #4a4a4a;
    display: block;
    float: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    height: auto;
    left: auto;
    line-height: 1.7;
    list-style-type: none;
    margin: 0;
    min-height: auto;
    max-height: none;
    min-width: auto;
    max-width: none;
    opacity: 1;
    outline: none;
    overflow: visible;
    padding: 0;
    position: relative;
    pointer-events: auto;
    right: auto;
    text-align: left;
    text-decoration: none;
    text-indent: 0;
    text-transform: none;
    transform: none;
    top: auto;
    vertical-align: baseline;
    visibility: inherit;
    width: auto;
    word-wrap: break-word;
    white-space: normal;
}

/* Menu item styling */
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
    color: #4a4a4a;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    display: block;
    float: left;
    clear: none;
    padding: 15px 28px;
    vertical-align: top;
}

/* Grid layout structure */
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation {
    text-align: center;
    padding: 0;

    .mega-sub-menu {
        width: 100%;
        visibility: hidden;
        opacity: 1;
        pointer-events: auto;
    }

    .mega-menu-row {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    /* Column sizing */
    .mega-menu-column {
        width: calc(var(--span, 1) * 100% / var(--columns, 12));
        box-sizing: border-box;
    }

    /* Widget text styling */
    .mega-menu-columns-12-of-12 .widget_text {
        padding: 30px;
        background: #eeeeee;

        h4 {
            font-family: Univers, sans-serif;
            font-size: 42px;
            text-transform: uppercase;
            margin: 0;
            padding-right: 80px;
        }

        p {
            margin: 0;
        }
    }
}

/* Show submenu on hover/focus */
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation.mega-no-js li.mega-menu-item:hover > ul.mega-sub-menu,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation.mega-no-js li.mega-menu-item:focus > ul.mega-sub-menu,
#mega-menu-wrap-primary_navigation #mega-menu-primary_navigation li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu {
    visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 1201px) {
    #mega-menu-wrap-primary_navigation #mega-menu-primary_navigation {
        .mega-menu-row {
            flex-direction: column;
        }

        .mega-menu-column {
            width: 100%;
        }

        li.mega-menu-item {
            border-bottom: 1px solid #eeeeee;

            > a.mega-menu-link {
                margin: 20px 0;
                padding: 0 22px;
            }
        }
    }
}