﻿/* =========================
   TOKENS
========================= */
:root {
    --text: #0b0f1a;
    --muted: #5b6473;
    --line: rgba(15,23,42,.12);
    --black: #000;

    --radius: 18px;
    --shadow: 0 20px 60px rgba(0,0,0,.12);
    --maxw: 1200px;
    /* Hero split */
    --heroH: 92vh;
    --splitBlack: 36%;
    --splitWhite: 64%;
}

/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.svc-empty {
    padding: 48px 18px;
    max-width: var(--maxw);
    margin: 0 auto;
}

/* =========================
   HERO
========================= */
.svc-hero {
    width: 100%;
    height: var(--heroH);
    min-height: 560px;
    display: flex;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.svc-hero__left {
    width: var(--splitBlack);
    background: var(--black);
    position: relative;
    z-index: 1;
}

.svc-hero__right {
    width: var(--splitWhite);
    background: var(--white);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 110px 64px;
    gap: 12px;
    align-items: flex-start;
}

.svc-hero__title {
    margin: 0;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: .2px;
}

.svc-hero__sub {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.svc-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Buttons */
.svc-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid #000;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
    transform: translateZ(0);
}

    .svc-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 40px rgba(0,0,0,.22);
        background: #111;
    }

    .svc-btn:active {
        transform: translateY(0);
        box-shadow: 0 10px 25px rgba(0,0,0,.16);
    }

.svc-btn--ghost {
    background: #fff;
    color: #000;
    box-shadow: none;
}

    .svc-btn--ghost:hover {
        background: #000;
        color: #fff;
        box-shadow: 0 10px 25px rgba(0,0,0,.14);
    }

.svc-btn--primary {
    background: #000;
    color: #fff;
}

/* services list under button */
.svc-hero__list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 680px;
}

.svc-pill {
    display: block;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: rgba(0,0,0,.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    margin-bottom:10px;
}

    .svc-pill:hover {
        transform: translateY(-2px);
        background: #000;
        color: #fff;
        border-color: #000;
    }

/* divider image */
.svc-hero__divider-img {
    position: absolute;
    top: 50%;
    right: var(--splitWhite); /* RTL split */
    transform: translate(50%, -50%);
    height: 70%;
    width: auto;
    z-index: 3;
    border-radius: 18px;
    border: 3px solid rgba(255,255,255,.35);
    filter: drop-shadow(0 18px 45px rgba(0,0,0,.22));
    pointer-events: auto;
    transition: transform .45s cubic-bezier(.22,.61,.36,1), filter .45s ease;
}

    .svc-hero__divider-img:hover {
        transform: translate(50%, -55%) scale(1.03);
        filter: drop-shadow(0 26px 70px rgba(0,0,0,.30));
    }

/* =========================
   SERVICES WRAP
========================= */
.services {
    padding: 20px 0 80px;
}

.services-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 18px;
}

/* each service section */
.service {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid rgba(15,23,42,.06);
}

    .service:first-child {
        border-top: none;
    }

.service__content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    direction: rtl;
}

/* TEXT RIGHT */
.service__text {
    flex: 1;
    min-width: 280px;
}

.service__title {
    margin: 0 0 12px 0;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: .2px;
}

.service__desc {
    font-size: 22px; /* كان 16 */
    line-height: 2; /* أوضح ومريح */
    color: #2b3340; /* أغمق شوية من muted */
    font-weight: 500;
}

.service__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* IMAGE LEFT */
.service__media {
    width: 560px;
    max-width: 95vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service__frame {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transform: translateZ(0);
}

.service__img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transform: scale(1); /* starts zoomed for animation feel */
    transition: transform 1.0s cubic-bezier(.22,.61,.36,1);
}

.service__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 20% 20%, rgba(255,255,255,.22), rgba(0,0,0,0));
    pointer-events: none;
}

/* =========================
   SCROLL ANIMATION (HIDDEN -> INVIEW)
   Big movement: text from right, image from left + zoom-in
========================= */
.service .service__text,
.service .service__media {
    opacity: 0;
    will-change: transform, opacity;
}

