/* ==========================================================
   KC CONTRACTORS HEADER
   FINAL USER.CSS
   FULL WIDTH + LOGO + DROPDOWNS + MOBILE
   NO TEMPLATE EDITS
========================================================== */


/* ==========================================================
   JOOMLA CUSTOM MODULE WRAPPER
========================================================== */

.kc-full-header,
.kc-full-header.moduletable,
.kc-full-header.module,
.kc-full-header .mod-custom,
.kc-full-header .custom,
.kc-full-header > div{
    margin-top:0 !important;
    margin-bottom:0 !important;

    padding-left:0 !important;
    padding-right:0 !important;

    max-width:none !important;

    overflow:visible !important;
}


/* ==========================================================
   ACTUAL HEADER
   IMPORTANT FULL-WIDTH FIX

   Joomla position is right aligned.

   100% = width of Joomla position
   100vw = browser width

   The negative margin pulls the header from the Joomla
   position back to the LEFT edge of the browser.
========================================================== */

.kc-site-header{
    position:relative !important;

    width:100vw !important;
    max-width:none !important;

    margin-left:calc(100% - 100vw) !important;
    margin-right:0 !important;

    padding:0 !important;

    left:auto !important;
    right:auto !important;

    background:#111820 !important;

    border-bottom:4px solid #ed3237 !important;

    box-sizing:border-box !important;

    overflow:visible !important;

    z-index:9999 !important;
}


/* ==========================================================
   INNER HEADER
========================================================== */

.kc-header-inner{
    width:100%;
    max-width:1280px;
    min-height:86px;

    margin:0 auto;

    padding:10px 25px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:28px;

    box-sizing:border-box;
}


/* ==========================================================
   LOGO
========================================================== */

.kc-header-logo{
    display:block;

    flex:0 0 auto;

    margin:0;
    padding:0;
}

.kc-header-logo img{
    display:block;

    width:220px;
    max-width:100%;
    height:auto;

    margin:0;
    padding:0;
}


/* ==========================================================
   MAIN NAVIGATION
========================================================== */

.kc-main-nav{
    margin-left:auto;

    overflow:visible;
}

.kc-menu{
    display:flex;
    align-items:center;
    justify-content:flex-end;

    gap:2px;

    margin:0;
    padding:0;

    list-style:none;
}

.kc-menu > li{
    position:relative;

    margin:0;
    padding:0;

    list-style:none;
}


/* ==========================================================
   TOP LEVEL MENU LINKS
========================================================== */

.kc-menu > li > a,
.kc-parent-link > a{
    display:flex;
    align-items:center;

    min-height:48px;

    padding:0 12px;

    color:#ffffff !important;

    text-decoration:none !important;
    text-transform:uppercase;

    font-size:13px;
    font-weight:700;
    line-height:1.2;

    white-space:nowrap;

    transition:
        color .2s ease,
        background .2s ease;
}

.kc-menu > li > a:hover,
.kc-parent-link > a:hover,
.kc-has-dropdown:hover > .kc-parent-link > a{
    color:#f4c542 !important;
}


/* ==========================================================
   DROPDOWN PARENTS
========================================================== */

.kc-parent-link{
    position:relative;

    display:flex;
    align-items:center;
}


/* ==========================================================
   DROPDOWN ARROW
========================================================== */

.kc-dropdown-toggle{
    display:flex;
    align-items:center;
    justify-content:center;

    width:28px;
    height:48px;

    margin:0 2px 0 -7px;
    padding:0;

    border:0 !important;
    outline:0 !important;

    background:transparent !important;

    color:#ffffff !important;

    font-size:11px;
    line-height:1;

    cursor:pointer;
}

.kc-dropdown-toggle:hover{
    color:#f4c542 !important;
}


/* ==========================================================
   DROPDOWN MENUS
========================================================== */

