/* =====================================================
   LUDA HEADER
===================================================== */


/* =====================================================
   ROOT
===================================================== */

:root {

    --orange: #f47b20;
    --orange-dark: #d96312;

    --black: #171717;
    --grey: #6b6b6b;

    --light: #f4f5f6;
    --border: #e5e5e5;

    --white: #ffffff;

}


/* =====================================================
   HEADER
===================================================== */

.header {

    width: 100%;
    height: 80px;

    padding: 0 8%;

    display: flex;
    align-items: center;

    background: var(--white);

    border-bottom:
        1px solid
        var(--border);

    position: relative;

    z-index: 1000;
}


/* =====================================================
   LOGO
===================================================== */

.logo-wrapper {

    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}


.logo-link {

    display: flex;
    align-items: center;

    width: 50px;
    height: 50px;

    flex-shrink: 0;
}


.logo-icon {

    display: block;

    width: 50px !important;
    height: 50px !important;

    max-width: 50px !important;
    max-height: 50px !important;

    min-width: 50px;
    min-height: 50px;

    object-fit: contain;

    flex-shrink: 0;
}


/* =====================================================
   BRAND
===================================================== */

.brand-text {

    display: flex;

    flex-direction: column;

    justify-content: center;

    white-space: nowrap;
}


.brand-name {

    display: block;

    color: #000000;

    font-family:
        Manrope,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 24px;

    font-weight: 700;

    line-height: 1;

    margin-bottom: 4px;
}


.brand-subtext {

    display: block;

    color: #7d7d7d;

    font-family:
        Manrope,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    line-height: 1;

    text-transform: uppercase;
}


/* =====================================================
   DESKTOP NAV
===================================================== */

.main-nav {

    display: flex;
    align-items: center;

    gap: 30px;

    margin-left: auto;
}


.main-nav a {

    color: var(--black);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.main-nav a:hover {

    color: var(--orange);
}


.main-nav a.active {

    color: var(--orange) !important;
}


/* =====================================================
   DESKTOP SEARCH
===================================================== */

.header-search {

    position: relative;

    display: flex;
    align-items: center;

    margin-left: 38px;
    margin-right: 20px;

    flex-shrink: 0;
}


.search-toggle {

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;
}


.search-icon {

    width: 17px;
    height: 17px;

    display: block;

    border:
        2px solid
        var(--black);

    border-radius: 50%;

    position: relative;
}


.search-icon::after {

    content: "";

    position: absolute;

    width: 7px;
    height: 2px;

    background: var(--black);

    right: -5px;
    bottom: -2px;

    transform:
        rotate(45deg);

    transform-origin: left center;
}


/* =====================================================
   DESKTOP SEARCH PANEL
===================================================== */

.search-panel {

    position: absolute;

    top: calc(100% + 15px);
    right: 0;

    width: 360px;

    padding: 14px;

    background: var(--white);

    border:
        1px solid
        var(--border);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.10);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 2000;
}


.header-search.active
.search-panel {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.search-input-wrapper {

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid
        var(--border);

    padding: 0 10px;
}


.search-input-wrapper input {

    width: 100%;

    height: 42px;

    border: none;

    outline: none;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 14px;
}


.search-close {

    border: none;

    background: transparent;

    font-size: 22px;

    color: var(--grey);

    cursor: pointer;
}


.search-results {

    margin-top: 8px;
}


.search-result {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 10px;

    color: var(--black);

    text-decoration: none;

    border-bottom:
        1px solid
        var(--border);
}


.search-result:hover {

    background: var(--light);
}


.search-result-title {

    font-size: 13px;

    font-weight: 700;
}


.search-result-description {

    font-size: 11px;

    color: var(--grey);
}


.search-no-results {

    padding: 12px;

    color: var(--grey);

    font-size: 13px;
}


/* =====================================================
   DESKTOP QUOTE BUTTON
===================================================== */

.header-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        12px
        20px;

    background: var(--orange);

    color: var(--white);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease;
}


.header-btn:hover {

    background:
        var(--orange-dark);
}



/* =====================================================
   HAMBURGER
===================================================== */

.hamburger {

    display: none;

    border: none;

    background: transparent;

    cursor: pointer;
}


/* =====================================================
   MOBILE NAV
===================================================== */

