/* Services Hero */
.services-hero {
    position: relative;
    width: 100vw;
    min-height: 24rem;
    margin-top: -2.5rem;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background:
        radial-gradient(circle at 16% 22%, rgba(127, 196, 255, 0.18), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.06), transparent 20%),
        linear-gradient(135deg, #0e141a 0%, #1e2731 44%, #2d3742 100%);
    overflow: hidden;
}

.services-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -7rem 72%;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143, 211, 242, 0.1), transparent 70%);
    pointer-events: none;
}

.services-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    min-height: 24rem;
    margin: 0 auto;
    display: grid;
    align-content: end;
    gap: 0.55rem;
    padding: 2.9rem 0 3rem;
}

.services-hero__eyebrow {
    display: inline-block;
    width: fit-content;
    color: #8fd3f2;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.services-hero__inner h1 {
    margin: 0;
    color: white;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.98;
}

.services-hero__inner p {
    margin: 0;
    color: rgba(236, 244, 252, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Services Intro */
.services-intro {
    display: grid;
    gap: 1.5rem;
}

.services-intro__copy {
    display: grid;
    gap: 0.95rem;
    max-width: 68rem;
    margin: 0 auto;
    text-align: center;
}

.services-intro__copy h2 {
    margin: 0;
    color: var(--accent-deep);
    font-size: clamp(2rem, 3.2vw, 3.35rem);
    line-height: 1.16;
}

.services-intro__copy p {
    margin: 0;
    color: #657281;
    font-size: 1.05rem;
    line-height: 1.78;
}

.services-intro__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

/* Services Card Grid */
.services-card-section {
    padding-top: 0.55rem;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.service-offering-card {
    position: relative;
    display: grid;
    gap: 1rem;
    min-height: 100%;
    padding: 1.2rem 1.15rem 1.25rem;
    border: 1px solid rgba(47, 57, 69, 0.09);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 14px 30px rgba(27, 69, 113, 0.07);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

.service-offering-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3.5rem;
    height: 3px;
    background: linear-gradient(90deg, #8fd3f2, #2d79c5);
    transition: width 0.26s ease;
}

.service-offering-card:hover {
    transform: translateY(-7px);
    border-color: rgba(45, 121, 197, 0.2);
    box-shadow: 0 24px 46px rgba(27, 69, 113, 0.14);
}

.service-offering-card:hover::before {
    width: 100%;
}

.service-offering-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 10px;
    background: #eef6ff;
    color: #2d79c5;
    box-shadow: inset 0 0 0 1px rgba(45, 121, 197, 0.06);
    transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.service-offering-card__icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.service-offering-card:hover .service-offering-card__icon {
    background: linear-gradient(180deg, #7fc4ff, #2d79c5);
    color: white;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 28px rgba(45, 121, 197, 0.2);
}

.service-offering-card__copy {
    display: grid;
    gap: 0.45rem;
}

.service-offering-card__eyebrow {
    color: #7a8897;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-offering-card__copy h3 {
    margin: 0;
    color: #29323c;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.12;
    transition: color 0.24s ease;
}

.service-offering-card__copy p {
    margin: 0;
    color: #697685;
    font-size: 0.97rem;
    line-height: 1.72;
}

.service-offering-card:hover .service-offering-card__copy h3 {
    color: #2d79c5;
}

.service-offering-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* Services Closing */
.services-closing {
    padding-top: 0.3rem;
}

.services-closing p {
    max-width: 72rem;
    margin: 0 auto;
    color: #5f6c7b;
    font-size: 1.05rem;
    line-height: 1.82;
    text-align: center;
}

/* Services Showcase */
.services-showcase {
    padding-top: 0.45rem;
}

.services-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.services-showcase__item {
    position: relative;
    margin: 0;
    min-height: 25rem;
    border-radius: 14px;
    overflow: hidden;
    background: #dbe6f2;
    box-shadow: 0 18px 40px rgba(27, 69, 113, 0.1);
}

.services-showcase__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.services-showcase__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 28, 42, 0.02), rgba(11, 28, 42, 0.58));
    pointer-events: none;
}

.services-showcase__item:hover img {
    transform: scale(1.04);
    filter: saturate(1.04);
}

.services-showcase__caption {
    position: absolute;
    right: 1.2rem;
    bottom: 1.1rem;
    left: 1.2rem;
    z-index: 1;
    display: grid;
    gap: 0.3rem;
}

.services-showcase__caption span {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.08;
}

.services-showcase__caption p {
    margin: 0;
    color: rgba(245, 250, 255, 0.86);
    font-size: 0.96rem;
    line-height: 1.62;
}

/* Services Detailed Breakdown */
.services-detail-section {
    padding-top: 0.65rem;
}

.services-detail-section__heading {
    display: grid;
    gap: 0.7rem;
    max-width: 70rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.services-detail-section__heading h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
}

.services-detail-section__heading p {
    margin: 0;
    color: #667382;
    font-size: 1.02rem;
    line-height: 1.76;
}

.services-detail-list {
    display: grid;
    gap: 1.15rem;
    max-width: 78rem;
    margin: 0 auto;
}

.service-detail {
    padding: 0 0 1.2rem 1.15rem;
    border-bottom: 1px solid rgba(47, 57, 69, 0.08);
    border-left: 3px solid transparent;
    transition: border-color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.service-detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.service-detail:hover {
    border-left-color: #2d79c5;
    transform: translateX(3px);
}

.service-detail h3 {
    margin: 0 0 0.55rem;
    color: #25303a;
    font-size: clamp(1.45rem, 1.8vw, 1.95rem);
    line-height: 1.12;
}

.service-detail p {
    margin: 0;
    color: #667382;
    font-size: 1.02rem;
    line-height: 1.84;
}

/* Job Site Service Detail */
.job-service-hero {
    position: relative;
    width: 100vw;
    min-height: 28rem;
    margin-top: -2.5rem;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background:
        radial-gradient(circle at 20% 20%, rgba(127, 196, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #11161b 0%, #232b34 45%, #30353c 100%);
    overflow: hidden;
}

.job-service-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -22% auto;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143, 211, 242, 0.08), transparent 66%);
    pointer-events: none;
}

.job-service-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    min-height: 28rem;
    margin: 0 auto;
    display: grid;
    align-content: end;
    gap: 0.55rem;
    padding: 3rem 0 3.35rem;
}

.job-service-hero__eyebrow {
    display: inline-block;
    width: fit-content;
    color: #8fd3f2;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.job-service-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(3.1rem, 6vw, 5.6rem);
    line-height: 0.98;
}

.job-service-hero p {
    margin: 0;
    color: rgba(236, 244, 252, 0.8);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.job-service-body {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background: #ffffff;
}

.job-service-body__inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.25rem 0 8.5rem;
}

.job-service-body p {
    max-width: 88rem;
    margin: 0;
    color: #686f77;
    font-size: 1.06rem;
    line-height: 1.72;
}

/* Services Responsive */
@media (max-width: 960px) {
    .services-hero,
    .services-hero__inner {
        min-height: 21rem;
    }

    .services-hero__inner {
        padding: 2.5rem 0 2.6rem;
    }

    .services-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-offering-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .services-showcase__grid {
        grid-template-columns: 1fr;
    }

    .services-showcase__item {
        min-height: 22rem;
    }

    .services-detail-section__heading {
        text-align: left;
        margin-bottom: 1.6rem;
    }

    .job-service-hero,
    .job-service-hero__inner {
        min-height: 22rem;
    }

    .job-service-hero__inner {
        padding: 2.65rem 0 2.6rem;
    }

    .job-service-body__inner {
        padding-bottom: 6rem;
    }
}

@media (max-width: 640px) {
    .services-hero {
        min-height: 18rem;
        margin-top: -1.5rem;
    }

    .services-hero__inner {
        width: calc(100% - 1.5rem);
        min-height: 18rem;
        padding: 2.1rem 0 2rem;
    }

    .services-hero__eyebrow {
        font-size: 0.74rem;
        letter-spacing: 0.14em;
    }

    .services-hero__inner h1 {
        font-size: clamp(2.4rem, 11vw, 3.35rem);
    }

    .services-hero__inner p {
        font-size: 0.95rem;
    }

    .services-intro__copy {
        text-align: left;
    }

    .services-intro__copy h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .services-intro__copy p,
    .services-closing p {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .services-intro__actions {
        justify-content: stretch;
    }

    .services-intro__actions .button {
        width: 100%;
    }

    .services-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-offering-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .service-offering-card {
        padding: 1.05rem 1rem 1.1rem;
        border-radius: 10px;
    }

    .service-offering-card__copy h3 {
        font-size: 1.18rem;
    }

    .services-showcase__grid {
        gap: 1rem;
    }

    .services-showcase__item {
        min-height: 17rem;
        border-radius: 12px;
    }

    .services-showcase__caption {
        right: 1rem;
        bottom: 0.95rem;
        left: 1rem;
    }

    .services-showcase__caption span {
        font-size: 1.22rem;
    }

    .services-showcase__caption p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .services-detail-section__heading {
        margin-bottom: 1.35rem;
    }

    .services-detail-section__heading h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .services-detail-section__heading p,
    .service-detail p {
        font-size: 0.97rem;
        line-height: 1.72;
    }

    .service-detail {
        padding: 0 0 1rem 0.9rem;
    }

    .service-detail h3 {
        font-size: 1.28rem;
    }

    .job-service-hero {
        min-height: 18.5rem;
        margin-top: -1.5rem;
    }

    .job-service-hero__inner {
        width: calc(100% - 1.5rem);
        min-height: 18.5rem;
        padding: 2.2rem 0 2.05rem;
    }

    .job-service-hero__eyebrow {
        font-size: 0.74rem;
        letter-spacing: 0.14em;
    }

    .job-service-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.5rem);
    }

    .job-service-hero p {
        font-size: 0.95rem;
    }

    .job-service-body__inner {
        width: calc(100% - 1.5rem);
        padding: 1.85rem 0 4.5rem;
    }

    .job-service-body p {
        font-size: 0.99rem;
        line-height: 1.72;
    }
}

