/* ============================================================
   المسار الإستراتيجي للأعمال — نظام تصميم الموقع (Design System)
   يُحمّل تلقائياً عبر functions.php. لا تعدّله يدوياً إلا عند تغيير الهوية.
   ============================================================ */


/* ============================================================
   المسار الإستراتيجي للأعمال — Design Kit (AR / RTL)
   Brand: black #000 / white #FFF  |  Spectrum: #F4B342 → #360185 → #DE1A58
   Type: Helvetica Neue LT Arabic (Bold 700 / Light 300)
   Geometry: 0 radius, hard edges, 45° bevels (from the logo mark)
   ============================================================ */

:root{
  /* Primary — from brand guide 03 */
  --black:#000000;
  --white:#FFFFFF;

  /* Greyscale ramp (primary black→white gradient, stepped) */
  --grey-900:#0A0A0A;
  --grey-800:#141414;
  --grey-700:#2B2B2B;
  --grey-600:#4D4D4D;
  --grey-500:#767676;
  --grey-400:#A3A3A3;
  --grey-300:#D4D4D4;
  --grey-200:#E5E5E5;
  --grey-100:#F2F2F2;
  --grey-050:#FAFAFA;

  /* Secondary — exact values from brand guide 03 */
  --amber:#F4B342;
  --violet:#360185;
  --crimson:#DE1A58;
  --spectrum: linear-gradient(90deg, var(--amber) 0%, var(--violet) 50%, var(--crimson) 100%);
  --spectrum-v: linear-gradient(180deg, var(--amber) 0%, var(--violet) 50%, var(--crimson) 100%);

  /* Type — official brand font first, graceful fallbacks after */
  --font: "Helvetica Neue LT Arabic", "HelveticaNeueLTArabic", "Helvetica Neue LT Arabic 55 Roman",
          "IBM Plex Sans Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --w-light:300;
  --w-bold:700;

  --container:1240px;
}

*{box-sizing:border-box;margin:0;padding:0;}

html{-webkit-text-size-adjust:100%;}

body{
  font-family:var(--font);
  font-weight:var(--w-light);
  background:var(--white);
  color:var(--black);
  font-size:17px;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}

.container{max-width:var(--container);margin:0 auto;padding:0 40px;}

/* ---------- Type scale ---------- */
h1,h2,h3,h4{font-weight:var(--w-bold);line-height:1.25;letter-spacing:-0.01em;}
h1{font-size:60px;line-height:1.14;letter-spacing:-0.025em;}
h2{font-size:42px;letter-spacing:-0.02em;}
h3{font-size:22px;}
h4{font-size:18px;}
.lead{font-size:20px;line-height:1.8;color:var(--grey-600);font-weight:var(--w-light);}
.eyebrow{
  font-size:13px;font-weight:var(--w-bold);letter-spacing:0.18em;
  text-transform:uppercase;color:var(--grey-500);
  display:flex;align-items:center;gap:12px;
}
.eyebrow::before{content:"";width:28px;height:3px;background:var(--spectrum);flex:none;}

/* ---------- Spectrum utilities (the brand signature) ---------- */
.rule-spectrum{height:4px;background:var(--spectrum);border:0;}
/* Keep the phrase on one line: background-clip:text paints per line-box,
   so a wrapped span would restart the spectrum on every line. */
.txt-spectrum{
  display:inline-block;white-space:nowrap;
  background:var(--spectrum);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}

/* ---------- Logo (traced from brand guide 02 — exact 45° bevels) ---------- */
.logo{display:flex;align-items:center;gap:12px;}
.logo-mark{flex:none;}
.logo-text{display:flex;flex-direction:column;line-height:1;gap:3px;}
.logo-text b{font-weight:var(--w-bold);font-size:19px;letter-spacing:-0.01em;}
/* Direct child only: `.logo-text span` also matched the ® nested inside <b>, and
   being more specific than `.logo-r` it forced it to 15px instead of 9px. */
.logo-text > span{font-weight:var(--w-light);font-size:15px;color:var(--grey-600);}
.logo-r{font-size:9px;vertical-align:super;font-weight:var(--w-light);}

/* ---------- Buttons — hard edges, no radius ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:17px 34px;font-family:var(--font);font-weight:var(--w-bold);font-size:16px;
  border:2px solid var(--black);background:var(--black);color:var(--white);
  border-radius:0;cursor:pointer;line-height:1;transition:background .18s,color .18s,border-color .18s;
}
.btn:hover{background:var(--white);color:var(--black);}
.btn--ghost{background:transparent;color:var(--black);}
.btn--ghost:hover{background:var(--black);color:var(--white);}
.btn--on-dark{background:var(--white);color:var(--black);border-color:var(--white);}
.btn--on-dark:hover{background:transparent;color:var(--white);}
.btn--ghost-on-dark{background:transparent;color:var(--white);border-color:var(--white);}
.btn--ghost-on-dark:hover{background:var(--white);color:var(--black);}

/* ---------- Header ---------- */
.site-header{border-bottom:1px solid var(--grey-200);background:var(--white);}

