/**
 * Homepage hero slider ([orfa_hero_slider]). Moved unchanged from the homepage code block; slides are edited under Homepage Slides.
 */
/* =========================================================
   BASE HERO
   ========================================================= */

#orfaHeroSlider {
    position: relative;

    width: 100%;
    min-height: 720px;

    overflow: hidden;

    background: #06162D;
    color: #FFFFFF;

    isolation: isolate;
}

#orfaHeroSlider .orfa-hero-slides {
    position: relative;

    min-height: 720px;
}

/* =========================================================
   SLIDES
   ========================================================= */

#orfaHeroSlider .orfa-hero-slide {
    position: absolute;

    inset: 0;

    min-height: 720px;

    overflow: hidden;

    background-color: #06162D;
    background-image: var(--orfa-hero-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    opacity: 0;
    visibility: hidden;

    transform: scale(1.018);

    transition:
        opacity .75s ease,
        visibility .75s ease,
        transform 1.25s cubic-bezier(.22,1,.36,1);
}

#orfaHeroSlider .orfa-hero-slide.is-active {
    opacity: 1;
    visibility: visible;

    transform: scale(1);
}

/* =========================================================
   HERO OVERLAY
   ========================================================= */

#orfaHeroSlider .orfa-hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(4,16,37,.72) 0%,
            rgba(4,16,37,.58) 28%,
            rgba(4,16,37,.28) 48%,
            rgba(4,16,37,.08) 68%,
            rgba(4,16,37,0) 100%
        ),
        linear-gradient(
            180deg,
            rgba(4,16,37,.03) 45%,
            rgba(4,16,37,.20) 100%
        );

    pointer-events: none;
}

/* =========================================================
   HERO INNER
   ========================================================= */

#orfaHeroSlider .orfa-hero-inner {
    position: relative;

    z-index: 3;

    width: min(
        1200px,
        calc(100% - 80px)
    );

    min-height: 720px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    padding-top: 45px;
    padding-bottom: 125px;
}

/* =========================================================
   HERO COPY
   ========================================================= */

#orfaHeroSlider .orfa-hero-copy {
    width: min(
        620px,
        52vw
    );
}

#orfaHeroSlider .orfa-hero-eyebrow {
    margin: 0 0 18px;

    color: #CFE9FF;

    font-size: 12px;
    line-height: 1.2;

    font-weight: 700;
    letter-spacing: .14em;

    text-transform: uppercase;
}

#orfaHeroSlider .orfa-hero-copy h1, #orfaHeroSlider .orfa-hero-copy h2 {
    max-width: 640px;

    margin: 0 0 23px;

    color: #FFFFFF;

    font-size: clamp(
        44px,
        4.3vw,
        65px
    );

    line-height: 1.04;

    font-weight: 650;

    letter-spacing: -.035em;
}

#orfaHeroSlider .orfa-hero-copy h1 span, #orfaHeroSlider .orfa-hero-copy h2 span {
    color: #FFFFFF;
}

#orfaHeroSlider .orfa-hero-copy p {
    max-width: 600px;

    margin: 0 0 31px;

    color: rgba(235,244,255,.82);

    font-size: 16px;
    line-height: 1.65;

    font-weight: 400;
}

/* =========================================================
   HERO BUTTONS
   ========================================================= */

#orfaHeroSlider .orfa-hero-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

#orfaHeroSlider .orfa-hero-btn {
    min-height: 45px;

    display: inline-flex;

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

    padding: 0 19px;

    border-radius: 7px;

    font-size: 13px;
    line-height: 1;

    font-weight: 650;

    text-decoration: none !important;

    transition:
        background-color .28s ease,
        border-color .28s ease,
        color .28s ease,
        transform .28s cubic-bezier(.22,1,.36,1),
        box-shadow .28s ease;
}

#orfaHeroSlider .orfa-hero-btn-primary {
    background: #FFFFFF;

    border: 1px solid #FFFFFF;

    color: #0D1F3C !important;
}

#orfaHeroSlider .orfa-hero-btn-primary:hover {
    background: #EAF5FF;

    border-color: #EAF5FF;

    color: #0D1F3C !important;

    transform: translateY(-2px);
}

#orfaHeroSlider .orfa-hero-btn-secondary {
    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.32);

    color: #FFFFFF !important;

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

#orfaHeroSlider .orfa-hero-btn-secondary:hover {
    background: rgba(255,255,255,.14);

    border-color: rgba(255,255,255,.56);

    color: #FFFFFF !important;

    transform: translateY(-2px);
}

