/* =========================================================
   JUST FIZJO
   Header
   ========================================================= */


/* HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: 100px;

    background: #ffffff;
}

.site-header-container {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;

    height: 100%;
}


/* LOGO
   ========================================================= */

.site-header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    color: var(--jf-blue);
    text-decoration: none;
}

.site-header-logo img {
    display: block;

    width: 54px;
    height: 54px;

    object-fit: contain;
}

.site-header-logo-text {
    display: flex;
    flex-direction: column;

    color: var(--jf-blue);

    font-size: 17px;
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.035em;
}

.site-header-logo-text span {
    display: block;
}


/* NAVIGATION
   ========================================================= */

.site-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
}

.site-header-nav-top,
.site-header-mobile-contact {
    display: none;
}

.site-header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-header-menu li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-header-menu a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 48px;

    color: var(--jf-text);
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;

    transition: color var(--jf-transition);
}

.site-header-menu a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    background: var(--jf-blue);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--jf-transition);
}

.site-header-menu a:hover {
    color: var(--jf-blue);
}

.site-header-menu a:hover::after {
    transform: scaleX(1);
}

.site-header-menu .current-menu-item > a,
.site-header-menu .current_page_item > a {
    color: var(--jf-blue);
}

.site-header-menu .current-menu-item > a::after,
.site-header-menu .current_page_item > a::after {
    transform: scaleX(1);
}


/* ACTIONS
   ========================================================= */

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-header-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 0 21px;

    border-radius: 6px;

    background: var(--jf-blue);
    color: var(--jf-white);

    box-shadow: 0 10px 28px rgba(7, 89, 217, 0.16);

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;

    transition:
        background-color var(--jf-transition),
        box-shadow var(--jf-transition),
        transform var(--jf-transition);
}

.site-header-book:hover {
    background: var(--jf-blue-hover);

    box-shadow: 0 14px 32px rgba(7, 89, 217, 0.23);

    transform: translateY(-2px);
}


/* HAMBURGER
   ========================================================= */

