/* =========================================================
   MAGISTVAPK.NET
   HEADER
   DESKTOP + STICKY + TABLET + MOBILE
========================================================= */

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER WRAPPER
========================================================= */

.site-header {
    position: sticky;
    top: 12px;
    z-index: 9999;

    width: 100%;
    max-width: 1220px;

    margin: 14px auto 0;
    padding: 0 20px;

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   ORANGE HEADER BAR
========================================================= */

.site-header__inner {
    width: 100%;
    min-height: 72px;

    padding: 10px 18px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 30px;

    background: #f4511e;

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(244, 81, 30, 0.20);

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}


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

.site-header__logo {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: #ffffff;

    text-decoration: none;

    white-space: nowrap;
}


/* Logo icon */

.site-header__logo-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;
    place-items: center;

    background: #ffffff;

    border-radius: 13px;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, .08);
}


.site-header__logo-icon i {
    color: #f4511e;

    font-size: 20px;

    margin-left: 2px;
}


/* Logo text */

.site-header__logo-text {
    color: #ffffff;

    font-family: "Sora", sans-serif;

    font-size: 20px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.5px;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.site-header__nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 38px;
}


.site-header__nav a {
    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 42px;

    color: #ffffff;

    font-size: 14px;

    line-height: 1;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        opacity .18s ease;
}


.site-header__nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 3px;

    transform: translateX(-50%);

    border-radius: 20px;

    background: #ffffff;

    transition:
        width .2s ease;
}


@media (hover: hover) {

    .site-header__nav a:hover::after {
        width: 70%;
    }

}


/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.site-header__download {
    min-height: 48px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 13px;

    background: #ffffff;

    color: #e94816;

    font-size: 14px;

    line-height: 1;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .08);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.site-header__download i {
    font-size: 15px;
}


@media (hover: hover) {

    .site-header__download:hover {
        transform: translateY(-2px);

        box-shadow:
            0 8px 20px rgba(0, 0, 0, .13);
    }

}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.site-header__menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    border-radius: 12px;

    background: rgba(176, 49, 10, .28);

    color: #ffffff;

    cursor: pointer;

    font-size: 20px;
}


/* =========================================================
   MOBILE DROPDOWN
   IMPORTANT: HIDDEN BY DEFAULT
========================================================= */

.site-header__mobile-menu {
    display: none;

    width: 100%;

    margin-top: 8px;

    padding: 9px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    box-shadow:
        0 18px 38px rgba(0, 0, 0, .13);
}


.site-header__mobile-menu.is-open {
    display: block;
}


/* Mobile nav */

.site-header__mobile-nav {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.site-header__mobile-nav > a:not(.site-header__mobile-download) {
    min-height: 48px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    border-radius: 10px;

    color: #191919;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

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


@media (hover: hover) {

    .site-header__mobile-nav > a:not(.site-header__mobile-download):hover {
        background: #fff1ec;

        color: #f4511e;
    }

}


/* Mobile download CTA */

.site-header__mobile-download {
    min-height: 48px;

    margin-top: 6px;

    padding: 0 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 11px;

    background: #f4511e;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;
}


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

@media (max-width: 900px) {

    .site-header {
        top: 9px;

        padding: 0 14px;

        margin-top: 10px;
    }


    .site-header__inner {
        min-height: 66px;

        grid-template-columns:
            auto
            1fr
            auto
            auto;

        gap: 12px;

        padding: 9px 12px;

        border-radius: 18px;
    }


    /* Hide desktop navigation */

    .site-header__nav {
        display: none;
    }


    /* Show hamburger */

    .site-header__menu-button {
        display: grid;

        place-items: center;
    }


    .site-header__logo-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        border-radius: 12px;
    }


    .site-header__logo-text {
        font-size: 18px;
    }


    .site-header__download {
        min-height: 44px;

        padding: 0 15px;

        font-size: 13px;
    }

}


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

@media (max-width: 650px) {

    .site-header {
        top: 7px;

        padding: 0 10px;

        margin-top: 8px;
    }


    .site-header__inner {
        min-height: 60px;

        grid-template-columns:
            minmax(0, 1fr)
            auto
            auto;

        gap: 8px;

        padding: 8px 9px;

        border-radius: 16px;
    }


    .site-header__logo {
        min-width: 0;

        gap: 8px;
    }


    .site-header__logo-icon {
        width: 40px;
        height: 40px;

        flex: 0 0 40px;

        border-radius: 10px;
    }


    .site-header__logo-icon i {
        font-size: 17px;
    }


    .site-header__logo-text {
        min-width: 0;

        overflow: hidden;

        text-overflow: ellipsis;

        font-size: 15px;

        letter-spacing: -0.35px;
    }


    .site-header__download {
        min-height: 40px;

        padding: 0 12px;

        gap: 7px;

        border-radius: 10px;

        font-size: 12px;
    }


    .site-header__download i {
        font-size: 13px;
    }


    .site-header__menu-button {
        width: 40px;
        height: 40px;

        border-radius: 10px;

        font-size: 18px;
    }


    .site-header__mobile-menu {
        margin-top: 6px;

        border-radius: 14px;
    }

}


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

@media (max-width: 430px) {

    .site-header {
        padding: 0 7px;
    }


    .site-header__inner {
        gap: 6px;

        padding: 7px;
    }


    .site-header__logo-icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .site-header__logo-text {
        font-size: 13px;
    }


    .site-header__download {
        min-height: 38px;

        padding: 0 9px;

        font-size: 11px;
    }


    .site-header__menu-button {
        width: 38px;
        height: 38px;
    }

}


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

@media (max-width: 360px) {

    .site-header__download span {
        display: none;
    }


    .site-header__download {
        width: 38px;

        padding: 0;
    }


    .site-header__download i {
        margin: 0;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 3px solid #111111;

    outline-offset: 3px;
}