/* ============================================
   KASHKICK HOW IT WORKS
   Single responsive section
   Uses .kk-hiw HTML, but matches old mobile + desktop behavior
   ============================================ */

.kk-hiw {
    position: relative;
    width: 100%;
    background: #5F1C8C;
    color: #ffffff;
    overflow: visible;
}

.kk-hiw *,
.kk-hiw *::before,
.kk-hiw *::after {
    box-sizing: border-box;
}

.kk-hiw .lottie-placeholder {
    display: block;
    background: transparent;
}

/* ============================================
   SHARED STRUCTURE
   ============================================ */

.kk-hiw__layout {
    position: relative;
    width: 100%;
}

.kk-hiw__visual-wrap {
    position: relative;
    z-index: 10;
}

.kk-hiw__visual {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.kk-hiw__panning-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.kk-hiw__panning-bg {
    width: 400%;
    height: 100%;
    background-image: url("https://kashkick.com/wp-content/uploads/2025/10/CLIFF-LAYERED-MULTIPLANE-BG-scaled.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}

.kk-hiw__ninja-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
    transform: translateZ(1px);
    -webkit-transform: translateZ(1px);
}

.kk-hiw__ninja {
    position: absolute;
    transition: left 0.8s ease-in-out, margin-left 0.8s ease-in-out;
    will-change: transform, left, margin-left;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}

.kk-hiw__ninja lottie-player,
.kk-hiw__ninja .lottie-placeholder {
    display: block;
}

/* ============================================
   SHARED STEP TEXT
   ============================================ */

.kk-hiw__step-text {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.kk-hiw__step-text h2 {
    color: #ffffff;
    margin: 0 0 0.25rem;
    line-height: 120%;
    padding: 0;
    text-align: left;
}

.kk-hiw__step-text p {
    color: #ffffff;
    line-height: 150%;
    margin: 0;
    padding: 0;
}

/* ============================================
   DESKTOP
   Matches old .kashkick-animation-section-desk
   ============================================ */

@media only screen and (min-width: 1024px) {
    .kk-hiw {
        padding: 0;
    }

    .kk-hiw__layout {
        display: flex;
        align-items: flex-start;
        width: 100%;
    }

    .kk-hiw__visual-wrap {
        position: sticky;
        top: 280px;
        left: 0;
        width: 50%;
        height: 60vh;
        overflow: visible;
        z-index: 50;
    }

    .kk-hiw__visual {
        width: 100%;
        height: 60vh;
        border-radius: 1rem;
        overflow: hidden;
    }

    .kk-hiw__mobile-header {
        display: none;
    }

    .kk-hiw__panning-wrapper {
        width: 100%;
        height: 60vh;
        overflow: hidden;
        border-radius: 1rem;
    }

    .kk-hiw__mobile-gradient {
        display: none;
    }

    .kk-hiw__steps {
        position: relative;
        width: 50%;
        z-index: 80;
    }

    .kk-hiw__desktop-step-gradient {
        position: sticky;
        top: 0;
        z-index: 10000;
        height: 90vh;
        pointer-events: none;
    }

    .kk-hiw__desktop-step-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(
            #5F1C8C 280px,
            transparent 325px
        );
        opacity: 1;
    }

    .kk-hiw__step {
        height: 60vh;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        margin: 0;
        padding-left: 1rem;
        position: relative;
        z-index: 120;
    }

    .kk-hiw__step--last {
        height: 50vh;
        margin-bottom: 10rem;
    }

    .kk-hiw__number {
        min-width: 100px;
        width: 100px;
        height: 100px;
        background: #91F2B2;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4rem;
        font-weight: bold;
        color: #5F1C8C;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 76;
    }

    .kk-hiw__step-text h2 {
        font-size: 2rem;
    }

    .kk-hiw__step-text p {
        font-size: 1rem;
    }

    .kk-hiw__snap-buffer {
        height: 10vh;
    }

    .kk-hiw__ninja--one {
        width: 250px;
        height: 250px;
        top: 25%;
        left: 50%;
        margin-left: -125px;
    }

    .kk-hiw__ninja--two {
        width: 450px;
        height: 450px;
        top: 18%;
        left: 100vw;
        margin-left: 0;
    }

    .kk-hiw__ninja--three {
        width: 300px;
        height: 300px;
        bottom: 20vh;
        left: 100vw;
        margin-left: 0;
    }

    .kk-hiw__ninja--one.slide-left {
        left: -100vw;
    }

    .kk-hiw__ninja--two.slide-center {
        left: 50%;
        margin-left: -150px;
    }

    .kk-hiw__ninja--two.slide-left {
        left: -100vw;
    }

    .kk-hiw__ninja--three.slide-center {
        left: 50%;
        margin-left: -150px;
    }
}

/* ============================================
   MOBILE / TABLET
   Matches old .kashkick-animation-section
   ============================================ */

@media only screen and (max-width: 1023px) {
    .kk-hiw__layout {
		display: flex;
        flex-direction: column;
        gap: 80px;
        height: 100%;
    }

    .kk-hiw__visual-wrap {
        width: 100%;
        height: 55vh;
        overflow: hidden;
        position: sticky;
        top: 0;
        left: 0;
        z-index: 100;
    }

    .kk-hiw__visual {
        width: 100%;
        height: 55vh;
        overflow: hidden;
        border-radius: 0;
		z-index: 20;
    }

    .kk-hiw__mobile-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        color: #ffffff;
        background: #5F1C8C;
        text-align: center;
        padding: 1rem;
        font-size: 2rem;
        font-weight: bold;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .kk-hiw__panning-wrapper {
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 0;
    }

    .kk-hiw__mobile-gradient {
        position: absolute;
        inset: 0;
        z-index: 20;
        pointer-events: none;
		display: none;
    }

    .kk-hiw__mobile-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(
            #5F1C8C 0%,
            transparent 10%,
            transparent 70%,
            #5F1C8C 80%,
            #5F1C8C 100%
        );
        opacity: 1;
    }

    .kk-hiw__desktop-step-gradient {
        display: none;
    }

    .kk-hiw__steps {
        position: relative;
        z-index: 40;
    }

    .kk-hiw__step {
        height: 50vh;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin: 0;
        gap: 1rem;
        padding: 0 1rem;
        position: relative;
        z-index: 50;
    }

    .kk-hiw__step--last {
        height: 30vh;
        margin-bottom: 0;
    }

    .kk-hiw__number {
        min-width: 50px;
        width: 50px;
        height: 50px;
        background: #91F2B2;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        font-weight: bold;
        color: #5F1C8C;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .kk-hiw__step-text h2 {
        font-size: 1.5rem;
    }

    .kk-hiw__step-text p {
        font-size: 1rem;
    }

    .kk-hiw__snap-buffer {
        height: 10vh;
    }

    .kk-hiw__ninja--one {
        width: 250px;
        height: 250px;
        top: 50%;
        left: 50%;
        margin-top: -100px;
        margin-left: -125px;
    }

    .kk-hiw__ninja--two {
        width: 450px;
        height: 450px;
        top: 50%;
        left: 100vw;
        margin-top: -125px;
        margin-left: 0;
    }

    .kk-hiw__ninja--three {
        width: 300px;
        height: 300px;
        top: 50%;
        left: 100vw;
        margin-top: -125px;
        margin-left: 0;
    }

    .kk-hiw__ninja--one.slide-left {
        left: -100vw;
    }

    .kk-hiw__ninja--two.slide-center {
        left: 50%;
        margin-left: -150px;
    }

    .kk-hiw__ninja--two.slide-left {
        left: -100vw;
    }

    .kk-hiw__ninja--three.slide-center {
        left: 50%;
        margin-left: -150px;
    }
}

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

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .kk-hiw__step-text h2 {
        font-size: 2.5rem;
    }

    .kk-hiw__step-text p {
        font-size: 1.25rem;
    }
}