/* =========================================================
   PREVIOUS / NEXT ARROWS
   ========================================================= */

#orfaHeroSlider .orfa-hero-arrow {
    position: absolute;

    z-index: 20;

    top: 43%;

    width: 44px;
    height: 44px;

    padding: 0;

    display: flex;

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

    border: 1px solid rgba(255,255,255,.23);

    border-radius: 50%;

    background: rgba(4,16,37,.20);

    color: #FFFFFF;

    font-family: Arial, sans-serif;

    font-size: 28px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

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

    transition:
        background-color .25s ease,
        border-color .25s ease;
}

#orfaHeroSlider .orfa-hero-arrow:hover {
    background: #1675E8;

    border-color: #1675E8;
}

#orfaHeroSlider .orfa-hero-prev {
    left: 22px;
}

#orfaHeroSlider .orfa-hero-next {
    right: 22px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

#orfaHeroSlider .orfa-hero-nav {
    position: absolute;

    z-index: 15;

    left: 50%;

    transform: translateX(-50%);

    width: min(
        1200px,
        calc(100% - 80px)
    );

    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 18px;

    align-items: stretch;
}

/* =========================================================
   BLUE NAV CARD
   ========================================================= */

#orfaHeroSlider .orfa-hero-tab {
    position: relative;

    min-width: 0;

    padding: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    border: 0;

    border-radius: 12px;

    background: transparent;

    color: #FFFFFF;

    text-align: left;

    cursor: pointer;

    transform: translateY(0);

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease;
}

#orfaHeroSlider .orfa-hero-tab:hover {
    transform: translateY(-3px);
}

/* =========================================================
   BLUE TAB HEADER
   Now this is the complete card
   ========================================================= */

#orfaHeroSlider .orfa-tab-head {
    position: relative;

    min-height: 58px;

    padding:
        11px
        17px
        12px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    box-sizing: border-box;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(6,22,45,.98) 0%,
            rgba(16,56,106,.96) 100%
        );

    color: #FFFFFF;

    box-shadow:
        0 8px 24px rgba(4,18,40,.12);

    transition:
        background .3s ease,
        box-shadow .3s ease;
}

#orfaHeroSlider .orfa-tab-head span {
    display: block;

    margin-bottom: 3px;

    color: #79C1FF;

    font-size: 9px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .10em;
}

#orfaHeroSlider .orfa-tab-head b {
    display: block;

    margin: 0;

    color: rgba(255,255,255,.86);

    font-size: 12px;
    line-height: 1.2;

    font-weight: 650;
}

/* =========================================================
   ACTIVE TAB
   ========================================================= */

#orfaHeroSlider .orfa-hero-tab.is-active {
    transform: translateY(-3px);
}

#orfaHeroSlider
.orfa-hero-tab.is-active
.orfa-tab-head {

    background:
        linear-gradient(
            135deg,
            #071C38 0%,
            #1458A9 100%
        );

    box-shadow:
        0 10px 28px rgba(18,82,170,.20);
}

#orfaHeroSlider
.orfa-hero-tab.is-active
.orfa-tab-head b {

    color: #FFFFFF;
}

/* =========================================================
   TAB HOVER
   ========================================================= */

#orfaHeroSlider
.orfa-hero-tab:hover
.orfa-tab-head {

    background:
        linear-gradient(
            135deg,
            #09254A 0%,
            #155CAB 100%
        );
}

/* =========================================================
   SUBTLE BLUE GLOW
   ========================================================= */

#orfaHeroSlider .orfa-hero-tab::after {
    content: "";

    position: absolute;

    right: -45px;
    bottom: -55px;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88,170,255,.13),
            transparent 68%
        );

    opacity: 0;

    pointer-events: none;

    transition: opacity .35s ease;
}

#orfaHeroSlider
.orfa-hero-tab:hover::after,

#orfaHeroSlider
.orfa-hero-tab.is-active::after {

    opacity: 1;
}

/* =========================================================
   PROGRESS LINE
   ========================================================= */

#orfaHeroSlider .orfa-hero-tab > i {
    position: absolute;

    z-index: 5;

    left: 0;
    top: 0;

    width: 0;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #1675E8,
            #79C1FF
        );

    pointer-events: none;
}

#orfaHeroSlider
.orfa-hero-tab.is-active > i {

    animation:
        orfaHeroProgress
        9s linear;
}

@keyframes orfaHeroProgress {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }

}

/* =========================================================
   DESKTOP
   Compact light dock + cards crossing hero boundary
   ========================================================= */

