﻿.el145-hero {
    --el145-bg: RGBA(0, 0, 0, 0);
    --el145-accent: var(--color-primary, #ff5e14);
    --el145-surface: var(--bs-body-bg, #fff);
    --el145-card-width: clamp(128px, 11vw, 165px);
    --el145-card-spill: clamp(35px, 3.2vw, 50px);
    --type145-active-background-image: var(--type145-background-image-desktop, none);
    --type145-active-background-position: var(--type145-background-position-desktop, left center);
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding-top: var(--el145-padding-top, 0px);
    padding-block-end: calc(var(--el145-padding-bottom, 0px) + var(--el145-card-spill) + 10px);
}

.el145-hero--corporate-accent {
    --el145-accent: color-mix(in srgb, var(--color-primary, #ff5e14) 86%, var(--bs-body-bg, #fff));
}

.el145-hero *,
.el145-hero *::before,
.el145-hero *::after {
    box-sizing: border-box;
}

.el145-hero__container,
.el145-hero__stage,
.el145-hero__layout {
    position: relative;
}

.el145-hero__layout {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: clamp(520px, 40vw, 590px);
    z-index: 0;
    direction: ltr;
}

.el145-hero__layout::before {
    position: absolute;
    z-index: -1;
    top: calc(0px - var(--el145-padding-top, 0px));
    bottom: calc(0px - var(--el145-padding-bottom, 0px));
    left: 50%;
    width: 100vw;
    pointer-events: none;
    content: "";
    /* The selected device image is layered above the configurable Hero background. */
    background-color: var(--el145-bg);
    background-image:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--el145-bg) 5%, transparent) 0%,
            color-mix(in srgb, var(--el145-bg) 20%, transparent) 28%,
            color-mix(in srgb, var(--el145-bg) 82%, transparent) 55%,
            var(--el145-bg) 72%,
            var(--el145-bg) 100%
        ),
        var(--type145-active-background-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center, var(--type145-active-background-position);
    transform: translateX(-50%);
}

.el145-hero__content {
    position: relative;
    z-index: 1;
    width: min(46%, 560px);
    padding-block: 40px;
    color: var(--el145-surface);
    direction: rtl;
    text-align: right;
}

.el145-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .9rem;
    color: color-mix(in srgb, var(--el145-accent) 82%, var(--el145-surface));
    font-size: .84rem;
    font-weight: 750;
    letter-spacing: .02em;
}

.el145-hero__eyebrow::before {
    width: 26px;
    height: 2px;
    content: "";
    background: currentColor;
}

.el145-hero__title {
    max-width: 13ch;
    margin: 0;
    color: var(--el145-surface);
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 800;
    line-height: 1.32;
}

.el145-hero__description {
    max-width: 53ch;
    margin-top: 1.05rem;
    color: color-mix(in srgb, var(--el145-surface) 80%, transparent);
    font-size: clamp(.94rem, 1.1vw, 1.05rem);
    line-height: 2;
}

.el145-hero__description p:last-child {
    margin-bottom: 0;
}

.el145-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.55rem;
}

.el145-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 46px;
    padding: .66rem 1.05rem;
    border: 1px solid transparent;
    border-radius: .35rem;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.el145-hero__action:hover {
    transform: translateY(-2px);
}

.el145-hero__action--primary {
    color: var(--el145-surface);
    background: var(--el145-button1-background, var(--el145-accent));
    border-color: var(--el145-button1-background, var(--el145-accent));
}

.el145-hero__action--primary:hover,
.el145-hero__action--primary:focus-visible {
    color: var(--el145-surface);
    background: color-mix(in srgb, var(--el145-button1-background, var(--el145-accent)) 84%, var(--el145-surface));
    border-color: color-mix(in srgb, var(--el145-button1-background, var(--el145-accent)) 84%, var(--el145-surface));
}

.el145-hero__action--secondary {
    color: var(--el145-surface);
    background: var(--el145-button2-background, transparent);
    border-color: var(--el145-button2-background, color-mix(in srgb, var(--el145-surface) 48%, transparent));
}

.el145-hero__action--secondary:hover,
.el145-hero__action--secondary:focus-visible {
    color: var(--el145-surface);
    background: color-mix(in srgb, var(--el145-button2-background, var(--el145-surface)) 82%, var(--el145-surface));
    border-color: color-mix(in srgb, var(--el145-button2-background, var(--el145-surface)) 70%, var(--el145-surface));
}

