/* ============================================================
   SCW Widgets for Elementor — Combined Stylesheet v1.1
   1. Service Card
   2. Logo Carousel (Marquee — dual row support)
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1. SERVICE CARD
────────────────────────────────────────────────────────── */

.elementor-widget-scw_service_card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.elementor-widget-scw_service_card .elementor-widget-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.scw-card {
    position: relative;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition:
        background-color 0.4s ease,
        border-color     0.4s ease,
        transform        0.3s ease;
}

.scw-card:hover {
    transform: translateY(-4px);
    background-color: #ec4899;
    border-color: #ec4899;
}

.scw-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.scw-card:hover::before { opacity: 1; }

.scw-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ec4899;
    margin: 0 0 16px 0;
    line-height: 1.3;
    flex-shrink: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color 0.4s ease;
}

.scw-card:hover .scw-card__title { color: #ffffff; }

.scw-card__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #aaaaaa;
    margin: 0 0 32px 0;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color 0.4s ease;
}

.scw-card:hover .scw-card__desc { color: rgba(255,255,255,0.88); }

.scw-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

.scw-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid #3a3a3a;
    background: transparent;
    color: #cccccc;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}

.scw-card:hover .scw-card__btn {
    border-color: rgba(255,255,255,0.6);
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

.scw-card__btn:hover { background: rgba(255,255,255,0.2) !important; }

.scw-card__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.scw-card__arrow svg {
    width: 18px;
    height: 18px;
    stroke: #888888;
    transition: stroke 0.4s ease;
}

.scw-card:hover .scw-card__arrow {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
}

.scw-card:hover .scw-card__arrow svg { stroke: #ffffff; }

/* Equal-height behavior is handled by the .elementor-widget-scw_* wrappers above,
   which set height:100% on the widget itself.
   To get visually equal-height cards across a row in Elementor:
   - Use Section → Edit → Advanced → "Stretch Section" (Elementor built-in), OR
   - Set the column's Content Position to "Stretch"
   We intentionally do NOT override .elementor-column / .e-con styles globally,
   because doing so breaks forms, multi-column rows, and other widgets site-wide. */


/* ──────────────────────────────────────────────────────────
   2. LOGO CAROUSEL (MARQUEE — NEXA style, dual-row capable)
   The approach: two identical "__group" blocks sit side-by-side
   inside ".scw-lc__marquee" (which uses display:flex + gap).
   Both groups animate by translating one full group width
   (100% + gap), producing a perfectly seamless infinite loop.
────────────────────────────────────────────────────────── */

.scw-lc-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* padding is set inline via Elementor responsive control */
}

/* Fade edge overlays */
.scw-lc__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 3;
    pointer-events: none;
}
.scw-lc__fade--left  { left: 0;  background: linear-gradient(to right, var(--scw-lc-fade, #0a0a0a), transparent); }
.scw-lc__fade--right { right: 0; background: linear-gradient(to left,  var(--scw-lc-fade, #0a0a0a), transparent); }

/* The marquee container — holds 2 groups side by side */
.scw-lc__marquee {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
    /* gap between the two groups must equal the gap between items
       so the loop is seamless across the join */
    gap: var(--scw-gap, 60px);
}

/* Each duplicated group — sized by its content, like the NEXA reference */
.scw-lc__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--scw-gap, 60px);
    /* width by content, not container, so the loop math is exact */
    width: max-content;
    min-width: 100%;
    animation: scw-marquee-scroll var(--scw-duration, 40s) linear infinite;
    will-change: transform;
}

/* Move by exactly one group's width + one gap.
   Because group width = its content + (n-1)*gap, and we add one more gap
   to slide past the join, group B arrives exactly where group A started. */
@keyframes scw-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100% - var(--scw-gap, 60px))); }
}

/* Pause on hover (whole widget) */
/* Pause only the hovered row's groups (not all rows) */
.scw-lc--pause-hover .scw-lc__marquee:hover .scw-lc__group {
    animation-play-state: paused;
}

/* Individual logo item */
.scw-lc__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 10px;
    background: transparent;
    transition: background 0.3s ease, transform 0.35s cubic-bezier(.2,.7,.3,1);
}