/* Overlay header — HOMEPAGE ONLY, scoped to <body class="home">.
   The inner pages keep the plain solid header above; their split heroes have no
   background of their own for a transparent bar to sit on. */
.home .site-header{
  position:sticky;top:0;z-index:40;
  background:transparent;
  border-bottom:1px solid transparent;
  box-shadow:0 2px 14px rgba(0,0,0,0);
  transition:background .25s,border-color .25s,box-shadow .25s;
}
/* The bar's height lives on .container (the kit sets it to 88px), so that's what
   shrinks on scroll. The logo steps down with it so the bar doesn't feel cramped. */
.home .site-header .container{transition:height .25s;}
.home .site-header .logo-mark{transition:width .25s,height .25s;}
.home .site-header .logo-text b,
.home .site-header .logo-text > span{transition:font-size .25s;}
/* "scrolled" state — the class is toggled by the small script at the end of the
   page. At load (scroll 0) it is absent, so the tall transparent state is what a
   Figma import captures. */
.home.is-solid .site-header{
  background:var(--white);
  border-bottom-color:var(--grey-200);
  box-shadow:0 2px 14px rgba(0,0,0,.07);
}
.home.is-solid .site-header .container{height:75px;}
.home.is-solid .site-header .logo-mark{width:40px;height:40px;}
.home.is-solid .site-header .logo-text b{font-size:17px;}
.home.is-solid .site-header .logo-text > span{font-size:13.5px;}
/* Pull the hero up under the sticky header so its pattern + glow run behind the
   nav, then push the content back down by the same amount. */
.home .hero--center{margin-top:-88px;}
.home .hero--center .container{padding-top:158px;}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:88px;gap:32px;position:relative;}
/* align-self:stretch so .nav fills the header's full height — without it .nav is
   only as tall as its text, and .has-dd can't stretch past its own parent. */
.nav{display:flex;align-items:center;gap:34px;align-self:stretch;}
/* Direct children only — an unscoped `.nav a` also grabs every link inside the
   services dropdown and overwrites its styling. */
.nav > a,.nav-trigger{font-size:16px;font-weight:var(--w-light);padding:6px 0;border-bottom:2px solid transparent;transition:border-color .18s;}
.nav > a:hover,.has-dd:hover .nav-trigger{border-bottom-color:var(--black);}
.nav > a.is-active,.nav-trigger.is-active{font-weight:var(--w-bold);border-bottom-color:var(--black);}
.nav-trigger{display:inline-flex;align-items:center;gap:6px;cursor:pointer;}
.nav-trigger svg{transition:transform .2s;}
.has-dd:hover .nav-trigger svg{transform:rotate(180deg);}

/* ---------- Mobile menu ----------
   Built on native <details>/<summary>: opens and closes with no JavaScript and is
   keyboard-accessible for free. Desktop hides it; ≤1100px hides .nav instead. */
.m-nav{display:none;}
.m-nav > summary{
  list-style:none;cursor:pointer;
  width:38px;height:38px;border:2px solid var(--black);
  display:flex;align-items:center;justify-content:center;
}
.m-nav > summary::-webkit-details-marker{display:none;}
.m-nav > summary .ico-x{display:none;}
.m-nav[open] > summary .ico-burger{display:none;}
.m-nav[open] > summary .ico-x{display:block;}
.m-panel{
  position:fixed;inset-block-start:88px;inset-block-end:0;inset-inline:0;
  background:var(--white);overflow-y:auto;
  /* above .wa-float (z-50) — otherwise the WhatsApp button floats over the open
     menu and sits on top of the links near the bottom */
  z-index:60;
  border-top:1px solid var(--grey-200);
}
.m-links{display:flex;flex-direction:column;}
.m-links > a{
  display:flex;align-items:center;justify-content:space-between;
  padding:17px 22px;font-size:16.5px;font-weight:var(--w-bold);
  border-bottom:1px solid var(--grey-200);
}
.m-links > a.is-active{background:var(--black);color:var(--white);}
/* Services collapse — a nested <details>, still no JavaScript */
.m-svc > summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  padding:17px 22px;font-size:16.5px;font-weight:var(--w-bold);
  border-bottom:1px solid var(--grey-200);background:var(--grey-050);
}
.m-svc > summary::-webkit-details-marker{display:none;}
.m-svc > summary svg{transition:transform .2s;}
.m-svc[open] > summary{background:var(--grey-100);}
.m-svc[open] > summary svg{transform:rotate(180deg);}
.m-subs{display:flex;flex-direction:column;background:var(--grey-050);}
/* Required: the browser hides a closed <details>'s content with display:none, but
   the `display:flex` above overrides that UA rule and the list stays open. */
