/* =========================================================
   VITAFLOW HERO
   CSS ONLY
========================================================= */


/* =========================================================
   01. MAIN SCROLL AREA
========================================================= */

.hero-story {
    position: relative;
    width: 100%;
    min-height: 350vh;
    margin: 0;
    padding: 0;
}


/* =========================================================
   02. HERO SCENE
========================================================= */

.hero-scene {
    position: relative;

    width: 100%;
    height: 100vh;
    min-height: 700px;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* =========================================================
   03. BACKGROUND VIDEO
========================================================= */

.hero-bg-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   04. VIDEO OVERLAY
========================================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(2, 18, 32, 0.22) 0%,
            rgba(2, 18, 32, 0.04) 45%,
            rgba(2, 18, 32, 0.28) 100%
        );
}


/* =========================================================
   05. HERO CONTENT
========================================================= */

.hero-content {
    position: absolute;

    inset: 0;

    z-index: 10;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 0;

    pointer-events: none;
}


/* =========================================================
   06. LEFT AREA
========================================================= */

.hero-left {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 230px;

    margin: 0;
    padding: 0;

    transform:
        translate(calc(-50% - 365px), -50%);

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: auto;
}


/* =========================================================
   07. LEFT BUTTON
========================================================= */

.hero-left-button {
    min-width: 168px;
    min-height: 52px;

    padding: 0 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.58);

    border-radius: 999px;

    background:
        rgba(5, 24, 40, 0.18);

    color: #ffffff;

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

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}

.hero-left-button:hover {
    transform: translateY(-3px);

    background:
        rgba(255,255,255,0.12);

    border-color:
        rgba(255,255,255,0.85);
}


/* =========================================================
   08. CENTER AREA
========================================================= */

