/* Scoped to the home-page service showcase. */
#home-services .home-services-heading { margin-bottom: 36px; }
#home-services h2 { max-width: 720px; margin-bottom: 12px; }
#home-services .services-all-link { display: inline-flex; align-items: center; gap: 18px; color: #263343; font-size: 14px; font-weight: 700; padding: 10px 0; }
#home-services .services-all-link > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d6dce5; border-radius: 50%; background: #fff9; font-size: 22px; }
#home-services .home-service-card {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border: 1px solid #fff; border-radius: 24px;
    background: linear-gradient(145deg, #fffffff5, #ffffffb8);
    box-shadow: 0 8px 30px #1f2a3c0a, inset 0 1px 0 #fff;
    color: #596273; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#home-services .home-service-media { position: relative; overflow: hidden; aspect-ratio: 1.5; margin: 8px 8px 0; border-radius: 18px; background: #202c3d; }
#home-services .home-service-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #101c2b1a 20%, #101c2bb3); pointer-events: none; }
#home-services .home-service-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
#home-services .home-service-number { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff55; border-radius: 50%; background: #172333b3; color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
#home-services .home-service-category { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
#home-services .home-service-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
#home-services .home-service-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border: 1px solid #f1d7c5; border-radius: 16px; background: linear-gradient(135deg, #fff7ef, #ffeadc); box-shadow: inset 0 1px 0 #fff; }
#home-services .home-service-icon img { width: 30px; height: 30px; object-fit: contain; }
#home-services h3 { margin-bottom: 10px; color: #1c293a; font-size: 24px; font-weight: 650; line-height: 1.3; }
#home-services .home-service-body p { margin: 0 0 24px; font-size: 14px; line-height: 1.8; }
#home-services .home-service-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e6eaf0; color: #293647; font-size: 12px; font-weight: 700; }
#home-services .home-service-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #edf1f5; transition: background-color .25s ease, color .25s ease; }
#home-services .home-service-arrow svg { width: 18px; height: 18px; transition: transform .25s ease; }
#home-services a:focus-visible { outline: 3px solid #b63f0e; outline-offset: 4px; }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    #home-services .home-service-card, #home-services .home-service-number { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (hover: hover) and (pointer: fine) {
    #home-services .home-service-card:hover { transform: translateY(-6px); border-color: #efc6ac; box-shadow: 0 22px 46px #1f2a3c17; }
    #home-services .home-service-card:hover .home-service-photo { transform: scale(1.06); }
    #home-services .home-service-card:hover .home-service-arrow { background: #b63f0e; color: #fff; }
    #home-services .home-service-card:hover .home-service-arrow svg { transform: rotate(-35deg); }
    #home-services .services-all-link:hover { color: #b63f0e; }
}
@media (max-width: 575px) {
    #home-services .home-services-heading { margin-bottom: 24px; }
    #home-services .home-service-media { aspect-ratio: 1.8; }
    #home-services .home-service-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    #home-services .home-service-card:hover, #home-services .home-service-card:hover .home-service-photo, #home-services .home-service-card:hover .home-service-arrow svg { transform: none; }
}
