/* ============================================
   Service Page Styles — Baxter-inspired layout
   ============================================ */

.service-page {
    background: var(--color-bg);
}

/* --- Full-screen Hero --- */
.service-hero-full {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 var(--page-padding);
}

.service-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.service-hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 48px;
}

.service-hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.service-hero-scroll:hover {
    opacity: 1;
}

/* --- Process Section --- */
.service-process {
    padding: 80px 0 100px;
}

.process-header {
    text-align: left;
    margin-bottom: 64px;
    padding: 0 var(--page-padding);
}

.process-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: var(--color-primary);
}

.process-steps {
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

/* --- Step Card — Baxter-style alternating layout --- */
.step-card {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 80px;
}

.step-card:last-child {
    margin-bottom: 0;
}

/* Reverse: text left, image right */
.step-card-reverse {
    direction: rtl;
}

.step-card-reverse > * {
    direction: ltr;
}

/* --- Card Image --- */
.step-card-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-bg-light);
    align-self: center;
}

.step-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s var(--ease-out);
}

.step-card:hover .step-card-image img {
    filter: brightness(0.85);
}

/* --- Card Content --- */
.step-card-content {
    padding: 40px 0;
    text-align: left;
    align-self: flex-start;
}

/* Reverse: text right-aligned + bottom-aligned */
.step-card-reverse .step-card-content {
    text-align: right;
    align-self: flex-end;
    padding: 40px 0;
}

.step-card-reverse .step-desc {
    margin-left: auto;
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.step-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    max-width: 520px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .step-card {
        gap: 40px;
        margin-bottom: 60px;
    }

    .step-card-image {
        aspect-ratio: 4/5;
    }
}

@media (max-width: 768px) {
    .service-hero-full {
        min-height: 400px;
    }

    .service-hero-title {
        letter-spacing: 1px;
    }

    .service-process {
        padding: 48px 0 60px;
    }

    .process-header {
        margin-bottom: 40px;
    }

    /* Mobile: image 50% width, alternating left/right alignment */
    .step-card,
    .step-card-reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 56px;
        direction: ltr;
    }

    .step-card-image {
        width: 50%;
        aspect-ratio: auto;
    }

    /* Odd steps: image left-aligned */
    .step-card .step-card-image {
        justify-self: start;
    }

    /* Even steps: image right-aligned */
    .step-card-reverse .step-card-image {
        justify-self: end;
    }

    .step-card-content {
        padding: 0;
        text-align: left;
        align-self: auto;
        justify-self: start;
    }

    .step-card-reverse .step-card-content {
        text-align: left;
        align-self: auto;
        justify-self: start;
    }

    .step-card-reverse .step-desc {
        margin-left: 0;
    }

    .step-number {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .step-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .step-desc {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .service-hero-full {
        min-height: 350px;
    }

    .step-card,
    .step-card-reverse {
        gap: 16px;
        margin-bottom: 40px;
    }

    .step-card-image {
        aspect-ratio: 3/4;
    }
}
