﻿/* ==========================================================
   CYBERDESIGN D14.7A1
   Enterprise Home Hero Banner & Slider Studio
   ========================================================== */

.enterprise-home-hero {
    --enterprise-hero-width: 100%;
    --enterprise-hero-height: 510px;
    --enterprise-hero-tablet-height: 620px;
    --enterprise-hero-mobile-height: 560px;
    --enterprise-hero-fit: cover;
    --enterprise-hero-position: 50% 50%;
    --enterprise-hero-mobile-position: 50% 50%;
    --enterprise-hero-scale: 1;
    --enterprise-hero-mobile-scale: 1;
    --enterprise-hero-overlay: #061a2e;
    --enterprise-hero-overlay-opacity: .24;
    --enterprise-hero-title-color: #4e5095;
    --enterprise-hero-subtitle-color: #5e60a8;
    --enterprise-hero-description-color: #173f56;
    --enterprise-hero-badge-text-color: #5e60a8;
    --enterprise-hero-title-size-desktop: 62px;
    --enterprise-hero-title-size-tablet: 48px;
    --enterprise-hero-title-size-mobile: 36px;
    --enterprise-hero-subtitle-size-desktop: 30px;
    --enterprise-hero-subtitle-size-tablet: 24px;
    --enterprise-hero-subtitle-size-mobile: 20px;
    --enterprise-hero-description-size-desktop: 16px;
    --enterprise-hero-description-size-tablet: 15px;
    --enterprise-hero-description-size-mobile: 14px;
    --enterprise-hero-title-weight: 900;
    --enterprise-hero-subtitle-weight: 800;
    --enterprise-hero-description-weight: 600;
    --enterprise-hero-text-align: start;
    --enterprise-hero-text-shadow: 0 2px 10px #ffffff6b;
    position: relative;
}

.enterprise-home-hero .enterprise-hero-shell {
    position: relative;
    width: var(--enterprise-hero-width);
    margin-inline: auto;
}

.enterprise-home-hero .enterprise-hero-stage {
    position: relative;
    height: var(--enterprise-hero-height);
    min-height: 620px;
    overflow: hidden;
    border-radius: 18px;
    background: #0b2639;
    box-shadow: 0 18px 52px rgba(8, 47, 70, .18);
    isolation: isolate;
}

.enterprise-home-hero.is-viewport .enterprise-hero-stage {
    height: calc(100svh - 18px);
    min-height: 640px;
}

.enterprise-hero-slides,
.enterprise-hero-slide,
.enterprise-hero-picture,
.enterprise-hero-overlay {
    position: absolute;
    inset: 0;
}

.enterprise-hero-slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .7s cubic-bezier(.22, .61, .36, 1),
        visibility .7s linear,
        transform .7s cubic-bezier(.22, .61, .36, 1);
}

.enterprise-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.enterprise-home-hero[data-transition="slide"] .enterprise-hero-slide {
    opacity: 1;
    transform: translateX(6%);
}

html[dir="ltr"] .enterprise-home-hero[data-transition="slide"] .enterprise-hero-slide {
    transform: translateX(-6%);
}

.enterprise-home-hero[data-transition="slide"] .enterprise-hero-slide.is-active {
    transform: translateX(0);
}

.enterprise-home-hero[data-transition="zoom"] .enterprise-hero-slide {
    transform: scale(1.045);
}

.enterprise-home-hero[data-transition="zoom"] .enterprise-hero-slide.is-active {
    transform: scale(1);
}

.enterprise-hero-picture {
    overflow: hidden;
}

.enterprise-hero-media {
    width: 100%;
    height: 100%;
    object-fit: var(--enterprise-hero-fit);
    object-position: var(--enterprise-hero-position);
    transform: scale(var(--enterprise-hero-scale));
    transform-origin: var(--enterprise-hero-position);
    transition: transform 7s ease;
    background: #eaf1f5;
}

.enterprise-home-hero[data-transition="zoom"] .enterprise-hero-slide.is-active .enterprise-hero-media {
    transform: scale(calc(var(--enterprise-hero-scale) * 1.035));
}

.enterprise-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(255, 255, 255, .91) 28%,
            rgba(255, 255, 255, .42) 52%,
            rgba(6, 26, 46, .08) 72%,
            rgba(6, 26, 46, .14) 100%
        );
}

