/* BATES v0.26.160 – homepage services refinement */

.bates-home-services-v026160 {
    position: relative;
    padding-top: clamp(54px, 6vw, 78px) !important;
    padding-bottom: clamp(58px, 7vw, 88px) !important;
    background:
        linear-gradient(180deg, #f7f9fd 0%, #f5f8fc 100%);
}

.bates-home-services-v026160 > .container,
.bates-home-services-v026160 .container {
    position: relative;
}

.bates-home-services-v026160 .bates-home-services-heading {
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.bates-home-services-v026160 .bates-home-services-heading h2,
.bates-home-services-v026160 h2.bates-home-services-title {
    margin-bottom: 12px;
    color: #13203c;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.bates-home-services-v026160 .bates-home-service-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch;
    margin-top: 30px !important;
}

.bates-home-services-v026160 .bates-home-service-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(47, 91, 177, .12) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow:
        0 9px 26px rgba(19, 32, 60, .055);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.bates-home-services-v026160 .bates-home-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 91, 177, .26) !important;
    box-shadow:
        0 15px 34px rgba(19, 32, 60, .085),
        0 5px 18px rgba(47, 91, 177, .07);
}

.bates-home-services-v026160 .bates-home-service-card img {
    display: block;
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto !important;
    object-fit: cover !important;
    transition: transform .25s ease;
}

.bates-home-services-v026160 .bates-home-service-card:hover img {
    transform: scale(1.018);
}

.bates-home-services-v026160 .bates-home-service-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 20px 19px !important;
}

.bates-home-services-v026160 .bates-home-service-card h3,
.bates-home-services-v026160 .bates-home-service-card h2 {
    margin: 0 0 9px !important;
    color: #13203c;
    font-size: 17px !important;
    line-height: 1.23;
    letter-spacing: -.012em;
}

.bates-home-services-v026160 .bates-home-service-card p {
    margin: 0 0 16px !important;
    color: #69758a !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.bates-home-services-v026160 .bates-home-service-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    width: max-content;
    margin-top: auto !important;
    color: #2f5bb1 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

.bates-home-services-v026160 .bates-home-service-link::after {
    content: "→";
    transition: transform .16s ease;
}

.bates-home-services-v026160 .bates-home-service-link:hover::after {
    transform: translateX(3px);
}

.bates-home-services-v026160 .bates-home-services-all {
    margin-top: 26px !important;
}

.bates-home-services-v026160 .bates-home-services-all .button,
.bates-home-services-v026160 a.bates-home-services-all {
    box-shadow:
        0 7px 18px rgba(19, 32, 60, .08);
}

@media (max-width: 1080px) {
    .bates-home-services-v026160 .bates-home-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .bates-home-services-v026160 {
        padding-top: 44px !important;
        padding-bottom: 52px !important;
    }

    .bates-home-services-v026160 .bates-home-service-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .bates-home-services-v026160 .bates-home-service-card {
        border-radius: 14px !important;
    }

    .bates-home-services-v026160 .bates-home-service-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bates-home-services-v026160 .bates-home-service-card,
    .bates-home-services-v026160 .bates-home-service-card img,
    .bates-home-services-v026160 .bates-home-service-link::after {
        transition: none !important;
        transform: none !important;
    }
}
