/* ============================================================
   SERVICES PAGE — specific styles
   ============================================================ */

/* Services Hero — reuses .hero base patterns */
.services-hero {
    padding-top: 160px;
    padding-bottom: 0;
}

.services-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 120px;
    font-weight: 300;
    letter-spacing: -2.4px;
    line-height: 114px;
    margin-bottom: 16px;
}

.services-hero .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 32px;
    max-width: 600px;
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

/* A way of working section */
.way-of-working {
    padding: 100px 0;
}

.way-of-working-text {
    max-width: 700px;
}

.way-of-working-text p {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 16px;
}

.way-of-working-text p:last-child {
    margin-bottom: 0;
}

/* How we work section */
.how-we-work {
    padding: 0 0 120px;
}

/* Phases summary — 3-column grid matching platform-compare pattern */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
    padding-top: 40px;
    margin-bottom: 120px;
}

.phase-summary h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.48px;
    line-height: 30px;
    margin: 0 0 16px;
    color: rgb(10, 10, 10);
}

.phase-summary p {
    font-size: 15px;
    line-height: 24px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
}

/* Phase cards — alternating image + content rows, Legora-style */
.phase-cards {
    display: flex;
    flex-direction: column;
    gap: 160px;
}

.phase-card {
    display: block;
}

/* Row — image paired with compact content */
.phase-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

/* Alternate: image on right for even cards (Deployment) */
.phase-card:nth-of-type(even) .phase-card-row .phase-card-image { order: 2; }

.phase-card-image {
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.phase-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phase-card-content {
    max-width: 520px;
}

.phase-card-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.5);
    margin-bottom: 20px;
}

.phase-card-content h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 44px;
    font-weight: 300;
    line-height: 48px;
    letter-spacing: -0.88px;
    color: rgb(10, 10, 10);
    margin: 0 0 20px;
}

.phase-card-subtitle {
    font-size: 17px;
    line-height: 26px;
    color: rgba(10, 10, 10, 0.75);
    margin: 0;
    max-width: 480px;
}

/* Expanded variant (Discovery) — 1:2 row with stacked top/bottom content */
.phase-card--expanded .phase-card-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: stretch;
    gap: 96px;
}

.phase-card--expanded .phase-card-content {
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.phase-card-content-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phase-card-content-bottom p {
    font-size: 15px;
    line-height: 24px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
    max-width: 520px;
}

.phase-card-intro {
    font-size: 15px;
    line-height: 24px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
    max-width: 520px;
}

/* Image stretches to row height in expanded row */
.phase-card--expanded .phase-card-row .phase-card-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
}

/* Compact variant — Deployment + Adoption: smaller headline, narrower image, detail in content column */
.phase-card--compact .phase-card-row {
    align-items: stretch;
    gap: 64px;
}

.phase-card--compact:nth-of-type(odd) .phase-card-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.phase-card--compact:nth-of-type(even) .phase-card-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.phase-card--compact .phase-card-content {
    max-width: none;
}

/* Image stretches to match content column height */
.phase-card--compact .phase-card-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
}

.phase-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.phase-card-body p {
    font-size: 15px;
    line-height: 24px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
    max-width: 640px;
}

/* Light detail — sits inside content column */
.phase-card-detail--light {
    margin-top: 64px;
}

.phase-card-detail--light .phase-subsection {
    border-top: 1px solid rgba(10, 10, 10, 0.12);
    padding: 32px 0;
    grid-template-columns: 180px minmax(0, 440px);
    gap: 64px;
    align-items: start;
}

.phase-card-detail--light .phase-subsection:last-child {
    padding-bottom: 0;
}

/* Detail — label-gutter stacked subsections */
.phase-card-detail {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
}

/* Discovery — place subsections side-by-side across full card width */
.phase-card--expanded .phase-card-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
}

.phase-subsection {
    display: grid;
    grid-template-columns: 180px minmax(0, 560px);
    gap: 64px;
    align-items: start;
    padding: 32px 0;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.phase-subsection:last-child {
    padding-bottom: 0;
}

.phase-subsection-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.5);
    margin: 0;
    padding-top: 4px;
}

.phase-subsection p {
    font-size: 14px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
}