.hero-center {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 470px;
    height: 470px;

    margin: 0;
    padding: 0;

    transform:
        translate(-50%, -50%);

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: auto;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   09. CENTER IMAGE
========================================================= */

.hero-center-image {
    position: relative;

    z-index: 3;

    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    object-fit: contain;

    margin: 0;
    padding: 0;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   10. RIGHT AREA
========================================================= */

.hero-right {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 230px;

    margin: 0;
    padding: 0;

    transform:
        translate(calc(-50% + 365px), -50%);

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: auto;
}


/* =========================================================
   11. RIGHT BUTTON
========================================================= */

.hero-right-button {
    min-width: 168px;
    min-height: 52px;

    padding: 0 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.58);

    border-radius: 999px;

    background:
        rgba(5, 24, 40, 0.18);

    color: #ffffff;

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

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}

.hero-right-button:hover {
    transform: translateY(-3px);

    background:
        rgba(255,255,255,0.12);

    border-color:
        rgba(255,255,255,0.85);
}


/* =========================================================
   12. METRICS WRAPPER
========================================================= */

.metrics {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 20;

    pointer-events: none;
}


/* =========================================================
   13. ALL METRIC CARDS
========================================================= */

.metric-card {
    position: absolute;

    width: 180px;
    min-height: 110px;

    box-sizing: border-box;

    padding: 18px;

    border-radius: 18px;

    background:
        rgba(255,255,255,0.88);

    border:
        1px solid rgba(255,255,255,0.38);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.18);

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

    opacity: 0;

    visibility: hidden;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   14. CARD POSITIONS
========================================================= */

.metric-01 {
    top: 18%;
    left: 8%;
}

.metric-02 {
    top: 20%;
    right: 8%;
}

.metric-03 {
    bottom: 20%;
    left: 10%;
}

.metric-04 {
    bottom: 16%;
    right: 10%;
}

.metric-05 {
    top: 48%;
    right: 5%;
}


/* =========================================================
   15. CARD TYPOGRAPHY
========================================================= */

.metric-card h1,
.metric-card h2,
.metric-card h3,
.metric-card h4,
.metric-card h5,
.metric-card h6,
.metric-card p {
    margin-top: 0;
}


/* =========================================================
   16. OPTIONAL CARD LABEL
========================================================= */

.metric-label {
    font-size: 10px;

    line-height: 1.2;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    opacity: 0.60;
}


/* =========================================================
   17. OPTIONAL CARD VALUE
========================================================= */

.metric-value {
    margin: 6px 0;

    font-size: 30px;

    line-height: 1;

    font-weight: 600;
}


/* =========================================================
   18. OPTIONAL CARD UNIT
========================================================= */

.metric-unit {
    font-size: 11px;

    line-height: 1.2;

    opacity: 0.55;
}


/* =========================================================
   19. FINAL MESSAGE
========================================================= */

.hero-message {
    position: absolute;

    z-index: 30;

    left: 50%;
    top: 50%;

    width: min(900px, 90%);

    margin: 0;
    padding: 0;

    transform:
        translate(-50%, -50%);

    text-align: center;

    opacity: 0;

    visibility: hidden;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   20. MESSAGE TAG
========================================================= */

.hero-message-tag {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: 0.75;
}


/* =========================================================
   21. MESSAGE HEADING
========================================================= */

.hero-message-title {
    max-width: 850px;

    margin: 0 auto;

    color: #ffffff;

    font-size:
        clamp(48px, 6vw, 82px);

    line-height: 0.98;

    letter-spacing: -3px;

    font-weight: 500;
}


/* =========================================================
   22. MESSAGE TEXT
========================================================= */

.hero-message-text {
    max-width: 620px;

    margin: 25px auto 0;

    color: #ffffff;

    font-size: 17px;

    line-height: 1.6;

    opacity: 0.75;
}


/* =========================================================
   23. MESSAGE BUTTON WRAPPER
========================================================= */

.hero-message-buttons {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 30px;
}


/* =========================================================
   24. MESSAGE BUTTON
========================================================= */

.hero-message-button {
    min-height: 52px;

    padding: 0 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 999px;

    transition:
        transform 0.3s ease;
}

.hero-message-button:hover {
    transform:
        translateY(-3px);
}


/* =========================================================
   25. TABLET
========================================================= */

@media (max-width: 1024px) {

    .hero-center {
        width: 390px;
        height: 390px;
    }

    .hero-left {
        transform:
            translate(calc(-50% - 285px), -50%);
    }

    .hero-right {
        transform:
            translate(calc(-50% + 285px), -50%);
    }

    .hero-left-button,
    .hero-right-button {
        min-width: 145px;
    }

    .metric-card {
        width: 155px;
    }
}


/* =========================================================
   26. MOBILE
========================================================= */

@media (max-width: 767px) {

    .hero-story {
        min-height: 320vh;
    }

    .hero-scene {
        height: 100vh;
        min-height: 620px;
    }


    /* Center image */

    .hero-center {
        width: 300px;
        height: 300px;

        top: 42%;
    }


    /* Left */

    .hero-left {
        left: 18px;

        top: auto;
        bottom: 65px;

        width: auto;

        transform: none;
    }


    /* Right */

    .hero-right {
        left: auto;

        right: 18px;

        top: auto;
        bottom: 65px;

        width: auto;

        transform: none;
    }


    /* Buttons */

    .hero-left-button,
    .hero-right-button {
        min-width: 120px;

        min-height: 44px;

        padding:
            0 16px;

        font-size: 9px;

        letter-spacing: 1.5px;
    }


    /* Cards */

    .metric-card {
        width: 135px;

        min-height: 90px;

        padding: 13px;

        border-radius: 14px;
    }

    .metric-01 {
        top: 15%;
        left: 3%;
    }

    .metric-02 {
        top: 23%;
        right: 3%;
    }

    .metric-03 {
        bottom: 25%;
        left: 3%;
    }

    .metric-04 {
        bottom: 17%;
        right: 3%;
    }

    .metric-05 {
        top: 46%;
        right: 3%;
    }


    /* Final message */

    .hero-message {
        width: 90%;
    }

    .hero-message-title {
        font-size: 40px;

        line-height: 1;

        letter-spacing: -1.5px;
    }

    .hero-message-text {
        font-size: 15px;
    }

    .hero-message-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-message-button {
        width: 100%;
    }
}


/* =========================================================
   27. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero-center {
        width: 250px;
        height: 250px;
    }

    .hero-left {
        left: 10px;
    }

    .hero-right {
        right: 10px;
    }

    .hero-left-button,
    .hero-right-button {
        min-width: 105px;

        padding:
            0 10px;

        font-size: 8px;

        letter-spacing: 1.2px;
    }

    .metric-card {
        width: 115px;
    }

    .metric-value {
        font-size: 24px;
    }

    .hero-message-title {
        font-size: 34px;
    }
}