.m-svc:not([open]) > .m-subs{display:none;}
.m-subs a{
  display:flex;align-items:center;padding:13px 22px;
  font-size:14px;font-weight:var(--w-light);color:var(--grey-600);
  border-bottom:1px solid var(--grey-200);
}
.m-subs a::before{content:"";width:8px;height:2px;background:var(--spectrum);margin-inline-end:10px;flex:none;}
/* language lives inside the panel on mobile, as its own row */
.m-lang-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 22px;border-bottom:1px solid var(--grey-200);background:var(--grey-050);
}
.m-lang-lbl{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:var(--w-bold);color:var(--grey-600);}
.m-seg{display:flex;border:2px solid var(--black);}
.m-seg b{font-size:12.5px;font-weight:var(--w-bold);padding:7px 12px;cursor:pointer;}
.m-seg b.on{background:var(--black);color:var(--white);}
.m-foot{padding:22px;}
.m-foot .btn{width:100%;}

/* ---------- Services dropdown ----------
   Anchored to .site-header .container (not the nav item) so a 900px panel stays
   centred in the header instead of spilling off the edge. */
/* align-self:stretch is what makes the menu followable — otherwise .has-dd is only
   as tall as the word "خدماتنا" (44px) while the panel starts at the header's
   bottom (88px), so the pointer drops out of :hover in the 22px gap between them
   and the panel vanishes before you reach it. */
.has-dd{position:static;display:flex;align-items:center;align-self:stretch;}
.dd{
  position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(6px);
  width:900px;display:grid;grid-template-columns:1.6fr 0.9fr;
  background:var(--white);border:1px solid var(--grey-200);
  box-shadow:0 18px 40px rgba(0,0,0,.10);
  opacity:0;visibility:hidden;pointer-events:none;
  /* delay on the way OUT only: a short grace period so clipping a corner of the
     panel doesn't snap it shut */
  transition:opacity .18s .15s,visibility .18s .15s,transform .18s .15s;
}
/* invisible bridge across the 6px visual gap, so the pointer never leaves :hover */
.dd::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px;}
.has-dd:hover .dd,.has-dd:focus-within .dd{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);
  transition-delay:0s;
}
.dd-items{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--grey-200);}
.dd-items a{
  display:flex;align-items:center;gap:12px;padding:14px 18px;
  background:var(--white);font-size:14.5px;font-weight:var(--w-bold);
  transition:background .15s;
}
.dd-items a:hover{background:var(--grey-100);}
.dd-items svg{flex:none;stroke:var(--black);}
.dd-promo{background:var(--black);color:var(--white);padding:26px 22px;display:flex;flex-direction:column;gap:12px;justify-content:center;}
.dd-promo .rule-spectrum{width:44px;}
.dd-promo h4{font-size:16px;}
.dd-promo p{font-size:13px;color:var(--grey-400);line-height:1.7;}
.dd-promo .btn{padding:12px 16px;font-size:14px;}
.header-cta{display:flex;align-items:center;gap:16px;}
.header-cta .btn{padding:13px 24px;font-size:15px;}

/* ---------- Language switch ----------
   PLACEHOLDER: a real <button>, not a dead <a href="#"> — there is no second
   language yet, so it must not imply a destination. Swap it for
   <a href="../en/…"> once the EN build exists.
   No flag by design: a flag is a country, not a language (Arabic spans 22). */
.lang-switch{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--font);font-weight:var(--w-bold);font-size:14.5px;
  padding:8px 12px;border:1px solid var(--grey-300);border-radius:0;
  background:transparent;color:var(--black);cursor:pointer;
  transition:border-color .18s;
}
.lang-switch:hover{border-color:var(--black);}
.lang-switch svg{flex:none;}

/* ---------- Hero ----------
   Base = split (copy + image), used by the inner pages.
   `.hero--center` = centered variant, used by the homepage. */
.hero{border-bottom:1px solid var(--grey-200);overflow:hidden;position:relative;}
.hero .container{
  display:grid;grid-template-columns:1.05fr 0.95fr;gap:64px;align-items:center;
  padding-top:96px;padding-bottom:96px;
}
.hero h1{margin:24px 0 24px;}
.hero .lead{max-width:560px;}
.hero-actions{display:flex;gap:16px;margin-top:40px;flex-wrap:wrap;}
.hero-visual{position:relative;}
.hero-visual img{width:100%;height:520px;object-fit:cover;filter:grayscale(100%) contrast(1.08);}
.hero-visual .rule-spectrum{position:absolute;inset-inline-start:0;bottom:0;width:100%;height:8px;}

/* Centered variant */
.hero--center .container{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  /* the base .hero grid sets gap:64px — as a flex column that would stack on top of
     every child margin, so spacing here is margin-driven only */
  gap:0;
  padding-top:72px;padding-bottom:64px;
}
.hero--center h1{margin:22px 0 18px;max-width:960px;}
.hero--center .lead{max-width:660px;}
.hero--center .hero-actions{margin-top:32px;justify-content:center;}
.hero-badge{
  display:inline-flex;align-items:center;gap:10px;
  border:2px solid var(--black);padding:9px 18px;
  font-size:14px;font-weight:var(--w-bold);letter-spacing:.02em;
}
/* wide enough that the 3-stop spectrum actually reads; a square this small renders as one flat stop */
.hero-badge .dot{width:22px;height:6px;background:var(--spectrum);flex:none;}