.phase-subsection-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phase-subsection-list li {
    font-size: 14px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.phase-subsection-list li i {
    font-size: 14px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.55);
    flex-shrink: 0;
}


/* What we bring — consulting offer cards */
.what-we-bring {
    padding: 40px 0 120px;
}

.what-we-bring-header {
    max-width: 720px;
    margin-bottom: 56px;
}

.what-we-bring-header .platform-heading {
    margin-bottom: 24px;
}

.what-we-bring-intro {
    font-size: 17px;
    line-height: 26px;
    color: rgba(10, 10, 10, 0.85);
    margin: 0;
    max-width: 640px;
}

.bring-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
    padding-top: 40px;
}

.bring-item h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.44px;
    line-height: 28px;
    margin: 0 0 14px;
    color: rgb(10, 10, 10);
}

.bring-item p {
    font-size: 14px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
}

/* Break free section — accent treatment */
.break-free {
    background-color: rgb(35, 33, 30);
    color: rgb(254, 254, 252);
    padding: 100px 0;
    margin-top: 80px;
    margin-bottom: 0;
}

.break-free .platform-heading {
    color: rgb(254, 254, 252);
    margin-bottom: 24px;
}

.break-free-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    align-items: start;
}

/* Quote side (left) */
.break-free-quote {
    padding-top: 0;
}

.quote-mark {
    font-family: 'Instrument Serif', serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 0.8;
    color: rgb(254, 254, 252);
    display: block;
    margin-bottom: 8px;
}

.proof-line {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 32px;
    color: rgb(254, 254, 252);
}

.proof-attribution {
    font-size: 13px;
    color: rgba(254, 254, 252, 0.6);
    display: block;
    margin-top: 16px;
}

/* Text side (right) */
.break-free-text {
    max-width: 580px;
}

.break-free-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(254, 254, 252, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 32px;
    margin-bottom: 16px;
}

.break-free-text p {
    font-size: 15px;
    line-height: 22px;
    color: rgb(254, 254, 252);
    margin-bottom: 16px;
}

.break-free .case-link {
    color: rgb(254, 254, 252);
    transition: opacity 0.3s;
}

.break-free .case-link:hover {
    opacity: 0.7;
}

/* Beige band — who-for + CTA, flush to break-free and footer */
.services-bg--to-footer {
    padding: 80px 0 0;
}

.services-bg--to-footer + footer {
    margin-top: 0;
}

.who-for-section {
    padding-bottom: 48px;
}

/* Responsive */
@media (max-width: 1200px) {
    .services-hero h1 {
        font-size: 88px;
        letter-spacing: -1.76px;
        line-height: 83.6px;
    }

    .bring-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 48px;
    }

    .phase-cards {
        gap: 96px;
    }

    .phase-card-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .phase-card:nth-of-type(even) .phase-card-row .phase-card-image { order: 0; }

    .phase-card-image {
        aspect-ratio: 3 / 2;
    }

    .phase-card-content h3 {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -0.72px;
    }

    .phase-card-detail {
        margin-top: 48px;
    }

    .phase-subsection {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 40px;
        padding: 24px 0;
    }

    /* Expanded Discovery — stack row 1, detail stays 2-col */
    .phase-card--expanded .phase-card-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .phase-card--expanded .phase-card-content {
        gap: 32px;
    }

    .phase-card--expanded .phase-card-row .phase-card-image {
        aspect-ratio: 3 / 2;
        height: auto;
    }

    /* Expanded detail — collapse 2-col back to 1-col */
    .phase-card--expanded .phase-card-detail {
        grid-template-columns: 1fr;
    }

    /* Compact — stack to single column at 1200px */
    .phase-card--compact:nth-of-type(odd) .phase-card-row,
    .phase-card--compact:nth-of-type(even) .phase-card-row {
        grid-template-columns: 1fr;
    }

    .phase-card--compact .phase-card-image {
        aspect-ratio: 3 / 2;
        height: auto;
    }

    .phase-card-detail--light .phase-subsection {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .services-hero h1 {
        font-size: 56px;
        letter-spacing: -1.12px;
        line-height: 53px;
        margin-bottom: 24px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .way-of-working {
        padding: 64px 0;
    }

    .break-free {
        padding: 64px 0;
        margin-top: 48px;
        margin-bottom: 0;
    }

    .break-free-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .proof-line {
        font-size: 28px;
        line-height: 34px;
    }

    .quote-mark {
        font-size: 48px;
    }

    .how-we-work {
        padding: 0 0 64px;
    }

    .phases-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
        margin-bottom: 64px;
    }

    .phase-cards {
        gap: 72px;
    }

    .phase-card-row {
        gap: 24px;
    }

    .phase-card-content h3 {
        font-size: 30px;
        line-height: 34px;
        letter-spacing: -0.6px;
    }

    .phase-card-subtitle {
        font-size: 15px;
        line-height: 23px;
    }

    .phase-card-detail {
        margin-top: 40px;
    }

    .phase-subsection {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }

    .phase-card--expanded .phase-card-row {
        grid-template-columns: 1fr;
    }

    .phase-card--expanded .phase-card-detail {
        grid-template-columns: 1fr;
    }

    .what-we-bring {
        padding: 0 0 64px;
    }

    .bring-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }

    .bring-item h3 {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -0.48px;
    }
}

