/*
================================================

Space Vanta Theme 1.0

Module:
Hero

File:
public/hero/hero.css

Version:
1.5 Spatial Editorial Multilingual Typography

Purpose:
Hero base visual system

Responsibilities:
- Hero frame
- Media
- Content positioning
- Typography
- CTA
- Responsive layout
- Title composition foundation
- Multilingual title wrapping

Motion:
Handled by hero-motion.css

Carousel:
Handled by hero-carousel.css

Navigation:
Handled by navigation/arrow.css

Cover:
Handled by hero-cover.css

================================================
*/


/*
---------------------------------
01. Hero Frame
---------------------------------
*/

.sv-hero {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        var(--sv-bg);

}


/*
---------------------------------
02. Viewport
---------------------------------
*/

.sv-hero__viewport {

    position: relative;

    width: 100%;

    height: 100%;

    overflow: hidden;

}


/*
---------------------------------
03. Media
---------------------------------
*/

.sv-hero__media {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

    z-index: 0;

}


.sv-hero__image {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: 55% center;

}

/*
---------------------------------
04. Desktop / Mobile Image
---------------------------------
*/

.sv-hero__image--desktop {

    display: block;

}


.sv-hero__image--mobile {

    display: none;

}


/*
---------------------------------
05. Content
---------------------------------
*/

.sv-hero__content {

    position: absolute;

    z-index: 6;

    pointer-events: none;

}


.sv-hero__content--desktop {

    display: block;

}


.sv-hero__content--mobile {

    display: none;

}


/*
---------------------------------
06. Desktop Content Position
---------------------------------

The desktop content zone is wider
than the previous 460px foundation.

This prevents English Hero titles
from being forced into narrow
one-word-per-line compositions.

The wider content zone does not
change the visual anchor of the
Hero. It simply gives the editorial
title enough horizontal space.

---------------------------------
*/

@media (min-width: 768px) {

    .sv-hero__content {

        left:
            clamp(48px,
                7vw,
                120px);

        top: 50%;

        width:
            min(calc(100% - 96px),
                620px);

        max-width: 620px;

        transform:
            translateY(-50%);

        box-sizing:
            border-box;

    }

}

/*
---------------------------------
07. Content Inner
---------------------------------
*/

.sv-hero__content-inner {

    width: 100%;

    box-sizing:
        border-box;

}


/*
---------------------------------
08. Eyebrow
---------------------------------
*/

.sv-hero__eyebrow {

    margin: 0;

    font-family:
        var(--sv-font-sans);

    font-size: 11px;

    line-height: 1.3;

    font-weight:
        var(--sv-weight-medium);

    letter-spacing:
        .16em;

    text-transform: uppercase;

    color:
        var(--sv-text);

    opacity: .82;

}


/*
---------------------------------
09. Title
---------------------------------

The Hero title is controlled by
visual width rather than character
count.

This is intentionally different
from the previous "ch" based system.

Chinese:
- natural character wrapping
- no forced character count

English:
- natural word wrapping
- wider editorial line composition
- avoids one-word-per-line layouts

Explicit Title Line 1 / Line 2
remain the preferred editorial
composition method.

---------------------------------
*/

.sv-hero__title {

    margin: 17px 0 0;

    max-width:
        620px;

    font-family:
        var(--sv-font-sans);

    font-size:
        clamp(48px,
            4.8vw,
            72px);

    line-height: .94;

    font-weight:
        var(--sv-weight-medium);

    letter-spacing:
        -.035em;

    color:
        var(--sv-text);

    overflow-wrap:
        normal;

    word-break:
        normal;

    white-space:
        normal;

}

/*
---------------------------------
10. Title Layout
---------------------------------

Layout classes now represent
visual composition width rather
than character count.

The naming remains unchanged so
existing Theme Editor settings
continue to work.

---------------------------------
*/

.sv-hero__title--3-3 {

    max-width:
        440px;

}


.sv-hero__title--4-4 {

    max-width:
        520px;

}


.sv-hero__title--3-5 {

    max-width:
        620px;

}


.sv-hero__title--custom {

    max-width:
        none;

}


/*
---------------------------------
11. Explicit Title Lines
---------------------------------

Backend supplied Title Line 1
and Title Line 2 are treated as
editorial visual units.

The line remains naturally sized
when possible.

max-width prevents the line from
escaping the title container on
smaller screens.

---------------------------------
*/

