/* ==========================================================================
   MT - Service Showcase
   Dark section: numbered service list (left) + switching photo panel (right).
   ========================================================================== */

.elementor-widget-mtfe-service-showcase { width: 100%; }

.mtfe-ss {
    --ss-text: #FFFFFF;
    --ss-muted: #B9B4C6;
    --ss-line: rgba(255, 255, 255, 0.12);
    --ss-accent: #2340D8;
    --ss-gold: #FFB800;
    --ss-card: #FFFFFF;
    --ss-ink: #191326;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: start;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
    color: var(--ss-text);
}

/* header */
.mtfe-ss__eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--ss-gold); }
.mtfe-ss .mtfe-ss__title { margin: 14px 0 16px; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: var(--ss-text); }
.mtfe-ss .mtfe-ss__title em { font-style: normal; font-size: inherit; color: var(--ss-gold); }
.mtfe-ss__text { margin: 0 0 34px; max-width: 480px; font-size: 17px; line-height: 1.65; color: var(--ss-muted); }

/* list */
.mtfe-ss__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ss-line); counter-reset: none; }
.mtfe-ss__item { border-bottom: 1px solid var(--ss-line); }
.mtfe-ss .mtfe-ss__row {
    display: grid;
    grid-template-columns: 46px 1fr 40px;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 20px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ss-text);
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease, padding 0.3s ease;
}
.mtfe-ss .mtfe-ss__row:hover, .mtfe-ss .mtfe-ss__row:focus-visible { background: transparent; color: var(--ss-text); }
.mtfe-ss .mtfe-ss__row:focus-visible { outline: 2px solid var(--ss-gold); outline-offset: 2px; }
.mtfe-ss__num { font-size: 14px; font-weight: 800; color: var(--ss-muted); transition: color 0.25s ease; }
.mtfe-ss__name { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; opacity: 0.55; transition: opacity 0.25s ease, transform 0.3s ease; }
.mtfe-ss__arrow {
    display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
    border: 1px solid var(--ss-line); transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}
.mtfe-ss__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mtfe-ss__item:hover .mtfe-ss__name, .mtfe-ss__item.is-active .mtfe-ss__name { opacity: 1; }
.mtfe-ss__item.is-active .mtfe-ss__name { transform: translateX(6px); }
.mtfe-ss__item.is-active .mtfe-ss__num { color: var(--ss-gold); }
.mtfe-ss__item.is-active .mtfe-ss__arrow { background: var(--ss-accent); border-color: var(--ss-accent); transform: rotate(45deg); }

.mtfe-ss__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.mtfe-ss__item.is-active .mtfe-ss__detail { grid-template-rows: 1fr; }
.mtfe-ss__detail-inner > p { margin: 0; padding: 0 4px 0 64px; font-size: 15px; line-height: 1.6; color: var(--ss-muted); }
.mtfe-ss__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 22px 64px; }
.mtfe-ss__chip { display: inline-block; padding: 6px 12px; border-radius: 20px; background: var(--ss-gold); color: #191326; font-size: 13px; font-weight: 800; }
.mtfe-ss__chip--soft { background: rgba(255, 255, 255, 0.1); color: var(--ss-text); font-weight: 600; }
.mtfe-ss__mobile { display: none; }

/* photo stage */
.mtfe-ss__stage { position: sticky; top: 40px; height: 680px; border-radius: 28px; overflow: hidden; background: #1A1529; box-shadow: 0 50px 90px -50px rgba(35, 64, 216, 0.6); }
.mtfe-ss figure.mtfe-ss__panel { position: absolute; inset: 0; margin: 0 !important; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.mtfe-ss figure.mtfe-ss__panel.is-active { opacity: 1; visibility: visible; }
.mtfe-ss .mtfe-ss__panel img.mtfe-ss__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.mtfe-ss .mtfe-ss__panel.is-active img.mtfe-ss__img { transform: scale(1); }
.mtfe-ss__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 24, 0.25) 0%, transparent 30%, transparent 55%, rgba(14, 10, 24, 0.6) 100%); pointer-events: none; }
.mtfe-ss .mtfe-ss__panel figcaption { position: absolute; inset: 0; z-index: 2; padding: 24px; text-align: left !important; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.mtfe-ss__panel-num { padding: 7px 14px; border-radius: 20px; background: rgba(14, 10, 24, 0.55); color: #FFFFFF; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; backdrop-filter: blur(6px); }

/* deliverables card */
.mtfe-ss__card {
    width: min(340px, 100%);
    box-sizing: border-box;
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--ss-card);
    color: var(--ss-ink);
    box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.6);
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, opacity 0.4s ease 0.1s;
}
.mtfe-ss__panel.is-active .mtfe-ss__card, .mtfe-ss__mobile .mtfe-ss__card { transform: none; opacity: 1; }
.mtfe-ss__card-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ss-accent); }
.mtfe-ss__card ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mtfe-ss__card li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.mtfe-ss__card li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--ss-accent); fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mtfe-ss a.mtfe-ss__link, .mtfe-ss a.mtfe-ss__link:visited { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ss-accent); text-decoration: none; }
.mtfe-ss a.mtfe-ss__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.mtfe-ss a.mtfe-ss__link:hover { color: var(--ss-ink); }
.mtfe-ss a.mtfe-ss__link:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
    .mtfe-ss *, .mtfe-ss *::after { transition: none !important; }
}

/* tablet + phone: accordion with the photo inside the open row */
@media (max-width: 1024px) {
    .mtfe-ss { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mtfe-ss__stage { display: none; }
    .mtfe-ss__mobile { display: block; position: relative; margin: 0 0 22px; border-radius: 20px; overflow: hidden; }
    .mtfe-ss .mtfe-ss__mobile img.mtfe-ss__mobile-img { display: block; width: 100%; height: 360px; max-width: none; object-fit: cover; }
    .mtfe-ss__mobile .mtfe-ss__card { position: absolute; left: 14px; right: 14px; bottom: 14px; width: auto; }
}
@media (max-width: 767px) {
    .mtfe-ss { padding: 0 15px; }
    .mtfe-ss .mtfe-ss__title, body .mtfe-ss h2.mtfe-ss__title { font-size: 34px !important; }
    .mtfe-ss .mtfe-ss__row { grid-template-columns: 34px 1fr 36px; padding: 16px 2px; }
    .mtfe-ss__name { font-size: 20px; }
    .mtfe-ss__arrow { width: 36px; height: 36px; }
    .mtfe-ss__detail-inner > p, .mtfe-ss__chips { padding-left: 2px; }
    .mtfe-ss .mtfe-ss__mobile img.mtfe-ss__mobile-img { height: 420px; }
}

.mtfe-ss__detail-inner { min-height: 0; overflow: hidden; }