.site-header-toggle {
    display: none;

    position: relative;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.site-header-toggle span {
    position: absolute;
    left: 10px;

    display: block;

    width: 26px;
    height: 2px;

    border-radius: 2px;

    background: var(--jf-navy);

    pointer-events: none;
}

.site-header-toggle span:nth-child(1) {
    top: 14px;
}

.site-header-toggle span:nth-child(2) {
    top: 22px;
}

.site-header-toggle span:nth-child(3) {
    top: 30px;
}


/* OVERLAY
   ========================================================= */

.site-header-overlay {
    position: fixed;
    z-index: 900;

    inset: 0;

    visibility: hidden;
    opacity: 0;

    background: rgba(3, 21, 47, 0.55);

    pointer-events: none;

    transition:
        visibility var(--jf-transition),
        opacity var(--jf-transition);
}

.site-header-overlay.is-visible {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* TABLET DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

    .site-header-container {
        grid-template-columns: 190px 1fr 190px;
    }

    .site-header-menu {
        gap: 30px;
    }

    .site-header-logo img {
        width: 48px;
        height: 48px;
    }

    .site-header-logo-text {
        font-size: 15px;
    }
}


/* MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .site-header {
        position: relative;
        z-index: 1000;

        height: 76px;

        border-bottom: 1px solid var(--jf-border);

        background: #ffffff;
    }

    .site-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;

        height: 100%;
    }


    /* LOGO
       ===================================================== */

    .site-header-logo {
        position: relative;
        z-index: 1001;

        gap: 8px;
    }

    .site-header-logo img {
        width: 42px;
        height: 42px;
    }

    .site-header-logo-text {
        font-size: 14px;
    }


    /* ACTIONS
       ===================================================== */

    .site-header-actions {
        position: relative;
        z-index: 1001;

        display: flex;
        align-items: center;
    }

    .site-header-book {
        display: none;
    }


    /* HAMBURGER
       ===================================================== */

    .site-header-toggle {
        display: block;

        width: 44px;
        height: 44px;
    }

    .site-header-toggle span {
        left: 9px;

        width: 26px;
    }

    .site-header-toggle span:nth-child(1) {
        top: 13px;
    }

    .site-header-toggle span:nth-child(2) {
        top: 21px;
    }

    .site-header-toggle span:nth-child(3) {
        top: 29px;
    }


    /* SIDEBAR
       ===================================================== */

    .site-header-nav {
        position: fixed;
        z-index: 2000;

        top: 0;
        right: 0;
        bottom: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        width: min(88vw, 380px);
        height: 100dvh;

        padding: 0;

        overflow: hidden;

        background: #ffffff;

        box-shadow: -20px 0 60px rgba(3, 21, 47, 0.18);

        visibility: hidden;
        opacity: 0;

        transform: translateX(100%);

        transition:
            transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 250ms ease,
            visibility 350ms;
    }

    .site-header-nav.is-open {
        visibility: visible;
        opacity: 1;

        transform: translateX(0);
    }


    /* SIDEBAR TOP
       ===================================================== */

    .site-header-nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;

        flex: 0 0 auto;

        height: 76px;
        padding: 0 24px;

        border-bottom: 1px solid var(--jf-border);

        background: #ffffff;
    }

    .site-header-nav-label {
        color: var(--jf-text-muted);

        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }


    /* CLOSE
       ===================================================== */

    .site-header-close {
        position: relative;

        display: block;

        width: 42px;
        height: 42px;

        padding: 0;

        border: 0;
        border-radius: 50%;

        background: var(--jf-surface);

        cursor: pointer;
    }

    .site-header-close span {
        position: absolute;

        top: 20px;
        left: 11px;

        display: block;

        width: 20px;
        height: 2px;

        background: var(--jf-navy);

        pointer-events: none;
    }

    .site-header-close span:nth-child(1) {
        transform: rotate(45deg);
    }

    .site-header-close span:nth-child(2) {
        transform: rotate(-45deg);
    }


    /* MOBILE MENU
       ===================================================== */

    .site-header-menu {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        min-height: 0;

        margin: 0;
        padding: 20px 24px;

        overflow-y: auto;

        background: #ffffff;

        list-style: none;
    }

    .site-header-menu li {
        width: 100%;

        border-bottom: 1px solid var(--jf-border);

        list-style: none;
    }

    .site-header-menu a {
        display: flex;
        align-items: center;

        width: 100%;
        min-height: 64px;

        color: var(--jf-text);

        font-size: 17px;
        font-weight: 600;
        line-height: 1.3;
        text-transform: none;
    }

    .site-header-menu a::after {
        display: none;
    }

    .site-header-menu .current-menu-item > a,
    .site-header-menu .current_page_item > a {
        color: var(--jf-blue);
    }


    /* MOBILE CONTACT
       ===================================================== */

    .site-header-mobile-contact {
        display: block;
        flex: 0 0 auto;

        padding: 20px 24px 24px;

        border-top: 1px solid var(--jf-border);

        background: #ffffff;
    }

    .site-header-phone {
        display: flex;
        align-items: center;
        gap: 13px;

        margin-bottom: 16px;

        text-decoration: none;
    }

    .site-header-phone-icon {
        display: flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 42px;

        width: 42px;
        height: 42px;

        border-radius: 50%;

        background: var(--jf-blue-light);
        color: var(--jf-blue);
    }

    .site-header-phone-content {
        display: flex;
        flex-direction: column;
    }

    .site-header-phone-content small {
        margin-bottom: 2px;

        color: var(--jf-text-muted);

        font-size: 10px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .site-header-phone-content strong {
        color: var(--jf-text);

        font-size: 17px;
        font-weight: 700;
        line-height: 1.3;
    }


    /* MOBILE BOOK BUTTON
       ===================================================== */

    .site-header-mobile-book {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        width: 100%;
        height: 52px;

        border-radius: 6px;

        background: var(--jf-blue);
        color: var(--jf-white);

        box-shadow: 0 10px 28px rgba(7, 89, 217, 0.20);

        text-decoration: none;

        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
    }
}


/* SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .site-header-container {
        width: calc(100% - 40px);
    }

    .site-header-logo img {
        width: 38px;
        height: 38px;
    }

    .site-header-logo-text {
        font-size: 13px;
    }

    .site-header-nav {
        width: 88vw;
        max-width: 350px;
    }

    .site-header-nav-top {
        padding-inline: 22px;
    }

    .site-header-menu {
        padding-inline: 22px;
    }

    .site-header-mobile-contact {
        padding: 18px 22px 22px;
    }
}