/*
 * BTH Lighting — One Installation Scene Switcher
 * Responsive scene stage with stable tablet/mobile height.
 */

.bthlew-scene-switcher,
.bthlew-scene-switcher * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN STAGE
========================================================= */

.bthlew-scene-switcher {
    --bthlew-scene-ratio: 1280 / 570;
    --bthlew-scene-overlay: rgba(3, 5, 8, .2);
    --bthlew-tab-bg: rgba(8, 9, 11, .72);
    --bthlew-tab-active-bg: #fff;

    position: relative;
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;
    min-height: 0;

    overflow: hidden;

    border-radius: 28px;
    background: #050505;

    isolation: isolate;
}


/* =========================================================
   RESPONSIVE HEIGHT SPACER
========================================================= */

.bthlew-scene-switcher::before {
    content: "";
    display: block;
    width: 100%;

    /* 570 / 1280 */
    padding-top: 44.53125%;
}


/* =========================================================
   IMAGE LAYERS
========================================================= */

.bthlew-scene-images,
.bthlew-scene-set,
.bthlew-scene-overlay {
    position: absolute;
    inset: 0;
}


.bthlew-scene-images {
    z-index: 1;
    width: 100%;
    height: 100%;
}


.bthlew-scene-set {
    visibility: hidden;

    width: 100%;
    height: 100%;

    opacity: 0;

    pointer-events: none;
}


