/* =========================================================
   RESPONSIVE HOME-PAGE MARKETING HERO
   Art-directed images:
   desktop = original filename (1920 x 420)
   tablet  = t- prefix        (1200 x 600)
   mobile  = m- prefix        (1555 x 1135)
========================================================= */

.oz-page-header-row--home {
    margin-bottom: 1rem;
}

.oz-hero-search-wrapper {
    position: relative;
    width: 100%;
    overflow: visible !important;
}

.oz-hero-search-wrapper--with-image {
    margin-bottom: 1.5rem !important;
}

/* ---------------------------------------------------------
   HERO: DESKTOP DEFAULT
--------------------------------------------------------- */

.oc-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 420;
    overflow: hidden;
    border-radius: var(--radius-lg, 1.25rem);
    background: var(--background-muted, #f8fafc);
    box-shadow: 0 .3rem .9rem rgba(var(--brand-primary-rgb, 5, 44, 101), .07);
    isolation: isolate;
}

.oc-hero__picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.oc-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.oc-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(3, 18, 40, .82) 0%, rgba(3, 18, 40, .64) 22%, rgba(3, 18, 40, .30) 43%, rgba(3, 18, 40, .06) 66%, rgba(3, 18, 40, 0) 100% );
}

/* Button-only mode keeps contrast local to the CTA and preserves the artwork. */
.oc-hero__scrim--button-only {
    background: radial-gradient(ellipse at left bottom, rgba(3, 18, 40, .30) 0%, rgba(3, 18, 40, .10) 28%, rgba(3, 18, 40, 0) 60%);
}

.oc-hero--button-only .oc-hero__content {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    padding: 0 3rem 3.6rem;
}

/* Configurable CTA alignment for button-only campaigns. */
.oc-hero--button-only.oc-hero--button-bottom-left .oc-hero__content {
    align-items: flex-start;
}

.oc-hero--button-only.oc-hero--button-bottom-center .oc-hero__content {
    align-items: center;
}

.oc-hero--button-only.oc-hero--button-bottom-right .oc-hero__content {
    align-items: flex-end;
}

.oc-hero--button-only.oc-hero--button-bottom-center .oc-hero__scrim--button-only {
    background: radial-gradient(ellipse at center bottom, rgba(3, 18, 40, .30) 0%, rgba(3, 18, 40, .10) 28%, rgba(3, 18, 40, 0) 60%);
}

.oc-hero--button-only.oc-hero--button-bottom-right .oc-hero__scrim--button-only {
    background: radial-gradient(ellipse at right bottom, rgba(3, 18, 40, .30) 0%, rgba(3, 18, 40, .10) 28%, rgba(3, 18, 40, 0) 60%);
}

/* Compact, non-blurred CTA panel for a clean campaign treatment. */
.oc-hero__cta-panel {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 1rem);
    padding: .42rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-pill, 999px);
    background: linear-gradient(135deg, rgba(3, 18, 40, .48), rgba(3, 18, 40, .32));
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .16);
}

    .oc-hero__cta-panel .oc-hero__button {
        min-height: 3rem;
        margin-top: 0;
        padding: .72rem 1.55rem;
        font-size: 1rem;
        box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .14);
    }

/* A full-area link is rendered only when the CTA is not shown. */
.oc-hero__full-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    cursor: pointer;
}

    .oc-hero__full-link:focus-visible {
        outline: 3px solid var(--brand-accent, #ffc107);
        outline-offset: -4px;
    }

.oc-hero--image-link .oc-hero__image {
    transition: transform .25s ease;
}

.oc-hero--image-link:hover .oc-hero__image,
.oc-hero--image-link:focus-within .oc-hero__image {
    transform: scale(1.01);
}

.oc-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(35%, 34rem);
    min-width: 27rem;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.55rem 1.5rem 2.4rem 3rem;
    color: var(--color-text-inverse, #fff);
}

.oc-hero__title {
    max-width: 15ch;
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 2.45vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.12;
    text-wrap: balance;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .30);
}

    .oc-hero__title::after {
        display: block;
        width: 4rem;
        height: 2px;
        margin-top: .85rem;
        border-radius: var(--radius-pill, 999px);
        background: var(--brand-accent, #ffc107);
        content: "";
    }

.oc-hero__description {
    max-width: 27rem;
    margin: .85rem 0 0;
    color: inherit;
    font-size: clamp(.95rem, 1.05vw, 1.05rem);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .36);
}