.kc-dropdown{
    position:absolute;

    top:100%;
    left:0;

    width:265px;

    margin:0;
    padding:6px 0;

    list-style:none;

    background:#171f28;

    border-top:3px solid #ed3237;

    box-shadow:0 12px 28px rgba(0,0,0,.30);

    opacity:0;
    visibility:hidden;

    transform:translateY(7px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;

    z-index:99999;
}

.kc-dropdown li{
    display:block;

    margin:0;
    padding:0;

    list-style:none;
}

.kc-dropdown a{
    display:block;

    padding:12px 17px;

    background:transparent;

    color:#ffffff !important;

    text-decoration:none !important;

    font-size:13px;
    font-weight:600;
    line-height:1.3;

    border-bottom:1px solid rgba(255,255,255,.08);
}

.kc-dropdown li:last-child a{
    border-bottom:0;
}

.kc-dropdown a:hover{
    background:#ed3237;

    color:#ffffff !important;
}


/* ==========================================================
   SHOW DESKTOP DROPDOWN
========================================================== */

.kc-has-dropdown:hover > .kc-dropdown,
.kc-has-dropdown:focus-within > .kc-dropdown,
.kc-has-dropdown.kc-open > .kc-dropdown{
    opacity:1;
    visibility:visible;

    transform:translateY(0);
}


/* ==========================================================
   CONTACT BUTTON
========================================================== */

.kc-menu > li > .kc-contact-link{
    min-height:auto;

    margin-left:10px;

    padding:12px 19px;

    background:#ed3237;

    border-radius:4px;

    color:#ffffff !important;
}

.kc-menu > li > .kc-contact-link:hover{
    background:#c91e24;

    color:#ffffff !important;
}


/* ==========================================================
   MOBILE HAMBURGER
========================================================== */

.kc-mobile-toggle{
    display:none;

    width:44px;
    height:40px;

    align-items:center;
    justify-content:center;

    margin-left:auto;
    padding:0;

    border:1px solid rgba(255,255,255,.25) !important;

    border-radius:4px;

    background:#19232d !important;

    color:#ffffff !important;

    font-size:22px;
    line-height:1;

    cursor:pointer;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width:1100px){

    .kc-header-inner{
        padding-left:18px;
        padding-right:18px;

        gap:14px;
    }

    .kc-header-logo img{
        width:190px;
    }

    .kc-menu > li > a,
    .kc-parent-link > a{
        padding-left:8px;
        padding-right:8px;

        font-size:12px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:900px){

    .kc-header-inner{
        min-height:70px;

        padding:10px 15px;

        flex-wrap:wrap;

        gap:10px;
    }


    /* LOGO */

    .kc-header-logo img{
        width:195px;
    }


    /* HAMBURGER */

    .kc-mobile-toggle{
        display:flex;
    }


    /* HIDE NAV UNTIL BUTTON CLICK */

    .kc-main-nav{
        display:none;

        width:100%;

        margin:0;
    }

    .kc-main-nav.kc-nav-open{
        display:block;
    }


    /* MOBILE MENU */

    .kc-menu{
        display:block;

        width:100%;

        margin:0;
        padding:8px 0 0;
    }

    .kc-menu > li{
        width:100%;

        margin:0 0 4px;
    }


    /* STANDARD MOBILE LINKS */

    .kc-menu > li > a{
        width:100%;
        min-height:44px;

        justify-content:flex-start;

        padding:10px 14px;

        box-sizing:border-box;

        background:#19232d;

        border-radius:3px;

        white-space:normal;
    }


    /* DROPDOWN PARENT */

    .kc-parent-link{
        width:100%;

        background:#19232d;

        border-radius:3px;

        box-sizing:border-box;
    }

    .kc-parent-link > a{
        width:100%;
        min-height:44px;

        padding:10px 50px 10px 14px;

        box-sizing:border-box;

        white-space:normal;
    }


    /* MOBILE ARROW */

    .kc-dropdown-toggle{
        position:absolute;

        top:0;
        right:0;

        width:46px;
        height:44px;

        margin:0;

        border-left:
            1px solid rgba(255,255,255,.12) !important;
    }


    /* MOBILE DROPDOWN */

    .kc-dropdown{
        position:static;

        display:none;

        width:100%;

        margin:3px 0 0;

        opacity:1;
        visibility:visible;

        transform:none;

        box-shadow:none;

        border-top:2px solid #ed3237;
    }


    /* DISABLE DESKTOP HOVER OPENING */

    .kc-has-dropdown:hover > .kc-dropdown,
    .kc-has-dropdown:focus-within > .kc-dropdown{
        display:none;
    }


    /* JS ARROW OPENS MENU */

    .kc-has-dropdown.kc-open > .kc-dropdown{
        display:block;
    }


    .kc-dropdown a{
        padding:11px 20px;
    }


    /* CONTACT */

    .kc-menu > li > .kc-contact-link{
        margin-left:0;

        justify-content:center;

        background:#ed3237;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:480px){

    .kc-header-inner{
        padding-left:12px;
        padding-right:12px;
    }

    .kc-header-logo img{
        width:175px;
    }

}