/* Service Cards Widget — Frontend Styles
   All typography, colors, padding = Elementor Style tab only.
   This file is layout/structure only. */

.scw-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Grid track ── */
.scw-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* ── Individual card ──
   Background image set as inline background-image style on the element
   so it always covers the card regardless of grid/flex sizing. */
.scw-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Background image cover — always fills entire card */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Zoom effect targets the pseudo-element so card itself doesn't move */
    isolation: isolate;
    transition: background-size 0.5s ease;
}

/* ── Hover: zoom effect via scale on a pseudo-element ──
   Using ::before so the background-image can scale without
   affecting layout or clipping content. */
.scw-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: inherit;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
}

.scw-card:hover::before {
    transform: scale(1.07);
}

.scw-card.scw-no-zoom:hover::before {
    transform: none;
}

/* ── Overlay ── */
.scw-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: background-color 0.35s ease;
}

/* ── Link wrapper ── */
.scw-link-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.scw-link-wrap:hover,
.scw-link-wrap:focus,
.scw-link-wrap:visited {
    text-decoration: none;
    color: inherit;
}

/* ── Content area ── */
.scw-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    box-sizing: border-box;
}

.scw-number {
    margin: 0;
    line-height: 1;
    display: block;
}

.scw-bottom {
    margin-top: auto;
}

.scw-title {
    margin: 0;
    line-height: 1.25;
}

.scw-desc {
    margin: 0;
    line-height: 1.5;
}

.scw-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* ── Mobile fallback ── */
@media (max-width: 767px) {
    .scw-track {
        grid-template-columns: 1fr !important;
    }
}
