/* HLC Website v1.1 - automated homepage hero */

.hlc-home-hero {
    --hlc-navy: #10275d;
    --hlc-gold: #b7a768;
    --hlc-text: #4e586b;
    --hlc-muted: #747c8c;
    --hlc-line: #e2e6ec;

    width: 100%;
    background: #fff;
    overflow: hidden;
}

.hlc-home-hero,
.hlc-home-hero * {
    box-sizing: border-box;
}

.hlc-home-hero__image {
    width: 100%;
    min-height: 390px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 4px solid var(--hlc-gold);
}

.hlc-home-hero__image--missing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #f4f6f8;
    color: #667085;
    font-size: 14px;
}

.hlc-home-hero__content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 26px;
}

.hlc-home-hero__intro {
    max-width: 900px;
    margin: 0 auto 22px;
    text-align: center;
}

.hlc-home-hero__intro h1 {
    margin: 0 0 7px !important;
    color: var(--hlc-navy) !important;
    font-size: clamp(32px, 3.2vw, 44px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
}

.hlc-home-hero__intro h2 {
    margin: 0 0 10px !important;
    color: var(--hlc-navy) !important;
    font-size: clamp(16px, 1.6vw, 20px) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.hlc-home-hero__intro p {
    margin: 0 !important;
    color: var(--hlc-text) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.hlc-home-hero__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--hlc-line);
    border-bottom: 1px solid var(--hlc-line);
}

.hlc-home-hero__card {
    position: relative;
    display: flex !important;
    min-width: 0;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px 14px !important;
    color: var(--hlc-navy) !important;
    background: #fff;
    text-align: center;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.hlc-home-hero__card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 0;
    bottom: 22px;
    width: 1px;
    background: var(--hlc-line);
}

.hlc-home-hero__card:hover {
    z-index: 2;
    transform: translateY(-2px);
    background: #fafbfd;
    box-shadow: 0 8px 24px rgba(16, 39, 93, .08);
}

.hlc-home-hero__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    margin-bottom: 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hlc-gold);
    border-radius: 50%;
    color: var(--hlc-navy);
    background: #fff;
}

.hlc-home-hero__icon svg {
    width: 29px;
    height: 29px;
}

.hlc-home-hero__title {
    color: var(--hlc-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hlc-home-hero__subtitle {
    color: var(--hlc-muted);
    font-size: 11px;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .hlc-home-hero__image {
        min-height: 300px;
    }

    .hlc-home-hero__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        border-bottom: 0;
    }

    .hlc-home-hero__card {
        grid-column: span 2;
        border-bottom: 1px solid var(--hlc-line);
    }

    .hlc-home-hero__card:nth-child(4),
    .hlc-home-hero__card:nth-child(5) {
        grid-column: span 3;
    }

    .hlc-home-hero__card::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .hlc-home-hero__image {
        min-height: 220px;
        background-position: center center;
    }

    .hlc-home-hero__content {
        padding: 22px 12px 20px;
    }

    .hlc-home-hero__intro {
        margin-bottom: 18px;
    }

    .hlc-home-hero__intro p {
        font-size: 13px !important;
    }

    .hlc-home-hero__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hlc-home-hero__card,
    .hlc-home-hero__card:nth-child(4),
    .hlc-home-hero__card:nth-child(5) {
        grid-column: auto;
        min-height: 132px;
        padding: 15px 9px !important;
        border-right: 1px solid var(--hlc-line);
        border-bottom: 1px solid var(--hlc-line);
    }

    .hlc-home-hero__card:nth-child(even) {
        border-right: 0;
    }

    .hlc-home-hero__card:last-child {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .hlc-home-hero__icon {
        width: 50px;
        height: 50px;
    }

    .hlc-home-hero__title {
        font-size: 14px;
    }
}
