﻿/* =========================================================
   SOUTHERN STAR ELECTRONICS — HEADER
   ========================================================= */

.sse-site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: #ffffff;
}

.sse-header-container {
    width: min(1420px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================================
   BRANDING ROW
   ========================================================= */

.sse-header-main {
    background: #ffffff;
    border-bottom: 1px solid #d9dee5;
}

.sse-header-main .sse-header-container {
    min-height: 122px;
    display: flex;
    align-items: center;
    gap: 34px;
}

/* Logo */

.sse-brand {
    flex: 0 0 auto;
}

.sse-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.sse-company-logo {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.sse-header-certifications {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.sse-certification {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sse-certification img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 78px;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   CONTACT
   ========================================================= */

.sse-header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 285px;
}

.sse-header-phone,
.sse-header-email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0d1f36;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.sse-header-phone:hover,
.sse-header-email:hover {
    color: #c91f26;
}

.sse-header-phone span:first-child,
.sse-header-email span:first-child {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

/* Quote button */

.sse-header-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 190px;
    padding: 10px 18px;
    margin-top: 2px;

    background: #c91f26;
    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.sse-header-quote:hover {
    background: #a9161c;
    color: #ffffff;
    transform: translateY(-1px);
}

.sse-header-quote span {
    font-size: 25px;
    line-height: .7;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.sse-navigation-bar {
    background: #071d3a;
    width: 100%;
}

.sse-navigation-container {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sse-primary-navigation {
    width: 100%;
}

.sse-primary-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;

    list-style: none;
    margin: 0;
    padding: 0;
}

.sse-primary-menu > li {
    position: relative;
    margin: 0;
}

.sse-primary-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 31px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;

    border-bottom: 3px solid transparent;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.sse-primary-menu > li > a:hover,
.sse-primary-menu > li.current-menu-item > a,
.sse-primary-menu > li.current_page_item > a {
    background: #0d2c50;
    color: #ffffff;
    border-bottom-color: #ed1c24;
}

/* =========================================================
   DROPDOWN MENUS
   ========================================================= */

.sse-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 230px;
    margin: 0;
    padding: 8px 0;

    background: #ffffff;
    border-top: 3px solid #c91f26;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);

    list-style: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.sse-primary-menu li:hover > .sub-menu,
.sse-primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sse-primary-menu .sub-menu li {
    margin: 0;
}

.sse-primary-menu .sub-menu a {
    display: block;
    padding: 11px 18px;

    color: #102235;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.sse-primary-menu .sub-menu a:hover {
    background: #f1f4f7;
    color: #c91f26;
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.sse-mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    padding: 8px;

    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    cursor: pointer;
}

.sse-mobile-menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .sse-header-main .sse-header-container {
        gap: 20px;
    }

    .sse-company-logo {
        width: 420px;
    }

    .sse-header-certifications {
        gap: 12px;
    }

    .sse-certification img {
        max-width: 145px;
    }

    .sse-header-contact {
        min-width: 245px;
    }

    .sse-primary-menu > li > a {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1050px) {

    .sse-header-main .sse-header-container {
        min-height: 105px;
    }

    .sse-company-logo {
        width: 340px;
    }

    .sse-header-certifications {
        display: none;
    }

    .sse-header-contact {
        margin-left: auto;
    }
}

@media (max-width: 800px) {

    .sse-header-container {
        width: min(100% - 28px, 1420px);
    }

    .sse-header-main .sse-header-container {
        min-height: 92px;
        justify-content: space-between;
    }

    .sse-company-logo {
        width: 300px;
    }

    .sse-header-contact {
        display: none;
    }

    .sse-navigation-container {
        min-height: 50px;
        justify-content: flex-end;
    }

    .sse-mobile-menu-toggle {
        display: block;
    }

    .sse-primary-navigation {
        display: none;
    }

    .sse-primary-navigation.is-open {
        display: block;
    }

    .sse-primary-menu {
        display: block;
        width: 100%;
    }

    .sse-primary-menu > li > a {
        min-height: 44px;
        padding: 0 16px;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .sse-primary-menu .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
    }

    .sse-primary-menu li:hover > .sub-menu {
        display: none;
    }
}

@media (max-width: 500px) {

    .sse-company-logo {
        width: 245px;
    }
}