.el145-hero__action:focus-visible,
.el145-service-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--el145-accent) 72%, var(--el145-surface));
    outline-offset: 3px;
}

.el145-hero__cards {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, var(--el145-card-width));
    gap: clamp(7px, .8vw, 12px);
    width: max-content;
    direction: ltr;
    transform: translateY(var(--el145-card-spill));
}

.el145-service-card-shell {
    min-width: 0;
}

.el145-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 105px;
    padding: 50px 25px 50px;
    color: var(--el145-surface);
    background: var(--el145-card-background, color-mix(in srgb, var(--el145-bg) 88%, var(--el145-accent)));
    border: 1px solid color-mix(in srgb, var(--el145-surface) 24%, var(--el145-accent));
    border-radius: .4rem;
    box-shadow: 0 7px 15px color-mix(in srgb, var(--el145-bg) 35%, transparent);
    direction: rtl;
    text-align: right;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.el145-service-card:hover {
    color: var(--el145-surface);
    border-color: color-mix(in srgb, var(--el145-accent) 72%, var(--el145-surface));
    box-shadow: 0 10px 19px color-mix(in srgb, var(--el145-bg) 42%, transparent);
    transform: translateY(-4px);
}

.el145-service-card__icon {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    color: #ECECEC;
    font-size: 2rem;
}

.el145-service-card__title {
    display: -webkit-box;
    max-width: 100%;
    margin: .45rem 0 0;
    overflow: hidden;
    color: inherit;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.el145-hero__empty-state {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: .75rem;
    color: var(--el145-surface);
    text-align: center;
    background: color-mix(in srgb, var(--el145-bg) 94%, var(--el145-accent));
    border: 1px dashed color-mix(in srgb, var(--el145-surface) 42%, transparent);
    transform: translateY(var(--el145-card-spill));
}

@media (max-width: 1199.98px) {
    .el145-hero {
        --type145-active-background-image: var(--type145-background-image-tablet, none);
        --type145-active-background-position: var(--type145-background-position-tablet, left center);
        --el145-card-width: clamp(118px, 15vw, 150px);
    }

    .el145-hero__layout::before {
        background-image:
            linear-gradient(
                90deg,
                color-mix(in srgb, var(--el145-bg) 20%, transparent) 0%,
                color-mix(in srgb, var(--el145-bg) 42%, transparent) 28%,
                color-mix(in srgb, var(--el145-bg) 88%, transparent) 55%,
                var(--el145-bg) 72%,
                var(--el145-bg) 100%
            ),
            var(--type145-active-background-image);
    }

    .el145-hero__content {
        width: min(50%, 520px);
    }
}

@media (max-width: 767.98px) {
    .el145-hero {
        --type145-active-background-image: var(--type145-background-image-mobile, none);
        --type145-active-background-position: var(--type145-background-position-mobile, center top);
        padding-block-end: 1.5rem;
    }

    .el145-hero__layout {
        display: block;
        min-height: clamp(470px, 128vw, 610px);
        padding-top: clamp(235px, 62vw, 345px);
    }

    .el145-hero__layout::before {
        background-image:
            linear-gradient(
                180deg,
                color-mix(in srgb, var(--el145-bg) 2%, transparent) 0%,
                color-mix(in srgb, var(--el145-bg) 22%, transparent) 29%,
                color-mix(in srgb, var(--el145-bg) 84%, transparent) 56%,
                var(--el145-bg) 74%,
                var(--el145-bg) 100%
            ),
            var(--type145-active-background-image);
        background-position: center top, var(--type145-active-background-position);
    }

    .el145-hero__content {
        width: 100%;
        padding: 1.2rem 0 1.8rem;
    }

    .el145-hero__title,
    .el145-hero__description {
        max-width: none;
    }

    .el145-hero__title {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .el145-hero__description {
        font-size: .94rem;
        line-height: 1.9;
    }

    .el145-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        margin-top: 1.3rem;
    }

    .el145-hero__action {
        width: 100%;
        min-height: 52px;
    }

    .el145-hero__cards {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .75rem;
        width: 100%;
        margin-top: 1rem;
        direction: rtl;
        transform: none;
    }

    .el145-service-card {
        min-height: 94px;
        padding: 15px;
    }

    .el145-service-card__title {
        font-size: .9rem;
    }

    .el145-hero__empty-state {
        position: static;
        margin-top: 1rem;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .el145-hero__action,
    .el145-service-card {
        transition: none;
    }
}