.sv-hero__title-line {

    display: block;

    width:
        max-content;

    max-width:
        100%;

    margin: 0;

    padding: 0;

}

/*
---------------------------------
12. Text
---------------------------------
*/

.sv-hero__text {

    max-width: 360px;

    margin: 24px 0 0;

    font-family:
        var(--sv-font-sans);

    font-size: 15px;

    line-height: 1.6;

    font-weight:
        var(--sv-weight-regular);

    letter-spacing: .005em;

    color:
        var(--sv-text);

}

/*
---------------------------------
13. CTA
---------------------------------
*/

.sv-hero__button {

    pointer-events: auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    margin-top: 28px;

    padding:
        0 17px;

    box-sizing: border-box;

    border:
        1px solid rgba(24, 26, 28, .34);

    border-radius: 2px;

    background:
        rgba(248, 247, 243, .88);

    color:
        var(--sv-text);

    font-family:
        var(--sv-font-sans);

    font-size: 12px;

    line-height: 1;

    font-weight:
        var(--sv-weight-medium);

    letter-spacing: .03em;

    text-decoration: none;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .045);

    transition:
        background-color .28s ease,
        border-color .28s ease,
        color .28s ease,
        transform .28s cubic-bezier(.22, .61, .36, 1),
        box-shadow .28s ease;

}


/*
---------------------------------
14. CTA Hover
---------------------------------
*/

.sv-hero__button:hover {

    background:
        rgba(255, 255, 255, .96);

    border-color:
        rgba(24, 26, 28, .52);

    color:
        var(--sv-text);

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, .07);

}

/*
---------------------------------
15. CTA Active
---------------------------------
*/

.sv-hero__button:active {

    transform:
        translateY(0);

    background:
        rgba(239, 239, 235, .94);

}


/*
---------------------------------
16. CTA Focus
---------------------------------
*/

.sv-hero__button:focus-visible {

    outline:
        1px solid var(--sv-focus);

    outline-offset: 3px;

}


/*
---------------------------------
17. Important
---------------------------------

No generated arrow.

The button displays exactly the
text supplied by the backend.

---------------------------------
*/

.sv-hero__button::after {

    content: none;

}

/*
---------------------------------
18. Mobile
---------------------------------
*/

@media (max-width: 767px) {

    .sv-hero {

        aspect-ratio: 4 / 5;

    }


    .sv-hero__image--desktop {

        display: none;

    }


    .sv-hero__image--mobile {

        display: block;

        object-position: center center;

    }


    .sv-hero__content--desktop {

        display: none;

    }


    .sv-hero__content--mobile {

        display: block;

    }


    .sv-hero__content {

        left: 20px;

        right: 20px;

        bottom: 28px;

        width: auto;

        max-width: none;

        box-sizing:
            border-box;

    }


    .sv-hero__eyebrow {

        font-size: 10px;

        letter-spacing:
            .14em;

    }


    /*
    -----------------------------
    18.1 Mobile Title
    -----------------------------
    */

    .sv-hero__title {

        max-width:
            min(100%, 360px);

        margin-top: 14px;

        font-size:
            clamp(44px,
                12vw,
                68px);

        line-height: .94;

        letter-spacing:
            -.035em;

    }

    /*
    -----------------------------
    18.2 Mobile Title Layout
    -----------------------------

    Keep the same layout options
    while using visual widths.

    -----------------------------
    */

    .sv-hero__title--3-3 {

        max-width:
            300px;

    }


    .sv-hero__title--4-4 {

        max-width:
            340px;

    }


    .sv-hero__title--3-5 {

        max-width:
            360px;

    }


    .sv-hero__title--custom {

        max-width:
            none;

    }


    /*
    -----------------------------
    18.3 Mobile Explicit Lines
    -----------------------------
    */

    .sv-hero__title-line {

        width:
            max-content;

        max-width:
            100%;

    }


    /*
    -----------------------------
    18.4 Mobile Text
    -----------------------------
    */

    .sv-hero__text {

        max-width: 320px;

        margin-top: 18px;

        font-size: 15px;

        line-height: 1.55;

    }


    /*
    -----------------------------
    18.5 Mobile CTA
    -----------------------------
    */

    .sv-hero__button {

        min-height: 44px;

        margin-top: 22px;

        padding:
            0 16px;

    }

}

/*
---------------------------------
19. Reduced Motion
---------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .sv-hero__button {

        transition: none;

    }

}