/**
 * Supa View — cinematic hero (uses design tokens)
 */

.sv-hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--sv-color-surface);
    overflow: hidden;
    isolation: isolate;
}

.sv-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--sv-color-cedar);
}

.sv-hero__media-slot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sv-hero__media-slot .sv-media-slot__image,
.sv-hero__media-slot .sv-media-slot__video {
    animation: sv-hero-ken-burns 24s var(--sv-ease-luxury) infinite alternate;
}

.sv-hero__media-slot .sv-media-slot__video {
    animation: none;
}

.sv-hero__image,
.sv-hero__video {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
}

.sv-hero__image {
    background-size: cover;
    background-position: center;
    animation: sv-hero-ken-burns 24s var(--sv-ease-luxury) infinite alternate;
}

.sv-hero__video {
    inset: 0;
    width: 100%;
    height: 100%;
    animation: none;
}

@keyframes sv-hero-ken-burns {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.1);
    }
}

.sv-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Real footage has bright skies and white signage behind the copy — pool shade under the text block. */
    background:
        radial-gradient(ellipse 70% 42% at 50% 50%, rgba(8, 10, 9, 0.42) 0%, rgba(8, 10, 9, 0.18) 55%, transparent 100%),
        linear-gradient(
            180deg,
            rgba(12, 14, 12, 0.55) 0%,
            rgba(12, 14, 12, 0.36) 35%,
            rgba(10, 12, 11, 0.46) 62%,
            rgba(6, 8, 7, 0.8) 100%
        ),
        radial-gradient(ellipse 90% 70% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.sv-hero__content {
    position: relative;
    z-index: 2;
    width: min(92vw, 52rem);
    margin: 0 auto;
    padding: calc(var(--sv-header-height) + var(--sv-space-8)) var(--sv-space-gutter) var(--sv-space-24);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: sv-hero-content-in 1.1s var(--sv-ease-luxury) both;
}

@keyframes sv-hero-content-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.sv-hero__eyebrow {
    font-family: var(--sv-font-body);
    font-size: var(--sv-text-eyebrow);
    font-weight: 500;
    letter-spacing: var(--sv-tracking-eyebrow);
    text-transform: uppercase;
    color: var(--sv-color-bronze-light);
    margin: 0 0 var(--sv-space-5);
}

.sv-hero__headline {
    margin: 0 0 var(--sv-space-5);
    font-family: var(--sv-font-display);
    font-weight: 400;
    line-height: var(--sv-leading-display);
    letter-spacing: var(--sv-tracking-display);
}

.sv-hero__headline-line {
    display: block;
    font-size: clamp(2.25rem, 8vw, 5.5rem);
    font-weight: 300;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.sv-hero__headline-line--accent {
    font-size: clamp(2.5rem, 8.5vw, 6rem);
    font-style: italic;
    margin-top: 0.05em;
}

.sv-hero__subtext {
    font-family: var(--sv-font-body);
    font-size: var(--sv-text-body-lg);
    line-height: var(--sv-leading-body);
    color: rgba(255, 252, 248, 0.9);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
    max-width: 32em;
    margin: 0 auto var(--sv-space-10);
}

.sv-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sv-space-3);
    width: 100%;
    max-width: 16rem;
}

.sv-hero__actions .sv-btn {
    width: 100%;
}

.sv-hero__scroll {
    position: absolute;
    bottom: var(--sv-space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sv-space-2);
    color: rgba(255, 252, 248, 0.6);
    text-decoration: none;
    transition: color var(--sv-duration-fast) var(--sv-ease-luxury);
    animation: sv-hero-scroll-in 1.4s var(--sv-ease-luxury) 0.6s both;
}

@keyframes sv-hero-scroll-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sv-hero__scroll:hover {
    color: var(--sv-color-bronze-light);
}

.sv-hero__scroll-label {
    font-family: var(--sv-font-body);
    font-size: var(--sv-text-eyebrow);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.sv-hero__scroll-line {
    display: block;
    width: 1px;
    height: 2.5rem;
    background: linear-gradient(180deg, var(--sv-color-bronze-light), transparent);
    animation: sv-hero-scroll-pulse 2.4s var(--sv-ease-luxury) infinite;
}

@keyframes sv-hero-scroll-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scaleY(0.75);
        transform-origin: top center;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top center;
    }
}

body:has(.sv-hero) .main-header:not(.sticky) {
    background: linear-gradient(180deg, rgba(8, 12, 10, 0.5) 0%, transparent 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body:has(.sv-hero) .main-header:not(.sticky) .site-logo-text,
body:has(.sv-hero) .main-header:not(.sticky) .nav-logo-text span {
    color: var(--sv-color-surface) !important;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

body:has(.sv-hero) .main-header:not(.sticky) .desktop-nav a {
    color: rgba(255, 252, 248, 0.88);
}

body:has(.sv-hero) .main-header:not(.sticky) .desktop-nav a:hover {
    color: var(--sv-color-bronze-light);
}

body:has(.sv-hero) .main-header:not(.sticky) .hamburger-line {
    background-color: var(--sv-color-surface);
}

@media (min-width: 480px) {
    .sv-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
        width: auto;
    }

    .sv-hero__actions .sv-btn {
        width: auto;
        min-width: 10.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-hero__image {
        animation: none;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .sv-hero__content {
        animation: none;
    }

    .sv-hero__scroll-line {
        animation: none;
        opacity: 0.7;
    }
}