.scw-lc__item:hover {
    /* hover effects are applied per-widget via inline styles based on hover_effect setting */
}

.scw-lc__item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.scw-lc__item img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.scw-lc__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Placeholder text when no image uploaded */
.scw-lc__placeholder {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.scw-lc__item:hover .scw-lc__placeholder {
    opacity: 1;
    color: #000000;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scw-lc__group { animation: none; }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .scw-lc__fade { width: 60px; }
}


/* ──────────────────────────────────────────────────────────
   3. ICON BOX
────────────────────────────────────────────────────────── */

.elementor-widget-scw_icon_box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.elementor-widget-scw_icon_box .elementor-widget-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.scw-ib {
    position: relative;
    background-color: #1a1230;
    border: 1px solid #2a1f4a;
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    overflow: hidden;
    isolation: isolate;            /* keeps blurred glow contained */
    transition:
        transform 0.35s cubic-bezier(.2,.7,.3,1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Soft blurred color blob — the glow effect */
.scw-ib__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Content sits above the glow */
.scw-ib__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.scw-ib--lift:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 56, 116, 0.35);
    box-shadow: 0 18px 40px -20px rgba(255, 56, 116, 0.45);
}

.scw-ib__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #FF3874 0%, #7c3aed 100%);
    box-shadow: 0 8px 20px -8px rgba(255, 56, 116, 0.55);
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
    flex-shrink: 0;
}

.scw-ib--lift:hover .scw-ib__icon {
    transform: scale(1.08) rotate(-4deg);
}

.scw-ib__icon i {
    font-size: 26px;
    color: #ffffff;
    line-height: 1;
}

.scw-ib__icon svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.scw-ib__title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 18px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.scw-ib__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #a8a3b8;
    margin: 0;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
}


/* ──────────────────────────────────────────────────────────
   4. CASE STUDY FLIP CARD
────────────────────────────────────────────────────────── */

.elementor-widget-scw_case_study_card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.elementor-widget-scw_case_study_card .elementor-widget-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.scw-cs {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 18px;
    perspective: 1400px;            /* 3D depth for flip variants */
    cursor: pointer;
    outline: none;
}

/* Inner wrapper — this is what rotates for the 3D flip */
.scw-cs__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(.2,.7,.3,1);
    transform-style: preserve-3d;
}

/* The two faces */
.scw-cs__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* FRONT — image side */
.scw-cs__face--front { background: #1a1230; }

.scw-cs__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(.2,.7,.3,1);
}

.scw-cs__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.scw-cs__brand-wrap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px 26px;
    z-index: 2;
}

