/* Hospitality Hero - flex layout `hosp_hero`
   Live .ns_section_hero_video: min-height 720px navy, video/poster under a
   180deg navy gradient (.35 to .7), 200px/120px inner padding, 12px eyebrow with
   sky dot, Teko 80px/500 h1 (max 16ch, sky highlight), 15px intro (max 540px),
   button row (gap 12px), 4-up stats (max 900px, 1px top rule, 36px Teko values,
   11px labels) and a sky marquee strip (13px/700, 2px tracking) pinned to the
   bottom. Tablet: 56px h1, 2-up stats. Mobile: 40px h1, full-width buttons. */
.hosp_hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 720px;
    overflow: hidden;
    background: var(--primary);
    color: var(--white);

    @media (max-width: 991px) { min-height: 600px; }

    & > .container {
        position: relative;
        z-index: 2;
    }

    & .hosp_hero_inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;

        @media (max-width: 991px) { gap: 20px; }
    }

    & .hosp_hero_eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #B6C2D2; /* live one-off eyebrow tint */

        &::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--secondary);
        }
    }

    & .hosp_hero_title {
        max-width: 16ch;
        margin: 0;
        font-size: 80px;
        font-weight: 500;
        line-height: .95;
        text-transform: uppercase;
        color: var(--white);

        @media (max-width: 991px) { font-size: 56px; }
        @media (max-width: 768px) { font-size: 40px; }
    }

    & .hosp_hero_highlight { color: var(--secondary); }

    & .hosp_hero_text {
        max-width: 540px;
        margin: 0;
        font-family: var(--font-body);
        font-size: 15px;
        line-height: 1.6;
        color: rgba(255, 255, 255, .9);

        @media (max-width: 768px) { font-size: 14px; }
    }

    & .hosp_hero_buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 8px;

        @media (max-width: 768px) {
            width: 100%;

            & .btn_primary,
            & .btn_ghost { width: 100%; height: 52px; padding: 0 24px; }
        }
    }

    /* Live .btn-outline: 1px white 50% border, Teko 20px/400, fills sky on hover */
    & .hosp_hero_button_outline {
        padding: 17.5px 28px 18.5px;
        border: 1px solid rgba(255, 255, 255, .5);
        font-weight: 400;

        & span { font-weight: 400; }

        &:hover,
        &:focus-visible {
            background: var(--secondary);
            border-color: var(--secondary);
            color: var(--white);
        }
    }

    & .hosp_hero_stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        max-width: 900px;
        margin-top: 56px;
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, .18);

        @media (max-width: 991px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
            margin-top: 40px;
        }
    }

    & .hosp_hero_stat {
        position: relative;
        padding: 0 24px;

        &:first-child { padding-left: 0; }

        & + .hosp_hero_stat::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 1px;
            height: 44px;
            background: rgba(91, 107, 130, .6);
        }

        @media (max-width: 991px) {
            padding: 0;

            & + .hosp_hero_stat::before { display: none; }
        }
    }

    & .hosp_hero_stat_value {
        font-family: var(--font-display);
        font-size: 36px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        color: var(--white);

        & svg {
            display: block;
            width: auto;
            height: 32px;
        }
    }

    & .hosp_hero_stat_label {
        margin-top: 16px;
        font-family: var(--font-body);
        font-size: 11px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #5B6B82; /* live one-off stat label tint */
    }

    /* Marquee strip ------------------------------------------------------ */
    & .hosp_hero_marquee {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        overflow: hidden;
        padding: 14px 0;
        background: var(--secondary);

        &:hover .hosp_hero_marquee_track { animation-play-state: paused; }
    }

    & .hosp_hero_marquee_track {
        display: flex;
        gap: 48px;
        width: max-content;
        white-space: nowrap;
        animation: hosp_hero_marquee_scroll 40s linear infinite;
    }

    & .hosp_hero_marquee_item {
        display: inline-flex;
        align-items: center;
        gap: 24px;
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #061A2C; /* live marquee navy */

        &::after {
            content: "\2726";
            font-size: 12px;
            color: #061A2C;
        }
    }

    /* Media layer -------------------------------------------------------- */
    & .hosp_hero_media {
        position: absolute;
        inset: 0;
        z-index: 0;

        & video,
        & img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }

    & .hosp_hero_overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(8, 35, 60, .35) 0%, rgba(8, 35, 60, .7) 100%);
    }
}

@keyframes hosp_hero_marquee_scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Floating pill CTA (live .ns_hero_sticky_cta) - sits outside the section so it
   can be position: fixed; shown by hosp-hero.php's observer once the hero passes. */
.hosp_hero_sticky {
    position: fixed;
    right: 24px;
    /* sits above the circular back-to-top button (48px, bottom: clamp(16px,3vw,30px))
       instead of overlapping it in the corner */
    bottom: calc(clamp(16px, 3vw, 30px) + 48px + 16px);
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px; /* live one-off pill shape */
    background: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .3s var(--ease);

    &::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--white);
    }

    &:hover,
    &:focus-visible { background: var(--secondary-hover); color: var(--white); }

    &.is_visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    @media (max-width: 768px) {
        right: 16px;
        /* same clearance rule as the desktop bottom offset, using the mobile back-to-top
           gutter (clamp bottoms out at 16px on small screens) */
        bottom: calc(16px + 48px + 12px);
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Reduced motion: the video is paused by hosp-hero.php (poster frame stays), the marquee stops. */
@media (prefers-reduced-motion: reduce) {
    .hosp_hero .hosp_hero_marquee_track { animation: none; }
}