.oc-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 2.75rem;
    margin-top: 1rem;
    padding: .65rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-pill, 999px);
    background: var(--brand-secondary, var(--brand-primary, #052c65));
    color: var(--color-text-inverse, #fff);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 .25rem .65rem rgba(0, 0, 0, .14);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .oc-hero__button:hover,
    .oc-hero__button:focus-visible {
        background: var(--brand-primary, #052c65);
        border-color: rgba(255, 255, 255, .24);
        color: var(--color-text-inverse, #fff);
        transform: translateY(-1px);
        box-shadow: 0 .4rem .85rem rgba(0, 0, 0, .18);
    }

.oc-hero__button-icon {
    font-size: .85em;
    transition: transform .18s ease;
}

.oc-hero__button:hover .oc-hero__button-icon,
.oc-hero__button:focus-visible .oc-hero__button-icon {
    transform: translateX(2px);
}

/* ---------------------------------------------------------
   HERO + SEARCH
--------------------------------------------------------- */

.oz-hero-search-wrapper--with-image .oz-hero-search-panel {
    position: relative !important;
    inset: auto !important;
    z-index: 3;
    width: calc(100% - 3rem) !important;
    max-width: none !important;
    margin: -.75rem 1.5rem 0 !important;
    transform: none !important;
    overflow: visible !important;
}

    .oz-hero-search-wrapper--with-image .oz-hero-search-panel > .search-control-wrapper {
        border-radius: var(--radius-lg, 1.25rem);
        box-shadow: 0 .65rem 1.6rem rgba(var(--brand-primary-rgb, 5, 44, 101), .10);
    }

.oz-hero-search-panel,
.oz-hero-search-panel .search-control-wrapper,
.oz-hero-search-panel .search-control-wrapper-tab-main-container,
.oz-hero-search-panel .oz-search-tabs-wrapper,
.oz-hero-search-panel .oz-search-panel,
.oz-hero-search-panel .search-tab-content-container-style,
.oz-hero-search-panel .tab-content,
.oz-hero-search-panel .tab-pane,
.oz-hero-search-panel .search-filter-options,
.oz-hero-search-panel .search-filter-options > .row {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.oz-hero-search-wrapper--with-image .oz-hero-search-panel .search-control-wrapper {
    margin-bottom: 0 !important;
}

.oz-hero-search-wrapper--with-image .oz-search-tabs-wrapper {
    margin-top: 0 !important;
    margin-bottom: .6rem !important;
}

.oz-hero-search-wrapper--no-image .oz-hero-search-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    overflow: visible !important;
}

/* ---------------------------------------------------------
   TABLET: 1200 x 600 ARTWORK
--------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .oc-hero {
        aspect-ratio: 1200 / 600;
    }

    .oc-hero__scrim {
        background: linear-gradient( 90deg, rgba(3, 18, 40, .78) 0%, rgba(3, 18, 40, .52) 38%, rgba(3, 18, 40, .18) 70%, rgba(3, 18, 40, .02) 100% );
    }

    .oc-hero__content {
        width: 64%;
        min-width: 0;
        padding: 1.7rem 1.5rem 1.6rem 2.75rem;
        transform: translateY(.65rem);
    }

    .oc-hero--button-only .oc-hero__content {
        width: 100%;
        max-width: none;
        padding: 0 2.25rem 2.45rem;
        transform: none;
    }

    .oc-hero__cta-panel {
        padding: .4rem;
    }

    .oc-hero__title {
        max-width: 16ch;
        font-size: clamp(2rem, 3.7vw, 2.55rem);
        line-height: 1.1;
    }

        .oc-hero__title::after {
            width: 3.75rem;
            margin-top: .65rem;
        }

    .oc-hero__description {
        max-width: 29rem;
        margin-top: .7rem;
        font-size: clamp(.98rem, 1.7vw, 1.1rem);
        line-height: 1.46;
    }

    .oc-hero__button {
        min-height: 2.8rem;
        margin-top: .9rem;
        padding: .66rem 1.35rem;
        font-size: .97rem;
    }

    .oz-hero-search-wrapper--with-image .oz-hero-search-panel {
        width: calc(100% - 2rem) !important;
        margin: -.75rem 1rem 0 !important;
    }
}

/* ---------------------------------------------------------
   MOBILE: 1555 x 1135 ARTWORK
--------------------------------------------------------- */

@media (max-width: 767.98px) {
    .oz-page-header-row--home {
        margin-bottom: .75rem;
    }

    .oz-hero-search-wrapper--with-image {
        margin-bottom: 1rem !important;
    }

    .oc-hero {
        aspect-ratio: 1555 / 1135;
        border-radius: var(--radius-md, .85rem);
    }

    .oc-hero__scrim {
        background: linear-gradient( 90deg, rgba(3, 18, 40, .84) 0%, rgba(3, 18, 40, .72) 42%, rgba(3, 18, 40, .40) 72%, rgba(3, 18, 40, .10) 100% );
    }

    .oc-hero__content {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 4.8rem 1rem 2.25rem;
    }

    .oc-hero--button-only .oc-hero__content {
        justify-content: flex-end;
        padding: 0 .9rem 1rem;
    }

    .oc-hero__scrim--button-only {
        background: linear-gradient(0deg, rgba(3, 18, 40, .24) 0%, rgba(3, 18, 40, .06) 18%, rgba(3, 18, 40, 0) 38%);
    }

    .oc-hero__cta-panel {
        max-width: calc(100% - .5rem);
        padding: .36rem;
    }

        .oc-hero__cta-panel .oc-hero__button {
            min-height: 2.9rem;
            padding: .68rem 1.35rem;
            font-size: .96rem;
        }

    .oc-hero__title {
        max-width: 16ch;
        font-size: clamp(1.6rem, 6.2vw, 2rem);
        line-height: 1.12;
    }

        .oc-hero__title::after {
            width: 3.25rem;
            margin-top: .65rem;
        }

    .oc-hero__description {
        display: -webkit-box;
        max-width: min(88%, 26rem);
        margin-top: .8rem;
        overflow: hidden;
        font-size: clamp(.92rem, 3.5vw, 1rem);
        line-height: 1.48;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .oc-hero__button {
        min-height: 2.8rem;
        margin-top: 1.1rem;
        padding: .66rem 1.25rem;
        font-size: .95rem;
    }

    .oz-hero-search-wrapper--with-image .oz-hero-search-panel {
        width: calc(100% - 2rem) !important;
        margin: -.6rem 1rem 0 !important;
    }

        .oz-hero-search-wrapper--with-image .oz-hero-search-panel > .search-control-wrapper {
            border-radius: var(--radius-md, .85rem);
            box-shadow: 0 .55rem 1.3rem rgba(var(--brand-primary-rgb, 5, 44, 101), .10);
        }
}

@media (max-width: 399.98px) {
    .oc-hero__content {
        padding: 4.15rem .9rem 2rem;
    }

    .oc-hero__title {
        max-width: 15ch;
        font-size: clamp(1.45rem, 6.8vw, 1.8rem);
    }

    .oc-hero__description {
        max-width: 92%;
        font-size: .9rem;
        -webkit-line-clamp: 3;
    }

    .oc-hero__button {
        margin-top: 1rem;
    }

    .oc-hero--button-only .oc-hero__content {
        padding: 0 .7rem .8rem;
    }

    .oc-hero__cta-panel .oc-hero__button {
        padding-inline: 1.15rem;
        font-size: .92rem;
    }

    .oz-hero-search-wrapper--with-image .oz-hero-search-panel {
        width: calc(100% - 1rem) !important;
        margin: -.5rem .5rem 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oc-hero__button,
    .oc-hero__button-icon,
    .oc-hero--image-link .oc-hero__image {
        transition: none;
    }

    .oc-hero--image-link:hover .oc-hero__image,
    .oc-hero--image-link:focus-within .oc-hero__image {
        transform: none;
    }
}

