/* =============================================================
   Valdes Hero Slider — Luxury Fragrance Style
   Inspired by: lattafa-usa.com
   ============================================================= */

/* ── CSS custom properties ──────────────────────────────── */
:root {
    --vhs-gold: #c4a84c;
    --vhs-gold-hover: #b8962e;
}

/* ── Outer wrapper (slider + dots stacked vertically) ────── */
.vhs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ── Slider track ────────────────────────────────────────── */
.vhs-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0d0d;
    height: 100vh;
    min-height: 520px;
}

/* ── Individual slide ────────────────────────────────────── */
.vhs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.vhs-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ── Background image (responsive <img srcset>) ─────────── */
.vhs-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    transform: scale(1);
}

.vhs-slide.is-active .vhs-slide__img {
    animation: vhsKenBurns 10s ease-out forwards;
}

@media (max-width: 480px) {
    .vhs-slide__img {
        object-position: center top;
    }
}

@keyframes vhsKenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.07);
    }
}

/* ── Overlay ─────────────────────────────────────────────── */
.vhs-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.50) 100%);
    z-index: 1;
}

/* ── Content — centrado horizontalmente, anclado al fondo ── */
.vhs-slide__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 40px 100px;
    transform: translateY(20px);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
        opacity 0.85s ease 0.35s;
}

.vhs-slide.is-active .vhs-slide__content {
    transform: translateY(0);
    opacity: 1;
}

/* ── Title ───────────────────────────────────────────────── */
.vhs-slide__title {
    margin: 0 0 32px;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.15;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.40);
}

/* ── CTA Button — solid gold fill (Lattafa style) ────────── */
.vhs-slide__btn {
    display: inline-block;
    padding: 16px 52px;
    background: var(--vhs-gold);
    color: #1a1000;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 0.3s ease,
        transform 0.2s ease;
    cursor: pointer;
}

.vhs-slide__btn:hover,
.vhs-slide__btn:focus {
    background: var(--vhs-gold-hover);
    color: #1a1000;
    text-decoration: none;
    outline: none;
    transform: translateY(-2px);
}

/* ── Navigation arrows ───────────────────────────────────── */
.vhs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.vhs-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.70);
}

.vhs-arrow--prev {
    left: 24px;
}

.vhs-arrow--next {
    right: 24px;
}

.vhs-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Dots — outside slider, centered below (Lattafa style) ── */
/* Inactive = small circle | Active = elongated dark pill     */
.vhs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 16px;
    width: 100%;
    background: #ffffff;
    /* white background strip below slider */
}

.vhs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #aaaaaa;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition:
        width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.35s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.vhs-dot.is-active {
    width: 28px;
    border-radius: 5px;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* ── Elementor editor placeholder ────────────────────────── */
.vhs-no-slides {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .vhs-slider {
        min-height: 380px;
        height: 78vh;
    }

    .vhs-slide__title {
        font-size: clamp(1.6rem, 7vw, 2.6rem);
        letter-spacing: 0.10em;
        margin-bottom: 24px;
    }

    .vhs-slide__btn {
        padding: 14px 36px;
        font-size: 0.72rem;
    }

    .vhs-slide__content {
        padding: 0 24px 60px;
    }

    .vhs-arrow {
        display: none;
    }

    .vhs-dots {
        padding: 16px 0 12px;
    }

    .vhs-dot {
        width: 8px;
        height: 8px;
    }

    .vhs-dot.is-active {
        width: 22px;
    }
}