/* hidden state */
.service .service__text {
    transform: translateX(140px); /* big move from right */
    transition: transform .95s cubic-bezier(.22,.61,.36,1), opacity .75s ease;
}

.service .service__media {
    transform: translateX(-140px); /* big move from left */
    transition: transform .95s cubic-bezier(.22,.61,.36,1), opacity .75s ease;
}

/* when in view */
.service.is-inview .service__text,
.service.is-inview .service__media {
    opacity: 1;
    transform: translateX(0);
}

/* zoom-in effect when in view */
.service.is-inview .service__img {
    transform: scale(1.0);
}

/* =========================
   ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce) {
    .service .service__text,
    .service .service__media {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .service__img {
        transform: none !important;
        transition: none !important;
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    :root {
        --heroH: 80vh;
    }

    .svc-hero__right {
        padding: 86px 28px;
    }

    .svc-hero__title {
        font-size: 44px;
    }

    .service__media {
        width: 420px;
    }

    .service__title {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    .svc-hero {
        height: auto;
        min-height: 520px;
        flex-direction: column;
    }

    .svc-hero__left {
        width: 100%;
        height: 150px;
    }

    .svc-hero__right {
        width: 100%;
        padding: 28px 16px;
        align-items: center;
        text-align: center;
    }

    .svc-hero__actions {
        justify-content: center;
    }

    .svc-hero__list {
        justify-content: center;
    }

    .svc-hero__divider-img {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: min(520px, 92vw);
        height: auto;
        margin: 14px auto 0;
    }

    .service {
        min-height: auto;
        padding: 42px 0;
    }

    .service__content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .service__text {
        text-align: center;
    }

    .service__desc {
        margin-inline: auto;
    }

    /* on mobile: animate vertically instead of X */
    .service .service__text {
        transform: translateY(60px);
    }

    .service .service__media {
        transform: translateY(60px);
    }

    .service.is-inview .service__text,
    .service.is-inview .service__media {
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .svc-hero__title {
        font-size: 36px;
    }

    .service__title {
        font-size: 32px;
    }

    .service__img {
        height: 260px;
    }
}
.svc-hero__list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* المسافة بين كل خدمة */
}

.svc-pill {
    display: inline-block; /* أو block لو حابب العرض كامل */
}
.svc-hero__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc-pill {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين اللوجو والاسم */
    text-decoration: none;
}

.svc-icon {
    width: 20px; /* حجم اللوجو */
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.svc-hero__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.svc-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.svc-pill {
    text-decoration: none;
    display: inline-block;
}
body {
    background-image: url('/assets/servicebackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 3;
}

/* Rich text container (content from HTML editor) */
.service__rt {
    line-height: 1.9;
    word-break: break-word;
}

    .service__rt p {
        margin: 0 0 12px;
    }

    .service__rt h2, .service__rt h3, .service__rt h4 {
        margin: 14px 0 10px;
    }

    .service__rt ul, .service__rt ol {
        margin: 10px 0 14px;
        padding-right: 20px;
    }

    .service__rt li {
        margin: 6px 0;
    }

    .service__rt a {
        text-decoration: underline;
    }

    .service__rt table {
        width: 100%;
        border-collapse: collapse;
        margin: 12px 0;
    }

    .service__rt td, .service__rt th {
        border: 1px solid rgba(255,255,255,.15);
        padding: 10px;
    }

    .service__rt img {
        max-width: 100%;
        height: auto;
        border-radius: 14px;
    }
@media (max-width: 520px) {
    .service__img {
        height: 300px;
    }
}
.quill-editor {
    background: #fff;
    border-radius: 14px;
}

.ql-container {
    font-family: "Cairo", sans-serif;
    min-height: 200px;
    direction: rtl;
}
.service__rt h2 {
    font-size: 28px;
    font-weight: 800;
}

.service__rt h3 {
    font-size: 24px;
    font-weight: 700;
}

.service__rt li {
    font-size: 17px;
    line-height: 1.9;
}