.mobile-nav {

    display: none;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    /* =============================================
       MOBILE HEADER
    ============================================== */

    .header {

        width: 100%;
        height: 64px;

        padding: 0 5%;

        display: flex;
        align-items: center;

        gap: 6px;
        zoom: 1.2;
    }


    /* =============================================
       LOGO
    ============================================== */

    .logo-wrapper {

        display: flex;
        align-items: center;

        gap: 8px;

        flex-shrink: 0;
    }


    .logo-link {

        width: 38px;
        height: 38px;
    }


    .logo-icon {

        width: 38px !important;
        height: 38px !important;

        max-width: 38px !important;
        max-height: 38px !important;

        min-width: 38px;
        min-height: 38px;
    }


    .brand-name {

        font-size: 19px;
    }


    .brand-subtext {

        font-size: 7px;

        letter-spacing: 0.55px;
    }


    /* =============================================
       HIDE DESKTOP ELEMENTS ON MOBILE
    ============================================== */

    .main-nav {

        display: none !important;
    }


    .header-search {

        display: none !important;
    }


    .header-btn {

        display: none !important;
    }


    /* =============================================
       HAMBURGER
       PUSH ALL THE WAY TO RIGHT
    ============================================== */

    .hamburger {

        width: 40px;
        height: 40px;

        margin-left: auto;

        padding: 6px;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        border: none;

        background: transparent;

        cursor: pointer;

        flex-shrink: 0;
    }


    .hamburger span {

        display: block;

        width: 21px;
        height: 2px;

        background: var(--black);

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }


    .hamburger.active span:nth-child(1) {

        transform:
            translateY(6px)
            rotate(45deg);
    }


    .hamburger.active span:nth-child(2) {

        opacity: 0;
    }


    .hamburger.active span:nth-child(3) {

        transform:
            translateY(-6px)
            rotate(-45deg);
    }


    /* =============================================
       MOBILE MENU
    ============================================== */

    .mobile-nav {

        display: none;

        flex-direction: column;

        width: 100%;

        padding:
            5px
            5%
            16px;

        background: var(--white);

        border-bottom:
            1px solid
            var(--border);

        position: relative;

        z-index: 999;
    }


    .mobile-nav.active {

        display: flex;
    }


    /* =============================================
       MOBILE LINKS
    ============================================== */

    .mobile-nav > a {

        padding: 11px 0;

        color: var(--black);

        font-family:
            Inter,
            Arial,
            Helvetica,
            sans-serif;

        font-size: 13px;

        font-weight: 600;

        text-decoration: none;

        border-bottom:
            1px solid
            var(--border);
    }


    .mobile-nav > a.active {

        color: var(--orange) !important;
    }


    /* =============================================
       MOBILE SEARCH
    ============================================== */

    .mobile-search {

        width: 100%;
    }


    .mobile-search-toggle {

        width: 100%;

        min-height: 43px;

        display: flex;

        align-items: center;

        gap: 10px;

        padding: 11px 0;

        border: none;

        border-bottom:
            1px solid
            var(--border);

        background: transparent;

        color: var(--black);

        font-family:
            Inter,
            Arial,
            Helvetica,
            sans-serif;

        font-size: 13px;

        font-weight: 600;

        text-align: left;

        cursor: pointer;
    }


    .mobile-search-icon {

        width: 15px;
        height: 15px;

        display: block;

        border:
            2px solid
            var(--black);

        border-radius: 50%;

        position: relative;

        flex-shrink: 0;
    }


    .mobile-search-icon::after {

        content: "";

        position: absolute;

        width: 6px;
        height: 2px;

        background: var(--black);

        right: -5px;
        bottom: -2px;

        transform: rotate(45deg);
    }


    /* =============================================
       MOBILE SEARCH PANEL
    ============================================== */

    .mobile-search-panel {

        display: none;

        padding: 10px 0;
    }


    .mobile-search.active
    .mobile-search-panel {

        display: block;
    }


    .mobile-search-input-wrapper {

        display: flex;

        align-items: center;

        border:
            1px solid
            var(--border);

        background: var(--white);
    }


    .mobile-search-input-wrapper input {

        width: 100%;

        height: 40px;

        padding: 0 10px;

        border: none;

        outline: none;

        font-family:
            Inter,
            Arial,
            Helvetica,
            sans-serif;

        font-size: 13px;
    }


    .mobile-search-close {

        width: 40px;
        height: 40px;

        border: none;

        background: transparent;

        color: var(--grey);

        font-size: 21px;

        cursor: pointer;
    }


    .mobile-search-results {

        margin-top: 5px;
    }


    .mobile-search-results
    .search-result {

        padding: 10px;

        border-bottom:
            1px solid
            var(--border);
    }


    /* =============================================
       MOBILE QUOTE
    ============================================== */

    .mobile-nav .mobile-quote {

        margin-top: 12px;

        padding:
            11px
            16px;

        background: var(--orange);

        color: var(--white);

        border: none;

        text-align: center;
    }

}

/* =====================================================
   CONTACT PAGE HEADER CONTROLS
===================================================== */

body.contact-page #header .header-search,
body.contact-page #header .header-btn {

    display: none !important;
}


@media (max-width: 700px) {

    body.contact-page #header .header-search,
    body.contact-page #header .header-btn {

        display: none !important;
    }

}