/* ==========================================================================
   Service Area List — Elementor Widget
   ========================================================================== */

.sal-wrap {
    display: flex;
    flex-direction: column;
}

/* --- Divider between items --- */
.sal-item + .sal-item {
    position: relative;
    margin-top: 0;
    padding-top: 128px;
}

.sal-item + .sal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #707070;
}

/* --- Item: mobile --- */
.sal-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 24px;
    padding-bottom: 128px;
}

/* Body always first on mobile */
.sal-item .sal-item__body {
    grid-column: 1 / 5;
    grid-row: 1;
}

/* Featured image: left ~60% */
.sal-item .sal-item__feat-img-wrap {
    grid-column: 1 / 3;
    grid-row: 2;
}

/* Decorative image: right ~75%, offset right to create stagger */
.sal-item .sal-item__deco-img-wrap {
    grid-column: 2 / 5;
    grid-row: 3;
}

/* --- Desktop: 10-column grid ---
   All three zones (feat img, body, deco img) are placed
   independently so the deco image can cross the midpoint.

   images-left layout:
     feat img  → cols 1–4  (top)
     body      → cols 6–10 (top, vertically centered against feat img)
     deco img  → cols 4–9  (below feat img, overlaps body column)

   images-right mirrors horizontally.
*/
@media (min-width: 1024px) {
    .sal-item {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto;
        column-gap: 24px;
        row-gap: 0;
        align-items: start;
        gap: 0;
    }

    /* — images-left —
       Row 1: feat img cols 1–4, body cols 5–12
       Row 2: (empty 1–4),       deco img cols 5–12 */
    .sal-item--images-left .sal-item__feat-img-wrap {
        grid-column: 1 / 5;
        grid-row: 1;
    }

    .sal-item--images-left .sal-item__body {
        grid-column: 9 / 13;
        grid-row: 1;
        align-self: stretch;
        justify-content: center;
    }

    .sal-item--images-left .sal-item__deco-img-wrap {
        grid-column: 5 / 13;
        grid-row: 2;
    }

    /* — images-right —
       Row 1: body cols 1–8,     feat img cols 9–12
       Row 2: deco img cols 1–8, (empty 9–12) */
    .sal-item--images-right .sal-item__feat-img-wrap {
        grid-column: 9 / 13;
        grid-row: 1;
    }

    .sal-item--images-right .sal-item__body {
        grid-column: 1 / 5;
        grid-row: 1;
        align-self: stretch;
        justify-content: center;
    }

    .sal-item--images-right .sal-item__deco-img-wrap {
        grid-column: 1 / 9;
        grid-row: 2;
    }
}

/* --- Fade-in on scroll --- */
.sal-item__feat-img-wrap,
.sal-item__deco-img-wrap {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.sal-item__feat-img-wrap.sal-img--visible,
.sal-item__deco-img-wrap.sal-img--visible {
    opacity: 1;
}

/* --- Images --- */
.sal-item__feat-img-wrap,
.sal-item__deco-img-wrap {
    overflow: hidden;
    line-height: 0;
}

.sal-item__feat-img,
.sal-item__deco-img {
    display: block;
    width: 100%;
    height: auto;
}

.sal-item__feat-img-wrap {
    min-height: 200px;
}

.sal-item__feat-img {
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .sal-item__feat-img-wrap {
        min-height: 500px;
    }

    .sal-item__feat-img {
        min-height: 500px;
    }
}

.sal-item__deco-img-wrap {
    max-height: 400px;
    overflow: hidden;
}

.sal-item__deco-img {
    height: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* --- Body --- */
.sal-item__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.sal-item__title {
    font-family: var(--font-display, serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: var(--color-primary, #1a1a1a);
}

.sal-item__text {
    font-family: var(--font-body, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-primary, #1a1a1a);
    margin: 0;
}

.sal-item__text p {
    margin: 0 0 0.5em;
}

.sal-item__text p:last-child {
    margin-bottom: 0;
}

/* --- Button --- */
.sal-item__btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 24px;
    border: 1px solid #48342a;
    background-color: #48342a;
    font-family: var(--font-body, sans-serif);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sal-item__btn:hover,
.sal-item__btn:focus-visible {
    background-color: #2e2019;
    border-color: #2e2019;
    color: #fff;
    outline: none;
}

/* --- Empty state --- */
.sal-empty {
    font-family: var(--font-body, sans-serif);
    font-size: 1rem;
    color: var(--color-muted, #a0a0a0);
    padding: 40px 0;
    text-align: center;
}
