/* =========================================================
   Sysbasic Hero - Bootstrap 5.3 / Drupal
========================================================= */

html,
body {
    overflow-x: hidden;
}

.sys-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 25, 52, 0.96) 0%,
            rgba(5, 25, 52, 0.88) 40%,
            rgba(5, 25, 52, 0.42) 68%,
            rgba(5, 25, 52, 0.08) 100%
        ),
        url("/themes/custom/sysbasic_theme/images/homehero.webp");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.sys-hero .container {
    position: relative;
    z-index: 2;
}

.sys-hero .row {
    min-height: 620px;
}

.sys-hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0a2647;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.sys-hero h1 {
    max-width: 720px;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.text-white-75 {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

/* Hero actions */
.sys-hero-actions {
    margin-top: 10px;
}

.sys-hero-btn,
.sys-hero-btn:hover,
.sys-hero-btn:focus,
.sys-hero-btn:active,
.sys-hero-btn:visited {
    position: relative;
    min-height: 58px;
    padding: 0 22px 0 26px;
    border: 1px solid transparent;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    background-image: none;
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1px;
    text-decoration: none;
    text-shadow: none;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

/* Disable inherited theme effects */
.sys-hero-btn::before,
.sys-hero-btn::after {
    content: none !important;
    display: none !important;
}

.sys-hero-btn-main,
.sys-hero-btn-main:visited {
    border-color: #1677ff !important;
    background: linear-gradient(135deg, #2387ff 0%, #1268e8 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 14px 30px rgba(18, 104, 232, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.sys-hero-btn-main:hover,
.sys-hero-btn-main:focus {
    border-color: #0f62d6 !important;
    background: linear-gradient(135deg, #3092ff 0%, #0f62d6 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(18, 104, 232, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.sys-hero-btn-outline,
.sys-hero-btn-outline:visited {
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sys-hero-btn-outline:hover,
.sys-hero-btn-outline:focus {
    border-color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.sys-hero-btn-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease;
}

.sys-hero-btn-main .sys-hero-btn-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.sys-hero-btn-outline .sys-hero-btn-icon {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.sys-hero-btn:hover .sys-hero-btn-icon {
    transform: translateX(4px);
}

.sys-hero-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 4px;
}

@media (max-width: 991.98px) {
    .sys-hero {
        min-height: 560px;

        background-image:
            linear-gradient(
                rgba(5, 25, 52, 0.84),
                rgba(5, 25, 52, 0.84)
            ),
            url("/themes/custom/sysbasic_theme/images/homehero.webp");

        background-position: center center;
    }

    .sys-hero .row {
        min-height: 560px;
    }
}

@media (max-width: 575.98px) {
    .sys-hero {
        min-height: 520px;
    }

    .sys-hero .row {
        min-height: 520px;
    }

    .sys-hero .display-4 {
        font-size: 2.4rem;
    }

    .sys-hero-actions {
        width: 100%;
    }

    .sys-hero-btn {
        width: 100%;
    }
}