/* ═══════════════════════════════════════════════
   NAAGAR FITNESS CLUB — HOME PAGE STYLES
   Hero section, backgrounds, goal selector only.
   Shared styles (nav, footer, reset) are in css/shared.css
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   HERO — THE ENTIRE EXPERIENCE
   ═══════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 3rem 4.5rem;
    overflow: hidden;
}

/* ── Crossfading Backgrounds ── */
.hero-backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s var(--ease), transform 6s var(--ease);
    will-change: opacity, transform;
}

.hero-bg.active {
    opacity: 1;
    transform: scale(1);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
    z-index: 0;
    display: none;
}

.hero-video.active {
    opacity: 1;
}

/* On desktop devices */
@media (min-width: 1025px) {
    .hero-video {
        display: block;
    }
    .hero-bg {
        display: none !important;
    }
}

/* On mobile/tablet devices */
@media (max-width: 1024px) {
    .hero-video {
        display: none !important;
    }
    .hero-bg {
        display: block;
    }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.15) 0%,
        rgba(15, 15, 15, 0.45) 40%,
        rgba(15, 15, 15, 0.85) 75%,
        rgba(15, 15, 15, 1) 100%
    );
    z-index: 1;
}

/* ── Whisper Word ── */
.hero-whisper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-whisper span {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 16rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--cream);
    opacity: 0.018;
    user-select: none;
}

/* ── Hero Content ── */
.hero-body {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin-bottom: 3.5rem;
}

.hero-eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-headline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 1.6rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.9s var(--ease) 0.35s forwards;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-headline.switching {
    opacity: 0 !important;
    transform: translateY(4px) !important;
    transition: opacity 0.12s var(--ease), transform 0.12s var(--ease) !important;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.9s var(--ease) 0.5s forwards;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-sub.switching {
    opacity: 0 !important;
    transform: translateY(4px) !important;
    transition: opacity 0.12s var(--ease), transform 0.12s var(--ease) !important;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Goal Selector (Integrated in Hero) ── */
.goal-selector {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

.goal-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.goal-options {
    display: flex;
    gap: 0.5rem;
}

.goal-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease);
}

.goal-btn:hover {
    color: var(--cream);
    border-color: rgba(245, 242, 235, 0.2);
}

.goal-btn.active {
    color: var(--black);
    background: var(--cream);
    border-color: var(--cream);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — HOME PAGE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero {
        padding: 0 1.5rem 3rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .goal-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .goal-options {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .goal-btn {
        width: 100%;
        text-align: center;
    }
}
