.home1-service-grid {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 380px));
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 2.25rem;
}

.home1-service-grid:has(> .home1-service-card:only-child) {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
}

.home1-service-card {
    width: 100%;
    max-width: 380px;
    min-height: 340px;
    transition:
        transform var(--duration-md, 0.3s) var(--ease-default, cubic-bezier(.4,0,.2,1)),
        box-shadow var(--duration-md, 0.3s) var(--ease-default, cubic-bezier(.4,0,.2,1)),
        border-color var(--duration-md, 0.3s) var(--ease-default, cubic-bezier(.4,0,.2,1));
}

.home1-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 16px 40px rgba(15, 23, 42, 0.12));
    border-color: rgba(16, 185, 129, 0.18);
}

.home1-service-card:hover .home1-service-body h3 {
    color: var(--secondary-color);
}

.home1-service-media-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.home1-service-media {
    position: relative;
    overflow: hidden;
}

.home1-service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.12) 100%);
    pointer-events: none;
}

.home1-service-card .home1-service-media,
.home1-services .home1-service-card .home1-service-media,
.gbx-services-page .home1-service-card .home1-service-media {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center 20%;
}

.home1-service-media--empty {
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.home1-services .home1-service-card,
.gbx-services-page .home1-service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    min-height: 340px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.home1-services .home1-service-card:hover,
.gbx-services-page .home1-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.10);
}

.home1-service-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    gap: 0.75rem;
}

.home1-service-body h3 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.home1-service-body p,
.home1-service-body > p {
    margin: 0;
}

.home1-service-meta {
    margin-top: 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.home1-service-actions {
    margin-top: auto;
    padding-top: 0.35rem;
}

.home1-service-summary {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.home1-service-reassurance {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
}

.home1-services .home1-service-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
}

.home1-services .home1-service-actions .btn-small {
    flex: 0 0 auto;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.82rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.home1-services .home1-service-actions .gbx-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    white-space: nowrap;
    min-height: 44px;
    padding: 0.82rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.home1-services .home1-service-actions .home1-service-btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
    box-shadow: none;
}

.home1-services .home1-service-actions .home1-service-btn-outline:hover,
.home1-services .home1-service-actions .home1-service-btn-outline:focus-visible {
    background: rgba(16, 185, 129, 0.08);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.home1-services .home1-service-grid {
    max-width: 1200px;
    grid-template-columns: repeat(3, minmax(0, 380px));
    column-gap: 1.25rem;
    row-gap: 2.25rem;
}

@media (max-width: 900px) {
    .home1-service-grid,
    .home1-services .home1-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home1-service-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home1-service-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .home1-services .home1-service-actions,
    .gbx-services-page .home1-service-actions {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: stretch;
        gap: 0.65rem;
    }

    .home1-services .home1-service-actions .home1-service-btn-outline,
    .gbx-services-page .home1-service-actions .home1-service-btn-outline,
    .home1-services .home1-service-actions .home1-service-inline-link,
    .gbx-services-page .home1-service-actions .home1-service-inline-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0.82rem 0.9rem;
        border-radius: 999px;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
    }

    .home1-services .home1-service-actions .home1-service-inline-link,
    .gbx-services-page .home1-service-actions .home1-service-inline-link {
        background: var(--secondary-color);
        border: 1.5px solid var(--secondary-color);
        color: #ffffff;
        box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
    }

    .home1-service-card {
        border-radius: 22px;
    }

    .home1-service-body {
        padding: 1.15rem;
        gap: 0.7rem;
    }
}

@media (max-width: 640px) {
    .home1-service-grid,
    .home1-services .home1-service-grid,
    .gbx-services-page .home1-service-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .home1-service-card,
    .home1-services .home1-service-card,
    .gbx-services-page .home1-service-card {
        max-width: 100%;
    }

    .home1-services .home1-service-actions,
    .gbx-services-page .home1-service-actions {
        gap: 0.55rem;
    }
}

@media (max-width: 480px) {
    .home1-service-media {
        height: 168px;
    }
}