/* ---------- Hero background (homepage only) ----------
   Two layers under the content: the mark tessellation for texture, then a soft
   spectrum glow for warmth. The tessellation's radial fade is baked into the SVG
   as an SVG <mask>, not a CSS mask-image, so it survives the Figma import. */
.hero--center .hero-bg{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:.05;pointer-events:none;z-index:0;
}
/* A soft WHITE veil — no colour. It knocks the tessellation back behind the
   headline only, so the type stays clean while the pattern keeps full strength
   around it. Ends on rgba(255,255,255,0), never `transparent`: that keyword is
   rgba(0,0,0,0), so the gradient would interpolate toward black and paint a
   visible grey ring at its edge. */
.hero--center::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(38% 34% at 50% 40%,
    rgba(255,255,255,.92) 0%,
    rgba(255,255,255,.80) 40%,
    rgba(255,255,255,.45) 70%,
    rgba(255,255,255,0) 100%);
}
.hero--center .container{position:relative;z-index:2;}

/* ---------- Partners — inside the hero, no separate band (brand guide p.29) ---------- */
.hero-partners{
  width:100%;margin-top:64px;
}
.hero-partners-title{
  font-size:13px;font-weight:var(--w-bold);letter-spacing:.14em;
  color:var(--grey-500);margin-bottom:28px;
}
/* --- Partners row ---
   All 9 logos, one row, EVEN optical gaps. The gap is a real flex gap and each logo
   takes its natural width — equal-width slots would centre each logo in its cell and
   make the gaps look uneven, since the marks differ a lot in width (salla is narrow,
   Meta/Hostinger are wide). Height is what's shared, not width. */
/* Budget at 1440: the 9 marks total ~34.6× their shared height in width, so
   26px tall ≈ 900px + 8×28px gaps ≈ 1124px — inside the 1160px container with
   room to spare. Raising either number wraps Hostinger onto a second line. */
.logo-row{
  display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:20px 28px;width:100%;
}
.logo-row img{
  height:26px;width:auto;object-fit:contain;
  opacity:.55;filter:grayscale(100%);transition:opacity .18s;
}
.logo-row img:hover{opacity:1;}

/* ---------- Trust strip — the client's real numbers ---------- */
.trust{background:var(--black);color:var(--white);}
/* Headline + stats travel together as one centred block: headline at the
   inline-start (right in RTL), stats beside it, leftover space split evenly on
   both sides. `space-between` would fling them to opposite edges (~400px of dead
   air between them); `flex-start` would pile all that dead space on the left. */
.trust .container{
  display:flex;align-items:center;justify-content:center;gap:88px;
  padding-top:44px;padding-bottom:44px;
}
.trust-head{font-size:22px;line-height:1.35;flex:none;}
/* Fixed gap, NOT space-between: four narrow stats spread across the full container
   leaves ~230px of dead air between each. */
.trust-stats{display:flex;align-items:flex-start;gap:72px;}
.trust-stat{display:flex;flex-direction:column;align-items:center;gap:10px;}
.trust-stat b{font-size:40px;font-weight:var(--w-bold);line-height:1;}
.trust-stat span{font-size:15px;font-weight:var(--w-bold);position:relative;padding-inline-start:24px;}
/* A spectrum tick leads EVERY label, the first one included: with this much room
   between the stats it reads as a bullet attached to its label, not as a divider
   sitting between two of them. */
.trust-stat span::before{
  content:"";position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);
  width:12px;height:3px;background:var(--spectrum);
}

/* ---------- Section rhythm ---------- */
.section{padding:112px 0;}
.section--tint{background:var(--grey-050);border-block:1px solid var(--grey-200);}
.section--dark{background:var(--black);color:var(--white);}
.section--dark .lead{color:var(--grey-400);}
.section--dark .eyebrow{color:var(--grey-500);}
.section-head{max-width:760px;margin-bottom:64px;}
.section-head h2{margin:20px 0 20px;}

/* ---------- About preview (split) ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;}
.split img{width:100%;height:480px;object-fit:cover;filter:grayscale(100%) contrast(1.08);}
.split-media{position:relative;}
.split-media .rule-spectrum{position:absolute;inset-inline-start:0;bottom:0;width:100%;height:8px;}
/* Transparent cut-out rather than a photo: `contain` so the subject isn't cropped,
   on white so the transparency reads cleanly. No spectrum rule under it — a floating
   cut-out has no frame edge for the rule to sit on. */
