/*
|--------------------------------------------------------------------------
| Global Hero V2
|--------------------------------------------------------------------------
|
| Shared homepage hero for Oracle and future Hero V2 themes.
|
*/


/* =========================================================
   HERO
   ========================================================= */

.site-global-hero {
    position: relative;
    width: 100%;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
    background: #eef1ef;
}


/* =========================================================
   BACKGROUND SLIDES
   ========================================================= */

.site-global-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: var(--global-hero-desktop-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 0;
    visibility: hidden;
}

.site-global-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   VIDEO BACKGROUND
   ========================================================= */

.site-global-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.site-global-hero-overlay {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 680px;

    padding: 70px 6%;
}


/* =========================================================
   CONTENT PANEL
   ========================================================= */

.site-global-hero-content {
    width: min(650px, 100%);

    padding: 42px;

    border: 0px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;

    background: var(
    --global-hero-panel-bg,
    rgba(255, 255, 255, 0.78)
);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.02);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.site-global-hero-content.is-transparent {
    border-color: transparent;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* =========================================================
   EYEBROW
   ========================================================= */

.site-global-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 18px;

    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(
    --global-hero-accent-colour,
    #334b4d
);
}

.site-global-hero-eyebrow::before {
    content: "";

    width: 46px;
    height: 1px;
    flex: 0 0 46px;

    background: currentColor;
    opacity: 0.65;
}


/* =========================================================
   HERO BULLETS
   ========================================================= */

.site-global-hero-bullets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 22px;

    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(
        --global-hero-accent-colour,
        #334b4d
    );
}

.site-global-hero-bullet {
    white-space: nowrap;
    color: inherit;
}

.site-global-hero-bullet-separator {
    font-size: 0.58rem;
    opacity: 0.65;
    color: inherit;
}


/* =========================================================
   TITLE
   ========================================================= */

.site-global-hero-title {
    margin: 0 0 22px;

    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 0.98;
    font-weight: 700;

    color: var(
        --global-hero-title-colour,
        #173a3d
    );
}


/* =========================================================
   CAPTION
   ========================================================= */

.site-global-hero-caption {
    max-width: 560px;

    margin-bottom: 28px;

    font-size: clamp(1rem, 1.0vw, 1.10rem);
    line-height: 1.7;

    color: var(
        --global-hero-caption-colour,
        #334b4d
    );
}


/* =========================================================
   BUTTON
   ========================================================= */

.site-global-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 12px 26px;

    border-radius: 999px;

    background: #173a3d;
    color: #ffffff;

    font-weight: 600;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.site-global-hero-button:hover {
    color: #ffffff;
    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-global-hero-navigation {
    position: absolute;
    z-index: 4;

    left: 6%;
    bottom: 32px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.site-global-hero-dot {
    width: 11px;
    height: 11px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(23, 58, 61, 0.35);

    cursor: pointer;

    transition:
        width 0.25s ease,
        border-radius 0.25s ease,
        background 0.25s ease;
}

.site-global-hero-dot.is-active {
    width: 32px;
    border-radius: 999px;

    background: #173a3d;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .site-global-hero,
    .site-global-hero-overlay {
        min-height: 620px;
    }

    .site-global-hero-overlay {
        padding:
            60px
            5%
            90px;
    }

    .site-global-hero-content {
        width: min(600px, 100%);
        padding: 34px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .site-global-hero-slide {
    background-image:
        var(
            --global-hero-mobile-image,
            var(--global-hero-desktop-image)
        );
}
    
    .site-global-hero,
    .site-global-hero-overlay {
        min-height: 560px;
    }

    .site-global-hero-overlay {
        align-items: flex-end;

        padding:
            40px
            20px
            80px;
    }

    .site-global-hero-content {
        padding: 26px 22px;

        border-radius: 18px;
    }

    .site-global-hero-title {
        margin-bottom: 14px;

        font-size: clamp(2.3rem, 12vw, 3.6rem);
    }

    .site-global-hero-caption {
        margin-bottom: 22px;

        font-size: 1rem;
        line-height: 1.55;
    }

    .site-global-hero-navigation {
        left: 20px;
        bottom: 28px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .site-global-hero *,
    .site-global-hero *::before,
    .site-global-hero *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }

}