/* ============================================================
   RFF v3 — HERO SYSTEM (CANONICAL)
   Purpose: stable, overlay-based homepage hero
   STATUS: FROZEN (do not casually modify)
   ============================================================ */


/* ============================================================
   HERO ROOT (STRUCTURAL — NO EFFECTS ALLOWED)
   ============================================================ */

section.rff-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: block;
}


/* ============================================================
   HERO BACKGROUND IMAGE (STRUCTURAL)
   ============================================================ */

.rff-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.rff-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ============================================================
   DARK OVERLAY (STRUCTURAL)
   ============================================================ */

section.rff-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.35)
    );
}


/* ============================================================
   HERO CONTENT (STRUCTURAL POSITIONING ONLY)
   ============================================================ */

.rff-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;

    max-width: 900px;
    width: calc(100% - 2rem);
    padding: 2.4rem 2.8rem;

    text-align: center;
    color: #ffffff;
    background: transparent;
}


/* ============================================================
   HERO CONTENT BACKDROP (VISUAL ONLY)
   ============================================================ */

.rff-hero-content::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;

    background: radial-gradient(
        ellipse at center,
        rgba(15,23,42,0.78) 0%,
        rgba(15,23,42,0.55) 55%,
        rgba(15,23,42,0.0) 100%
    );

    backdrop-filter: blur(6px);
    border-radius: 24px;
}


/* ============================================================
   HERO TYPOGRAPHY (VISUAL ONLY)
   ============================================================ */

.rff-hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.rff-hero-content .tagline {
    font-size: 1.35rem;
    font-weight: 500;
    color: #34d399;
    margin-bottom: 0.6rem;
}

.rff-hero-content .sub {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
}


/* ============================================================
   MOBILE ADJUSTMENTS (STRUCTURAL SAFE)
   ============================================================ */

@media (max-width: 768px) {

    section.rff-hero {
        height: 300px;
    }

    .rff-hero-content {
        padding: 1.6rem 1.4rem;
    }

    .rff-hero-content h1 {
        font-size: 2.2rem;
    }

    .rff-hero-content .tagline {
        font-size: 1.1rem;
    }

    .rff-hero-content .sub {
        font-size: 0.9rem;
    }
}


/* ============================================================
   INTERIOR HERO (NON-HOMEPAGE)
   NOTE: Uses DIFFERENT classes — no overlap
   ============================================================ */

.hero-section {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    background: linear-gradient(180deg, #0f172a, #111827);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-section h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #34d399;
    opacity: 0.85;
}

.hero-sub {
    max-width: 550px;
    margin: 0.75rem auto 0;
    opacity: 0.8;
    line-height: 1.5;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}