/*
=====================================================
DIGITAL IPSUM HEADER
=====================================================
*/

.site-header {

    --di-navy: #080f25;
    --di-navy-2: #0c1530;
    --di-navy-3: #101b3a;

    --di-orange: #f79621;
    --di-orange-soft: #ffad48;

    --di-white: #ffffff;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    padding:
        14px
        32px;

    background:
        rgba(8, 15, 37, .78);

    border-bottom:
        1px solid
        rgba(255, 255, 255, .12);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


/*
=====================================================
HEADER INNER
=====================================================
*/

.header-inner {

    width: 100%;

    max-width: 1440px;

    min-height: 50px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
}


/*
=====================================================
NAVIGATION
=====================================================
*/

.header-nav {

    display: flex;

    align-items: center;

    min-width: 0;
}


.header-nav-left {

    justify-content: flex-start;
}


.header-nav-right {

    justify-content: flex-end;
}


.header-menu {

    display: flex;

    align-items: center;

    gap: 24px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.header-menu li {

    position: relative;

    margin: 0;

    padding: 0;
}


.header-menu a {

    display: inline-flex;

    align-items: center;

    white-space: nowrap;

    color:
        rgba(255, 255, 255, .78);

    text-decoration: none;

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.4;

    transition:
        color .25s ease;
}


.header-menu a:hover {

    color:
        var(--di-white);
}


/*
=====================================================
SUBMENU
=====================================================
*/

.header-menu .sub-menu {

    position: absolute;

    top: calc(100% + 16px);

    left: 0;

    min-width: 190px;

    margin: 0;

    padding: 10px;

    list-style: none;

    background:
        rgba(8, 15, 37, .97);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 12px;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, .25);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


.header-menu li:hover > .sub-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.header-menu .sub-menu a {

    width: 100%;

    padding:
        9px 10px;

    border-radius: 7px;
}


.header-menu .sub-menu a:hover {

    background:
        rgba(255, 255, 255, .06);

    color:
        var(--di-orange-soft);
}


/*
=====================================================
HEADER LOGO
=====================================================
*/

.header-logo {

    width: 125px;

    justify-self: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    line-height: 0;
}


.header-logo img {

    display: block;

    width: 100%;

    height: auto;

    max-height: 55px;

    object-fit: contain;
}


.header-site-title {

    color:
        var(--di-white);

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 22px;

    font-weight: 800;

    white-space: nowrap;
}


/*
=====================================================
CTA
=====================================================
*/

.header-menu .header-cta {

    padding:
        10px 16px;

    background:
        var(--di-orange);

    color:
        var(--di-navy);

    border-radius:
        100px;

    font-weight:
        700;
}


.header-menu .header-cta:hover {

    background:
        var(--di-orange-soft);

    color:
        var(--di-navy);
}


/*
=====================================================
MOBILE TOGGLE
=====================================================
*/

.mobile-toggle {

    display: none;

    position: absolute;

    right: 18px;

    top: 50%;

    width: 42px;

    height: 42px;

    padding: 0;

    transform:
        translateY(-50%);

    border: 0;

    background:
        transparent;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;
}


.mobile-toggle-line {

    display: block;

    width: 22px;

    height: 2px;

    background:
        var(--di-white);

    border-radius: 2px;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


.mobile-toggle.is-open
.mobile-toggle-line:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}


.mobile-toggle.is-open
.mobile-toggle-line:nth-child(2) {

    opacity: 0;
}


.mobile-toggle.is-open
.mobile-toggle-line:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/*
=====================================================
MOBILE OVERLAY
=====================================================
*/

.mobile-menu-overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(8, 15, 37, .60);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    z-index: 9997;
}


.mobile-menu-overlay.is-visible {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/*
=====================================================
MOBILE DRAWER
=====================================================
*/

.mobile-menu-panel {

    position: fixed;

    top: 0;

    right: 0;

    width:
        min(88vw, 390px);

    height: 100vh;

    background:
        rgba(8, 15, 37, .98);

    border-left:
        1px solid
        rgba(255, 255, 255, .10);

    transform:
        translateX(100%);

    visibility: hidden;

    transition:
        transform .4s
        cubic-bezier(.22, 1, .36, 1),
        visibility .4s ease;

    z-index: 9998;

    overflow-y: auto;
}


.mobile-menu-panel.is-open {

    transform:
        translateX(0);

    visibility: visible;
}


.mobile-menu-inner {

    min-height: 100%;

    padding:
        28px;
}


/*
=====================================================
MOBILE MENU HEADER
=====================================================
*/

.mobile-menu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom:
        30px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .10);

    color:
        var(--di-orange);

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.mobile-menu-close {

    width: 38px;

    height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--di-white);

    font-family: Arial, sans-serif;

    font-size: 30px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;
}


/*
=====================================================
MOBILE NAV
=====================================================
*/

.mobile-menu {

    margin: 28px 0 0;

    padding: 0;

    list-style: none;
}


.mobile-menu li {

    margin: 0;

    padding: 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .09);
}


.mobile-menu a {

    display: block;

    padding:
        17px 0;

    color:
        rgba(255, 255, 255, .82);

    text-decoration: none;

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 18px;

    font-weight: 500;

    line-height: 1.4;

    transition:
        color .2s ease,
        padding-left .2s ease;
}


.mobile-menu a:hover {

    color:
        var(--di-orange);

    padding-left:
        5px;
}


/*
=====================================================
MOBILE SUBMENU
=====================================================
*/

.mobile-menu .sub-menu {

    margin: 0;

    padding:
        0 0 8px 16px;

    list-style: none;

    border: 0;
}


.mobile-menu .sub-menu a {

    padding:
        10px 0;

    color:
        rgba(255, 255, 255, .58);

    font-size: 15px;
}


/*
=====================================================
BODY LOCK
=====================================================
*/

body.di-mobile-menu-open {

    overflow: hidden;
}


/*
=====================================================
LARGE TABLET
=====================================================
*/

@media (max-width: 1100px) {

    .site-header {

        padding:
            12px 22px;
    }


    .header-menu {

        gap: 15px;
    }


    .header-menu a {

        font-size: 12px;
    }


    .header-logo {

        width: 108px;
    }

}


/*
=====================================================
TABLET / MOBILE
=====================================================
*/

@media (max-width: 991px) {

    .site-header {

        padding:
            11px 18px;
    }


    .header-inner {

        display: flex;

        min-height: 50px;

        justify-content: center;
    }


    .header-nav {

        display: none;
    }


    .header-logo {

        width: 105px;

        margin: 0 auto;
    }


    .mobile-toggle {

        display: flex;
    }

}


/*
=====================================================
MOBILE
=====================================================
*/

@media (max-width: 767px) {

    .site-header {

        padding:
            10px 15px;
    }


    .header-inner {

        min-height: 48px;
    }


    .header-logo {

        width: 92px;
    }


    .mobile-toggle {

        right: 10px;
    }


    .mobile-menu-inner {

        padding:
            24px;
    }

}


/*
=====================================================
SMALL MOBILE
=====================================================
*/

@media (max-width: 480px) {

    .header-logo {

        width: 88px;
    }


    .mobile-menu-panel {

        width: 92vw;
    }


    .mobile-menu-inner {

        padding:
            22px;
    }


    .mobile-menu a {

        font-size: 17px;
    }

}


/*
=====================================================
REDUCED MOTION
=====================================================
*/

@media (prefers-reduced-motion: reduce) {

    .site-header *,
    .mobile-menu-panel,
    .mobile-menu-overlay {

        transition:
            none !important;
    }

}