@media (min-width: 990px) {

    #orfaHeroSlider {
        min-height: 775px;
    }

    /* Light transition strip */
    #orfaHeroSlider::after {
        content: "";

        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        height: 58px;

        background: #F4F4F4;

        z-index: 7;

        pointer-events: none;
    }

    /*
       Cards partly overlap the banner
       and partly sit over light dock
    */
    #orfaHeroSlider .orfa-hero-nav {
        bottom: 22px;
    }

    #orfaHeroSlider .orfa-hero-inner {
        padding-bottom: 125px;
    }

}

/* =========================================================
   LARGE LAPTOP
   ========================================================= */

@media (max-width: 1280px) {

    #orfaHeroSlider .orfa-hero-inner {
        width: calc(100% - 90px);
    }

    #orfaHeroSlider .orfa-hero-nav {
        width: calc(100% - 90px);

        gap: 14px;
    }

}

/* =========================================================
   SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) {

    #orfaHeroSlider .orfa-hero-nav {
        width: calc(100% - 55px);

        gap: 10px;
    }

    #orfaHeroSlider .orfa-tab-head {
        min-height: 56px;

        padding:
            10px
            13px;
    }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 989px) {

    #orfaHeroSlider,
    #orfaHeroSlider .orfa-hero-slides,
    #orfaHeroSlider .orfa-hero-slide {

        min-height: 700px;
    }

    #orfaHeroSlider .orfa-hero-slide {
        background-position: 60% center;
    }

    #orfaHeroSlider .orfa-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4,16,37,.96) 0%,
                rgba(4,16,37,.84) 48%,
                rgba(4,16,37,.32) 100%
            );
    }

    #orfaHeroSlider .orfa-hero-inner {
        width: calc(100% - 55px);

        min-height: 700px;

        padding-bottom: 150px;
    }

    #orfaHeroSlider .orfa-hero-copy {
        width: 67%;
    }

    #orfaHeroSlider .orfa-hero-copy h1, #orfaHeroSlider .orfa-hero-copy h2 {
        font-size:
            clamp(
                38px,
                5vw,
                52px
            );
    }

    #orfaHeroSlider .orfa-hero-arrow {
        display: none;
    }

    #orfaHeroSlider .orfa-hero-nav {
        width: calc(100% - 30px);

        gap: 7px;

        bottom: 15px;
    }

    #orfaHeroSlider .orfa-tab-head {
        min-height: 52px;

        padding:
            9px
            10px;
    }

    #orfaHeroSlider .orfa-tab-head b {
        font-size: 10px;
    }

}

/* =========================================================
   MOBILE
   Only current navigation card is visible
   ========================================================= */

@media (max-width: 767px) {

    #orfaHeroSlider,
    #orfaHeroSlider .orfa-hero-slides,
    #orfaHeroSlider .orfa-hero-slide {

        min-height: 700px;
    }

    #orfaHeroSlider .orfa-hero-inner {
        width: calc(100% - 36px);

        padding-top: 28px;
        padding-bottom: 110px;
    }

    #orfaHeroSlider .orfa-hero-copy {
        width: 100%;
        max-width: 440px;
    }

    #orfaHeroSlider .orfa-hero-copy h1, #orfaHeroSlider .orfa-hero-copy h2 {
        font-size: clamp(
            33px,
            9vw,
            44px
        );
    }

    #orfaHeroSlider .orfa-hero-copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* One card only */
    #orfaHeroSlider .orfa-hero-nav {
        width: calc(100% - 36px);

        max-width: 390px;

        bottom: 16px;

        display: block;
    }

    #orfaHeroSlider .orfa-hero-tab {
        display: none;

        width: 100%;

        border-radius: 10px;

        transform: none !important;
    }

    #orfaHeroSlider .orfa-hero-tab.is-active {
        display: flex;
    }

    #orfaHeroSlider .orfa-tab-head {
        min-height: 54px;

        padding:
            10px
            14px;

        border-radius: 10px;
    }

    #orfaHeroSlider .orfa-tab-head span {
        font-size: 8px;
    }

    #orfaHeroSlider .orfa-tab-head b {
        font-size: 11px;
        line-height: 1.2;
    }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #orfaHeroSlider .orfa-hero-slide,
    #orfaHeroSlider .orfa-hero-tab,
    #orfaHeroSlider .orfa-hero-btn {

        transition: none !important;
    }

    #orfaHeroSlider
    .orfa-hero-tab.is-active > i {

        animation: none !important;

        width: 100%;
    }

}