.split-media--cutout{background:var(--white);position:relative;overflow:visible;}
/* full colour: override the kit's default grayscale on .split images for this one
   cut-out (the client asked for its original colours) */
.split-media--cutout > img{position:relative;z-index:1;object-fit:contain;filter:none;transform:scale(1.10);transform-origin:center;}
/* Silhouette glow: a blurred copy of the SAME transparent PNG behind the sharp one.
   Because it's the cut-out (not a rectangle), the blur takes the person's shape, so
   the glow hugs him instead of sitting in a box. */
.split-media--cutout > .glow{position:absolute;inset:0;z-index:0;pointer-events:none;
  filter:blur(34px) saturate(1.4) opacity(.5);transform:scale(1.06) translateY(6px);}
.split-media--cutout > .glow img{width:100%;height:100%;object-fit:contain;}
.split h2{margin:20px 0 24px;}
.split .btn{margin-top:36px;}

/* ---------- Services grid ---------- */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid var(--grey-200);border-inline-start:1px solid var(--grey-200);}
.svc-card{
  border-inline-end:1px solid var(--grey-200);border-bottom:1px solid var(--grey-200);
  padding:44px 36px;background:var(--white);position:relative;
  transition:background .18s,color .18s;
}
.svc-card::after{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:4px;background:var(--spectrum);opacity:0;transition:opacity .18s;}
.svc-card:hover{background:var(--black);color:var(--white);}
.svc-card:hover::after{opacity:1;}
.svc-card:hover .svc-num,.svc-card:hover p{color:var(--grey-400);}
.svc-card:hover svg{stroke:var(--white);}
.svc-num{font-size:13px;font-weight:var(--w-bold);letter-spacing:.14em;color:var(--grey-400);}
.svc-card svg{margin:22px 0 20px;stroke:var(--black);transition:stroke .18s;}
.svc-card h3{margin-bottom:12px;font-size:20px;}
.svc-card p{font-size:15px;line-height:1.75;color:var(--grey-600);transition:color .18s;}

/* ---------- Why us ---------- */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--grey-800);border:1px solid var(--grey-800);}
.why-item{background:var(--black);padding:40px 32px;}
.why-item .n{font-size:15px;font-weight:var(--w-bold);background:var(--spectrum);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;}
.why-item h3{margin:16px 0 10px;font-size:19px;}
.why-item p{font-size:15px;color:var(--grey-400);line-height:1.75;}

/* ---------- Process ---------- */
.steps{display:grid;grid-template-columns:repeat(6,1fr);gap:0;border-top:3px solid var(--black);}
.step{padding:32px 22px 0;border-inline-end:1px solid var(--grey-200);position:relative;}
.step:last-child{border-inline-end:0;}
.step::before{content:"";position:absolute;inset-block-start:-3px;inset-inline-start:0;width:100%;height:3px;background:var(--spectrum);transform:scaleX(0);transform-origin:right;transition:transform .25s;}
.step:hover::before{transform:scaleX(1);}
.step .n{
  width:44px;height:44px;border:2px solid var(--black);display:flex;align-items:center;justify-content:center;
  font-weight:var(--w-bold);font-size:16px;margin-bottom:20px;
}
.step h3{font-size:17px;line-height:1.4;}

/* ---------- Sectors ---------- */
.sectors{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--grey-200);border:1px solid var(--grey-200);}
.sector{background:var(--white);padding:34px 26px;display:flex;align-items:center;gap:14px;transition:background .18s,color .18s;}
.sector:hover{background:var(--black);color:var(--white);}
.sector:hover svg{stroke:var(--white);}
.sector svg{flex:none;stroke:var(--black);transition:stroke .18s;}
.sector span{font-size:16px;font-weight:var(--w-bold);}

/* ---------- Clients wall ----------
   7 columns × 4 rows fits the 28 logos exactly, with no dead cells.
   Logos are colourful, so they sit greyscale to stay inside the identity and
   return to full colour on hover. */
.clients-grid{
  display:grid;grid-template-columns:repeat(7,1fr);gap:1px;
  background:var(--grey-200);border:1px solid var(--grey-200);
}
.client{
  background:var(--white);aspect-ratio:1 / 0.66;
  display:flex;align-items:center;justify-content:center;padding:16px;
  transition:background .18s;
}
.client img{
  max-width:100%;max-height:44px;width:auto;height:auto;object-fit:contain;
  filter:grayscale(100%);opacity:.6;transition:filter .25s,opacity .25s;
}
.client:hover img{filter:grayscale(0%);opacity:1;}

