/* ==========================================================================
   Hero Slider Component
   ========================================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.hero-slider:active {
    cursor: grabbing;
}

/* Track & Slides
   ========================================================================== */

.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.hero-slider__slide {
    position: relative;
    flex-shrink: 0;
    height: 100%;
}

.hero-slider__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #15498366;
    pointer-events: none;
}

.hero-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Dots navigation
   ========================================================================== */

.hero-slider__dots {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xs) var(--spacing-md);
}

.hero-slider__dot {
    width: var(--spacing-md);
    height: var(--spacing-md);
    border-radius: var(--radius-full);
    background: var(--color-white);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.hero-slider__dot:hover {
    background-color: var(--color-secondary);
    transform: scale(1.2);
}

.hero-slider__dot.is-active {
    background-color: var(--color-secondary);
    transform: scale(1.2);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Screen reader only */
.hero-slider .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slider__track {
        transition: none;
    }

    .hero-slider__dot {
        transition: none;
    }
}

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

@media (max-width: 860px) {
    .hero-slider {
        height: 60vh;
    }
}

@media (max-width: 768px) {

    .hero-slider {
        height: 40vh;
    }

    .hero-slider__dots {
        bottom: var(--spacing-lg);
    }

    .hero-slider__dot {
        width: 10px;
        height: 10px;
    }
}