﻿
/* ============================================================
   HUDCO HOMEPAGE CAROUSEL
   DBIM CINNAMON RED
============================================================ */

.hudco-home-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--surface-secondary, #EBEAEA);
    isolation: isolate;
}

/* ============================================================
   SLIDE TRACK - 3:1 RATIO
============================================================ */

.hudco-home-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.hudco-home-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.7s ease, visibility 0.7s;
}

    .hudco-home-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .hudco-home-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* ============================================================
   PREVIOUS / NEXT CONTROLS
============================================================ */

.hudco-carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hudco-carousel-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-900, #771D1D);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    font-size: 18px;
    line-height: 1;
}

    .hudco-carousel-btn:hover,
    .hudco-carousel-btn:focus-visible {
        background: var(--brand-700, #A72626);
    }

/* ============================================================
   INDICATORS & PLAY PAUSE
============================================================ */

.hudco-carousel-bottom-controls {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--border-light, #C6C6C6);
    border-radius: 30px;
}

.hudco-carousel-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hudco-carousel-indicator {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--border-medium, #8E8E8E);
    cursor: pointer;
}

    .hudco-carousel-indicator.active {
        width: 24px;
        border-radius: 10px;
        background: var(--brand-900, #771D1D);
    }

.hudco-carousel-play-pause {
    width: 28px;
    height: 28px;
    border: 0;
    border-left: 1px solid var(--border-light, #C6C6C6);
    padding-left: 10px;
    background: transparent;
    color: var(--brand-900, #771D1D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.hudco-home-carousel button:focus-visible {
    outline: 3px solid var(--brand-700, #A72626);
    outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 767px) {

    .hudco-carousel-controls {
        padding: 0 8px;
    }

    .hudco-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .hudco-carousel-bottom-controls {
        bottom: 6px;
        padding: 5px 9px;
        gap: 8px;
    }

    .hudco-carousel-indicator {
        width: 8px;
        height: 8px;
    }

        .hudco-carousel-indicator.active {
            width: 18px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .hudco-home-slide {
        transition: none;
    }
}
