/*
|--------------------------------------------------------------------------
| Corpo e Alma Spa Urbano
|--------------------------------------------------------------------------
| Hero da Home
|--------------------------------------------------------------------------
|
| Componente:
| components/hero.php
|
| Dependências:
| assets/css/reset.css
| assets/css/base.css
| assets/js/hero.js
|
*/


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {

    position: relative;

    isolation: isolate;

    min-height: min(
        820px,
        92vh
    );

    display: flex;

    align-items: center;

    overflow: hidden;

    background-color: var(--color-primary-dark);

    color: #ffffff;

}


/* ==========================================================================
   BACKGROUND
   ========================================================================== */

.hero-background {

    position: absolute;

    inset: 0;

    z-index: -3;

    overflow: hidden;

    background-color: var(--color-primary-dark);

}

.hero-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    opacity: 0;

    animation: heroVideoReveal 1.2s ease forwards;

}

@keyframes heroVideoReveal {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* ==========================================================================
   OVERLAY
   ========================================================================== */

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(25, 43, 34, 0.88) 0%,
            rgba(25, 43, 34, 0.68) 42%,
            rgba(25, 43, 34, 0.34) 72%,
            rgba(25, 43, 34, 0.48) 100%
        );

}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.hero-container {

    position: relative;

    z-index: 5;

    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-left: auto;

    margin-right: auto;

    padding-top: 100px;

    padding-bottom: 100px;

}


/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.hero-content {

    width: min(
        100%,
        720px
    );

}


/* ==========================================================================
   SUBTÍTULO
   ========================================================================== */

.hero-subtitle {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

    color: var(--color-secondary-light);

    font-size: 0.78rem;

    font-weight: var(--font-weight-semibold);

    letter-spacing: 0.18em;

    line-height: 1.4;

    text-transform: uppercase;

}

.hero-subtitle::before {

    content: "";

    display: block;

    width: 38px;

    height: 1px;

    background-color: var(--color-secondary);

}


/* ==========================================================================
   TÍTULO
   ========================================================================== */

.hero-title {

    max-width: 720px;

    margin-bottom: 28px;

    color: #ffffff;

    font-family: var(--font-display);

    font-size: clamp(
        3rem,
        6vw,
        5.6rem
    );

    font-weight: var(--font-weight-regular);

    letter-spacing: -0.025em;

    line-height: 0.98;

    text-wrap: balance;

}


/* ==========================================================================
   DESCRIÇÃO
   ========================================================================== */

.hero-description {

    max-width: 620px;

    margin-bottom: 36px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 1.05rem;

    line-height: 1.8;

}


/* ==========================================================================
   BOTÕES
   ========================================================================== */

.hero-buttons {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

}

.hero-buttons .btn {

    min-width: 190px;

}


/* ==========================================================================
   BOTÃO PRIMÁRIO DO HERO
   ========================================================================== */

.hero-buttons .btn-primary {

    background-color: var(--color-secondary);

    border-color: var(--color-secondary);

    color: var(--color-primary-dark);

}

.hero-buttons .btn-primary:hover {

    background-color: var(--color-secondary-light);

    border-color: var(--color-secondary-light);

    color: var(--color-primary-dark);

}


/* ==========================================================================
   BOTÃO SECUNDÁRIO DO HERO
   ========================================================================== */

.hero-buttons .btn-secondary {

    background-color: transparent;

    border-color: rgba(255, 255, 255, 0.65);

    color: #ffffff;

}

.hero-buttons .btn-secondary:hover {

    background-color: #ffffff;

    border-color: #ffffff;

    color: var(--color-primary-dark);

}


/* ==========================================================================
   INDICADOR DE SCROLL
   ========================================================================== */

.hero-scroll {

    position: absolute;

    left: 50%;

    bottom: 30px;

    z-index: 10;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.65rem;

    font-weight: var(--font-weight-medium);

    letter-spacing: 0.15em;

    text-transform: uppercase;

    transform: translateX(-50%);

}

.scroll-indicator {

    position: relative;

    width: 22px;

    height: 36px;

    border:
        1px solid
        rgba(255, 255, 255, 0.55);

    border-radius: var(--radius-pill);

}

.scroll-indicator span {

    position: absolute;

    top: 7px;

    left: 50%;

    width: 3px;

    height: 7px;

    border-radius: var(--radius-pill);

    background-color: #ffffff;

    transform: translateX(-50%);

    animation: scrollIndicator 1.8s ease-in-out infinite;

}

@keyframes scrollIndicator {

    0% {

        opacity: 0;

        transform:
            translate(-50%, 0);

    }

    25% {

        opacity: 1;

    }

    75% {

        opacity: 1;

    }

    100% {

        opacity: 0;

        transform:
            translate(-50%, 13px);

    }

}


/* ==========================================================================
   ELEMENTOS DECORATIVOS
   ========================================================================== */

.hero-elements {

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    overflow: hidden;

}

.hero-circle {

    position: absolute;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 50%;

}

.hero-circle-01 {

    top: -180px;

    right: -100px;

    width: 520px;

    height: 520px;

}