/* ===========================================================
   Beyond automation — full-bleed accent band between
   Deployment and Adoption. Visually distinct from the
   process-flow phase cards (output-oriented, not process).
   =========================================================== */
.beyond-section {
    background-color: rgb(35, 33, 30);
    color: rgb(254, 254, 252);
    padding: 120px 0;
    margin: 0;
}

.beyond-section .platform-heading {
    color: rgb(254, 254, 252);
}

.beyond-section .phase-card-eyebrow {
    color: rgba(254, 254, 252, 0.55);
}

.beyond-section .beyond-lead {
    color: rgba(254, 254, 252, 0.78);
}

.beyond-section .beyond-example-heading {
    color: rgb(254, 254, 252);
}

.beyond-section .beyond-example-body {
    color: rgba(254, 254, 252, 0.75);
}

.beyond-section .beyond-example-meta {
    color: rgba(254, 254, 252, 0.5);
}

.beyond-section .beyond-text-row {
    border-top-color: rgba(254, 254, 252, 0.18);
}

.beyond-section .container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Continued how-we-work block (Adoption) — sits after the
   accent band, so no top padding/margin and reduced bottom. */
.how-we-work--continued {
    padding-top: 120px;
}

.beyond-header {
    max-width: 720px;
}

.beyond-header .platform-heading {
    margin-bottom: 24px;
}

.beyond-lead {
    font-size: 15px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
}

/* Featured example — railway map: text left, image right (mirrors index-quote-layout) */
.beyond-feature {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.beyond-feature-text {
    max-width: 380px;
}

.beyond-feature-image {
    width: 100%;
    background-image: url('images/wide-tracks.webp');
    background-size: cover;
    background-position: center;
    padding: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beyond-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Two examples in a row — portrait image left, text right within each cell.
   Matches site vocabulary: portrait images for non-hero content,
   typography aligned with .bring-item / .platform-feature-text. */
.beyond-text-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
    padding-top: 48px;
}

.beyond-example {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.beyond-example-image {
    overflow: hidden;
}

.beyond-example-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.beyond-example-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: -0.48px;
    color: rgb(10, 10, 10);
    margin: 0 0 14px;
}

.beyond-example-body {
    font-size: 15px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.8);
    margin: 0;
}

.beyond-example-meta {
    display: block;
    font-size: 13px;
    color: rgba(10, 10, 10, 0.5);
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .beyond-section {
        padding: 80px 0;
    }

    .beyond-section .container {
        gap: 64px;
    }

    .how-we-work--continued {
        padding-top: 80px;
    }

    .beyond-text-row {
        gap: 40px;
    }

    .beyond-example {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .beyond-section {
        padding: 56px 0;
    }

    .beyond-section .container {
        gap: 48px;
    }

    .how-we-work--continued {
        padding-top: 56px;
    }

    .beyond-feature {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .beyond-feature-text {
        max-width: 100%;
    }

    .beyond-text-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .beyond-example {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 20px;
    }
}