/* ---------- Work / portfolio ---------- */
.work-filters{display:flex;gap:0;flex-wrap:wrap;margin-bottom:48px;border:1px solid var(--grey-200);width:fit-content;}
.work-filters a{padding:13px 24px;font-size:15px;border-inline-end:1px solid var(--grey-200);transition:background .18s,color .18s;}
.work-filters a:last-child{border-inline-end:0;}
.work-filters a:hover{background:var(--grey-100);}
.work-filters a.is-active{background:var(--black);color:var(--white);font-weight:var(--w-bold);}
.work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.work-card{border:1px solid var(--grey-200);background:var(--white);}
.work-card img{width:100%;height:260px;object-fit:cover;filter:grayscale(100%);transition:filter .25s;}
.work-card:hover img{filter:grayscale(0%);}
.work-body{padding:28px 26px;}
.work-tag{font-size:12px;font-weight:var(--w-bold);letter-spacing:.12em;color:var(--grey-500);}
.work-body h3{margin:12px 0 10px;font-size:19px;}
.work-body p{font-size:15px;color:var(--grey-600);line-height:1.7;}
.work-link{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-weight:var(--w-bold);font-size:15px;border-bottom:2px solid var(--black);padding-bottom:3px;}

/* ---------- Testimonials ---------- */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.quote{border:1px solid var(--grey-200);padding:40px 34px;background:var(--white);position:relative;}
.quote::before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:4px;background:var(--spectrum);}
.quote-mark{font-size:52px;font-weight:var(--w-bold);line-height:1;color:var(--grey-300);}
.quote p{font-size:16px;line-height:1.85;margin:14px 0 26px;}
.quote-meta{border-top:1px solid var(--grey-200);padding-top:20px;}
.quote-meta b{display:block;font-size:15px;font-weight:var(--w-bold);}
.quote-meta span{font-size:14px;color:var(--grey-500);}
.quote-result{margin-top:14px;font-size:14px;font-weight:var(--w-bold);}

/* ---------- Blog ---------- */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.post{border:1px solid var(--grey-200);background:var(--white);}
.post img{width:100%;height:220px;object-fit:cover;filter:grayscale(100%);transition:filter .25s;}
.post:hover img{filter:grayscale(0%);}
.post-body{padding:28px 26px;}
.post-cat{font-size:12px;font-weight:var(--w-bold);letter-spacing:.12em;color:var(--grey-500);}
.post-body h3{margin:12px 0 12px;font-size:19px;line-height:1.45;}
.post-body p{font-size:15px;color:var(--grey-600);line-height:1.7;}

/* ---------- Final CTA ---------- */
.cta{background:var(--black);color:var(--white);position:relative;overflow:hidden;}
.cta .container{padding-top:104px;padding-bottom:104px;position:relative;}
.cta-inner{display:grid;grid-template-columns:1.2fr 0.8fr;gap:56px;align-items:center;}
.cta h2{font-size:46px;margin-bottom:20px;}
.cta p{color:var(--grey-400);font-size:19px;max-width:520px;}
.cta-actions{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end;}
/* Horizontal band across the top edge of the section, full-bleed.
   `pointer-events:none` is load-bearing: this is an absolutely positioned element,
   so it paints ABOVE its static siblings and would otherwise swallow every click
   on the CTA buttons underneath it. */
.cta-pattern{
  position:absolute;inset-block-start:0;inset-inline:0;
  width:100%;height:50px;          /* exactly 2 rows of the 25px mark tile */
  opacity:.16;pointer-events:none;
}
/* Same band mirrored onto the bottom edge, framing the section.
   Its <rect> reuses the #markPattern defined in the top band's <defs> —
   one definition per page is enough, url(#id) resolves document-wide. */
.cta-pattern--bottom{inset-block-start:auto;inset-block-end:0;transform:rotate(180deg);}

