/* ================================= */
/*     CINEMATIC HOSPITAL HERO       */
/* ================================= */

:root {
    --primary-color: #0d8f6f;
    --primary-dark: #08755c;
    --white: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.90);
    --overlay-left: rgba(5, 19, 15, 0.014);
    --overlay-mid: rgba(5, 19, 15, 0.055);
    --overlay-right: rgba(5, 19, 15, 0.018);
    --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.014);
    --transition-smooth: all 0.45s ease;
    --container-width: 1240px;
}

/* ================================= */
/*              RESET                */
/* ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cinematic-hero {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #09100f;
    isolation: isolate;
}

/* ================================= */
/*          SLIDE LAYER              */
/* ================================= */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ================================= */
/*       RESPONSIVE IMAGE WRAPPER    */
/* ================================= */
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ================================= */
/*      HERO IMAGE (IMPORTANT)       */
/* ================================= */
/*
   We use contain on larger screens so more of the image
   is preserved and visible.
*/
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* full image visibility on wide screens */
    object-position: center center;
    transform: scale(1.06);
    will-change: transform;
    filter: brightness(0.94) contrast(1.03) saturate(1.02);
    animation-duration: 14s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Different cinematic motion per slide */
.hero-slide:nth-child(1) .hero-media img {
    animation-name: droneMoveOne;
}

.hero-slide:nth-child(2) .hero-media img {
    animation-name: droneMoveTwo;
}

.hero-slide:nth-child(3) .hero-media img {
    animation-name: droneMoveThree;
}

.hero-slide:nth-child(4) .hero-media img {
    animation-name: droneMoveFour;
}

/* ================================= */
/*            OVERLAY                */
/* ================================= */
/*
   Still allows the image to remain visible
   while keeping text readable.
*/
.hero-overlay {
    /* position: absolute; */
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(
            to right,
            var(--overlay-left) 0%,
            var(--overlay-mid) 45%,
            var(--overlay-right) 100%
        );
}

/* ================================= */
/*            CONTENT                */
/* ================================= */
.hero-content {
    position: relative;
    z-index: 5;
    width: min(92%, var(--container-width));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--white);
    animation: fadeUp 1.1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #ebfffb;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 800;
    max-width: 820px;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.hero-content h1 span {
    color: #7cf6d5;
}

.hero-quote {
    font-size: clamp(1rem, 2vw, 1.32rem);
    max-width: 760px;
    line-height: 1.8;
    min-height: 2.8em;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    border-radius: 10px;
}

.cursor {
    display: inline-block;
    margin-left: 3px;
    color: #7cf6d5;
    font-weight: bold;
    animation: blink 0.8s infinite;
}

/* ================================= */
/*            BUTTONS                */
/* ================================= */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.primary-btn {
    background:  #009ceb;
    color: #fff;
}

.secondary-btn {
    background: #30aa18;
    color: #fff;
    /* border: 1px solid rgba(255, 255, 255, 0.22); */
    /* backdrop-filter: blur(6px); */
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

/* ================================= */
/*          SLIDER DOTS              */
/* ================================= */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 0.7rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: all 0.4s ease;
}

.hero-dot.active {
    width: 34px;
    border-radius: 999px;
    background: #7cf6d5;
}

/* ================================= */
/*      DRONE / CINEMATIC MOTION     */
/* ================================= */
@keyframes droneMoveOne {
    0% {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.12) translate3d(-18px, -10px, 0);
    }
}

@keyframes droneMoveTwo {
    0% {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.11) translate3d(18px, -8px, 0);
    }
}

@keyframes droneMoveThree {
    0% {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.12) translate3d(-14px, 12px, 0);
    }
}

@keyframes droneMoveFour {
    0% {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.11) translate3d(16px, 10px, 0);
    }
}

/* ================================= */
/*          TEXT ENTRANCE            */
/* ================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ================================= */
/*            LARGE DESKTOP          */
/* ================================= */
/*
   On very wide screens, we preserve even more image content.
*/
@media (min-width: 1400px) {
    .hero-media img {
        object-fit: contain;
        transform: scale(1.02);
    }

    .hero-overlay {
        background:
            linear-gradient(
                to right,
                rgba(5, 19, 15, 0.66) 0%,
                rgba(5, 19, 15, 0.40) 42%,
                rgba(5, 19, 15, 0.14) 100%
            );
    }
}

/* ================================= */
/*             TABLET                */
/* ================================= */
@media (max-width: 1200px) {
    .cinematic-hero {
        height: 78vh;
        min-height: 560px;
    }

    /*
       Tablet and below uses cover so the section still feels full and premium
       without empty spaces.
    */
    .hero-media img {
        object-fit: cover;
        transform: scale(1.08);
    }

    .hero-overlay {
        background:
            linear-gradient(
                to top,
                rgba(5, 19, 15, 0.74) 0%,
                rgba(5, 19, 15, 0.46) 55%,
                rgba(5, 19, 15, 0.18) 100%
            );
    }
}

/* ================================= */
/*             MOBILE                */
/* ================================= */
@media (max-width: 768px) {
    .cinematic-hero {
        height: 50vh; /* exactly what you requested */
        min-height: 380px;
        align-items: flex-end;
        padding-bottom: 72px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        gap: 0.9rem;
    }

    .hero-content h1,
    .hero-quote {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-dots {
        bottom: 20px;
    }

    .hero-media img {
        object-fit: cover;
        transform: scale(1.06);
    }

    .hero-overlay {
        background:
            linear-gradient(
                to top,
                rgba(5, 19, 15, 0.80) 0%,
                rgba(5, 19, 15, 0.48) 58%,
                rgba(5, 19, 15, 0.16) 100%
            );
    }

    /* Smaller movement for mobile */
    @keyframes droneMoveOne {
        0% {
            transform: scale(1.06) translate3d(0, 0, 0);
        }
        100% {
            transform: scale(1.10) translate3d(-8px, -5px, 0);
        }
    }

    @keyframes droneMoveTwo {
        0% {
            transform: scale(1.06) translate3d(0, 0, 0);
        }
        100% {
            transform: scale(1.10) translate3d(8px, -5px, 0);
        }
    }

    @keyframes droneMoveThree {
        0% {
            transform: scale(1.06) translate3d(0, 0, 0);
        }
        100% {
            transform: scale(1.10) translate3d(-7px, 6px, 0);
        }
    }

    @keyframes droneMoveFour {
        0% {
            transform: scale(1.06) translate3d(0, 0, 0);
        }
        100% {
            transform: scale(1.10) translate3d(7px, 6px, 0);
        }
    }
}