.services-hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(90deg, rgba(3, 24, 42, .96), rgba(8, 44, 75, .58)), url("../img/constructionManagement2.jpg") center/cover;
}

.services-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: #ee212b; }
.services-hero__content { position: relative; z-index: 1; max-width: 970px; padding-top: 125px; padding-bottom: 82px; color: #fff; }
.services-hero h1 { max-width: 920px; margin: 12px 0 20px; color: #fff; font-size: clamp(2.7rem, 6vw, 5.35rem); line-height: 1.01; }
.services-hero__content > p { max-width: 760px; margin: 0; color: rgba(255,255,255,.84); font-size: 1.5rem; line-height: 1.75; }

.services-breadcrumbs { display: flex; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; color: rgba(255,255,255,.72); }
.services-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.45); }
.services-breadcrumbs a { color: #fff; }
.services-breadcrumbs a:hover { color: #ff6269; }

.services-eyebrow { color: #ee212b; font-size: 1.78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.services-hero .services-eyebrow { color: #ff6269; }
.services-index { padding: 100px 0 115px; background: #f8f6f2; }

.services-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: end; gap: 75px; margin-bottom: 75px; }
.services-intro h2 { max-width: 730px; margin: 9px 0 0; color: #082c4b; font-size: clamp(2.1rem, 4vw, 3.55rem); line-height: 1.1; }
.services-intro > div:last-child > p { margin: 0 0 22px; color: #5c6a74; font-size: 1.6rem; line-height: 1.8; }
.services-intro > div:last-child > a { color: #ee212b; font-weight: 800; }
.services-intro > div:last-child > a:hover { color: #082c4b; }
.services-intro > div:last-child > a i { margin-left: 8px; }

.services-browser { padding-top: 48px; border-top: 1px solid #dce2e6; }
.services-browser__heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.services-browser__heading h2 { margin: 0; color: #082c4b; font-size: 1.65rem; }
.services-browser__heading p { margin: 0; color: #74818a; }
.services-browser__heading strong { color: #ee212b; }
.services-grid { align-items: stretch; }
.services-grid__item { display: flex; margin-bottom: 30px; }

.service-card {
    display: flex;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    box-shadow: 0 12px 35px rgba(10,38,61,.08);
    transition: border-color .4s ease, box-shadow .4s ease;
}

.service-card:hover { border-color: rgba(238,33,43,.2); box-shadow: 0 18px 44px rgba(10,38,61,.14); }
.service-card__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dce3e8; }
.service-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,28,49,.66), transparent 65%); opacity: .62; transition: opacity 1s ease; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.75,.25,1), filter .9s ease; will-change: transform; }
.service-card:hover .service-card__image img { transform: scale(1.06); filter: saturate(1.05) contrast(1.02); }
.service-card:hover .service-card__image::after { opacity: .92; }

.service-card__icon { position: absolute; right: 22px; bottom: 0; z-index: 1; display: grid; width: 66px; height: 66px; place-items: center; border-radius: 4px 4px 0 0; background: #082c4b; color: #fff; font-size: 2rem; }
.service-card__icon i::before { margin: 0; }
.service-card__content { position: relative; display: flex; flex: 1; flex-direction: column; padding: 30px 30px 28px; }
.service-card__number { position: absolute; top: 24px; right: 28px; color: #dce2e6; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.service-card h3 { position: relative; z-index: 1; max-width: calc(100% - 55px); margin: 0 0 14px; color: #082c4b; font-size: 1.5rem; line-height: 1.3; }
.service-card__content > p { margin: 0; color: #66737c; line-height: 1.7; }
.service-card ul { margin: 22px 0 0; padding: 19px 0 0; border-top: 1px solid #e6eaed; list-style: none; }
.service-card li { position: relative; margin-bottom: 7px; padding-left: 18px; color: #596772; font-size: .9rem; }
.service-card li::before { content: ""; position: absolute; top: .62em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #ee212b; }
.service-card__link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 26px; color: #082c4b; font-weight: 800; }
.service-card:hover .service-card__link { color: #ee212b; }

.services-grid__item:nth-child(even) .service-card { background: #082c4b; }
.services-grid__item:nth-child(even) .service-card__image::after { background: linear-gradient(0deg, rgba(238,33,43,.58), transparent 68%); }
.services-grid__item:nth-child(even) .service-card__icon { background: #ee212b; }
.services-grid__item:nth-child(even) .service-card__number { color: rgba(255,255,255,.1); }
.services-grid__item:nth-child(even) .service-card h3,
.services-grid__item:nth-child(even) .service-card__link { color: #fff; }
.services-grid__item:nth-child(even) .service-card__content > p,
.services-grid__item:nth-child(even) .service-card li { color: rgba(255,255,255,.72); }
.services-grid__item:nth-child(even) .service-card ul { border-top-color: rgba(255,255,255,.14); }
.services-grid__item:nth-child(even) .service-card:hover .service-card__link { color: #ff5961; }

.services-grid__item:nth-child(3n) .service-card__icon { background: #ee212b; }

.services-empty { max-width: 680px; margin: 0 auto; padding: 60px 35px; border-radius: 5px; background: #fff; text-align: center; box-shadow: 0 12px 35px rgba(10,38,61,.08); }
.services-empty > i { color: #ee212b; font-size: 3rem; }
.services-empty h2 { margin: 20px 0 10px; color: #082c4b; }
.services-empty a { display: inline-block; margin-top: 14px; padding: 13px 20px; border-radius: 3px; background: #082c4b; color: #fff; font-weight: 800; }
.services-clients { background: #fff; }

@media (max-width: 991px) {
    .services-hero { min-height: 520px; }
    .services-intro { grid-template-columns: 1fr; gap: 25px; }
    .services-browser__heading h2 {
        font-size: 2.7rem;
    }
    .services-hero__content > p, .services-grid__item .service-card__content > p, .services-grid__item .service-card li, .services-intro > div:last-child > p {
        font-size: 2.1rem;
        line-height: 1.7;
    }

}

@media (max-width: 575px) {
    .services-hero__content { padding-top: 95px; padding-bottom: 58px; }
    .services-index { padding: 68px 0 78px; }
    .services-intro { margin-bottom: 52px; }
    .services-browser__heading { align-items: flex-start; flex-direction: column; }
    .service-card__content { padding: 27px 25px 25px; }
}