html[dir="ltr"] .enterprise-hero-overlay {
    background:
        linear-gradient(
            270deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(255, 255, 255, .91) 28%,
            rgba(255, 255, 255, .42) 52%,
            rgba(6, 26, 46, .08) 72%,
            rgba(6, 26, 46, .14) 100%
        );
}

.enterprise-hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--enterprise-hero-overlay);
    opacity: var(--enterprise-hero-overlay-opacity);
    mix-blend-mode: multiply;
}

/* D14.8.2 professional image treatment: preserve the photo and isolate text readability. */
.enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-overlay,
html[dir="ltr"] .enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-overlay {
    background: linear-gradient(90deg, rgba(11,53,88,.08), rgba(11,53,88,.16));
}

.enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-overlay::after {
    mix-blend-mode: normal;
}

/* CYBERDESIGN D14.8.4E — Hero copy is visually integrated with the banner image. */
.enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-copy {
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    scrollbar-color: rgba(10,99,173,.28) transparent;
}

.enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-copy h1 {
    color: var(--enterprise-hero-title-color, #4e5095);
    text-shadow: var(--enterprise-hero-text-shadow, none);
}

.enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-copy h1 > span {
    color: var(--enterprise-hero-subtitle-color, #5e60a8);
}

.enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-copy > p {
    color: var(--enterprise-hero-description-color, #173f56);
    text-shadow: var(--enterprise-hero-text-shadow, none);
}

.enterprise-home-hero .hero-primary-button,
.enterprise-home-hero .booking-search-button {
    color: var(--enterprise-hero-booking-button-text, #fff) !important;
    background: var(--enterprise-hero-booking-button-bg, #0b4f94) !important;
    border-color: var(--enterprise-hero-booking-button-bg, #0b4f94) !important;
}

.enterprise-home-hero .hero-primary-button:hover,
.enterprise-home-hero .hero-primary-button:focus,
.enterprise-home-hero .booking-search-button:hover,
.enterprise-home-hero .booking-search-button:focus {
    color: var(--enterprise-hero-booking-button-text, #fff) !important;
    background: var(--enterprise-hero-booking-button-hover, #07366c) !important;
    border-color: var(--enterprise-hero-booking-button-hover, #07366c) !important;
}

.enterprise-hero-content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 34px 42px;
}

.enterprise-hero-copy {
    width: min(52%, 720px);
    max-height: calc(100% - 110px);
    overflow: auto;
    padding: 14px 0;
    scrollbar-width: thin;
    text-align: var(--enterprise-hero-text-align, start);
}

.enterprise-hero-copy h1 {
    margin: 0 0 15px;
    color: var(--enterprise-hero-title-color, #4e5095);
    font-size: var(--enterprise-hero-title-size-desktop, 62px);
    font-weight: var(--enterprise-hero-title-weight, 900);
    text-shadow: var(--enterprise-hero-text-shadow, none);
    line-height: 1.28;
    text-wrap: balance;
}

.enterprise-hero-copy h1 > span {
    display: block;
    margin-top: 7px;
    color: var(--enterprise-hero-subtitle-color, #5e60a8);
    font-size: var(--enterprise-hero-subtitle-size-desktop, 30px);
    font-weight: var(--enterprise-hero-subtitle-weight, 800);
    text-shadow: var(--enterprise-hero-text-shadow, none);
    line-height: 1.45;
}

.enterprise-hero-copy > p {
    max-width: 680px;
    margin-bottom: 20px;
    color: var(--enterprise-hero-description-color, #173f56);
    font-size: var(--enterprise-hero-description-size-desktop, 16px);
    font-weight: var(--enterprise-hero-description-weight, 600);
    text-shadow: var(--enterprise-hero-text-shadow, none);
    line-height: 1.9;
}

.enterprise-hero-copy .home-hero-label {
    color: var(--enterprise-hero-badge-text-color, #5e60a8);
    box-shadow: 0 8px 22px rgba(10, 64, 83, .08);
}

.enterprise-hero-booking-shell {
    position: absolute;
    z-index: 4;
    inset-block: 50% auto;
    inset-inline-end: 38px;
    width: min(38%, 460px);
    transform: translateY(-50%);
}

.enterprise-hero-booking-shell .hero-booking-card {
    width: 100%;
    max-height: none;
    margin: 0;
    overflow: visible;
    border-color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 70px rgba(3, 35, 55, .22);
}

.enterprise-hero-navigation {
    position: absolute;
    z-index: 6;
    inset-inline-start: 36px;
    inset-block-end: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.enterprise-hero-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(8, 57, 84, .16);
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #07366c;
    box-shadow: 0 8px 22px rgba(7,54,108,.12);
    cursor: pointer;
    transition: .2s ease;
    backdrop-filter: blur(10px);
}

.enterprise-hero-arrow:hover {
    color: #fff;
    background: var(--lavida-primary, #0b4f94);
    transform: translateY(-2px);
}

.enterprise-hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.enterprise-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(7,54,108,.32);
    cursor: pointer;
    transition: .25s ease;
}

.enterprise-hero-dot.is-active {
    width: 28px;
    background: var(--lavida-primary, #0b4f94);
}

.enterprise-hero-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #07366c;
    font-size: .78rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.enterprise-hero-counter i {
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(7,54,108,.28);
}

.enterprise-hero-progress {
    position: absolute;
    z-index: 6;
    inset-inline: 0;
    inset-block-end: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255,255,255,.28);
}

.enterprise-hero-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--lavida-green, #69be45);
}

.enterprise-home-hero.is-playing .enterprise-hero-progress > span {
    animation: enterpriseHeroProgress var(--enterprise-hero-interval, 6500ms) linear forwards;
}

.enterprise-hero-scroll {
    position: absolute;
    z-index: 6;
    inset-inline: 50% auto;
    inset-block-end: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #07366c;
    font-size: .75rem;
    font-weight: 900;
    text-decoration: none;
    transform: translateX(50%);
}

html[dir="ltr"] .enterprise-hero-scroll {
    transform: translateX(-50%);
}

.enterprise-hero-scroll i {
    font-size: 1.1rem;
}

.enterprise-hero-scroll b {
    position: relative;
    display: block;
    width: 1px;
    height: 28px;
    overflow: hidden;
    background: rgba(7,54,108,.2);
}

.enterprise-hero-scroll b::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #07366c;
    animation: enterpriseHeroScroll 1.8s ease-in-out infinite;
}

@keyframes enterpriseHeroProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes enterpriseHeroScroll {
    0% { transform: translateY(-100%); }
    50%, 100% { transform: translateY(100%); }
}

@media (max-width: 1199.98px) {
    .enterprise-home-hero .enterprise-hero-stage {
        height: var(--enterprise-hero-tablet-height);
    }

    .enterprise-home-hero.is-viewport .enterprise-hero-stage {
        height: calc(100svh - 12px);
        min-height: 680px;
    }

    .enterprise-hero-content-grid {
        padding: 30px;
    }

    .enterprise-hero-copy {
        width: 56%;
    }

    .enterprise-hero-booking-shell {
        inset-inline-end: 28px;
        width: min(42%, 430px);
    }

    .enterprise-hero-booking-shell .hero-booking-card {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .enterprise-home-hero .enterprise-hero-stage {
        height: max(var(--enterprise-hero-tablet-height), 900px);
    }

    .enterprise-hero-copy {
        width: 100%;
        max-width: 680px;
        max-height: 52%;
        padding-inline-end: 0;
    }

    .enterprise-hero-copy h1 {
        font-size: var(--enterprise-hero-title-size-tablet, 48px);
    }

    .enterprise-hero-copy h1 > span {
        font-size: var(--enterprise-hero-subtitle-size-tablet, 24px);
    }

    .enterprise-hero-copy > p {
        font-size: var(--enterprise-hero-description-size-tablet, 15px);
    }

    .enterprise-hero-booking-shell {
        inset-block: auto 38px;
        inset-inline: 30px;
        width: auto;
        transform: none;
    }

    .enterprise-hero-booking-shell .hero-booking-card {
        width: min(100%, 620px);
        max-height: none;
        margin-inline: auto;
        overflow: visible;
    }

    .enterprise-hero-navigation {
        inset-inline-start: 24px;
        inset-block-end: 12px;
    }

    .enterprise-hero-scroll {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .enterprise-home-hero .enterprise-hero-shell {
        width: 100%;
    }

    .enterprise-home-hero .enterprise-hero-stage,
    .enterprise-home-hero.is-viewport .enterprise-hero-stage {
        height: max(var(--enterprise-hero-mobile-height), 980px);
        min-height: 940px;
        border-radius: 14px;
    }

    .enterprise-hero-media {
        object-position: var(--enterprise-hero-mobile-position);
        transform: scale(var(--enterprise-hero-mobile-scale));
    }

    .enterprise-home-hero[data-transition="zoom"] .enterprise-hero-slide.is-active .enterprise-hero-media {
        transform: scale(calc(var(--enterprise-hero-mobile-scale) * 1.025));
    }

    .enterprise-hero-overlay,
    html[dir="ltr"] .enterprise-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.97) 0%,
                rgba(255,255,255,.9) 43%,
                rgba(255,255,255,.62) 65%,
                rgba(6,26,46,.2) 100%
            );
    }

    .enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-overlay,
    html[dir="ltr"] .enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-overlay {
        background: linear-gradient(180deg, rgba(11,53,88,.08), rgba(11,53,88,.18));
    }

    .enterprise-home-hero[data-visual-style="professionalglass"] .enterprise-hero-copy {
        padding: 8px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .enterprise-hero-content-grid {
        align-items: start;
        padding: 24px 20px 690px;
    }

    .enterprise-hero-copy {
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 4px 0;
    }

    .enterprise-hero-copy h1 {
        font-size: var(--enterprise-hero-title-size-mobile, 36px);
        line-height: 1.25;
    }

    .enterprise-hero-copy h1 > span {
        font-size: var(--enterprise-hero-subtitle-size-mobile, 20px);
    }

    .enterprise-hero-copy > p {
        font-size: var(--enterprise-hero-description-size-mobile, 14px);
    }

    .enterprise-hero-copy > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-height: 1.7;
    }

    .enterprise-hero-copy .home-hero-actions {
        gap: 8px;
    }

    .enterprise-hero-copy .hero-primary-button,
    .enterprise-hero-copy .hero-dark-button,
    .enterprise-hero-copy .hero-outline-button {
        min-height: 40px;
        padding-inline: 13px;
        font-size: .76rem;
    }

    .enterprise-hero-copy .hero-emergency-button {
        min-width: 0;
        max-width: 100%;
    }

    .enterprise-hero-booking-shell {
        inset: auto 14px 44px;
    }

    .enterprise-hero-booking-shell .hero-booking-card {
        max-height: none;
        padding: 16px;
        border-radius: 14px;
        overflow: visible;
    }

    .enterprise-hero-navigation {
        inset-inline-start: 14px;
        inset-block-end: 8px;
        gap: 7px;
    }

    .enterprise-hero-arrow {
        width: 34px;
        height: 34px;
    }

    .enterprise-hero-counter {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .enterprise-home-hero[data-reduced-motion="true"] *,
    .enterprise-home-hero[data-reduced-motion="true"] *::before,
    .enterprise-home-hero[data-reduced-motion="true"] *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* ==========================================================
   CYBERDESIGN D14.8.4B
   Runtime acceptance: true full-width / full-bleed hero.
   The media stage owns the viewport width; content remains
   internally padded by enterprise-hero-content-grid.
   ========================================================== */
.enterprise-home-hero {
    width: 100%;
    max-width: none;
    overflow-x: clip;
}

.enterprise-home-hero > .hospital-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
}

.enterprise-home-hero .enterprise-hero-shell {
    width: 100% !important;
    max-width: none;
    margin-inline: 0;
}

.enterprise-home-hero .enterprise-hero-stage,
.enterprise-home-hero.is-viewport .enterprise-hero-stage {
    width: 100%;
    border-radius: 0;
}

@media (max-width: 767.98px) {
    .enterprise-home-hero .enterprise-hero-stage,
    .enterprise-home-hero.is-viewport .enterprise-hero-stage {
        border-radius: 0;
    }
}

/* ==========================================================
   CYBERDESIGN D14.8.4D
   Conservative CSS-only viewport breakout.
   Keep the proven D14.8.4B hero DOM/render pipeline untouched;
   only expand the hero section from its parent width to the
   viewport width. Inner hero rendering/booking remains intact.
   ========================================================== */
.enterprise-home-hero {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
}

@supports (width: 100dvw) {
    .enterprise-home-hero {
        width: 100dvw;
        max-width: 100dvw;
        margin-inline: calc(50% - 50dvw);
    }
}

/* Retain the D14.8.4B zero-gutter inner wrapper and full-width stage. */
.enterprise-home-hero > .hospital-container,
.enterprise-home-hero .enterprise-hero-shell,
.enterprise-home-hero .enterprise-hero-stage,
.enterprise-home-hero.is-viewport .enterprise-hero-stage {
    max-width: none;
}
