/* ==========================================================================
   Flexiroof Slider
   ========================================================================== */

.cees-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.cees-slider--fullscreen {
    height: 100vh;
}

/* Slides
   ========================================================================== */

.cees-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s 1.2s;
}

.cees-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease, visibility 0s 0s;
    z-index: 2;
}

/* Background with Ken Burns
   ========================================================================== */

.cees-slider__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(1);
}

.cees-slider__slide.is-active .cees-slider__bg {
    animation: ceesKenBurns var(--cees-duration, 6000ms) ease-out forwards;
}

@keyframes ceesKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(var(--cees-zoom, 1.1)); }
}

/* Dark overlay
   ========================================================================== */

.cees-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Text content
   ========================================================================== */

.cees-slider__content {
    position: absolute;
    z-index: 3;
    left: 77px;
    bottom: 170px;
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cees-slider__slide.is-active .cees-slider__content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s,
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
}

.cees-slider__heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(34px, 5vw, 65px);
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    white-space: normal;
    margin: 0;
    padding: 0;
}

/* Navigation bullets
   ========================================================================== */

.cees-slider__nav {
    position: absolute;
    z-index: 10;
    left: 77px;
    bottom: 73px;
    display: flex;
    gap: 20px;
}

.cees-slider__bullet {
    width: 8px;
    height: 8px;
    border-radius: 0;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cees-slider__bullet:hover {
    background: rgba(255, 255, 255, 0.7);
}

.cees-slider__bullet.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Progress bar
   ========================================================================== */

.cees-slider__progress {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.cees-slider__progress-bar {
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.5);
    will-change: width;
}

.cees-slider__progress-bar.is-running {
    animation: ceesProgressFill var(--cees-duration, 6000ms) linear forwards;
}

@keyframes ceesProgressFill {
    from { width: 0; }
    to   { width: 100%; }
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .cees-slider__content {
        left: 30px;
        right: 30px;
        bottom: 100px;
    }

    .cees-slider__nav {
        left: 30px;
        bottom: 50px;
    }
}
