/**
 * Zaki Services Widget — Styles
 * Namespaced with .zs- prefix.
 */

/* ─── Section Base ──────────────────────────────────────── */
.zs-sec-services {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background: #ffffff;
    isolation: isolate;
}

.zs-sec-services::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #f0f4ff;
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1;
}

/* Blobs */
.zs-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.30;
    z-index: 0;
    pointer-events: none;
}

.zs-blob-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, #bfdbfe, transparent 65%);
}

.zs-blob-2 {
    width: 420px;
    height: 420px;
    bottom: -80px;
    left: -100px;
    background: radial-gradient(circle, #ddd6fe, transparent 65%);
}

/* ─── Layout ────────────────────────────────────────────── */
.zs-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Section Header ────────────────────────────────────── */
.zs-sec-head {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.zs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-weight: 800;
    font-size: 0.88rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.zs-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    display: inline-block;
}

.zs-sec-title {
    font-size: clamp(1.9rem, 2.8vw + 0.7rem, 2.9rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 14px;
}

.zs-hl {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zs-sec-desc {
    color: #475569;
    font-size: 1.06rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── Cards Grid ────────────────────────────────────────── */
.zs-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    position: relative;
    z-index: 2;
}

.zs-card-wide {
    grid-column: span 2;
}

.zs-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    padding: 32px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1),
        box-shadow .22s cubic-bezier(.4, 0, .2, 1),
        border-color .22s cubic-bezier(.4, 0, .2, 1);
    cursor: default;
}

.zs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.11);
    border-color: rgba(99, 102, 241, 0.30);
}

.zs-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity .22s ease;
    border-radius: 24px 24px 0 0;
}

.zs-card:hover::after {
    opacity: 1;
}

/* Card icon */
.zs-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.zs-card-icon.icon-blue {
    background: rgba(37, 99, 235, 0.10);
}

.zs-card-icon.icon-violet {
    background: rgba(124, 58, 237, 0.10);
}

.zs-card-icon.icon-indigo {
    background: rgba(79, 70, 229, 0.10);
}

.zs-card-icon.icon-sky {
    background: rgba(14, 165, 233, 0.10);
}

.zs-card-icon.icon-rose {
    background: rgba(244, 63, 94, 0.10);
}

.zs-card-icon.icon-amber {
    background: rgba(245, 158, 11, 0.10);
}

.zs-card-title {
    font-size: 1.12rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.zs-card-text {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.75;
}

/* Tags */
.zs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.zs-ctag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Wide card body */
.zs-card-wide .zs-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.zs-card-visual {
    border-radius: 16px;
    overflow: hidden;
    min-height: 190px;
    background: linear-gradient(135deg, #1e3a8a, #4f46e5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
}

/* Dashboard mockup bars */
.zs-dash-row {
    width: 100%;
    display: flex;
    gap: 8px;
    direction: ltr;
}

.zs-dash-bar {
    flex: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.zs-dash-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 6px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.30));
    animation: zsBarGrow 2.5s ease-in-out infinite alternate;
}

.zs-b1 {
    height: 60px;
}

.zs-b1 .zs-dash-bar-fill {
    height: 68%;
    animation-delay: 0s;
}

.zs-b2 {
    height: 60px;
}

.zs-b2 .zs-dash-bar-fill {
    height: 45%;
    animation-delay: .4s;
}

.zs-b3 {
    height: 60px;
}

.zs-b3 .zs-dash-bar-fill {
    height: 82%;
    animation-delay: .8s;
}

.zs-b4 {
    height: 60px;
}

.zs-b4 .zs-dash-bar-fill {
    height: 55%;
    animation-delay: 1.2s;
}

.zs-b5 {
    height: 60px;
}

.zs-b5 .zs-dash-bar-fill {
    height: 72%;
    animation-delay: 1.6s;
}

@keyframes zsBarGrow {
    0% {
        transform: scaleY(0.85);
    }

    100% {
        transform: scaleY(1.08);
    }
}

.zs-dash-label {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    direction: rtl;
}

/* ─── Steps Row ─────────────────────────────────────────── */
.zs-steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 22px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.zs-step {
    padding: 30px 26px;
    position: relative;
    transition: background .22s ease;
}

.zs-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 1px;
    background: rgba(148, 163, 184, 0.28);
}

.zs-step:hover {
    background: rgba(37, 99, 235, 0.03);
}

.zs-step-num {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.20));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.zs-step-title {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.zs-step-text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
}

/* ─── CTA Banner ────────────────────────────────────────── */
.zs-cta-banner {
    margin-top: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 55%, #7c3aed 100%);
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.30);
}

.zs-cta-banner::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.zs-cta-banner::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.zs-banner-left {
    position: relative;
    z-index: 1;
}

.zs-banner-title {
    font-size: clamp(1.3rem, 2vw + 0.5rem, 1.9rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 8px;
}

.zs-banner-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.zs-banner-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.zs-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.zs-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.zs-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease;
}

.zs-btn-outline-white:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.80);
}

/* ─── Reveal ────────────────────────────────────────────── */
.zs-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}

.zs-reveal.is-on {
    opacity: 1;
    transform: translateY(0);
}

/* Elementor editor — show immediately */
.elementor-editor-active .zs-reveal,
.elementor-editor-preview .zs-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .zs-reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .zs-dash-bar-fill {
        animation: none;
    }

    .zs-card {
        transition: none;
    }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .zs-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zs-card-wide {
        grid-column: span 2;
    }

    .zs-card-wide .zs-card-body {
        grid-template-columns: 1fr;
    }

    .zs-card-visual {
        min-height: 140px;
    }
}

@media (max-width: 768px) {
    .zs-steps-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zs-step:nth-child(2)::after,
    .zs-step:nth-child(4)::after {
        display: none;
    }

    .zs-step:nth-child(3),
    .zs-step:nth-child(4) {
        border-top: 1px solid rgba(148, 163, 184, 0.28);
    }
}

@media (max-width: 640px) {
    .zs-sec-services {
        padding: 64px 0 72px;
    }

    .zs-cards-grid {
        grid-template-columns: 1fr;
    }

    .zs-card-wide {
        grid-column: span 1;
    }

    .zs-steps-row {
        grid-template-columns: 1fr;
    }

    .zs-step:not(:last-child)::after {
        display: none;
    }

    .zs-step:not(:first-child) {
        border-top: 1px solid rgba(148, 163, 184, 0.28);
    }

    .zs-cta-banner {
        padding: 32px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .zs-banner-right {
        width: 100%;
    }

    .zs-btn-white,
    .zs-btn-outline-white {
        flex: 1;
        justify-content: center;
    }
}