/* =====================================================
   Perrfect Custom Slider
   ===================================================== */

/* --- Container ---------------------------------------- */
.ls-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 645px;
    overflow: hidden;
}

/* Override Swiper's overflow on desktop to allow peek */
@media (min-width: 1025px) {
    .ls-slider.swiper {
        overflow: visible;
    }
}

/* Stretch wrapper to fill container height */
.ls-slider .swiper-wrapper {
    height: 100%;
    align-items: stretch;
}

/* --- Panel (slide) ------------------------------------ */
.ls-panel {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}

/* vw-based widths so % is relative to viewport, not Swiper wrapper */
.ls-panel {
    width: 50vw;
}

@media (min-width: 768px) {
    .ls-panel {
        width: 33.333vw;
    }
}

@media (min-width: 1025px) {
    .ls-panel {
        width: 25vw;
        z-index: 1;
        transition: width 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
    }

    .ls-panel:hover {
        width: 40vw;
        transform: scaleY(1.08);
        z-index: 2;
        box-shadow: 0 0 20px 6px rgba(55, 74, 94, 0.45);
    }

}

/* --- Gradient overlay --------------------------------- */
.ls-panel__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: background-color 0.4s ease;
}

@media (min-width: 1025px) {
    .ls-panel:hover .ls-panel__overlay {
        background-color: rgba(0,0,0, 0.35);
    }
}

/* --- Text content ------------------------------------- */
.ls-panel__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    width: 90%;
    pointer-events: none;
}

/* Mobile: title at 70%, shifts up on tap to reveal desc + button */
@media (max-width: 1024px) {
    .ls-panel__content {
        top: 70%;
        bottom: auto;
        transform: translateX(-50%);
        transition: transform 0.35s ease;
    }

    .ls-panel__subtitle,
    .ls-panel__btn {
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .ls-panel.is-active .ls-panel__content {
        transform: translate(-50%, -65px);
    }

    .ls-panel.is-active .ls-panel__subtitle,
    .ls-panel.is-active .ls-panel__btn {
        opacity: 1;
    }
}


/* --- Title -------------------------------------------- */
.ls-panel__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

@media (min-width: 1025px) {
    .ls-panel__title {
        transition: font-size 0.35s ease;
    }

    .ls-panel:hover .ls-panel__title {
        font-size: 48px;
    }
}

/* --- Subtitle ----------------------------------------- */
.ls-panel__subtitle {
    margin: 6px 0 0;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.05em;
}

/* Desktop: hidden until active */
@media (min-width: 1025px) {
    .ls-panel__subtitle {
        opacity: 0;
        transition: opacity 0.35s ease 0.1s;
    }

    .ls-panel:hover .ls-panel__subtitle {
        opacity: 1;
    }
}

/* --- Navigation arrows -------------------------------- */
.ls-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.30);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.25s ease;
}

.ls-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.ls-arrow--prev {
    left: 12px;
}

.ls-arrow--next {
    right: 12px;
}

.ls-arrow svg {
    width: 35px;
    height: 35px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- CTA button --------------------------------------- */
.ls-panel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 11px;
    width: 55px;
    height: 50px;
    border-radius: 50%;
    background: #FF5F19;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    pointer-events: auto;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* Desktop: hidden until active — same timing as subtitle */
@media (min-width: 1025px) {
    .ls-panel__btn {
        opacity: 0;
        transition: opacity 0.35s ease 0.1s;
    }

    .ls-panel:hover .ls-panel__btn {
        opacity: 1;
    }
}
