﻿/* ==========================================================
   MILX PREMIUM
   hero.css
==========================================================*/

/* ==========================
   HERO
========================== */

.xs-hero {
    position: relative;
    overflow: hidden;
    background: #000;
}

    /* ==========================
   SLIDE
========================== */

    .xs-hero .carousel-item {
        position: relative;
        height: 72vh;
        min-height: 620px;
        max-height: 760px;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    /* ==========================
   IMAGE / VIDEO
========================== */

    .xs-hero .slide-media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 1;
        transform: scale(1);
        transition: transform 8s ease;
    }

    /* Zoom بسيط أثناء الانتقال */

    .xs-hero .carousel-item.active .slide-media {
        transform: scale(1.08);
    }

    /* ==========================
   OVERLAY
========================== */

    .xs-hero .slide-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.70) 38%, rgba(0,0,0,.28) 72%, rgba(0,0,0,.08) 100% );
        z-index: 2;
    }

html[dir="rtl"] .xs-hero .slide-overlay {
    background: linear-gradient( 270deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.70) 38%, rgba(0,0,0,.28) 72%, rgba(0,0,0,.08) 100% );
}

/* ==========================
   GOLD OVERLAY
========================== */

.xs-hero .slide-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212,175,55,.08), transparent 70%);
}

/* ==========================
   CONTENT
========================== */

.xs-hero .slide-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    color: #fff;
    animation: heroFade .9s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88vh;
    padding-top: 70px;
}
.carousel-item.active .slide-content {
    animation: heroContent .8s ease both;
}

@keyframes heroContent {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
/* ==========================
   EYEBROW
========================== */

.xs-hero .eyebrow {
    display: inline-block;
    color: var(--gold-light);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ==========================
   TITLE
========================== */

.xs-hero h1 {
    color: #fff;
    font-size: clamp(3.5rem,6vw,5.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    max-width: 650px;
    text-shadow: 0 4px 20px rgba(0,0,0,.45);
}

/* ==========================
   DESCRIPTION
========================== */

.xs-hero p {
    color: rgba(255,255,255,.88);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 2.2rem;
}
/* ==========================
   BUTTONS
========================== */

.xs-hero .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================
   INDICATORS
========================== */

.xs-hero .carousel-indicators {
    margin-bottom: 2rem;
}

   /* .xs-hero .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #666;
        border: none;
        opacity: 1;
        transition: .3s;
    }

    .xs-hero .carousel-indicators .active {
        background: var(--gold);
        transform: scale(1.2);
    }*/
.xs-hero .carousel-indicators {
    gap: 12px;
    margin-bottom: 35px;
}

    .xs-hero .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border: none;
        border-radius: 30px;
        background: rgba(255,255,255,.35);
        opacity: 1;
        transition: .35s;
    }

    .xs-hero .carousel-indicators .active {
        width: 42px;
        background: var(--gold-gradient);
        box-shadow: 0 0 15px rgba(212,175,55,.45);
    }

/* ==========================
   ARROWS
========================== */

.xs-hero .carousel-control-prev,
.xs-hero .carousel-control-next {
    width: 7%;
    opacity: .7;
    transition: .3s;
}

    .xs-hero .carousel-control-prev:hover,
    .xs-hero .carousel-control-next:hover {
        opacity: 1;
    }

/* ==========================
   SCROLL ICON
========================== */

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    z-index: 20;
    color: #fff;
    animation: scrollDown 2s infinite;
}

    .hero-scroll i {
        font-size: 1.4rem;
    }

/* ==========================
   ANIMATION
========================== */

@keyframes heroFade {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes scrollDown {

    0% {
        transform: translate(-50%,0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%,14px);
        opacity: 0;
    }
}

/* ==========================================
   HERO BOTTOM FADE
========================================== */

.xs-hero {
    position: relative;
}

    .xs-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 90px;
        pointer-events: none;
        z-index: 6;
        background: linear-gradient( to bottom, rgba(11,11,11,0) 0%, rgba(11,11,11,.35) 45%, rgba(11,11,11,.75) 75%, #0B0B0B 100% );
    }
/* ==========================
   RESPONSIVE
========================== */

@media(max-width:992px) {

    .xs-hero .carousel-item {
        height: 60vh;
        min-height: 520px;
    }

    .xs-hero h1 {
        font-size: 3rem;
    }
}

@media(max-width:768px) {
    .xs-hero .carousel-item {
        height: 52vh;
        min-height: 420px;
    }

    .xs-hero h1 {
        font-size: 2.2rem;
    }

    .xs-hero p {
        font-size: 1rem;
    }

    .xs-hero .hero-actions {
        flex-direction: column;
    }
    .xs-hero .slide-content {
        min-height: 62vh;
        padding-top: 30px;
    }
}
/* Image only */
.hero-image {
    transform: scale(1);
    transition: transform 8s ease;
}

.carousel-item.active .hero-image {
    transform: scale(1.08);
}

/* Video */
.hero-video {
    transform: none !important;
    transition: none !important;
    filter: brightness(.82) saturate(.9);
}
@media(max-width:576px) {

    .xs-hero .carousel-item {
        height: 46vh;
        min-height: 340px;
    }


    .xs-hero h1 {
        font-size: 1.8rem;
    }

    .xs-hero p {
        font-size: .95rem;
    }
}
