:root {
    --slider-hero-height: 500px;
    --slider-hero-min-height: 500px;
    --slider-hero-bg: #000;
    --slider-hero-overlay-from: rgba(0, 0, 0, 0.30);
    --slider-hero-overlay-to: rgba(0, 0, 0, 0.05);
    --slider-hero-bottom-overlay: rgba(0, 0, 0, 0.30);
    --slider-hero-text: #fff;
    --slider-hero-text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    --slider-hero-panel-bg: rgba(0, 0, 0, 0.30);
    --slider-hero-panel-blur: 4px;
    --slider-hero-panel-accent: rgba(255, 255, 255, 0.60);
    --slider-hero-dot: rgba(255, 255, 255, 0.6);
    --slider-hero-dot-active: #fff;
}

[data-bs-theme="light"] {
    --slider-hero-bg: #ececec;
    --slider-hero-overlay-from: rgba(20, 20, 20, 0.10);
    --slider-hero-overlay-to: rgba(20, 20, 20, 0.00);
    --slider-hero-bottom-overlay: rgba(20, 20, 20, 0.10);
    --slider-hero-text: #fff;
    --slider-hero-text-shadow: 0 1px 6px rgba(0, 0, 0, 0.50), 0 2px 18px rgba(0, 0, 0, 0.30);
    --slider-hero-panel-bg: rgba(15, 15, 18, 0.55);
    --slider-hero-panel-blur: 4px;
    --slider-hero-panel-accent: rgba(255, 255, 255, 0.85);
    --slider-hero-dot: rgba(255, 255, 255, 0.7);
    --slider-hero-dot-active: #fff;
}

.slider-hero-wrap {
    position: relative;
    overflow: hidden;
    background: var(--slider-hero-bg);
}

.slider-hero,
.slider-hero .slick-list,
.slider-hero .slick-track {
    height: var(--slider-hero-height);
    min-height: var(--slider-hero-min-height);
}

.slider-hero-slide {
    position: relative;
    height: var(--slider-hero-height);
    min-height: var(--slider-hero-min-height);
    overflow: hidden;
}

.slider-hero-link {
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.slider-hero-link:hover,
.slider-hero-link:focus {
    text-decoration: none;
    color: inherit;
}

.slider-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: translateX(0) scale(1.0);
    will-change: transform, opacity;
}

.slider-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* override Bootstrap .container max-width so text can hug the right edge */
    max-width: none !important;
    padding-right: clamp(2rem, 5vw, 6rem) !important;
    padding-left: clamp(2rem, 5vw, 6rem) !important;
}

/* Text scrim — a focused glass panel that gives clean contrast on any image,
   sized to the text content rather than darkening the whole hero. */
.slider-hero-text {
    position: relative;
    max-width: 640px;
    color: var(--slider-hero-text);
    text-shadow: none;
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    isolation: isolate;
}

.slider-hero-text a,
.slider-hero-text a:hover,
.slider-hero-text a:focus {
    text-decoration: none;
}

.slider-hero-text .btn {
    margin-top: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-28px);
    will-change: transform, opacity;
}

.slick-active .slider-hero-text .btn {
    animation: heroTextSweepRight 0.55s cubic-bezier(.22, .61, .36, 1) 0.46s forwards;
}

.slider-hero-main,
.slider-hero-promo,
.slider-hero-sub {
    opacity: 0;
    will-change: transform, opacity;
}

.slider-hero-main {
    color: #e4c649  !important;
    font-size: clamp(1.4rem, 3.9vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    transform: translateX(-48px);
}

.slider-hero-promo {
    color: #fff !important;
    font-size: clamp(0.9rem, 1.9vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    transform: translateX(-36px);
}

.slider-hero-sub {
    color: #fff !important;
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    font-weight: 400;
    line-height: 1.65;
    transform: translateX(-28px);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Active slide entrance: bg sweeps leftward, text sweeps rightward */
.slick-active .slider-hero-bg {
    animation:
        heroBgSweepLeft 0.65s cubic-bezier(.22, .61, .36, 1) forwards,
        heroKenBurns 8s ease-out 0.65s forwards;
}

.slick-active .slider-hero-main {
    animation: heroTextSweepRight 0.55s cubic-bezier(.22, .61, .36, 1) 0.10s forwards;
}

.slick-active .slider-hero-promo {
    animation: heroTextSweepRight 0.55s cubic-bezier(.22, .61, .36, 1) 0.22s forwards;
}

.slick-active .slider-hero-sub {
    animation: heroTextSweepRight 0.6s cubic-bezier(.22, .61, .36, 1) 0.34s forwards;
}

@keyframes heroBgSweepLeft {
    from { opacity: 0; transform: translateX(80px) scale(1.06); }
    60%  { opacity: 1; }
    to   { opacity: 1; transform: translateX(0) scale(1.0); }
}

@keyframes heroKenBurns {
    from { transform: translateX(0) scale(1.0); }
    to   { transform: translateX(-1%) scale(1.08); }
}

@keyframes heroTextSweepRight {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Dots */
.slider-hero .slick-dots {
    position: absolute;
    bottom: 24px;
    left: 0; right: 0;
    z-index: 3;
    text-align: center;
}
.slider-hero .slick-dots li button:before {
    color: var(--slider-hero-dot);
    opacity: 1;
    font-size: 10px;
}
.slider-hero .slick-dots li.slick-active button:before {
    color: var(--slider-hero-dot-active);
}

/* Mobile: shorter, snappier — image full width since there's no room for split layout */
@media (max-width: 768px) {
    :root {
        --slider-hero-height: 150px;
        --slider-hero-min-height: 150px;
    }
    .slider-hero-text {
        zoom: 78%;
    }
    .slider-hero-text .btn{
        margin-top: 0 !important;
    }
    .slider-hero-btn {
        zoom: 70%;
    }
    .slider-hero-sub {
        display: none;
    }
    .slider-hero-bg {
        background-size: cover;
        background-position: center;
    }
    .slider-hero-content {
        padding-right: 1.25rem !important;
        padding-left: 1.25rem !important;
    }
    .slider-hero-text {
        padding: 1.1rem 1.25rem;
        max-width: 100%;
    }
    .slick-active .slider-hero-bg {
        animation:
            heroBgSweepLeft 0.5s cubic-bezier(.22, .61, .36, 1) forwards,
            heroKenBurns 6s ease-out 0.5s forwards;
    }
    .slick-active .slider-hero-main { animation-duration: 0.4s; animation-delay: 0.08s; }
    .slick-active .slider-hero-promo { animation-duration: 0.4s; animation-delay: 0.18s; }
    .slick-active .slider-hero-sub { animation-duration: 0.45s; animation-delay: 0.28s; }
    .slick-active .slider-hero-text .btn { animation-duration: 0.45s; animation-delay: 0.38s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slick-active .slider-hero-bg,
    .slick-active .slider-hero-main,
    .slick-active .slider-hero-promo,
    .slick-active .slider-hero-sub,
    .slick-active .slider-hero-text .btn {
        animation: none !important;
    }
    .slider-hero-bg { transform: none; }
    .slider-hero-main, .slider-hero-promo, .slider-hero-sub, .slider-hero-text .btn {
        opacity: 1;
        transform: none;
    }
}