/* ---------- Footer ---------- */
.site-footer{background:var(--grey-900);color:var(--white);}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:56px;padding:80px 0 64px;}
.footer-brand p{font-size:15px;color:var(--grey-400);line-height:1.8;margin-top:22px;max-width:320px;}
.footer-col h4{font-size:15px;font-weight:var(--w-bold);letter-spacing:.1em;margin-bottom:22px;}
.footer-col ul li{margin-bottom:12px;}
.footer-col ul a{font-size:15px;color:var(--grey-400);transition:color .18s;}
.footer-col ul a:hover{color:var(--white);}
.footer-contact li{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--grey-400);margin-bottom:14px;}
.footer-contact svg{flex:none;stroke:var(--grey-500);}
.footer-social{display:flex;gap:10px;margin-top:24px;}
.footer-social a{
  width:40px;height:40px;border:1px solid var(--grey-700);display:flex;align-items:center;justify-content:center;
  transition:background .18s,border-color .18s;
}
.footer-social a:hover{background:var(--white);border-color:var(--white);}
.footer-social a:hover svg{fill:var(--black);}
.footer-social svg{fill:var(--grey-400);}
.footer-bottom{
  border-top:1px solid var(--grey-800);padding:26px 0;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.footer-bottom p,.footer-bottom a{font-size:14px;color:var(--grey-500);}
.footer-legal{display:flex;gap:24px;}
.footer-bottom a:hover{color:var(--white);}

/* ---------- WhatsApp float ---------- */
/* ---------- Scroll-to-top rail ----------
   Fixed on the inline-END edge (left in RTL — WhatsApp sits inline-start). Vertical
   label + a hairline that leads the eye up. Hidden until the page is scrolled a bit,
   via body.is-solid (already toggled by the scroll script) so it needs no extra JS. */
.to-top{
  position:fixed;inset-block-start:50%;inset-inline-end:22px;transform:translateY(-50%);
  z-index:45;display:flex;flex-direction:column;align-items:center;gap:14px;
  color:var(--grey-500);cursor:pointer;background:transparent;border:0;
  /* explicit: <button> does NOT inherit font-family from the page, it defaults to
     the system font — this is why the rail rendered in Arial, not the site face */
  font-family:var(--font);
  opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,color .18s;
}
.to-top.show{opacity:1;visibility:visible;}
.to-top:hover{color:var(--black);}
.to-top span{
  /* In an RTL document vertical-rl reads bottom→up. rotate(180deg) flips it so the
     first letter is at the TOP and it reads top→bottom, which writing-mode alone
     can't achieve here because dir:rtl overrides vertical-lr's direction. */
  writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(180deg);
  font-size:13px;font-weight:var(--w-bold);letter-spacing:.05em;
}
.to-top .line{width:1px;height:64px;background:currentColor;}
@media (max-width:1100px){ .to-top{display:none;} }   /* no room beside the burger UI */

/* ---------- WhatsApp float ----------
   The ONE sanctioned exception to the brand rules, on both colour AND shape.
   WhatsApp is a third-party mark: its green and its circle are what make the
   button instantly recognisable, so it keeps its official palette
   (#25D366 brand green / #128C7E dark green on hover) and its round form.
   This is the only border-radius AND the only box-shadow in the whole kit —
   the rest of the design is hard-edged and flat. It floats over content, so the
   shadow is what lifts it off the page rather than decoration. */
.wa-float{
  position:fixed;inset-block-end:28px;inset-inline-start:28px;z-index:50;
  width:58px;height:58px;background:#25D366;border:2px solid #25D366;
  border-radius:50%;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
  display:flex;align-items:center;justify-content:center;
  transition:background .18s,border-color .18s,box-shadow .18s;
}
.wa-float:hover{
  background:#128C7E;border-color:#128C7E;
  box-shadow:0 6px 20px rgba(0,0,0,.26);
}
.wa-float svg{fill:var(--white);}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  h1{font-size:46px;} h2{font-size:34px;}
  .hero .container,.split{grid-template-columns:1fr;gap:48px;}
  .hero--center .container{display:flex;}
  .logo-row{gap:20px 28px;}
  .logo-row img{height:23px;}
  .svc-grid,.why-grid,.work-grid,.quotes,.posts{grid-template-columns:repeat(2,1fr);}
  .clients-grid{grid-template-columns:repeat(4,1fr);}
  .steps{grid-template-columns:repeat(3,1fr);}
  /* no room for headline-beside-stats: stack them and centre */
  .trust .container{flex-direction:column;align-items:stretch;gap:30px;}
  .trust-head{text-align:center;}
  .trust-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:32px 16px;justify-items:center;}
  .sectors{grid-template-columns:repeat(2,1fr);}
  .cta-inner{grid-template-columns:1fr;}
  .cta-actions{justify-content:flex-start;}
  .footer-top{grid-template-columns:1fr 1fr;gap:40px;}
  /* .nav is replaced by the burger — never hide it without this pairing, or the
     site has no navigation at all below 1100px. */
  .nav{display:none;}
  .m-nav{display:block;}
  .lang-switch{display:none;}          /* it moves into the panel as .m-lang-row */
  /* z-index 60 (above .wa-float's 50) must sit on the HEADER, not the panel: the
     header creates the stacking context, so a higher z-index on the nested panel
     is still trapped beneath it and the WhatsApp button floats over the menu.
     `.home .site-header` is also listed because a media query adds no specificity —
     a bare `.site-header` here would lose to it and silently keep z-index:40. */
  .site-header,.home .site-header{position:sticky;top:0;z-index:60;background:var(--white);}
  /* No shrink on mobile: the panel is pinned at a fixed 88px, so a header that
     shrinks to 75px on scroll would open a 13px gap showing the page through it.
     The shrink buys nothing on a phone anyway. */
  .home.is-solid .site-header .container{height:88px;}
}
@media (max-width:680px){
  h1{font-size:34px;} h2{font-size:27px;}
  .container{padding:0 22px;}
  .section{padding:72px 0;}
  .svc-grid,.why-grid,.work-grid,.quotes,.posts,.steps,.sectors,.footer-top{grid-template-columns:1fr;}
  .clients-grid{grid-template-columns:repeat(2,1fr);}   /* logos stay legible; 1-up would be absurdly wide */
  .hero-visual img{height:320px;}
  .home .hero--center .container{padding-top:140px;}
  /* The header can't fit logo + CTA + burger at this width, so the CTA moves into
     the panel too — leaving logo + burger, which is all a phone header needs.
     Direct child only: the mobile panel lives inside .header-cta, so an unscoped
     `.header-cta .btn` also hides the panel's own quote button. */
  .header-cta > .btn{display:none;}
  .site-header .container{gap:12px;}
  .hero-partners{margin-top:44px;}
  .logo-row{gap:18px 24px;}
  .logo-row img{height:20px;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}


/* ═══════════════════════════════════════════════════════════
   طبقة الجسر: ربط هوية المسار بعناصر Elementor الأصلية
   تُحمّل في الواجهة وداخل محرّر Elementor معاً.
   ملاحظة: !important ضروري لأن Elementor يولّد CSS لكل عنصر
   بأولوية أعلى (يرث ألوان الحزمة العامة).
   ═══════════════════════════════════════════════════════════ */

/* ---------- الأزرار ---------- */
.el-btn .elementor-button{
  background-color:#000000 !important;color:#FFFFFF !important;
  border:1px solid #000000 !important;border-radius:0 !important;
  padding:17px 34px !important;font-weight:700 !important;font-size:16px !important;
  fill:#FFFFFF !important;transition:background-color .18s,color .18s;
}
.el-btn .elementor-button:hover{background-color:#FFFFFF !important;color:#000000 !important;}
.el-btn--ghost .elementor-button{background-color:transparent !important;color:#000000 !important;}
.el-btn--ghost .elementor-button:hover{background-color:#000000 !important;color:#FFFFFF !important;}
.el-btn--on-dark .elementor-button{background-color:#FFFFFF !important;color:#000000 !important;border-color:#FFFFFF !important;}
.el-btn--on-dark .elementor-button:hover{background-color:transparent !important;color:#FFFFFF !important;}
.el-btn--ghost-on-dark .elementor-button{background-color:transparent !important;color:#FFFFFF !important;border-color:#FFFFFF !important;}
.el-btn--ghost-on-dark .elementor-button:hover{background-color:#FFFFFF !important;color:#000000 !important;}

/* ---------- العناوين ---------- */
.el-h1 .elementor-heading-title{font-size:60px;line-height:1.14;letter-spacing:-0.025em;font-weight:700;}
.el-h2 .elementor-heading-title{font-size:42px;line-height:1.25;letter-spacing:-0.02em;font-weight:700;}
.el-h3 .elementor-heading-title{font-size:22px;line-height:1.25;font-weight:700;}
@media(max-width:900px){
  .el-h1 .elementor-heading-title{font-size:38px;}
  .el-h2 .elementor-heading-title{font-size:30px;}
}

/* ---------- شارة العنوان ---------- */
.el-eyebrow .elementor-heading-title{
  font-size:13px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;color:#767676;
  display:flex;align-items:center;gap:12px;
}
.el-eyebrow .elementor-heading-title::before{
  content:"";width:34px;height:2px;flex:none;
  background:linear-gradient(90deg,#F4B342 0%,#360185 50%,#DE1A58 100%);
}
.el-eyebrow.el-center .elementor-heading-title{justify-content:center;}

/* ---------- النصوص ---------- */
.el-lead,.el-lead .elementor-widget-container,.el-lead p{
  font-size:20px;line-height:1.8;color:#4D4D4D;font-weight:300;
}
.el-lead p{margin:0 0 14px;} .el-lead p:last-child{margin-bottom:0;}

/* ---------- على خلفية داكنة ---------- */
.on-dark .elementor-heading-title{color:#FFFFFF !important;}
.on-dark,.on-dark .elementor-widget-container,.on-dark p{color:#D4D4D4 !important;font-weight:400;}

/* ---------- الصور والفواصل ---------- */
.el-img img{border-radius:0;display:block;width:100%;}
.el-img--grey img{filter:grayscale(100%);transition:filter .25s;}
.el-img--grey:hover img{filter:grayscale(0%);}
.el-rule .elementor-divider-separator{
  border:0 !important;height:4px !important;
  background:linear-gradient(90deg,#F4B342 0%,#360185 50%,#DE1A58 100%);
}
.el-rule .elementor-divider{padding:0;}

/* ---------- أقسام الهوية على الحاويات ---------- */
.e-con.sec-tint{background-color:#FAFAFA;}
.e-con.sec-dark{background-color:#000000;}

/* ---------- إخفاء عنوان الصفحة الذي يضيفه القالب ---------- */
.page-header{display:none;}

/* ---------- الرئيسية: الهيدر الشفاف يعلو الهيرو ---------- */
.home .almasar-hero{margin-top:-89px !important;}
.home .almasar-hero > .e-con-inner{padding-top:209px !important;}
@media (max-width:1100px){ .home .almasar-hero > .e-con-inner{padding-top:185px !important;} }
@media (max-width:680px){ .home .almasar-hero > .e-con-inner{padding-top:165px !important;} }
