/* ============================================
   SVES Homepage Hero Slider
   /assets/css/sves-hero-slider.css
   ============================================ */

/* ── Slider wrapper ── */
.sves-hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Height matches live site proportions */
    height: 100vh;
    min-height: 560px;
    max-height: 860px;
    background: #1a1018;
}

/* ── Track & slides ── */
.sves-hero-track {
    display: flex;
    height: 100%;
    transition: none; /* JS handles transitions per-slide */
}

.sves-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.sves-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.sves-hero-slide.leaving {
    opacity: 0;
    z-index: 0;
}

/* ── Background picture ── */
.sves-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sves-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ── Dark overlay (matches live site) ── */
.sves-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 12, 22, 0.72) 0%,
        rgba(20, 12, 22, 0.45) 55%,
        rgba(20, 12, 22, 0.10) 100%
    );
    z-index: 1;
}

/* ── Content ── */
.sves-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sves-hero-content h1 {
    color: #fff !important;
    font-size: clamp(28px, 3.8vw, 52px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    max-width: 640px;
    margin: 0 0 18px !important;
    /* Animate in */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s ease 0.2s, opacity 0.7s ease 0.2s;
}

.sves-hero-slide.active .sves-hero-content h1 {
    transform: translateY(0);
    opacity: 1;
}

.sves-hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 0 28px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s ease 0.35s, opacity 0.7s ease 0.35s;
}

.sves-hero-slide.active .sves-hero-content p {
    transform: translateY(0);
    opacity: 1;
}

/* ── Buttons ── */
.sves-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s ease 0.5s, opacity 0.7s ease 0.5s;
}

.sves-hero-slide.active .sves-hero-btns {
    transform: translateY(0);
    opacity: 1;
}

.sves-hero-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.sves-hero-btn--primary {
    background: #8B1A6B;
    color: #fff !important;
    border: 2px solid #8B1A6B;
}

.sves-hero-btn--primary:hover {
    background: #6B1252;
    border-color: #6B1252;
}

.sves-hero-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.sves-hero-btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ── Prev / Next arrows ── */
.sves-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sves-hero-nav:hover {
    background: rgba(139, 26, 107, 0.7);
}

.sves-hero-prev { left: 20px; }
.sves-hero-next { right: 20px; }

/* ── Dot indicators ── */
.sves-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.sves-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.sves-hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Progress bar at bottom of active slide ── */
.sves-hero-slide.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #8B1A6B;
    animation: sves-progress 4s linear forwards;
    z-index: 3;
}

@keyframes sves-progress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .sves-hero-slider {
        height: 100svh;
        min-height: 480px;
        max-height: 700px;
    }

    .sves-hero-content {
        padding: 0 20px;
        justify-content: flex-end;
        padding-bottom: 60px;
    }

    .sves-hero-content h1 {
        font-size: 24px !important;
    }

    .sves-hero-content p {
        font-size: 14px;
    }

    .sves-hero-overlay {
        background: linear-gradient(
            to top,
            rgba(20, 12, 22, 0.85) 0%,
            rgba(20, 12, 22, 0.45) 60%,
            rgba(20, 12, 22, 0.1) 100%
        );
    }

    .sves-hero-btn { padding: 11px 20px; font-size: 13px; }
    .sves-hero-nav { width: 38px; height: 38px; font-size: 20px; }
    .sves-hero-prev { left: 10px; }
    .sves-hero-next { right: 10px; }
}
