/* Homepage services: styles are scoped to keep service detail pages independent. */
.services-responsive { padding: 76px 0 84px; background: #f8fbf9; }
.services-responsive .container { width: min(calc(100% - 64px), 1320px); }
.services-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); align-items: end; gap: 40px; margin-bottom: 36px; }
.services-eyebrow { display: flex; align-items: center; gap: 10px; color: #147d4e; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.services-eyebrow > span { width: 24px; height: 2px; flex: 0 0 24px; background: currentColor; }
.services-responsive .section-title { margin: 12px 0 0; max-width: 700px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.14; letter-spacing: -.035em; color: #163d2b; overflow-wrap: anywhere; }
.services-responsive .section-lead { margin: 0; max-width: 440px; color: #5b6f62; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.services-responsive .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 0; text-align: left; }
.services-responsive .service-card { min-width: 0; border: 1px solid #dfe9e2; border-radius: 20px; background: #fff; box-shadow: 0 5px 18px rgba(20, 63, 42, .035); overflow: visible; transition: border-color .2s, box-shadow .2s, transform .2s; }
.services-responsive .service-card-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.service-media { position: relative; aspect-ratio: 16 / 9; flex: 0 0 auto; margin: 7px 7px 0; border-radius: 14px; overflow: hidden; background: #e7f2eb; }
.services-responsive .service-card-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.service-card-icon { position: absolute; left: 15px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 13px; background: #fff; color: #147d4e; box-shadow: 0 4px 12px rgba(18, 61, 42, .09); font-size: 23px; line-height: 1; }
.service-card-icon > svg { width: 24px; height: 24px; }
.services-responsive .service-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 22px 24px 18px; }
.services-responsive .service-content h3 { margin: 0 0 10px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 750; line-height: 1.35; letter-spacing: -.02em; color: #183e2b; overflow-wrap: anywhere; }
.services-responsive .service-content p { margin: 0 0 20px; color: #5c6d62; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.service-details { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; margin-top: auto; padding-top: 13px; border-top: 1px solid #e7eee9; color: #147d4e; font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.service-details-arrow { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #eef7f1; transition: background .2s, color .2s; }
.service-details-arrow svg { width: 17px; height: 17px; }
.services-responsive .service-card.without-image .service-media { height: 112px; aspect-ratio: auto; background: linear-gradient(115deg, #eff7f1, #dbeee1); }
.services-responsive .service-card.without-image .service-card-icon { left: 17px; bottom: 24px; width: 56px; height: 56px; border-radius: 16px; }
.service-rug { position: absolute; right: 18px; top: -10px; width: 140px; height: 140px; color: #699f7e; opacity: .38; transform: rotate(15deg); }
.services-responsive .service-card:nth-child(3n + 2).without-image .service-media { background: linear-gradient(115deg, #f5f6ee, #e8ebd6); }
.services-responsive .service-card:nth-child(3n + 3).without-image .service-media { background: linear-gradient(115deg, #eff6f6, #dceceb); }
.services-responsive .service-card:focus-within { border-color: #147d4e; }
.service-card-link:focus-visible { outline: 3px solid #147d4e; outline-offset: 4px; }
.services-empty { padding: 32px; border: 1px dashed #b4d2bd; border-radius: 20px; background: #fff; color: #5b6f62; }
.services-empty h3 { margin: 0 0 10px; color: #163d2b; font-size: 21px; overflow-wrap: anywhere; }
.services-empty p { margin: 0 0 20px; max-width: 600px; overflow-wrap: anywhere; }
.services-empty .btn-primary { background: #147d4e; min-height: 44px; }
@media (hover: hover) and (pointer: fine) {
    .services-responsive .service-card:hover { transform: translateY(-4px); border-color: #b4d2bd; box-shadow: 0 14px 32px rgba(20, 63, 42, .09); }
    .service-card-link:hover .service-card-image { transform: scale(1.035); }
    .service-card-link:hover .service-details-arrow { background: #147d4e; color: #fff; }
}
@media (max-width: 1100px) {
    .services-responsive .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .services-responsive .section-lead { max-width: 660px; }
}
@media (max-width: 640px) {
    .services-responsive { padding: 44px 0 48px; }
    .services-responsive .container { width: calc(100% - 40px); }
    .services-heading { gap: 14px; margin-bottom: 26px; }
    .services-responsive .section-title { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.18; margin-top: 10px; }
    .services-responsive .section-lead { font-size: 14px; line-height: 1.75; }
    .services-responsive .services-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .services-responsive .service-content { padding: 20px 20px 16px; }
    .services-responsive .service-content h3 { font-size: 20px; }
    .services-responsive .service-card.without-image .service-media { height: 96px; }
    .services-responsive .service-card.without-image .service-card-icon { bottom: 20px; width: 48px; height: 48px; }
    .services-responsive .service-card:hover { transform: none; }
    .services-empty { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .services-responsive .service-card, .services-responsive .service-card-image, .service-details-arrow { transition: none; }
    .services-responsive .service-card:hover, .service-card-link:hover .service-card-image { transform: none; }
}
