/* =========================================================
   FAYADH WEBSITE — HERO
   Full-width banner slider (like the app) with the intro
   text and store buttons below it.
========================================================= */


/* =========================================================
   1. HERO SECTION
========================================================= */

.hero {
    padding-bottom: 28px;

    background:
        radial-gradient(circle at 90% 70%, var(--secondary-tint), transparent 40%),
        linear-gradient(180deg, var(--white) 0%, var(--background) 100%);

    overflow: hidden;
}


/* =========================================================
   2. BANNER SLIDER
   3:2 like the app, 16:9 on tablets and phones. On large
   screens the height is capped (520px, and never more than
   the screen) so the intro text below stays close.
========================================================= */

/* Full-width wrapper */

.hero-banner {
    width: 100%;
}


/* Slider */

.hero-slider {
    position: relative;

    width: 100%;

    aspect-ratio: 3 / 2;
    max-height: min(520px, calc(100vh - var(--header-height)));

    overflow: hidden;

    background: var(--primary-light);

}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    transition: opacity 0.5s ease;
}

/* The website's own fallback image: keep the person in view. */

.hero-slide-fallback {
    object-position: 82% center;
}

.hero-slide.is-active {
    opacity: 1;
}

a.hero-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Slider Dots (only shown with 2+ banners) */

.hero-dots {
    position: absolute;

    bottom: 14px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    background: rgba(0, 0, 0, 0.25);

    border-radius: 999px;
}

.hero-dots[hidden] {
    display: none;
}

.hero-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    background: rgba(255, 255, 255, 0.6);

    border: 0;
    border-radius: 999px;

    transition: var(--transition);
}

.hero-dot.is-active {
    width: 20px;

    background: var(--white);
}


/* =========================================================
   3. INTRO TEXT
   Title, tagline and store buttons, centred below the banner.
========================================================= */

/* Wrapper */

.hero-content {
    max-width: 760px;

    margin-inline: auto;
    padding-top: 36px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* Title & Tagline */

.hero-title {
    color: var(--heading);

    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: -0.02em;
}

html[dir="rtl"] .hero-title {
    line-height: 1.3;
    letter-spacing: 0;
}

.hero-text {
    max-width: 600px;

    margin-top: 12px;

    color: var(--text);

    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   4. STORE BUTTONS
   Shared button styles are in base.css; here only their
   placement in the hero.
========================================================= */

.hero .store-buttons {
    justify-content: center;

    margin-top: 24px;
}


/* =========================================================
   5. INFO NOTE
========================================================= */

.hero-note {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 14px;

    color: var(--text);

    font-size: 13px;
}

.hero-note-icon {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   6. RESPONSIVE
========================================================= */

@media (max-width: 860px) {

    .hero {
        padding-bottom: 24px;
    }

    .hero-slider {
        aspect-ratio: 16 / 9;
    }

    .hero-content {
        padding-top: 28px;
    }

    .hero-text {
        font-size: 15px;
    }

}
