﻿/* =========================================================
   SoftZone public site
   Colours come from the control panel (--c-* variables are
   printed in the page head from the SiteColors table).
   ========================================================= */
:root {
    --c-primary: #0062F2; --c-secondary: #00A1FD; --c-accent: #FFB020;
    --c-dark: #0A1157; --c-light: #F3F6FC; --c-text: #0F1A4A;
    --c-muted: color-mix(in srgb, var(--c-text) 62%, white);
    --c-border: color-mix(in srgb, var(--c-text) 10%, white);
    --grad: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    --radius: 18px; --radius-sm: 12px;
    --shadow: 0 10px 30px -12px color-mix(in srgb, var(--c-dark) 30%, transparent);
    --shadow-lg: 0 30px 60px -20px color-mix(in srgb, var(--c-primary) 35%, transparent);
    --header-h: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--c-text); background: #fff; line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang=ar] body { font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[lang=en] body { font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; color: var(--c-dark); }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700;
       font-size: 15.5px; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s; font-family: inherit; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { color: #fff; box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--c-primary) 60%, transparent); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); border: 2px solid color-mix(in srgb, var(--c-primary) 35%, transparent); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { color: var(--c-dark); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
html[dir=rtl] .btn .fa-arrow-right, html[dir=rtl] .link-arrow .fa-arrow-right { transform: scaleX(-1); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000; transition: background .3s, box-shadow .3s, height .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--c-dark) 88%, transparent); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); --header-h: 68px; }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand img { height: 44px; width: auto; max-width: 240px; object-fit: contain; }
.site-footer .brand img { height: 52px; max-width: 280px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: var(--shadow-lg); }
.main-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.main-nav a { color: rgba(255,255,255,.82); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-toggle { display: none; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 12px; font-size: 20px; cursor: pointer; }
.mobile-nav { position: fixed; inset: 0; z-index: 1100; background: var(--c-dark); padding: 90px 28px 30px; transform: translateY(-100%); visibility: hidden; overflow-y: auto;
              transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s linear .4s; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav.open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s; }
.mobile-nav a { color: #fff; font-size: 22px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav .btn { margin-top: 20px; font-size: 17px; }
.mobile-close { position: absolute; top: 18px; inset-inline-end: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 40px) 0 80px;
        background: radial-gradient(1000px 600px at 85% 10%, color-mix(in srgb, var(--c-primary) 45%, transparent), transparent 60%),
                    radial-gradient(800px 500px at 0% 100%, color-mix(in srgb, var(--c-secondary) 35%, transparent), transparent 60%), var(--c-dark); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero .grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: .35;
        background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
        background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: blob 14s ease-in-out infinite alternate; pointer-events: none; }
.blob.b1 { width: 380px; height: 380px; background: var(--c-primary); top: -80px; inset-inline-end: -60px; }
.blob.b2 { width: 300px; height: 300px; background: var(--c-accent); bottom: -120px; inset-inline-start: 10%; opacity: .25; animation-delay: -5s; }
@keyframes blob { to { transform: translate(40px, 30px) scale(1.15); } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-inner > *, .split > *, .detail-layout > *, .contact-layout > * { min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.08);
              border: 1px solid rgba(255,255,255,.15); font-size: 14px; font-weight: 600; margin-bottom: 24px; backdrop-filter: blur(6px); }
html[dir=rtl] .hero-badge { padding: 8px 8px 8px 16px; }
.hero-badge .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 12px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 .rotator { display: block; min-height: 1.3em; background: linear-gradient(90deg, var(--c-secondary), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang=en] .hero h1 .rotator { min-height: 2.6em; }
.hero h1 .caret { display: inline-block; width: 3px; height: .9em; background: var(--c-accent); vertical-align: middle; margin-inline-start: 6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-text { font-size: 18px; color: rgba(255,255,255,.78); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255,255,255,.75); font-size: 14.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--c-accent); }
.hero-visual { position: relative; }
.code-window { position: relative; background: color-mix(in srgb, var(--c-dark) 70%, #1e293b); border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
               box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset; overflow: hidden; direction: ltr; text-align: left;
               transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .6s; }
html[dir=ltr] .code-window { transform: perspective(1200px) rotateY(8deg) rotateX(4deg); }
.code-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.cw-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.cw-bar i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cw-bar i:nth-child(1) { background: #FF5F57; } .cw-bar i:nth-child(2) { background: #FEBC2E; } .cw-bar i:nth-child(3) { background: #28C840; }
.cw-bar span { margin-inline-start: 10px; font-size: 13px; color: rgba(255,255,255,.55); font-family: ui-monospace, Consolas, monospace; }
.cw-body { padding: 22px 24px 28px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 14px; line-height: 1.9; min-height: 330px; color: #cbd5e1; white-space: pre; overflow: hidden; max-width: 100%; }
.cw-body .k { color: #c084fc; } .cw-body .s { color: #86efac; } .cw-body .f { color: #7dd3fc; } .cw-body .n { color: var(--c-accent); } .cw-body .c { color: #64748b; }
.cw-cursor { display: inline-block; width: 8px; height: 17px; background: var(--c-secondary); vertical-align: middle; animation: blink 1s steps(1) infinite; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--c-dark);
        font-weight: 700; font-size: 14px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.45); animation: float 6s ease-in-out infinite; z-index: 3; }
.chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 14px; }
.chip.c1 { top: -18px; inset-inline-start: -30px; }
.chip.c2 { top: 38%; inset-inline-end: -40px; animation-delay: -2s; }
.chip.c2 i { background: linear-gradient(135deg, var(--c-accent), #f97316); }
.chip.c3 { bottom: -22px; inset-inline-start: 12%; animation-delay: -4s; }
.chip.c4 { bottom: 26%; inset-inline-start: -50px; animation-delay: -1s; }
.chip.c4 i { background: linear-gradient(135deg, #10b981, #06b6d4); }
@keyframes float { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; padding: calc(var(--header-h) + 70px) 0 80px; overflow: hidden; text-align: center;
             background: radial-gradient(700px 400px at 80% 0%, color-mix(in srgb, var(--c-primary) 50%, transparent), transparent 60%),
                         radial-gradient(600px 400px at 10% 100%, color-mix(in srgb, var(--c-secondary) 35%, transparent), transparent 60%), var(--c-dark); }
.page-hero .grid-lines { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
             background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 680px; margin: 0 auto 18px; font-size: 17px; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); padding: 7px 18px; border-radius: 999px; }
.breadcrumb a { color: #fff; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--c-light); }
.section-dark { background: var(--c-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.sec-head.start { text-align: start; margin-inline: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, white);
       padding: 6px 16px; border-radius: 999px; margin-bottom: 16px; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 20%, transparent); }
.section-dark .tag { background: rgba(255,255,255,.08); color: #fff; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.sec-head p { color: var(--c-muted); font-size: 17px; }
.section-dark .sec-head p { color: rgba(255,255,255,.7); }
.center-actions { text-align: center; margin-top: 50px; }
.empty-note { text-align: center; color: var(--c-muted); padding: 40px; border: 2px dashed var(--c-border); border-radius: var(--radius); }

/* ---------- clients marquee ---------- */
.clients-strip { padding: 50px 0; border-bottom: 1px solid var(--c-border); background: #fff; }
.clients-strip h3 { text-align: center; font-size: 15px; color: var(--c-muted); font-weight: 600; margin-bottom: 28px; letter-spacing: .3px; }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 35s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item { height: 56px; display: flex; align-items: center; }
.logo-item img { max-height: 56px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: .3s; }
.logo-item:hover img, .client-card:hover img { filter: none; opacity: 1; }

/* ---------- service cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column;
                transition: transform .35s, box-shadow .35s, border-color .35s; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .4s; }
html[dir=rtl] .service-card::before { --origin: right; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .thumb { margin: -30px -30px 24px; aspect-ratio: 16/9; overflow: hidden; background: var(--c-light); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .thumb img { transform: scale(1.06); }
.s-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--grad); margin-bottom: 20px;
          box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--c-primary) 70%, transparent); }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-accent) 15%, white); color: color-mix(in srgb, var(--c-accent) 70%, black); margin-bottom: 12px; align-self: flex-start; }
.badge.t2 { background: color-mix(in srgb, var(--c-secondary) 14%, white); color: color-mix(in srgb, var(--c-secondary) 65%, black); }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card h3 a { color: var(--c-dark); }
.service-card p { color: var(--c-muted); font-size: 15px; flex: 1; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.link-arrow i { transition: transform .3s; }
.service-card:hover .link-arrow i { transform: translateX(5px); }
html[dir=rtl] .service-card:hover .link-arrow i { transform: scaleX(-1) translateX(5px); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 45px; }
.filters a { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--c-border); color: var(--c-text); font-weight: 600; background: #fff; }
.filters a.active, .filters a:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 24px; width: 100%; aspect-ratio: 4/3.2; object-fit: cover; box-shadow: var(--shadow); }
.about-media .placeholder { aspect-ratio: 4/3.2; border-radius: 24px; background: var(--grad); display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 90px; }
.about-media .float-card { position: absolute; bottom: -30px; inset-inline-end: -20px; background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; }
.about-media .float-card strong { font-size: 32px; color: var(--c-primary); line-height: 1; }
.about-media .float-card span { color: var(--c-muted); font-size: 14px; }
.about-media::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 120px; height: 120px; border-radius: 24px; background: color-mix(in srgb, var(--c-accent) 25%, transparent); z-index: -1; }
html[dir=rtl] .about-media::before { inset: -18px -18px auto auto; }
.text-block p { color: var(--c-muted); font-size: 16.5px; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.vm-card { padding: 22px; border-radius: var(--radius-sm); background: var(--c-light); border: 1px solid var(--c-border); }
.vm-card h4 { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.vm-card h4 i { color: var(--c-primary); }
.vm-card p { margin: 0; font-size: 15px; color: var(--c-muted); }

/* ---------- stats ---------- */
.stats-band { background: var(--grad); border-radius: 28px; padding: 50px 30px; color: #fff; position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(36px, 4.5vw, 54px); font-weight: 800; line-height: 1.1; }
.stat span { opacity: .85; font-weight: 600; }

/* ---------- why us ---------- */
.why-card { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); transition: .35s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card .w-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
                    background: color-mix(in srgb, var(--c-primary) 10%, white); color: var(--c-primary); transition: .35s; }
.why-card:hover .w-icon { background: var(--grad); color: #fff; transform: rotate(-8deg); }
.why-card h3 { font-size: 19px; }
.why-card p { color: var(--c-muted); margin: 0; font-size: 15px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); }
.step { text-align: center; position: relative; }
.step .num { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff;
             background: var(--c-dark); border: 2px solid color-mix(in srgb, var(--c-primary) 70%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-primary) 15%, transparent); position: relative; z-index: 1; transition: .35s; }
.step:hover .num { background: var(--grad); transform: scale(1.08); }
.step h3 { font-size: 18px; }
.step p { color: rgba(255,255,255,.65); font-size: 14.5px; }

/* ---------- testimonials ---------- */
.t-slider { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px; scrollbar-width: none; }
.t-slider::-webkit-scrollbar { display: none; }
.t-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px; position: relative; }
.t-card .quote { position: absolute; top: 22px; inset-inline-end: 26px; font-size: 40px; color: color-mix(in srgb, var(--c-primary) 15%, white); }
.t-card .stars { color: #F5B301; margin-bottom: 14px; letter-spacing: 2px; }
.t-card p { color: var(--c-text); font-size: 15.5px; min-height: 100px; }
.t-person { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-border); }
.t-person img, .t-person .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.t-person .avatar { background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.t-person strong { display: block; color: var(--c-dark); }
.t-person span { color: var(--c-muted); font-size: 13.5px; }
.slider-nav { display: flex; justify-content: center; gap: 12px; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-border); background: #fff; color: var(--c-dark); cursor: pointer; font-size: 16px; transition: .25s; }
.slider-nav button:hover { background: var(--grad); color: #fff; border-color: transparent; }
html[dir=rtl] .slider-nav i { transform: scaleX(-1); }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: 32px; padding: 70px 50px; overflow: hidden; color: #fff; text-align: center;
       background: radial-gradient(500px 300px at 90% 0%, color-mix(in srgb, var(--c-accent) 45%, transparent), transparent 70%), var(--grad); }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.cta::before { width: 400px; height: 400px; top: -200px; inset-inline-start: -120px; }
.cta::after { width: 260px; height: 260px; bottom: -130px; inset-inline-end: -60px; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; position: relative; }
.cta p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin: 0 auto 32px; position: relative; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; position: relative; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.7); padding: 90px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 15px; margin: 18px 0 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list i { color: var(--c-secondary); margin-top: 6px; width: 16px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: .25s; }
.socials a:hover { background: var(--grad); transform: translateY(-3px); color: #fff; }
.footer-bottom { margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.ltr-text { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center;
            font-size: 30px; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .3s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2s infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; bottom: 96px; inset-inline-start: 31px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c-dark); color: #fff; cursor: pointer;
          opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- service details ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.detail-main .main-img { border-radius: 22px; width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 40px; box-shadow: var(--shadow); }
.detail-main h2 { font-size: 26px; margin-top: 10px; }
.rich-text p { color: var(--c-muted); font-size: 16.5px; }
.features { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--c-light); border-radius: 14px; border: 1px solid var(--c-border); }
.features i { color: #fff; background: var(--grad); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.gallery-grid a { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--c-light); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.video-box { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.side-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 20px; }
.side-card p { color: var(--c-muted); font-size: 15px; }
.side-card .btn { width: 100%; margin-bottom: 12px; }
.side-card .mini-contact { border-top: 1px solid var(--c-border); margin-top: 14px; padding-top: 16px; font-size: 15px; }
.side-card .mini-contact a { display: flex; align-items: center; gap: 10px; color: var(--c-text); padding: 6px 0; }
.side-card .mini-contact i { color: var(--c-primary); width: 18px; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5,8,15,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; }
.lightbox button { position: absolute; top: 20px; inset-inline-end: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; }

/* ---------- clients page ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.client-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); aspect-ratio: 3/2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; transition: .3s; text-align: center; color: var(--c-text); }
.client-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--c-text); }
.client-card img { max-height: 70px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.client-card span { font-size: 13px; color: var(--c-muted); margin-top: 10px; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-cards { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 20px; transition: .3s; color: var(--c-text); }
a.info-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--c-text); }
.info-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 20px; flex-shrink: 0; }
.info-card .ic.wa { background: #25D366; } .info-card .ic.ms { background: linear-gradient(135deg, #00B2FF, #006AFF); }
.info-card small { display: block; color: var(--c-muted); font-size: 13px; }
.info-card strong { font-size: 16px; color: var(--c-dark); word-break: break-word; }
.form-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); }
.form-card h3 { font-size: 24px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; color: var(--c-dark); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--c-border); font-family: inherit; font-size: 15px; color: var(--c-text);
        background: var(--c-light); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 15%, transparent); }
.field .err { color: #dc2626; font-size: 13px; margin-top: 4px; display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: 14px; margin-bottom: 22px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.map-box { border-radius: 24px; overflow: hidden; height: 420px; box-shadow: var(--shadow); margin-top: 60px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* ---------- gallery (about) ---------- */
.about-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.about-gallery a { border-radius: 16px; overflow: hidden; aspect-ratio: 1; display: block; }
.about-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.about-gallery a:hover img { transform: scale(1.06); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 60px 0; }
.nf .code { font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

/* ---------- colour customizer (logged-in admins only) ---------- */
.theme-fab { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 22px;
             background: conic-gradient(var(--c-primary), var(--c-secondary), var(--c-accent), var(--c-primary)); box-shadow: 0 14px 30px -8px rgba(0,0,0,.4); }
.theme-panel { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: 340px; max-width: 92vw; z-index: 1600; background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.25);
               transform: translateX(110%); transition: transform .4s; display: flex; flex-direction: column; direction: rtl; font-family: 'IBM Plex Sans Arabic', sans-serif; }
html[dir=rtl] .theme-panel { transform: translateX(-110%); }
.theme-panel.open { transform: none !important; }
.tp-head { padding: 20px 22px; background: var(--c-dark); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.tp-head strong { font-size: 17px; }
.tp-head button { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.tp-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.tp-body h5 { margin: 0 0 12px; font-size: 14px; color: #64748b; }
.tp-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.tp-preset { border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px; cursor: pointer; background: #fff; text-align: center; font-family: inherit; font-size: 12.5px; color: #334155; }
.tp-preset.active { border-color: var(--c-primary); }
.tp-preset .sw { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.tp-preset .sw span { flex: 1; }
.tp-color { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
.tp-color input { width: 46px; height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 2px; cursor: pointer; background: #fff; }
.tp-foot { padding: 16px 22px; border-top: 1px solid #e2e8f0; display: grid; gap: 10px; }
.tp-foot .btn { width: 100%; }
.tp-msg { font-size: 13.5px; text-align: center; min-height: 20px; color: #047857; }
.tp-msg.err { color: #b91c1c; }

/* ---------- formatted text from the editor ---------- */
.rich p { margin: 0 0 .75em; }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 .9em; padding-inline-start: 1.4em; }
.rich li { margin-bottom: .3em; }
.rich h2 { font-size: 1.5em; margin: 1em 0 .5em; } .rich h3 { font-size: 1.25em; margin: 1em 0 .5em; } .rich h4 { font-size: 1.1em; }
.rich blockquote { margin: 1em 0; padding: 14px 20px; border-inline-start: 4px solid var(--c-primary); background: var(--c-light); border-radius: 10px; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich .ql-align-center { text-align: center; } .rich .ql-align-justify { text-align: justify; }
html[dir=rtl] .rich .ql-align-right { text-align: right; } html[dir=rtl] .rich .ql-align-left { text-align: left; }
html[dir=ltr] .rich .ql-align-right { text-align: right; }
.rich .ql-direction-rtl { direction: rtl; }
.rich .ql-indent-1 { padding-inline-start: 3em; } .rich .ql-indent-2 { padding-inline-start: 6em; }
.card-text { color: var(--c-muted); font-size: 15px; flex: 1; margin-bottom: 1em; }
.why-card .rich { color: var(--c-muted); font-size: 15px; }
.vm-card .rich { font-size: 15px; color: var(--c-muted); }
.lead-text { color: var(--c-muted); font-size: 16.5px; margin-bottom: 1em; }
.lead-big { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; color: var(--c-dark); line-height: 1.7; margin-bottom: 18px; }
.rich-text.rich { color: var(--c-muted); font-size: 16.5px; }
.hero-sub { color: rgba(255,255,255,.75); max-width: 680px; margin: 0 auto 18px; font-size: 17px; }
.hero-sub a { color: #fff; }
.t-card .t-text { color: var(--c-text); font-size: 15.5px; min-height: 100px; }
.footer-text { font-size: 15px; margin: 18px 0 24px; }
.footer-text a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
    .t-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 960px) {
    .main-nav, .header-actions .btn, .header-actions .lang-btn { display: none; }
    .nav-toggle { display: inline-grid; place-items: center; margin-inline-start: auto; }
    .hero-inner, .split, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 30px auto 0; width: 100%; }
    .chip.c2 { inset-inline-end: -8px; } .chip.c1, .chip.c4 { inset-inline-start: -8px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .side-card { position: static; }
    .section { padding: 80px 0; }
    .about-media { max-width: 600px; }
}
@media (max-width: 640px) {
    .grid-3, .grid-2, .grid-4, .vm-grid, .features, .form-row { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .about-gallery { grid-template-columns: 1fr 1fr; }
    .t-card { flex-basis: 88%; }
    .form-card { padding: 26px 20px; }
    .cta { padding: 50px 22px; border-radius: 24px; }
    .hero { padding-bottom: 60px; } .scroll-hint { display: none; }
    .cw-body { font-size: 12px; min-height: 280px; padding: 16px; }
    .chip { font-size: 12px; padding: 8px 12px; } .chip i { width: 26px; height: 26px; }
    .chip.c2 { inset-inline-end: 0; } .chip.c1, .chip.c4 { inset-inline-start: 0; }
    html[lang=en] .hero h1 .rotator { min-height: 1.3em; }
    .hero-text { font-size: 16.5px; }
    .about-media .float-card { inset-inline-end: 10px; }
}

/* colour FAB: hidden while the panel is open (close via the panel's X / footer / Esc / click outside) */
.theme-fab .close-ic { display: none; }
.theme-fab.is-open { display: none; }
.tp-head button { font-size: 18px; }
