/* 
    HELORA Premium Animations
    Custom entry and scroll animations for a high-end feel.
*/

/* 1. Base Hidden State */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

/* 2. Animation Types */
.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-zoom {
    transform: scale(0.9);
}

/* 3. Visible State (Triggered by JS) */
.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 4. Staggered Delays (Helper classes) */
.delay-100 {
    transition-delay: 100ms !important;
}

.delay-200 {
    transition-delay: 200ms !important;
}

.delay-300 {
    transition-delay: 300ms !important;
}

.delay-400 {
    transition-delay: 400ms !important;
}

.delay-500 {
    transition-delay: 500ms !important;
}

/* 5. Special Landing Page Styles */
.hero__text {
    overflow: hidden;
}

.hero__text h1,
.hero__text span,
.hero__text a {
    display: block;
    animation: slideInDown 1s both;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Card Hover Elevation (enhanced for premium feel) */
.product__item,
.category__item,
.pm-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
}

.product__item:hover,
.pm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================================
   6. HELORA HERO — Custom CSS Slider (Zero-gap, full-bleed)
   Replaces OWL carousel to avoid layout/height computation bugs
   ============================================================ */

/* ── Section wrapper ── */
#helora-hero {
    display: block !important;
    width: 100% !important;
    height: 72vh;
    min-height: 420px;
    max-height: 780px;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    background: #111;
}

/* ── Slides container ── */
.h-slides {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

/* ── Individual slide ── */
.h-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in-out, visibility 2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.h-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ── Full-bleed background image with Ken Burns effect ── */
.h-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    overflow: hidden;
}

.h-slide__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.h-slide.active .h-slide__bg img {
    transform: scale(1.1);
}

/* ── Subdued overlay for better visual depth ── */
.h-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* ── Text content ── */
.h-slide__content {
    position: relative;
    z-index: 2;
    text-align: right;
    padding: 0 60px;
    max-width: 580px;
    line-height: 1.3;
    isolation: isolate;
    /* prevents z-index stacking bleeding */
    color: #fff !important;
}

.h-slide__sub {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 12px;
    display: block;
}

.h-slide__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    font-weight: 700;
    font-style: italic;
    color: #fff !important;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.h-slide__btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    padding: 12px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.h-slide__btn:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
    text-decoration: none;
}

/* ── Dot navigation ── */
.h-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.h-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.h-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Arrow navigation ── */
.h-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.h-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.h-arrow--prev {
    left: 24px;
}

.h-arrow--next {
    right: 24px;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    #helora-hero {
        height: 60vh;
        min-height: 300px;
    }

    .h-slide {
        justify-content: center;
        align-items: flex-end;
    }

    .h-slide::after {
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.65) 0%,
                rgba(0, 0, 0, 0.25) 50%,
                transparent 100%);
    }

    .h-slide__content {
        text-align: center;
        padding: 0 24px 40px;
        max-width: 100%;
    }

    .h-slide__title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .h-slide__sub {
        font-size: 10px;
    }

    .h-arrow {
        display: none;
        /* hide on mobile */
    }
}