/* service.css — styles specific to services.php
   (.service-row / .service-row-reverse two-column rows).
   Requires main.css to be loaded first (uses --page-width, --navy, .btn, etc,
   and the shared .services-page-header hero lives in main.css). */

/* =========================================================
   SERVICE ROW
========================================================= */

.service-row {
    max-width: var(--page-width);
    margin: 18px auto 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    /* background: var(--light-blue); */
    overflow: hidden;
}


/* TEXT */

.service-row-content {
    padding: 60px clamp(40px, 6vw, 90px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


/* IMAGE SIDE */

.service-row-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}


/* Keep FULL image visible */

.service-row-image img {
    width: 100%;
    height: 100%;

    max-height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
}

/* =========================================================
   ALTERNATING ROW
========================================================= */

.service-row-reverse .service-row-content {
    order: 2;
}

.service-row-reverse .service-row-image {
    order: 1;
}


/* Give alternating rows a subtle variation */

@media (max-width: 767px) {
    /* SERVICE ROW */

    .service-row,
    .service-row-reverse {
        display: flex;
        flex-direction: column;

        min-height: auto;

        margin-top: 12px;
    }


    /* Always text first */

    .service-row-content,
    .service-row-reverse .service-row-content {
        order: 1;

        padding: 40px 22px;
    }

    .service-row-image,
    .service-row-reverse .service-row-image {
        order: 2;

        width: 100%;
        height: 300px;
        min-height: 300px;
    }

    .service-row-content h2 {
        font-size: 34px;
    }

    .service-row-content>p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.65;
    }

    .service-row-content .btn {
        width: 100%;
    }

    .service-row-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }
}