.scw-cs__brand {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* BACK — gradient + description */
.scw-cs__face--back {
    background: linear-gradient(135deg, #FF3874 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
}

.scw-cs__face--back .scw-cs__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.scw-cs__back-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.scw-cs__back-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.scw-cs__back-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    margin: 0;
    /* Clamp to keep tidy on smaller cards */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scw-cs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #ffffff;
    color: #FF3874;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 4px;
}

.scw-cs__btn svg {
    transition: transform 0.25s ease;
}

.scw-cs:hover .scw-cs__btn,
.scw-cs:focus-visible .scw-cs__btn {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgba(0,0,0,0.45);
}

.scw-cs:hover .scw-cs__btn svg,
.scw-cs:focus-visible .scw-cs__btn svg {
    transform: translateX(3px);
}

/* ─── ANIMATION VARIANTS ─── */

/* 1) Horizontal flip (Y axis) — default */
.scw-cs--flip-y .scw-cs__face--back { transform: rotateY(180deg); }
.scw-cs--flip-y:hover .scw-cs__inner,
.scw-cs--flip-y:focus-visible .scw-cs__inner { transform: rotateY(180deg); }

/* 2) Vertical flip (X axis) */
.scw-cs--flip-x .scw-cs__face--back { transform: rotateX(180deg); }
.scw-cs--flip-x:hover .scw-cs__inner,
.scw-cs--flip-x:focus-visible .scw-cs__inner { transform: rotateX(180deg); }

/* 3) Slide up — back slides up from bottom over front */
.scw-cs--slide-up .scw-cs__inner { transform: none; transform-style: flat; }
.scw-cs--slide-up .scw-cs__face { backface-visibility: visible; }
.scw-cs--slide-up .scw-cs__face--back {
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(.2,.7,.3,1);
}
.scw-cs--slide-up:hover .scw-cs__face--back,
.scw-cs--slide-up:focus-visible .scw-cs__face--back {
    transform: translateY(0);
}

/* 4) Fade overlay */
.scw-cs--fade .scw-cs__inner { transform: none; transform-style: flat; }
.scw-cs--fade .scw-cs__face { backface-visibility: visible; }
.scw-cs--fade .scw-cs__face--back {
    opacity: 0;
    transition: opacity 0.45s ease;
}
.scw-cs--fade:hover .scw-cs__face--back,
.scw-cs--fade:focus-visible .scw-cs__face--back {
    opacity: 1;
}
.scw-cs--fade:hover .scw-cs__img,
.scw-cs--fade:focus-visible .scw-cs__img {
    transform: scale(1.06);
}

/* Touch / no-hover support — tap to flip */
@media (hover: none) {
    .scw-cs:active .scw-cs__inner,
    .scw-cs.is-flipped .scw-cs__inner { transform: rotateY(180deg); }
    .scw-cs--slide-up:active .scw-cs__face--back,
    .scw-cs--slide-up.is-flipped .scw-cs__face--back { transform: translateY(0); }
    .scw-cs--fade:active .scw-cs__face--back,
    .scw-cs--fade.is-flipped .scw-cs__face--back { opacity: 1; }
}

/* Subtle zoom on the image when card is hovered (flip variants only) */
.scw-cs--flip-y:hover .scw-cs__img,
.scw-cs--flip-x:hover .scw-cs__img,
.scw-cs--slide-up:hover .scw-cs__img {
    transform: scale(1.04);
}


/* ──────────────────────────────────────────────────────────
   4. FLIP BOX / CASE STUDY
────────────────────────────────────────────────────────── */

.elementor-widget-scw_flip_box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.elementor-widget-scw_flip_box .elementor-widget-container {
    height: 100%;
    display: flex;
    flex: 1;
}

/* Card wrapper — sets the 3D viewport */
.scw-fb {
    position: relative;
    width: 100%;
    perspective: 1500px;
    cursor: pointer;
    border-radius: 20px;
    /* height comes from inline / responsive control */
}

.scw-fb--trigger-click { outline: none; }

/* Inner = the element that actually rotates */
.scw-fb__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Both faces */
.scw-fb__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* FRONT */
.scw-fb__front {
    background-size: cover;
    background-position: center;
    background-color: #1a1230;
    padding: 30px;
    color: #fff;
}

.scw-fb__front--top    { justify-content: flex-start; align-items: flex-start; }
.scw-fb__front--center { justify-content: center;     align-items: center;     text-align: center; }
.scw-fb__front--bottom { justify-content: flex-end;   align-items: flex-start; }

.scw-fb__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.scw-fb__front-title {
    position: relative;
    z-index: 2;
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    color: #fff;
}

/* BACK */
.scw-fb__back {
    background: linear-gradient(135deg, #FF3874 0%, #7c3aed 100%);
    color: #fff;
}

.scw-fb__back-inner {
    position: relative;
    z-index: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.scw-fb__back-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 16px 0;
}

.scw-fb__back-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin: 0 0 24px 0;
    /* Limit lines on smaller cards to avoid overflow */
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scw-fb__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #1a1230;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto;
}

.scw-fb__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}

.scw-fb__btn svg {
    transition: transform 0.3s ease;
}

.scw-fb__btn:hover svg {
    transform: translateX(4px);
}

/* Whole-card link overlay */
.scw-fb__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    /* sits above everything except the inner button */
    text-indent: -9999px;
}

/* Make the actual back-side button still clickable above the overlay */
.scw-fb__btn { position: relative; z-index: 20; }

/* Reduced motion: avoid disorienting flips */
@media (prefers-reduced-motion: reduce) {
    .scw-fb__inner { transition: none !important; }
}
