/* 3S Computer Systems & Software — site styles. Logical properties throughout so RTL (Arabic) mirrors automatically. */
:root {
  --navy-950: #070d1a;
  --navy-900: #0b1220;
  --navy-850: #111a2c;
  --navy-800: #17223a;
  --navy-700: #24324f;
  --mint: #3ef0c9;
  --mint-2: #2dd4bf;
  --mint-soft: #d9fbf2;
  --teal-ink: #0b7a69;
  --ink: #0d1526;
  --ink-2: #334155;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-tint: #f4f7fa;
  --on-dark: #e8eef7;
  --on-dark-muted: #9fb0c7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 21, 38, .06), 0 8px 24px rgba(13, 21, 38, .06);
  --shadow-lg: 0 30px 80px rgba(3, 8, 20, .45);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}
:lang(ar) {
  --font-head: 'IBM Plex Sans Arabic', 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.ico { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ico.flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  padding: 14px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 17px 26px; font-size: 17px; }
.btn-primary { background: var(--mint); color: var(--navy-950); box-shadow: 0 8px 24px rgba(62, 240, 201, .28); }
.btn-primary:hover { background: #6ff5d7; box-shadow: 0 10px 30px rgba(62, 240, 201, .4); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--mint); color: #fff; background: rgba(62, 240, 201, .08); }
.btn-outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn .ico { width: 18px; height: 18px; }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .12em;
  color: var(--teal-ink); margin-bottom: 14px;
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
.eyebrow .ico { width: 16px; height: 16px; }
.eyebrow-dark { color: var(--mint); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(62, 240, 201, .2); }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-lead { margin-top: 16px; font-size: 19px; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 26, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--on-dark);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { direction: ltr; unicode-bidi: isolate; font: 700 22px/1 'Sora', sans-serif; letter-spacing: -.02em; }
.brand-name i { color: var(--mint); font-style: normal; }
.brand-tag { font: 500 9.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 6px; }
:lang(ar) .brand-tag { letter-spacing: 0; font-size: 12px; text-transform: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--on-dark);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mint); border-radius: 10px 10px 4px 4px; }
.chev { width: 16px; height: 16px; opacity: .7; transition: transform .2s; }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -16px; width: 420px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }
.mega a, .mnav-svc a { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; text-decoration: none; }
.mega a:hover { background: var(--bg-tint); }
.mega .ico, .mnav-svc .ico { width: 22px; height: 22px; color: var(--teal-ink); margin-top: 2px; }
.mega b, .mnav-svc b { display: block; font-weight: 600; font-size: 15.5px; }
.mega small, .mnav-svc small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--on-dark-muted); padding: 8px 6px; }
.lang:hover { color: #fff; }
.lang .ico { width: 17px; height: 17px; }
.lang:lang(ar) { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang:lang(en) { font-family: 'Inter', 'Sora', sans-serif; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 10px; margin-inline-end: -10px; cursor: pointer; }
.menu-btn .ico { width: 26px; height: 26px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { border-top: 1px solid rgba(255, 255, 255, .08); max-height: calc(100vh - 76px); overflow-y: auto; padding-block: 16px 28px; }
.mnav-label { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-muted); padding: 4px 14px; }
.mnav-svc a { color: #fff; }
.mnav-svc a:hover { background: rgba(255, 255, 255, .06); }
.mnav-svc .ico { color: var(--mint); }
.mnav-svc small { color: var(--on-dark-muted); }
.mnav-main { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 10px; padding-top: 10px; }
.mnav-main a { display: block; padding: 14px; font-size: 18px; font-weight: 500; text-decoration: none; color: #fff; border-radius: 10px; }
.mnav-main a:hover { background: rgba(255, 255, 255, .06); }
.mnav-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 14px 0; }
.mnav-actions .btn { flex: 1; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-950); color: var(--on-dark); overflow: hidden; padding-block: clamp(56px, 9vw, 112px) clamp(64px, 10vw, 128px); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(37, 99, 235, .35), transparent 70%),
    radial-gradient(45% 55% at 10% 100%, rgba(62, 240, 201, .16), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; color: #fff; }
:lang(ar) .hero h1 { font-size: clamp(36px, 5vw, 58px); }
.accent { color: var(--mint); display: block; }
.hero .lead, .page-hero .lead { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); color: var(--on-dark-muted); max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 15px; color: var(--on-dark-muted); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .ico { width: 18px; height: 18px; color: var(--mint); }

/* mock dashboard */
.hero-visual { position: relative; padding: 28px 0 36px; }
.mock { background: var(--navy-850); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3754; }
.mock-bar em { margin-inline-start: 12px; font: 500 12px/1 var(--font-body); color: var(--on-dark-muted); background: rgba(255, 255, 255, .05); padding: 6px 12px; border-radius: 99px; font-style: normal; }
.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 320px; }
.mock-side { border-inline-end: 1px solid rgba(255, 255, 255, .06); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-side i { width: 22px; height: 22px; border-radius: 7px; background: #1f2b45; }
.mock-side i.on { background: var(--mint); }
.mock-main { padding: 20px; }
.mock-title { font: 600 15px/1.2 var(--font-head); color: #fff; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.mock-kpis div { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px; }
.mock-kpis small { display: block; font-size: 11px; line-height: 1.3; color: var(--on-dark-muted); min-height: 28px; }
.mock-kpis b { display: inline-block; font: 600 22px/1.1 var(--font-head); color: #fff; margin-top: 4px; }
.mock-kpis .up { unicode-bidi: isolate; direction: ltr; display: inline-block; font-size: 11px; color: var(--mint); margin-inline-start: 6px; font-weight: 600; }
.mock-chart { direction: ltr; display: flex; align-items: flex-end; gap: 6px; height: 104px; margin-top: 18px; padding: 12px; background: rgba(255, 255, 255, .03); border-radius: 12px; }
.mock-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--mint), rgba(62, 240, 201, .25)); }
.mock-rows { display: grid; gap: 8px; margin-top: 14px; }
.mock-rows i { height: 10px; border-radius: 99px; background: #1c2741; }
.mock-rows i:nth-child(2) { width: 82%; } .mock-rows i:nth-child(3) { width: 64%; }
.float { position: absolute; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font-size: 13.5px; line-height: 1.4; }
.float b { font-size: 13px; color: var(--teal-ink); }
.float-chat { inset-inline-start: -28px; bottom: 0; max-width: 300px; animation: bob 6s ease-in-out infinite; }
.float-task { inset-inline-end: -14px; top: 0; animation: bob 7s ease-in-out -2s infinite; }
.float-task p { font-weight: 600; }
.float-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--navy-900); color: var(--mint); flex: none; }
.float-ico.ok { background: var(--mint-soft); color: var(--teal-ink); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-950); color: var(--on-dark); }
.section-dark .h2 { color: #fff; }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(13, 21, 38, .1); border-color: #cfd8e3; }
.svc-card h3 { font-size: 22px; font-weight: 600; margin-top: 22px; }
.svc-card h3 a { text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-card > p { color: var(--muted); margin-top: 10px; }
.svc-card .checks { margin-top: 22px; margin-bottom: 26px; }
.svc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: var(--mint); flex: none; }
.svc-icon .ico { width: 26px; height: 26px; }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-ink); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s; }
.svc-card:hover .link-arrow .ico { transform: translateX(4px); }
[dir="rtl"] .svc-card:hover .link-arrow .ico { transform: scaleX(-1) translateX(4px); }

