/* =========================================================
   HEADER VARIABLES
========================================================= */

:root {
    --jk-blue: #0758d9;
    --jk-blue-dark: #0048bd;
    --jk-green: #7ed321;
    --jk-text: #202124;
    --jk-muted: #64748b;
    --jk-border: #e8edf3;
    --jk-white: #ffffff;
}


/* =========================================================
   GLOBAL BOX SIZING
========================================================= */

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


/* =========================================================
   FIXED HEADER
========================================================= */

.jk-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;

    background: var(--jk-white);

    font-family: Arial, Helvetica, sans-serif;

    transition:
        box-shadow .3s ease,
        background .3s ease;
}


/* =========================================================
   PAGE OFFSET
========================================================= */

body {
    padding-top: 82px;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.jk-header-main {
    width: 100%;
    height: 82px;

    background: var(--jk-white);

    border-bottom: 1px solid var(--jk-border);

    display: flex;
    align-items: center;

    transition:
        height .3s ease,
        box-shadow .3s ease;
}


/* =========================================================
   SCROLLED HEADER
========================================================= */

.jk-header.is-scrolled .jk-header-main {
    height: 70px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, .07);
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.jk-header-container {
    width: min(1200px, calc(100% - 48px));

    margin: 0 auto;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


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

.jk-header-logo {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none !important;
    line-height: 0;
}


.jk-logo-image {
    display: block;

    width: auto !important;
    height: 42px !important;

    max-width: 150px !important;

    object-fit: contain;

    transition:
        transform .3s ease,
        height .3s ease;
}


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

.jk-header-logo:hover .jk-logo-image {
    transform: translateY(-1px);
}


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

.jk-header.is-scrolled .jk-logo-image {
    height: 39px !important;
}


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

.jk-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    margin-left: auto;
}


.jk-header-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: var(--jk-text);

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 600;

    line-height: 1;

    padding: 8px 0;

    transition:
        color .25s ease;
}


/* =========================================================
   DESKTOP NAV UNDERLINE
========================================================= */

.jk-header-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--jk-blue);

    border-radius: 10px;

    transition:
        width .25s ease;
}


/* =========================================================
   NAV HOVER
========================================================= */

.jk-header-nav a:hover {
    color: var(--jk-blue);
}


.jk-header-nav a:hover::after {
    width: 100%;
}


/* =========================================================
   ACTIVE DESKTOP PAGE
========================================================= */

.jk-header-nav a.jk-active {
    color: var(--jk-blue);
    font-weight: 700;
}


.jk-header-nav a.jk-active::after {
    width: 100%;
}


/* =========================================================
   DONATE BUTTON
========================================================= */

.jk-header-donate {
    display: inline-flex;

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

    min-width: 120px;
    height: 44px;

    padding: 0 22px;

    border-radius: 7px;

    background: var(--jk-blue);

    color: var(--jk-white) !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    box-shadow:
        0 5px 14px rgba(7, 88, 217, .18);

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


.jk-header-donate:hover {
    background: var(--jk-blue-dark);

    color: var(--jk-white) !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(7, 88, 217, .25);
}


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

.jk-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--jk-border);

    border-radius: 7px;

    background: var(--jk-white);

    cursor: pointer;

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

    flex-direction: column;

    gap: 5px;

    transition:
        background .25s ease,
        border-color .25s ease;
}


.jk-menu-toggle:hover {
    background: #f7f9fc;
    border-color: #d9e1ec;
}


/* =========================================================
   HAMBURGER LINES
========================================================= */

.jk-menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--jk-text);

    border-radius: 10px;

    transition:
        transform .3s ease,
        opacity .3s ease;
}


/* =========================================================
   HAMBURGER ACTIVE
========================================================= */

.jk-header.menu-open .jk-menu-toggle span:nth-child(1),
.jk-menu-toggle.is-active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.jk-header.menu-open .jk-menu-toggle span:nth-child(2),
.jk-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}


.jk-header.menu-open .jk-menu-toggle span:nth-child(3),
.jk-menu-toggle.is-active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


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

