/* =========================================================
   WHO WE SERVE / INDUSTRIES SECTION
========================================================= */

.sm-who-we-serve-block {
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   HEADING
========================================================= */

.sm-wws-heading {
    font-size: 1rem;
    font-weight: 500;

    color: #666;

    margin: 0 0 18px 0;

    padding-bottom: 24px;

    border-bottom:
        1px solid #000;
}

[data-theme="dark"] .sm-wws-heading {
    color: #bbb;

    border-bottom-color:
        var(--e-global-color-uicore_white);
}

/* =========================================================
   GRID
========================================================= */

.sm-wws-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}

/* =========================================================
   CARD
========================================================= */

.sm-wws-item {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: flex-start;

    align-items: flex-end;

    min-height:
        clamp(180px, 24vw, 280px);

    padding:
        clamp(16px, 2vw, 28px);

    border: 0;

    border-radius: 22px;

    overflow: hidden;

    text-decoration: none;

    color: #fff;

    background-color: #111;

    background-image:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.10) 0%,
            rgba(0,0,0,0.24) 48%,
            rgba(0,0,0,0.56) 78%,
            rgba(0,0,0,0.82) 100%
        ),
        var(--sm-wws-bg);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    cursor: pointer;

    isolation: isolate;
}

/* subtle glow */

.sm-wws-item::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,193,60,.10),
            transparent 45%
        );

    opacity: 0;

    transition: opacity .3s ease;

    z-index: 0;
}

.sm-wws-item:hover::before {
    opacity: 1;
}

/* =========================================================
   CONTENT
========================================================= */

.sm-wws-title-group {
    display: flex;

    align-items: center;

    position: relative;

    transform: translateX(0);

    transition:
        transform 0.25s ease;

    will-change: transform;

    z-index: 1;
}

/* =========================================================
   ICON
========================================================= */

.sm-wws-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: auto;

    margin-right: 16px;

    opacity: 0;

    color: #000;

    transform: translateX(-10px);

    transition:
        all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    will-change:
        opacity,
        transform;
}

.sm-wws-icon img {
    width: 100%;

    height: auto;

    display: block;
}

[data-theme="dark"] .sm-wws-icon {
    color:
        var(--e-global-color-uicore_white);
}

/* =========================================================
   TITLE
========================================================= */

.sm-wws-title {
    font-size:
        clamp(1.5rem, 2.3vw, 2rem);

    font-weight: 600;

    margin: 0;

    line-height: 1.2;

    letter-spacing: -0.02em;

    color: #fff;
}

[data-theme="dark"] .sm-wws-title {
    color: #fff;
}

/* =========================================================
   HOVER STATES
========================================================= */

.sm-wws-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.35);
}

.sm-wws-item:hover .sm-wws-title-group {
    transform: translateY(-1px);
}

.sm-wws-item:hover .sm-wws-icon {
    opacity: 1;

    transform: translateX(0);
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 769px) and (max-width: 1100px) {

    .sm-wws-list {
        gap: 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .sm-wws-list {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .sm-wws-title {
        font-size: 1.4rem;
    }

    .sm-wws-item {
        min-height: 180px;

        padding: 18px;

        border-radius: 18px;
    }
}