.bthlew-scene-set.is-active {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   SCENE IMAGE
========================================================= */

.bthlew-scene-image {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;
    visibility: hidden;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    opacity: 0;

    background: #050505;

    pointer-events: none;
}


.bthlew-scene-image.is-active {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   OVERLAY
========================================================= */

.bthlew-scene-overlay {
    z-index: 2;

    background:
        linear-gradient(
            180deg,
            var(--bthlew-scene-overlay),
            transparent 38%,
            rgba(3, 5, 8, .66)
        );

    pointer-events: none;
}


/* =========================================================
   SCENE COPY
========================================================= */

.bthlew-scene-copy-wrap {
    position: absolute;
    z-index: 3;

    right: 30px;
    bottom: 108px;
    left: 30px;

    pointer-events: none;
}


.bthlew-scene-copy {
    display: none;

    max-width: 540px;

    color: #fff;
}


.bthlew-scene-copy.is-active {
    display: block;
}


.bthlew-scene-copy span {
    display: block;

    margin-bottom: 9px;

    color: #f4eee8;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}


.bthlew-scene-copy h3 {
    margin: 0;

    color: #fff;

    font-size: clamp(32px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -.04em;
}


.bthlew-scene-copy p {
    margin: 12px 0 0;

    color: #f4eee8;

    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   TABS
========================================================= */

.bthlew-scene-tabs {
    position: absolute;
    z-index: 4;

    right: 22px;
    bottom: 22px;
    left: 22px;

    display: flex;

    gap: 8px;

    padding: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;

    background: var(--bthlew-tab-bg);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    scrollbar-width: thin;
}


/* =========================================================
   TAB BUTTONS
========================================================= */

.bthlew-scene-switcher .bthlew-scene-tab,
.bthlew-scene-switcher .bthlew-scene-tab:hover,
.bthlew-scene-switcher .bthlew-scene-tab:focus,
.bthlew-scene-switcher .bthlew-scene-tab:active {
    flex: 1 0 auto;

    min-width: 110px;

    margin: 0 !important;

    padding: 12px 16px !important;

    color: #fff;

    font-size: 13px;
    font-weight: 750;
    line-height: 1;

    white-space: nowrap;

    border: 0 !important;
    border-radius: 12px !important;

    background: transparent !important;

    box-shadow: none;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    transition:
        color .22s ease,
        background-color .22s ease,
        transform .22s ease;
}


.bthlew-scene-tab i {
    display: inline-block;

    width: 8px;
    height: 8px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--bthlew-scene-accent);

    box-shadow: 0 0 10px var(--bthlew-scene-accent);
}


.bthlew-scene-switcher .bthlew-scene-tab:hover {
    transform: translateY(-1px);
}


.bthlew-scene-switcher .bthlew-scene-tab.is-active,
.bthlew-scene-switcher .bthlew-scene-tab.is-active:hover,
.bthlew-scene-switcher .bthlew-scene-tab.is-active:focus,
.bthlew-scene-switcher .bthlew-scene-tab.is-active:active {
    color: #16110e;

    background: var(--bthlew-tab-active-bg) !important;
}


.bthlew-scene-switcher .bthlew-scene-tab:focus-visible {
    outline: 2px solid var(--bthlew-scene-accent);
    outline-offset: -2px;
}


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

@media (max-width: 1024px) {

    .bthlew-scene-switcher {
        min-height: 420px !important;
        border-radius: 22px;
    }


    /*
     * Spacer ko tablet par disable kar dete hain,
     * kyun ke min-height stage ko stable rakhegi.
     */
    .bthlew-scene-switcher::before {
        padding-top: 0;
    }


    .bthlew-scene-images,
    .bthlew-scene-set,
    .bthlew-scene-overlay {
        width: 100%;
        height: 100% !important;
    }


    .bthlew-scene-image {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    .bthlew-scene-copy-wrap {
        right: 22px;
        bottom: 92px;
        left: 22px;
    }


    .bthlew-scene-copy {
        max-width: 72%;
    }


    .bthlew-scene-copy span {
        margin-bottom: 6px;

        font-size: 10px;
        letter-spacing: .13em;
    }


    .bthlew-scene-copy h3 {
        font-size: 34px;
        line-height: 1;
    }


    .bthlew-scene-copy p {
        margin-top: 8px;

        font-size: 14px;
        line-height: 1.35;
    }


    .bthlew-scene-tabs {
        right: 14px;
        bottom: 14px;
        left: 14px;

        gap: 6px;

        padding: 7px;
    }


    .bthlew-scene-switcher .bthlew-scene-tab {
        min-width: 100px;

        padding: 10px 12px !important;

        font-size: 12px;
    }
}


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

@media (max-width: 700px) {

    .bthlew-scene-switcher {
        min-height: 360px !important;
        border-radius: 18px;
    }


    .bthlew-scene-switcher::before {
        padding-top: 0;
    }


    .bthlew-scene-images,
    .bthlew-scene-set,
    .bthlew-scene-overlay {
        height: 100% !important;
    }


    .bthlew-scene-image {
        height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    .bthlew-scene-copy-wrap {
        right: 14px;
        bottom: 80px;
        left: 14px;
    }


    .bthlew-scene-copy {
        max-width: 72%;
    }


    .bthlew-scene-copy span {
        margin-bottom: 4px;

        font-size: 8px;
        letter-spacing: .11em;
    }


    .bthlew-scene-copy h3 {
        font-size: 26px;
        line-height: 1;
    }


    .bthlew-scene-copy p {
        margin-top: 6px;

        font-size: 12px;
        line-height: 1.3;
    }


    .bthlew-scene-tabs {
        right: 8px;
        bottom: 8px;
        left: 8px;

        gap: 5px;

        padding: 6px;

        border-radius: 14px;
    }


    .bthlew-scene-switcher .bthlew-scene-tab {
        min-width: 88px;

        padding: 9px 10px !important;

        font-size: 11px;
    }


    .bthlew-scene-tab i {
        width: 6px;
        height: 6px;

        margin-right: 5px;
    }
}


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

@media (max-width: 480px) {

    .bthlew-scene-switcher {
        min-height: 330px !important;
    }


    .bthlew-scene-copy-wrap {
        right: 12px;
        bottom: 74px;
        left: 12px;
    }


    .bthlew-scene-copy {
        max-width: 70%;
    }


    .bthlew-scene-copy h3 {
        font-size: 23px;
    }


    .bthlew-scene-copy p {
        margin-top: 5px;

        font-size: 11px;
        line-height: 1.25;
    }


    .bthlew-scene-tabs {
        right: 7px;
        bottom: 7px;
        left: 7px;

        padding: 5px;
    }


    .bthlew-scene-switcher .bthlew-scene-tab {
        min-width: 82px;

        padding: 8px 9px !important;

        font-size: 10px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bthlew-scene-image,
    .bthlew-scene-tab {
        transition: none !important;
    }
}