/* ==========================================================
   SKY'S HOME - HERO SECTION (styles/home/hero.css)
   ========================================================== */

:root {
    --cloud-track: 100vh;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: calc(100vh + var(--cloud-track));
    background-color: var(--bg-dark);
    z-index: 1;
}

.hero-banner__sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

/* 1. Mídia de Background (Vídeo + Overlay) */

.hero-banner__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-banner__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transform: scale(1.04);
    will-change: transform;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 14, 23, 0.45) 0%,
            rgba(10, 14, 23, 0.15) 30%,
            rgba(10, 14, 23, 0.35) 60%,
            rgba(10, 14, 23, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

/* 2. Conteúdo da Hero (Centralizado conforme PixelLab) */

.hero-banner__content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(4rem, 8vh, 6rem);
    padding-bottom: clamp(2rem, 4vh, 4rem);
    box-sizing: border-box;
    color: #FAFAF9;
    text-align: center;
}

/* Caixa Central com Título, Subtítulo, Botões e Social Proof */

.hero-center-box {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    will-change: transform, filter, opacity;
}

/* Container da Marca (Espelhado com .skybar__brand) */

.hero-center-box__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 clamp(2rem, 3.5vh, 2.8rem) 0;
    user-select: none;
}

/* Título Principal ("Sky's" - Mesmo estilo de fonte que .detail-hero__title) */

.hero-center-box__title {
    font-family: var(--font-modern, 'Syne', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: clamp(3.8rem, 7.5vw, 6.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

/* Subtítulo ("ROOFTOP & LOUNGE" com JetBrains Mono monoespaçado estilizado) */

.hero-center-box__subtitle {
    font-family: var(--font-mono, 'JetBrains Mono', SFMono-Regular, monospace);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(250, 250, 249, 0.85);
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* Linha de Ações (Desktop: Lado a Lado / Mobile: Empilhado) */

.hero-center-box__actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    width: 100%;
    margin-bottom: clamp(2rem, 3.5vh, 2.8rem);
}

/* Social Proof Inferior - Mesmo estilo de fonte que .detail-hero__caption */

.hero-center-box__social-proof {
    font-family: 'Inter', var(--font-sans, sans-serif);
    font-size: clamp(1.2rem, 1.1vw, 1.45rem);
    font-weight: 450;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* Indicador de Rolagem (Seta Inferior) */

.hero-scroll-indicator {
    position: absolute;
    bottom: clamp(1.5rem, 3vh, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(250, 250, 249, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIndicator 2.4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes bounceIndicator {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

/* Responsivo Mobile (Exatamente conforme a primeira imagem) */

@media (max-width: 640px) {
    .hero-banner__content {
        padding-top: 7rem;
        padding-bottom: 2rem;
    }

    .hero-center-box__title {
        font-size: 2.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-center-box__subtitle {
        font-size: 1.05rem;
        max-width: 92%;
        margin-bottom: 2rem;
    }

    .hero-center-box__actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-center-box__social-proof {
        font-size: 1.15rem;
        letter-spacing: 0.1em;
        line-height: 1.4;
        padding: 0 1rem;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* 4. Camadas de Nuvens Subindo (Paralaxe Suave) */

.clouds-overlay_wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    z-index: 10;
    pointer-events: none;
    will-change: transform;
    overflow: visible;
}

/* Cauda Branca Contínua: Preenche 100% da área abaixo da nuvem,
   eliminando qualquer corte ou vazamento do vídeo da Hero */

.clouds-overlay_wrap::after {
    content: '';
    position: absolute;
    top: 98%;
    left: 0;
    width: 100%;
    height: 200vh;
    background: #FAFAF9;
    pointer-events: none;
}

.clouds-overlay_wrap--back {
    z-index: 9;
    opacity: 1;
}

.clouds-overlay_wrap--front {
    z-index: 11;
    opacity: 1;
}

.clouds-overlay_wrap--top {
    z-index: 12;
    opacity: 1;
}

.clouds-overlay_wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: translateZ(0);
}

/* 5. Transição de Névoa / Cortina Branca (Desativados para deixar a subida da nuvem 100% natural) */

.mist-transition,
.hero-banner__fade {
    display: none !important;
}

@media (max-width: 640px) {
    .hero-banner__top {
        display: flex;
        flex-direction: column;
        gap: 2.4rem;
        align-items: flex-start;
    }
}
