

/* SERVICES SHOWCASE V1 START */

/* Preserve the existing photographic/cinematic section background. */
#services.services-section {
    position: relative;
    isolation: isolate;
    padding-block: clamp(75px, 7vw, 110px) !important;
}

#services .container.services-layout {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(28px, 4vw, 65px);
    width: min(100% - 44px, 1460px);
    max-width: 1460px;
    margin-inline: auto;
}

/* Introduction panel */
#services .services-intro {
    position: relative;
    padding: clamp(25px, 3.2vw, 43px);
    border: 1px solid rgba(255,255,255,.94);
    border-radius: 24px;
    background: rgba(255,255,255,.87);
    box-shadow: 0 18px 48px rgba(18,39,65,.09);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

#services .services-intro .section-kicker {
    display: inline-flex;
    color: #087f73 !important;
    font-family: 'Cairo', sans-serif;
    font-size: .83rem;
    font-weight: 900;
    line-height: 1.9;
    letter-spacing: .04em;
}

#services .services-intro h2 {
    margin: 15px 0 18px;
    color: #142743 !important;
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2rem, 3.1vw, 3.25rem) !important;
    font-weight: 900 !important;
    line-height: 1.52 !important;
    text-wrap: balance;
}

#services .services-intro h2 span {
    display: inline-block;
    color: #078b7d !important;
    line-height: 1.6;
}

#services .services-intro > p {
    margin: 0;
    color: #3e536b !important;
    font-family: 'Cairo', sans-serif;
    font-size: clamp(.98rem, 1.1vw, 1.08rem) !important;
    font-weight: 500;
    line-height: 2.15 !important;
}

#services .services-intro > .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 51px;
    margin-top: 26px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: #142743 !important;
    color: #fff !important;
    font-family: 'Cairo', sans-serif;
    font-size: .93rem;
    font-weight: 900;
    box-shadow: 0 10px 23px rgba(20,39,67,.17);
    transition: background .2s ease, transform .2s ease;
}

#services .services-intro > .button:hover {
    transform: translateY(-3px);
    background: #087f73 !important;
}

/* A small explanation of the work sequence. */
#services .services-intro::after {
    content: "تحليل الاحتياج  •  تطوير الحلول  •  التدريب والتطبيق";
    display: block;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid #e1e9ef;
    color: #52677e;
    font-family: 'Cairo', sans-serif;
    font-size: .79rem;
    font-weight: 800;
    line-height: 1.9;
}

/* The four service cards */
#services .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

#services .service-list::before {
    content: "مجالات العمل والخدمات  /  WHAT I CAN DO FOR YOU";
    grid-column: 1 / -1;
    display: block;
    margin-bottom: 3px;
    color: #087f73;
    font-family: 'Cairo', sans-serif;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.9;
    letter-spacing: .025em;
}

#services .service-item {
    --service-accent: #6553b7;
    --service-soft: #eeebff;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 45px;
    grid-template-areas:
        "icon arrow"
        "copy copy";
    align-content: start;
    align-items: start;
    gap: 13px 10px;
    min-width: 0;
    min-height: 205px;
    padding: 20px 19px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.95);
    border-bottom: 3px solid var(--service-accent);
    border-radius: 18px;
    background: linear-gradient(150deg, var(--service-soft), rgba(255,255,255,.97) 72%);
    box-shadow: 0 9px 25px rgba(18,39,65,.075);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#services .service-item:nth-child(1) {
    --service-accent: #6553b7;
    --service-soft: #eeebff;
}

#services .service-item:nth-child(2) {
    --service-accent: #087f73;
    --service-soft: #e4f7f1;
}

#services .service-item:nth-child(3) {
    --service-accent: #a16a20;
    --service-soft: #fff1dc;
}

#services .service-item:nth-child(4) {
    --service-accent: #286ca7;
    --service-soft: #e8f2ff;
}

#services .service-item::after {
    position: absolute;
    top: 10px;
    left: 13px;
    color: var(--service-accent);
    opacity: .12;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

#services .service-item:nth-child(1)::after { content: "01"; }
#services .service-item:nth-child(2)::after { content: "02"; }
#services .service-item:nth-child(3)::after { content: "03"; }
#services .service-item:nth-child(4)::after { content: "04"; }

#services .service-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 14px;
    background: var(--service-accent);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem !important;
    font-weight: 900;
    box-shadow: 0 7px 16px rgba(20,39,65,.12);
}

#services .service-item > div {
    grid-area: copy;
    min-width: 0;
}

#services .service-item h3 {
    margin: 0 0 8px;
    color: #172c48 !important;
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.02rem, 1.25vw, 1.2rem) !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    text-wrap: pretty;
}

#services .service-item p {
    margin: 0;
    color: #465c73 !important;
    font-family: 'Cairo', sans-serif;
    font-size: .88rem !important;
    font-weight: 500;
    line-height: 2 !important;
}

#services .service-arrow {
    grid-area: arrow;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 13px;
    background: rgba(255,255,255,.85);
    color: var(--service-accent) !important;
    font-size: 1.2rem;
    font-weight: 900;
}

#services .service-item:hover {
    transform: translateY(-4px);
    border-color: var(--service-accent);
    box-shadow: 0 17px 34px rgba(18,39,65,.13);
}

@media (max-width: 1050px) {
    #services .container.services-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    #services .services-intro {
        max-width: 850px;
    }

    #services .service-item {
        min-height: 190px;
    }
}

@media (max-width: 650px) {
    #services.services-section {
        padding-block: 54px !important;
    }

    #services .container.services-layout {
        width: min(100% - 28px, 560px);
    }

    #services .services-intro {
        padding: 22px 18px;
        border-radius: 18px;
    }

    #services .services-intro h2 {
        font-size: clamp(1.9rem, 7vw, 2.5rem) !important;
    }

    #services .services-intro > p {
        font-size: .91rem !important;
    }

    #services .service-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    #services .service-item {
        min-height: 160px;
        padding: 17px;
    }

    #services .service-item h3 {
        font-size: 1.05rem !important;
    }

    #services .service-item p {
        font-size: .84rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #services .service-item,
    #services .services-intro > .button {
        transition: none;
    }

    #services .service-item:hover,
    #services .services-intro > .button:hover {
        transform: none;
    }
}

/* SERVICES SHOWCASE V1 END */