/* Services palette alignment */
.services-hero,
.job-service-hero {
    min-height: 24rem;
    background: #031629;
}

.services-hero::after,
.job-service-hero::after {
    display: none;
}

.services-hero__inner,
.job-service-hero__inner {
    min-height: 24rem;
}

.services-hero__eyebrow,
.job-service-hero__eyebrow {
    color: #f78b08;
}

.services-hero__inner h1,
.job-service-hero h1 {
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.services-hero__inner p,
.job-service-hero p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    letter-spacing: 0;
}

.services-intro__copy h2,
.services-detail-section__heading h2 {
    color: #031629;
    font-size: 2.05rem;
    line-height: 1.18;
}

.service-offering-card {
    border-color: rgba(3, 22, 41, 0.1);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(3, 22, 41, 0.06);
}

.service-offering-card::before {
    background: #f78b08;
}

.service-offering-card:hover {
    border-color: rgba(247, 139, 8, 0.3);
    box-shadow: 0 18px 34px rgba(3, 22, 41, 0.09);
}

.service-offering-card__icon {
    background: #fff7ed;
    color: #9f5605;
    box-shadow: inset 0 0 0 1px rgba(247, 139, 8, 0.12);
}

.service-offering-card:hover .service-offering-card__icon {
    background: #f78b08;
    color: #101820;
    box-shadow: 0 12px 24px rgba(247, 139, 8, 0.2);
}

.service-offering-card:hover .service-offering-card__copy h3,
.service-detail:hover h3 {
    color: #031629;
}

.service-detail:hover {
    border-left-color: #f78b08;
}

@media (max-width: 640px) {
    .services-hero__inner h1,
    .job-service-hero h1 {
        font-size: 2.15rem;
    }

    .services-intro__copy h2,
    .services-detail-section__heading h2 {
        font-size: 1.55rem;
    }
}