.hero-circle-02 {

    right: 16%;

    bottom: -280px;

    width: 600px;

    height: 600px;

    border-color:
        rgba(201, 168, 106, 0.12);

}

.hero-circle-03 {

    top: 25%;

    right: 8%;

    width: 180px;

    height: 180px;

    border-color:
        rgba(255, 255, 255, 0.08);

}


/* ==========================================================================
   GRADIENTES DECORATIVOS
   ========================================================================== */

.hero-gradient {

    position: absolute;

    width: 420px;

    height: 420px;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.16;

}

.hero-gradient-left {

    top: 10%;

    left: -220px;

    background-color: var(--color-secondary);

}

.hero-gradient-right {

    right: -180px;

    bottom: -160px;

    background-color: var(--color-primary-light);

}


/* ==========================================================================
   FLOATING CARDS
   ========================================================================== */

.hero-floating {

    position: absolute;

    inset: 0;

    z-index: 6;

    pointer-events: none;

}

.floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    min-height: 48px;

    padding:
        10px
        18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    border-radius: var(--radius-pill);

    background-color:
        rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.10);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    animation:
        heroFloating 5s ease-in-out infinite;

}

.floating-title {

    font-size: 0.72rem;

    font-weight: var(--font-weight-medium);

    letter-spacing: 0.05em;

}

.floating-card-01 {

    top: 28%;

    right: 8%;

}

.floating-card-02 {

    right: 18%;

    bottom: 24%;

    animation-delay: -2.5s;

}

@keyframes heroFloating {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-8px);

    }

}


/* ==========================================================================
   FADE INFERIOR
   ========================================================================== */

.hero-bottom-fade {

    position: absolute;

    right: 0;

    bottom: 0;

    left: 0;

    z-index: 7;

    height: 110px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--color-background)
        );

}


/* ==========================================================================
   PRELOAD / ASSETS OCULTOS
   ========================================================================== */

.hero-assets {

    display: none !important;

}


/* ==========================================================================
   ESTADOS DE ANIMAÇÃO
   ========================================================================== */

.hero-content > * {

    opacity: 0;

    transform: translateY(24px);

    animation:
        heroContentReveal 900ms ease forwards;

}

.hero-content .hero-subtitle {

    animation-delay: 150ms;

}

.hero-content .hero-title {

    animation-delay: 280ms;

}

.hero-content .hero-description {

    animation-delay: 410ms;

}

.hero-content .hero-buttons {

    animation-delay: 540ms;

}

@keyframes heroContentReveal {

    from {

        opacity: 0;

        transform: translateY(24px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {

    .hero {

        min-height: 760px;

    }

    .hero-container {

        padding-top: 90px;

        padding-bottom: 90px;

    }

    .hero-title {

        max-width: 650px;

    }

    .floating-card-01 {

        right: 4%;

    }

    .floating-card-02 {

        right: 10%;

    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .hero {

        min-height: 720px;

        align-items: flex-end;

    }

    .hero-video {

        object-position: 62% center;

    }

    .hero-overlay {

        background:
            linear-gradient(
                180deg,
                rgba(25, 43, 34, 0.36) 0%,
                rgba(25, 43, 34, 0.60) 38%,
                rgba(25, 43, 34, 0.92) 100%
            );

    }

    .hero-container {

        width: min(
            calc(100% - 28px),
            var(--container-width)
        );

        padding-top: 120px;

        padding-bottom: 110px;

    }

    .hero-content {

        width: 100%;

    }

    .hero-subtitle {

        margin-bottom: 18px;

        font-size: 0.68rem;

    }

    .hero-title {

        max-width: 600px;

        margin-bottom: 20px;

        font-size: clamp(
            2.65rem,
            11vw,
            4rem
        );

        line-height: 1.02;

    }

    .hero-description {

        max-width: 580px;

        margin-bottom: 28px;

        font-size: 0.95rem;

        line-height: 1.7;

    }

    .hero-buttons {

        width: 100%;

    }

    .hero-buttons .btn {

        min-width: 0;

        width: 100%;

    }

    .hero-scroll {

        bottom: 20px;

        font-size: 0.58rem;

    }

    .hero-floating {

        display: none;

    }

    .hero-circle-01 {

        top: -180px;

        right: -250px;

        width: 500px;

        height: 500px;

    }

    .hero-circle-02 {

        right: -250px;

        bottom: -300px;

    }

}


/* ==========================================================================
   MOBILE PEQUENO
   ========================================================================== */

@media (max-width: 480px) {

    .hero {

        min-height: 700px;

    }

    .hero-container {

        width: calc(100% - 24px);

        padding-top: 110px;

        padding-bottom: 100px;

    }

    .hero-title {

        font-size: clamp(
            2.4rem,
            12vw,
            3.25rem
        );

    }

    .hero-description {

        font-size: 0.9rem;

    }

    .hero-scroll {

        display: none;

    }

}


/* ==========================================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-video {

        animation: none;

        opacity: 1;

    }

    .hero-content > * {

        opacity: 1;

        transform: none;

        animation: none;

    }

    .floating-card {

        animation: none;

    }

    .scroll-indicator span {

        animation: none;

    }

}