/* ============================================================
   Individual Service Page
   ============================================================ */

.service-detail {
    overflow: hidden;
}

.service-detail-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
    min-height: 540px;
}

.service-detail-copy {
    max-width: 760px;
}

.service-detail-copy h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
}

.service-detail-description {
    max-width: 680px;
    margin: 28px 0 0;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.service-detail-copy .button-row {
    margin-top: 34px;
}

.service-detail-image {
    position: relative;
    min-height: 430px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .14);
    animation: serviceImageReveal .8s ease both;
}

.service-detail-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, .04),
            rgba(0, 0, 0, .42)
        );
    z-index: 1;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}

.service-detail-image:hover img {
    transform: scale(1.04);
}


/* ============================================================
   Overview
   ============================================================ */

.service-detail-overview {
    padding-top: clamp(70px, 9vw, 120px);
    padding-bottom: clamp(70px, 9vw, 120px);
}

.service-detail-overview .section-head {
    max-width: 900px;
}

.service-detail-overview h2 {
    max-width: 850px;
}


/* ============================================================
   Features
   ============================================================ */

.service-detail-features {
    background: var(--surface-soft, #f6f7f8);
}

.service-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.service-feature-card {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border: 1px solid rgba(47, 53, 59, .10);
    border-radius: 22px;
    background: var(--surface, #fff);
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.service-feature-card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -45px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(214, 83, 77, .08);
    transition: transform .4s ease;
}

.service-feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(214, 83, 77, .28);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .08);
}

.service-feature-card:hover::before {
    transform: scale(1.5);
}

.service-feature-number {
    display: inline-flex;
    margin-bottom: 35px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent, #d6534d);
}

.service-feature-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.service-feature-card p {
    margin: 0;
    line-height: 1.7;
}


/* ============================================================
   Process
   ============================================================ */

.service-process {
    overflow: hidden;
}

.service-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 50px;
    border-top: 1px solid rgba(47, 53, 59, .14);
}

.service-process-grid article {
    min-height: 280px;
    padding: 30px 28px;
    border-right: 1px solid rgba(47, 53, 59, .14);
    transition:
        background .3s ease,
        transform .3s ease;
}

.service-process-grid article:first-child {
    border-left: 1px solid rgba(47, 53, 59, .14);
}

.service-process-grid article:hover {
    background: var(--surface-soft, #f6f7f8);
    transform: translateY(-4px);
}

.service-process-grid article > span {
    display: block;
    margin-bottom: 70px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent, #d6534d);
}

.service-process-grid h3 {
    margin: 0 0 12px;
    font-size: 23px;
}

.service-process-grid p {
    margin: 0;
    line-height: 1.7;
}


/* ============================================================
   CTA
   ============================================================ */

.service-detail-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: clamp(30px, 5vw, 60px);
    margin-bottom: clamp(30px, 5vw, 60px);
    padding: clamp(35px, 5vw, 70px);
    border-radius: 28px;
    background: #2f353b;
    color: #fff;
    overflow: hidden;
}

.service-detail-cta > div:first-child {
    max-width: 760px;
}

.service-detail-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.service-detail-cta p:not(.eyebrow) {
    max-width: 680px;
    margin: 20px 0 0;
    line-height: 1.75;
    opacity: .82;
}

.service-detail-cta .eyebrow {
    color: #fff;
}

.service-detail-cta .button-row {
    flex-shrink: 0;
}


/* ============================================================
   404 / Service Error
   ============================================================ */

.service-detail-error {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.service-detail-error h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -.04em;
}

.service-detail-error > p:not(.eyebrow) {
    max-width: 650px;
    line-height: 1.75;
}


/* ============================================================
   Animations
   ============================================================ */

@keyframes serviceImageReveal {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-detail-copy {
    animation: serviceCopyReveal .7s ease both;
}

@keyframes serviceCopyReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {

    .service-detail-intro {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-detail-image {
        min-height: 360px;
    }

    .service-detail-image img {
        min-height: 360px;
    }

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

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

    .service-process-grid article:nth-child(2) {
        border-right: none;
    }

    .service-process-grid article:nth-child(3) {
        border-left: 1px solid rgba(47, 53, 59, .14);
        border-top: 1px solid rgba(47, 53, 59, .14);
    }

    .service-process-grid article:nth-child(4) {
        border-top: 1px solid rgba(47, 53, 59, .14);
    }

    .service-detail-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 650px) {

    .service-detail-copy h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .service-detail-description {
        font-size: 16px;
        line-height: 1.65;
    }

    .service-detail-image,
    .service-detail-image img {
        min-height: 280px;
    }

    .service-feature-grid,
    .service-process-grid {
        grid-template-columns: 1fr;
    }

    .service-feature-card {
        min-height: auto;
        padding: 25px;
    }

    .service-process-grid {
        border-left: 1px solid rgba(47, 53, 59, .14);
    }

    .service-process-grid article,
    .service-process-grid article:first-child,
    .service-process-grid article:nth-child(3) {
        border-right: none;
        border-top: 1px solid rgba(47, 53, 59, .14);
        border-left: none;
    }

    .service-process-grid article:first-child {
        border-top: none;
    }

    .service-process-grid article > span {
        margin-bottom: 45px;
    }

    .service-detail-cta {
        padding: 30px 24px;
        border-radius: 22px;
    }

    .service-detail-cta .button-row {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .service-detail-cta .button-row a {
        width: 100%;
        text-align: center;
    }
}