.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { width: 20px; height: 20px; color: var(--teal-ink); margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--mint-soft); stroke-width: 3; }

/* pains */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pain { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.pain:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pain small { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
:lang(ar) .pain small { letter-spacing: 0; font-size: 14px; }
.pain-p { padding: 22px 26px; }
.pain-p small { color: #b4534b; }
.pain-p p { font-weight: 500; color: var(--ink-2); }
.pain-s { position: relative; padding: 22px 26px 22px; background: var(--navy-900); color: var(--on-dark); padding-inline-end: 60px; }
.pain-s small { color: var(--mint); }
.pain-s p { color: #fff; font-weight: 500; }
.pain-arrow { position: absolute; inset-inline-end: 24px; bottom: 24px; color: var(--mint); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 48px; height: 2px; background: var(--mint-2); }
.step-n { font: 600 14px/1 var(--font-head); color: var(--teal-ink); }
.steps h3 { font-size: 21px; font-weight: 600; margin-top: 12px; }
.steps p { color: var(--muted); margin-top: 8px; }
.section-tint .steps li { border-top-color: #d8e0ea; }

/* featured work */
.work-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.work-copy > p { color: var(--on-dark-muted); margin-top: 16px; font-size: 18px; }
.work-copy .btn { margin-top: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); }
.tags-light li { border-color: var(--line); color: var(--ink-2); background: #fff; }
.work-shot { display: block; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg); background: #e8dcc8; transform: perspective(1400px) rotateY(-6deg); transition: transform .4s ease; }
[dir="rtl"] .work-shot { transform: perspective(1400px) rotateY(6deg); }
.work-shot:hover { transform: none !important; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.why-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--mint-soft); color: var(--teal-ink); }
.why-ico .ico { width: 23px; height: 23px; }
.why h3 { font-size: 19px; font-weight: 600; margin-top: 18px; }
.why p { color: var(--muted); margin-top: 8px; }

/* faq */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; padding: 22px 0; font: 600 18px/1.4 var(--font-head); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { width: 22px; height: 22px; color: var(--teal-ink); transition: transform .2s; }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 720px; }

/* cta band */
.cta-band { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 100% 0, rgba(62, 240, 201, .22), transparent 60%), radial-gradient(40% 100% at 0 100%, rgba(37, 99, 235, .28), transparent 60%); }
[dir="rtl"] .cta-band::before { transform: scaleX(-1); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: clamp(56px, 8vw, 88px); }
.cta-inner h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.cta-inner p { color: var(--on-dark-muted); margin-top: 12px; max-width: 560px; font-size: 18px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: none; }
.cta-mail { font-size: 15px !important; margin: 0 !important; }
.cta-mail a { color: var(--mint); }

/* page heroes */
.page-hero { background: var(--navy-950); color: var(--on-dark); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% 0, rgba(37, 99, 235, .3), transparent 70%), radial-gradient(40% 60% at 0 100%, rgba(62, 240, 201, .12), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: #fff; max-width: 880px; }
.page-hero-sm { padding-block: clamp(48px, 6vw, 72px); }
.svc-hero { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.for-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; }
.for-card h2 { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.for-card .checks li { color: var(--on-dark); }
.for-card .checks .ico { background: rgba(62, 240, 201, .15); color: var(--mint); }

/* features / types */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: #fff; padding: 30px; }
.feat-n { font: 600 13px/1 var(--font-head); color: var(--teal-ink); }
.feat h3 { font-size: 19px; font-weight: 600; margin-top: 14px; }
.feat p { color: var(--muted); margin-top: 8px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; border-top: 4px solid var(--mint-2); }
.type h3 { font-size: 21px; font-weight: 600; }
.type p { color: var(--muted); margin-top: 10px; }
.other-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.other { display: flex; align-items: center; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.other:hover { box-shadow: var(--shadow); border-color: #cfd8e3; }
.other b { display: block; font: 600 18px/1.3 var(--font-head); }
.other small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.other > .ico { margin-inline-start: auto; color: var(--teal-ink); }

/* case study */
.case-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.case-head .sec-lead { max-width: 640px; }
.case-shot { margin: 40px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(13, 21, 38, .14); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 56px; }
.case-body h3 { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.case-body h3:not(:first-child) { margin-top: 36px; }
.case-body p { color: var(--ink-2); }

/* contact */
.section-contact { padding-top: clamp(40px, 6vw, 64px); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-tint);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .15s, background .15s, box-shadow .15s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--mint-2); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d14b42; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg-tint); font-size: 15px; cursor: pointer; transition: .15s; }
.chip:hover span { border-color: #b9c4d2; }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--mint-2); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-foot .btn[disabled] { opacity: .7; cursor: wait; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: var(--mint-soft); color: #0a5e51; }
.form-status.err { background: #fdecea; color: #9b2c24; }
.contact-side { display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--bg-tint); }
.side-card h2 { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.side-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--teal-ink); text-decoration: none; word-break: break-all; }
.side-mail:hover { text-decoration: underline; }
.next { counter-reset: n; display: grid; gap: 14px; }
.next li { counter-increment: n; display: flex; gap: 14px; color: var(--ink-2); }
.next li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: var(--mint); font: 600 13px/1 var(--font-head); margin-top: 1px; }

/* footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .06); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand p { margin-top: 18px; max-width: 340px; }
.footer-h { font: 600 14px/1 var(--font-body); color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
:lang(ar) .footer-h { letter-spacing: 0; font-size: 16px; }
.site-footer ul { display: grid; gap: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; }
.footer-mail .ico { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); padding-block: 22px; font-size: 14px; }

/* 404 */
.nf { min-height: 60vh; display: flex; align-items: center; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .svc-hero, .work-feature { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .work-shot, [dir="rtl"] .work-shot { transform: none; }
}
@media (max-width: 900px) {
  .svc-grid, .types, .why-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .case-body { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .case-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .svc-grid, .types, .why-grid, .feat-grid, .pains, .other-svc, .steps, .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-tag { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .mock-kpis small { font-size: 10px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .float-chat { inset-inline-start: 8px; max-width: 250px; }
  .float-task { display: none; }
  .svc-card, .feat, .type { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
