/* ============================================================
   Modus Home Slider 2026 — Frontend Styles
   v1.0.2 — pixel-perfect from design specs
   Desktop spec: 1437×598px
   Mobile spec:  1080×1440px (breakpoint ≤1000px)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* ── Slider Container ── */
.mhs-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.15;
}

.mhs-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1437 / 598;
}

/* ── Slides ── */
.mhs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mhs-transition, 600ms) ease, visibility 0s linear var(--mhs-transition, 600ms);
    z-index: 1;
}

.mhs-slide--active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--mhs-transition, 600ms) ease, visibility 0s linear 0s;
    z-index: 2;
    position: relative;
}

/* ── Background Images ── */
.mhs-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.mhs-slide-bg--mobile {
    display: none;
}

/* ── Overlay ── */
.mhs-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ============================================================
   DESKTOP — Content (>1000px, default)
   Spec: 1437×598, text in right half
   Top: 144px, Right: 50px
   Title: Quicksand Bold 100px
   Gap: 50px
   Subtitle: Quicksand Bold 42px
   ============================================================ */
.mhs-slider .mhs-slide .mhs-slide-content {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 8vw 3.48% 0 0;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
}

.mhs-slider .mhs-slide-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 100px;
    line-height: 1.05;
    color: inherit;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.mhs-slide-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mhs-slide-title-link:hover,
.mhs-slide-title-link:focus {
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.mhs-slider .mhs-slide-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: inherit;
    margin: 40px 0 0 0;
    padding: 0;
    white-space: nowrap;
}

/* ── Tablet/small desktop: 1000–1280px ── */
@media (min-width: 1001px) and (max-width: 1280px) {
    .mhs-slider .mhs-slide-title {
        font-size: 80px;
    }

    .mhs-slider .mhs-slide-subtitle {
        font-size: 34px;
    }
}

/* ── 1360–1500px: fine-tune top padding ── */
@media (min-width: 1360px) and (max-width: 1500px) {
    .mhs-slider .mhs-slide .mhs-slide-content {
        padding-top: 7vw;
    }
}

/* ── Navigation Dots ── */
.mhs-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
    align-items: center;
}

.mhs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    position: relative;
    outline: none;
    flex-shrink: 0;
}

.mhs-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.mhs-dot--active {
    background: #ffffff;
}

/* Progress bar */
.mhs-dot-progress {
    position: absolute;
    height: 10px;
    border-radius: 9999px;
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: -1;
}

.mhs-dot-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 9999px;
    will-change: transform;
}

/* ============================================================
   MOBILE — ≤1000px
   Spec: 1080×1440px design
   Top: 127px (11.76vw), Left: 100px (9.26vw), Right: 100px (9.26vw)
   Title: Quicksand Bold 144px (13.33vw)
   Gap: 100px (9.26vw)
   Subtitle: Quicksand Bold 60px (5.56vw)
   Aspect ratio: 1080/1440 = 3:4
   ============================================================ */
@media (max-width: 1000px) {
    .mhs-slider-track {
        aspect-ratio: 3 / 4.5;
    }

    /* Switch to mobile background */
    .mhs-slide-bg:not(.mhs-slide-bg--mobile) {
        display: none;
    }

    .mhs-slide-bg--mobile {
        display: block;
    }

    .mhs-slider .mhs-slide .mhs-slide-content {
        left: 0;
        right: 0;
        padding: 11.76vw 9.26vw 0 9.26vw;
    }

    .mhs-slider .mhs-slide-title {
        font-size: 14vw;
        line-height: 1.0;
        white-space: normal;
    }

    .mhs-slider .mhs-slide-subtitle {
        font-size: 6vw;
        margin-top: 9.26vw;
        line-height: 1.25;
        white-space: normal;
    }

    .mhs-slider-dots {
        bottom: 20px;
        gap: 16px;
    }

    .mhs-dot {
        width: 8px;
        height: 8px;
    }

    .mhs-dot-progress {
        height: 8px;
    }
}