.jk-mobile-nav {
    display: none;

    width: 100%;

    background: var(--jk-white);

    border-bottom: 1px solid var(--jk-border);

    padding: 10px 24px 22px;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, .10);

    max-height: calc(100vh - 72px);

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   MOBILE NAV LINKS
========================================================= */

.jk-mobile-nav a {
    display: flex;

    align-items: center;

    width: 100%;
    min-height: 48px;

    padding: 10px 4px;

    color: var(--jk-text);

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 600;

    border-bottom: 1px solid #f0f2f5;

    transition:
        color .2s ease,
        padding-left .2s ease,
        background .2s ease;
}


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

.jk-mobile-nav a:hover {
    color: var(--jk-blue);

    padding-left: 10px;

    background: #f8fbff;
}


/* =========================================================
   ACTIVE MOBILE PAGE
========================================================= */

.jk-mobile-nav a.jk-active {
    color: var(--jk-blue) !important;

    font-weight: 700;

    padding-left: 10px;

    background: #f5f9ff;

    border-left: 3px solid var(--jk-blue);
}


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

.jk-mobile-nav .jk-mobile-donate {
    display: flex;

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

    margin-top: 16px;

    min-height: 46px;

    border: 0;

    border-radius: 7px;

    background: var(--jk-blue);

    color: var(--jk-white) !important;

    padding: 0 20px;
}


.jk-mobile-nav .jk-mobile-donate:hover {
    background: var(--jk-blue-dark);

    color: var(--jk-white) !important;

    padding-left: 20px;

    transform: translateY(-1px);
}


/* =========================================================
   SHOW MOBILE MENU
========================================================= */

.jk-header.menu-open .jk-mobile-nav,
.jk-mobile-nav.is-open {
    display: block !important;
}

body.jk-nav-locked {
    overflow: hidden;
}


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

@media (max-width: 1050px) {

    .jk-header-container {
        width:
            min(1200px, calc(100% - 40px));

        gap: 20px;
    }


    .jk-header-nav {
        gap: 20px;
    }


    .jk-header-nav a {
        font-size: 14px;
    }


    .jk-header-donate {
        min-width: 110px;
        padding: 0 18px;
    }


    .jk-logo-image {
        height: 40px !important;
        max-width: 145px !important;
    }


    .jk-header.is-scrolled
    .jk-logo-image {
        height: 38px !important;
    }

}


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

@media (max-width: 800px) {

    body {
        padding-top: 72px;
    }


    .jk-header-main {
        height: 72px;
    }


    .jk-header.is-scrolled
    .jk-header-main {
        height: 66px;
    }


    .jk-header-container {
        width: calc(100% - 32px);
    }


    /* Hide desktop navigation */

    .jk-header-nav,
    .jk-header-donate {
        display: none;
    }


    /* Show hamburger */

    .jk-menu-toggle {
        display: flex;
    }


    /* Mobile logo */

    .jk-logo-image {
        height: 39px !important;
        max-width: 140px !important;
    }


    .jk-header.is-scrolled
    .jk-logo-image {
        height: 37px !important;
    }

}


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

@media (max-width: 480px) {

    body {
        padding-top: 68px;
    }


    .jk-header-main {
        height: 68px;
    }


    .jk-header.is-scrolled
    .jk-header-main {
        height: 62px;
    }


    .jk-header-container {
        width: calc(100% - 24px);
    }


    .jk-logo-image {
        height: 37px !important;
        max-width: 130px !important;
    }


    .jk-header.is-scrolled
    .jk-logo-image {
        height: 35px !important;
    }


    .jk-menu-toggle {
        width: 40px;
        height: 40px;
    }


    .jk-mobile-nav {
        padding-left: 18px;
        padding-right: 18px;
    }

}


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

@media (max-width: 360px) {

    body {
        padding-top: 64px;
    }


    .jk-logo-image {
        height: 35px !important;
        max-width: 120px !important;
    }


    .jk-header.is-scrolled
    .jk-logo-image {
        height: 33px !important;
    }


    .jk-header-container {
        width: calc(100% - 20px);
    }

}