/* ===================================
   Rahaya Realty — Hero Slideshow
   Theme: White / Black / Gold
=================================== */

.hero {
    position: relative;
    height: 90vh;
    min-height: 640px;
    overflow: hidden;
    background-color: var(--color-black);
}

/* ---------- Slideshow ---------- */
.hero-slideshow {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-image: var(--bg);
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 20s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    25%  { opacity: 1; }
    30%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- Semi-black overlay ---------- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ---------- Content ---------- */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-heading {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 44px;
    line-height: 1.15;
    margin: 0;
    max-width: 620px;
}

.hero-divider {
    display: block;
    width: 64px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 24px 0;
}

.hero-text {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 380px;
    margin: 0;
}

/* ===================================
   Desktop
=================================== */
@media (min-width: 769px) {
    .hero-heading {
        font-size: 72px;
    }

    .hero-text {
        font-size: 16px;
        max-width: 440px;
    }
}

/* ===================================
   Mobile
=================================== */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 520px;
    }
}

/* Phones get a smaller image of the same picture */
@media (max-width: 768px) {
    .hero-slide {
        background-image: var(--bg-sm, var(--bg));
    }
}
