/* =========================================================
   TEMANKAIN MOBILE MENU
   VERSION 1.0.0
   ========================================================= */


/* =========================================================
   DEFAULT
   ========================================================= */

#tkMobileButton,
#tkMobilePanel,
#tkMobileOverlay {
    display: none;
}


/* =========================================================
   MOBILE ONLY
   ========================================================= */

@media screen and (max-width: 850px) {


    /* =====================================================
       HAMBURGER BUTTON
       ===================================================== */

    #tkMobileButton {

        display: flex;

        position: fixed;

        top: 18px;
        right: 18px;

        width: 44px;
        height: 44px;

        padding: 0;

        border: 0;

        border-radius: 4px;

        background: rgba(255,255,255,.96);

        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 5px;

        cursor: pointer;

        z-index: 999999;

        box-shadow:
            0 6px 25px rgba(0,0,0,.12);

        -webkit-tap-highlight-color: transparent;

    }


    #tkMobileButton span {

        display: block;

        width: 21px;
        height: 2px;

        background: #17233b;

        border-radius: 10px;

        transition:
            transform .3s ease,
            opacity .25s ease;

    }


    /* =====================================================
       HAMBURGER → X
       ===================================================== */

    #tkMobileButton.active span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);

    }


    #tkMobileButton.active span:nth-child(2) {

        opacity: 0;

    }


    #tkMobileButton.active span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);

    }


    /* =====================================================
       OVERLAY
       ===================================================== */

    #tkMobileOverlay {

        display: block;

        position: fixed;

        inset: 0;

        background: rgba(10,18,30,.45);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity .3s ease,
            visibility .3s ease;

        z-index: 999990;

        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);

    }


    #tkMobileOverlay.active {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

    }


    /* =====================================================
       MOBILE PANEL
       ===================================================== */

    #tkMobilePanel {

        display: flex;

        position: fixed;

        top: 0;
        right: 0;
        bottom: 0;

        width: min(88vw, 390px);

        background: #ffffff;

        flex-direction: column;

        transform: translateX(105%);

        transition:
            transform .38s cubic-bezier(.22,1,.36,1);

        z-index: 999995;

        box-shadow:
            -20px 0 60px rgba(0,0,0,.16);

        overflow: hidden;

        visibility: hidden;

    }


    #tkMobilePanel.active {

        transform: translateX(0);

        visibility: visible;

    }


    /* =====================================================
       MOBILE HEADER
       ===================================================== */

    .tk-mobile-header {

        height: 82px;

        padding:
            0 20px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        border-bottom:
            1px solid #eeeeee;

        flex-shrink: 0;

    }


    .tk-mobile-logo {

        display: flex;

        align-items: center;

        text-decoration: none;

    }


    .tk-mobile-logo img {

        width: 132px;

        height: auto;

        max-height: 55px;

        object-fit: contain;

        display: block;

    }


    /* =====================================================
       CLOSE BUTTON
       ===================================================== */

    .tk-mobile-close {

        width: 42px;
        height: 42px;

        padding: 0;

        border: 0;

        background: #f6f7f8;

        border-radius: 50%;

        position: relative;

        cursor: pointer;

        flex-shrink: 0;

    }


    .tk-mobile-close span {

        position: absolute;

        left: 11px;
        top: 20px;

        width: 20px;
        height: 2px;

        background: #17233b;

        border-radius: 5px;

    }


    .tk-mobile-close span:first-child {

        transform: rotate(45deg);

    }


    .tk-mobile-close span:last-child {

        transform: rotate(-45deg);

    }


    /* =====================================================
       NAVIGATION
       ===================================================== */

    .tk-mobile-navigation {

        flex: 1;

        overflow-y: auto;

        overflow-x: hidden;

        padding:
            10px 20px 25px;

        -webkit-overflow-scrolling: touch;

    }


    .tk-mobile-navigation a {

        text-decoration: none;

    }


    /* =====================================================
       NORMAL LINK
       ===================================================== */

    .tk-mobile-link {

        display: flex;

        min-height: 54px;

        align-items: center;

        border-bottom:
            1px solid #eeeeee;

        color: #17233b;

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 12px;

        font-weight: 700;

        letter-spacing: .7px;

        transition:
            color .2s ease,
            padding-left .2s ease;

    }


    .tk-mobile-link:hover {

        color: #a9874f;

        padding-left: 5px;

    }


    /* =====================================================
       DROPDOWN
       ===================================================== */

    .tk-mobile-dropdown {

        border-bottom:
            1px solid #eeeeee;

    }


    .tk-mobile-dropdown-toggle {

        width: 100%;

        min-height: 54px;

        padding: 0;

        border: 0;

        background: transparent;

        display: flex;

        align-items: center;

        justify-content: space-between;

        color: #17233b;

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 12px;

        font-weight: 700;

        letter-spacing: .7px;

        text-align: left;

        cursor: pointer;

    }


    .tk-mobile-arrow {

        width: 28px;
        height: 28px;

        display: flex;

        align-items: center;

        justify-content: center;

        border-radius: 50%;

        background: #f4f5f6;

        color: #17233b;

        font-size: 18px;

        font-weight: 400;

        transition:
            transform .3s ease,
            background .3s ease;

    }


    /* =====================================================
       DROPDOWN CONTENT
       ===================================================== */

    .tk-mobile-dropdown-content {

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        transition:
            max-height .35s ease,
            opacity .25s ease;

        padding-left: 12px;

    }


    .tk-mobile-dropdown.open
    .tk-mobile-dropdown-content {

        max-height: 400px;

        opacity: 1;

    }


    .tk-mobile-dropdown.open
    .tk-mobile-arrow {

        transform: rotate(45deg);

        background: #17233b;

        color: #ffffff;

    }


    .tk-mobile-dropdown-content a {

        display: flex;

        align-items: center;

        min-height: 46px;

        padding: 0 10px;

        border-left:
            1px solid #dddddd;

        color: #626870;

        font-size: 11px;

        line-height: 1.5;

        transition:
            color .2s ease,
            padding-left .2s ease;

    }


    .tk-mobile-dropdown-content a:hover {

        color: #a9874f;

        padding-left: 15px;

    }


    /* =====================================================
       DIVIDER
       ===================================================== */

    .tk-mobile-divider {

        height: 25px;

    }


    /* =====================================================
       B2B BUTTON
       ===================================================== */

    .tk-mobile-cta {

        display: flex;

        min-height: 52px;

        padding: 0 18px;

        align-items: center;

        justify-content: space-between;

        background: #17233b;

        color: #ffffff !important;

        border-radius: 3px;

        font-size: 11px;

        font-weight: 700;

        letter-spacing: 1px;

        transition:
            background .25s ease;

    }


    .tk-mobile-cta span {

        font-size: 18px;

        transition:
            transform .25s ease;

    }


    .tk-mobile-cta:hover {

        background: #a9874f;

    }


    .tk-mobile-cta:hover span {

        transform: translateX(4px);

    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .tk-mobile-footer {

        padding:
            15px 20px 18px;

        border-top:
            1px solid #eeeeee;

        color: #888888;

        font-size: 9px;

        line-height: 1.8;

        flex-shrink: 0;

    }


}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media screen and (max-width: 480px) {

    #tkMobilePanel {

        width: 92vw;

    }


    .tk-mobile-header {

        height: 74px;

    }


    .tk-mobile-logo img {

        width: 120px;

    }


    .tk-mobile-navigation {

        padding-left: 18px;
        padding-right: 18px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #tkMobilePanel,
    #tkMobileOverlay,
    #tkMobileButton span,
    .tk-mobile-dropdown-content,
    .tk-mobile-arrow {

        transition: none !important;

    }

}