/*
Theme Name: StapX AI
Theme URI: https://stapx.com/
Author: StapX
Author URI: https://stapx.com/
Description: Premium AI consultancy, AI agent development, business automation and digital development agency theme. Demo B Field of Light 3D foundation, self-hosted Thmanyah font, official StapX logo, full RTL/LTR, Elementor + Polylang + The SEO Framework compatible.
Version: 1.2.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary — StapX
Text Domain: stapx-ai
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ============ StapX tokens — official brand (verified against stapx.com 2026-11-29) ============ */
@font-face{font-family:'StapxThmanyah';src:url('assets/fonts/StapxThmanyah-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'StapxThmanyah';src:url('assets/fonts/StapxThmanyah-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
:root{
  --lilac:#fcfaff; --ink:#221536; --purple:#8b20ed; --magenta:#d900ed; --pink:#e0218a;
  --blue:#5b7bfb; --navy:#003060; --muted:#51425f; --line:rgba(34,21,54,.14);
  --line-light:rgba(255,255,255,.16); --lilac-soft:#f5f0fa; --ink-2:#0b0714;
  --radius:22px; --header-h:76px;
  /* Motion tokens — UI Moments spring/ease (MIT, see credits note at the end
     of this file). The overshoot spring is used for press + selection
     feedback; the expo ease for reveals and slides. */
  --spring:cubic-bezier(.3,1.45,.5,1); --ease:cubic-bezier(.16,1,.3,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
body{background:var(--ink-2);color:#f5f0ff;font-family:'StapxThmanyah',Arial,sans-serif;line-height:1.7;overflow-x:hidden;-webkit-font-smoothing:antialiased}
::selection{background:var(--purple);color:#fff}
a{color:inherit}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid var(--magenta);outline-offset:3px;border-radius:6px}
.skip-link{position:fixed;top:-60px;inset-inline-start:16px;z-index:200;background:var(--purple);color:#fff;padding:10px 18px;border-radius:999px;text-decoration:none;transition:top .2s}
.skip-link:focus{top:12px}
/* ---- fixed WebGL field (Demo B foundation, refined) ---- */
#gl{position:fixed;inset:0;z-index:0;pointer-events:none}
#gl canvas{display:block}
#gl::after{content:"";position:absolute;inset:0;background:radial-gradient(90% 70% at 50% 30%,transparent 40%,rgba(11,7,20,.55) 100%)}
/* ---- header: lilac glass so the real dark-navy logo stays legible ---- */
header{position:fixed;inset-inline:0;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--header-h);padding:0 5%;background:var(--lilac);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.brand img{height:42px;width:auto}
/* Brand lockup (Khaled 2026-11-30 LOGO order): unchanged X icon + Thmanyah
   wordmark text ("ستابكس" AR / "StapX" EN). The icon is the square
   stapx-icon.png; width:auto keeps it 42×42. */
.brand-word{font-size:27px;font-weight:800;color:var(--ink);line-height:1;letter-spacing:-.01em}
header nav{display:flex;gap:26px;font-size:15px}
header nav ul{list-style:none;margin:0;padding:0;display:flex;gap:26px}
header nav ul li{list-style:none}
header nav a{color:var(--ink);text-decoration:none;font-weight:700;opacity:.85}
header nav a:hover{opacity:1;color:var(--purple)}
.head-actions{display:flex;align-items:center;gap:10px;flex:none}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--purple);color:#fff;border:1px solid var(--purple);border-radius:999px;padding:11px 22px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;transition:transform .25s,box-shadow .25s,background .25s}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(139,32,237,.35)}
.btn.ghost{background:transparent;color:var(--ink);border-color:rgba(34,21,54,.35)}
.btn.ghost:hover{border-color:var(--purple);color:var(--purple);box-shadow:none}
.btn.light{background:#fff;color:var(--ink);border-color:#fff}
.btn.wa{background:#25d366;border-color:#25d366;color:#06281a}
.lang-btn{background:transparent;border:1px solid rgba(34,21,54,.35);color:var(--ink);border-radius:999px;padding:9px 16px;font:inherit;font-weight:700;cursor:pointer;list-style:none;margin:0;display:flex;gap:8px}
/* pll_the_languages() echoes bare <li> items — the <ul class="lang-btn">
   wrapper above is what makes them valid list items (Lighthouse a11y). */
.lang-btn li{list-style:none}
.lang-btn a{color:inherit;text-decoration:none}
.menu-btn{display:none;background:transparent;border:1px solid rgba(34,21,54,.4);color:var(--ink);border-radius:999px;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}
#mobile-menu{position:fixed;top:var(--header-h);inset-inline:0;z-index:49;background:var(--lilac);border-bottom:1px solid var(--line);padding:14px 5% 22px;display:flex;flex-direction:column;gap:2px}
#mobile-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
#mobile-menu ul li{list-style:none}
#mobile-menu[hidden]{display:none}
#mobile-menu a{padding:13px 4px;color:var(--ink);text-decoration:none;font-weight:700;border-bottom:1px solid var(--line)}
#mobile-menu a.cta{border-bottom:0;margin-top:10px;text-align:center}
/* ---- layout ---- */
main{position:relative;z-index:2}
section{padding:110px 5%;scroll-margin-top:90px;position:relative}
.wrap{max-width:1240px;margin-inline:auto}
.eyebrow{color:var(--purple);font-weight:700;letter-spacing:.06em;font-size:14px;margin-bottom:14px}
.dark .eyebrow{color:#e58cff}
h1,h2{font-weight:700;line-height:1.12;letter-spacing:-.01em}
h2{font-size:clamp(34px,4.6vw,60px);max-width:18ch}
.lead{color:var(--muted);max-width:62ch;margin-top:16px;font-size:clamp(16px,1.4vw,19px)}
.dark .lead{color:#cfc4e8}
section.light{background:var(--lilac);color:var(--ink)}
section.dark{background:transparent;color:#f5f0ff}
/* ---- hero ---- */
.hero{min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;padding:calc(var(--header-h) + 40px) 5% 9vh}
.hero .kicker{display:flex;align-items:center;gap:10px;color:#e58cff;font-weight:700;margin-bottom:18px}
.hero h1{font-size:clamp(52px,8.6vw,124px);line-height:1.02;letter-spacing:-.015em;max-width:12ch}
.hero h1 .grad{background:linear-gradient(92deg,#e0218a,#8b20ed 55%,#5b7bfb);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .sub{max-width:56ch;margin-top:22px;color:#d8cde8;font-size:clamp(17px,1.6vw,21px)}
.hero .cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.hero .scroll-hint{margin-top:44px;color:#9d8fc2;font-size:14px;display:flex;align-items:center;gap:8px}
.hero .scroll-hint .dot{width:8px;height:8px;border-radius:50%;background:var(--magenta);animation:pulse 1.8s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.7)}}
/* ---- services ---- */
.svc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:52px}
.svc{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px 30px;display:flex;flex-direction:column;gap:12px;transition:transform .3s,box-shadow .3s}
.svc:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(34,21,54,.12)}
.svc .num{color:var(--purple);font-weight:700;font-size:14px}
.svc h3{font-size:26px;line-height:1.25}
.svc p{color:var(--muted);font-size:16px}
.svc .tag{align-self:flex-start;background:var(--lilac-soft);color:var(--purple);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:700}
.svc.ai{background:var(--ink);color:#f5f0ff;border-color:var(--ink)}
.svc.ai p{color:#cfc4e8}
.svc.ai .tag{background:rgba(217,0,237,.18);color:#f0a6ff}
.svc .wa-link{margin-top:auto;padding-top:8px;color:var(--purple);font-weight:700;text-decoration:none;display:inline-flex;gap:6px;align-items:center}
.svc.ai .wa-link{color:#e58cff}
.svc .wa-link:hover{text-decoration:underline}
.svc-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
/* ---- lab ---- */
.lab-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:52px}
.lab-card{border:1px solid var(--line-light);border-radius:var(--radius);padding:36px 32px;min-height:300px;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;position:relative;overflow:hidden;background:linear-gradient(160deg,rgba(139,32,237,.28),rgba(11,7,20,.2) 60%)}
.lab-card:nth-child(2){background:linear-gradient(200deg,rgba(217,0,237,.22),rgba(11,7,20,.2) 60%)}
.lab-card .mark{font-size:64px;line-height:1;color:#e58cff;font-weight:700}
.lab-card h3{font-size:30px;line-height:1.2}
.lab-card p{color:#cfc4e8;max-width:46ch}
.lab-card .kind{color:#9d8fc2;font-size:14px}
.disclaimer{color:#9d8fc2;font-size:14px;margin-top:20px}
/* ---- process ---- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:52px}
.step{border-top:3px solid var(--purple);padding-top:20px}
.step .n{font-size:15px;color:var(--purple);font-weight:700}
.step h3{font-size:24px;margin:8px 0}
.step p{color:var(--muted)}
/* ---- stats ---- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:52px}
.stat{text-align:start}
.stat b{font-size:clamp(44px,5.5vw,72px);line-height:1;display:block}
.stat span{color:var(--muted);display:block;margin-top:8px}
.stat .src{font-size:13px;color:#6b5a78}
/* ---- contact ---- */
.contact{text-align:center}
.contact .box{max-width:820px;margin-inline:auto;border:1px solid var(--line-light);border-radius:28px;padding:64px 6%;background:rgba(34,21,54,.55);backdrop-filter:blur(6px)}
.contact h2{margin-inline:auto}
.contact .box p{color:#cfc4e8;margin-top:16px}
.contact .cta-row{justify-content:center}
.contact .mail{color:#fff;font-weight:700;font-size:clamp(18px,2vw,24px);text-decoration:none;border-bottom:2px solid var(--magenta);padding-bottom:2px}
.contact .icon-mark{width:72px;height:72px;margin:0 auto 22px}
/* ---- footer ---- (full rules in the OVERHAUL child-B block below) */
footer{background:var(--lilac);color:var(--ink);position:relative;z-index:2}
/* ---- reveals ---- */
.reveal{opacity:0;transform:translateY(28px)}
.reveal.in{opacity:1;transform:none;transition:opacity .8s ease,transform .8s cubic-bezier(.22,1,.36,1)}
/* ---- responsive ---- */
@media (max-width:900px){.svc-grid,.lab-grid{grid-template-columns:1fr}.steps{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:1fr;gap:28px}}
@media (max-width:700px){
  header nav,.head-cta{display:none}
  .menu-btn{display:block}
  .brand img{height:28px}
  .brand-word{font-size:20px}
  .site-logo{height:28px}
  section{padding:80px 5%}
  .hero{padding-bottom:8vh}
  .lab-card{min-height:240px}
  .steps{grid-template-columns:1fr}
  .contact .box{padding:48px 6%}
}
/* ---- reduced motion: everything static, content fully visible ---- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  html{scroll-behavior:auto}
  #gl{display:none}
  body{background:var(--ink)}
  .reveal{opacity:1;transform:none}
  .hero .scroll-hint .dot{animation:none}
}
/* ---- floating WhatsApp button ---- */
/* === WhatsApp — Stapx identity (v1.2.2): dark ink, white glyph, alive ===
   The old fixed bright-green circle is gone. The WhatsApp action is now
   an in-flow element (footer / CTA / service card) that travels with the
   page instead of hovering over it, with an animated circular icon
   (gentle float + soft pulse ring). The glyph keeps it instantly
   recognisable as WhatsApp; the ink + purple treatment keeps it
   on-brand. Thmanyah throughout. */
.wa-action{display:inline-flex;align-items:center;gap:12px;background:var(--ink);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding-block:10px;padding-inline-start:12px;padding-inline-end:22px;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 10px 28px rgba(34,21,54,.28);transition:transform .25s,box-shadow .25s,background .25s}
.wa-action:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(34,21,54,.34);background:#2e1c4d}
.wa-ico{flex:none;width:38px;height:38px;border-radius:50%;background:rgba(139,32,237,.22);border:1px solid rgba(139,32,237,.45);display:flex;align-items:center;justify-content:center;color:#fff;position:relative}
.wa-ico svg{width:20px;height:20px;display:block}
@keyframes wa-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes wa-ring{0%{box-shadow:0 0 0 0 rgba(139,32,237,.45)}70%{box-shadow:0 0 0 9px rgba(139,32,237,0)}100%{box-shadow:0 0 0 0 rgba(139,32,237,0)}}
body.stapx-animations-on .wa-ico{animation:wa-bob 2.8s ease-in-out infinite,wa-ring 2.8s ease-out infinite}
/* === OVERHAUL (child A: hero bg + motion + ticker + wa-float) ===
   (child A owns everything between these markers; do not edit outside) */

/* --- GLITCH ROOT CAUSE #1: the fixed full-viewport #gl canvas + transparent
   dark sections. The WebGL field never scrolled away and showed through
   every dark section (hero, lab, contact), so the bright orb/noise smeared
   "over" later sections while scrolling. The canvas is now scoped to the
   hero only (see .hero-field-wrap); #gl is dead code — hidden, never painted. */
#gl, #gl::after { display: none !important; }

/* Page field is lilac now: the hero and services are light, dark sections
   are solid ink (below), so no background can ever bleed through content. */
body { background: var(--lilac); }

/* --- GLITCH ROOT CAUSE #1b: transparent dark sections --- */
section.dark { background: var(--ink); }

/* --- HERO: light lilac field, ink type (DIRECTION.md §1, §5) --- */
section.hero {
  background: var(--lilac);
  color: var(--ink);
  min-height: 100svh;
  min-height: 100dvh; /* tracks the mobile URL bar; content is centred so a
    resize re-centres instead of clipping the scroll-hint at the fold */
  justify-content: center; /* was flex-end: the top 40% sat empty while the
    hint was crushed against the bottom edge */
  padding: calc(var(--header-h) + 48px) 5% 64px;
  overflow: hidden;
}
section.hero h1 { color: var(--ink); }
.hero .kicker { color: var(--purple); }
.hero .sub { color: var(--muted); }
.hero .scroll-hint {
  margin-top: clamp(28px, 5vh, 52px); /* was 44px + 9vh bottom pad: the dead
    gap between CTAs and hint the owner flagged */
  color: #6b5a78;
}
.hero .cta-row { margin-top: 32px; }
/* Primary CTA is the filled INK pill (direction §1); the single
   purple→magenta accent lives only in the headline's key verb. */
.hero .btn { background: var(--ink); border-color: var(--ink); }
.hero .btn:hover { box-shadow: 0 10px 26px rgba(34,21,54,.28); }
.hero .btn.ghost { background: transparent; }

/* --- Hero field: absolute canvas scoped to the hero (never fixed) --- */
.hero-field-wrap {
  position: absolute; top: -60px; bottom: -60px; inset-inline: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
#hero-field { display: block; }
.hero .wrap { position: relative; z-index: 1; }
/* Static fallback when the canvas never starts (animations off, no canvas,
   script blocked): the same hairline grid as flat CSS, no gradient wash. */
html:not(.has-hero-canvas) section.hero {
  background-image:
    repeating-linear-gradient(0deg, rgba(34,21,54,.05) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(90deg, rgba(34,21,54,.05) 0 1px, transparent 1px 76px);
}

/* --- Kinetic word-reveal headline (direction technique #1) ---
   NO hidden state in CSS: words are visible by default and JS (site-wp.js)
   sets the start state only when it can animate — first paint is never
   gated on JS (claude.com lesson). */
.hero h1 .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em; /* descenders stay unclipped */
}
.hero h1 .wi { display: inline-block; will-change: transform; }
.hero h1.js-words .grad { background: none; -webkit-background-clip: initial; background-clip: initial; }
.hero h1.js-words .grad .wi {
  background: linear-gradient(92deg,#e0218a,#8b20ed 55%,#5b7bfb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- GLITCH ROOT CAUSE #2: reveals hidden in CSS + GSAP/Lenis desync.
   .reveal is VISIBLE by default now; site-wp.js sets the hidden state via
   gsap.set only when GSAP can animate it, so content can never be stuck
   invisible, and a failed/mid-scroll trigger can never double text. */
.reveal { opacity: 1; transform: none; }

/* --- WhatsApp float removed in v1.2.2 (no fixed button; the in-flow
   .wa-action travels with the page). The .wa-ico animation above is the
   only WhatsApp motion now. --- */

/* === END OVERHAUL A === */
/* === OVERHAUL (child B: header + footer + spacing + typography) === */
/* Direction technique #6: slim glass header + grouped mega-menu; mobile
   full-screen ink overlay. Thmanyah EXCLUSIVELY — no other font family
   anywhere, both languages. Only 400/700 woff2 files exist: map the
   intermediate weights 500/600 onto them so no element ever falls back to
   Arial/system fonts when a stylesheet asks for 500 or 600. */
@font-face{font-family:'StapxThmanyah';src:url('assets/fonts/StapxThmanyah-400.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'StapxThmanyah';src:url('assets/fonts/StapxThmanyah-700.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
:root{--header-h:84px;--header-h-compact:64px}
/* Enforce Thmanyah on every element type that can carry text, including
   form controls and Elementor content (which otherwise falls back to its
   own kit fonts). Icon glyphs (<i>, svg) are excluded so icon fonts keep
   working. */
body,button,input,select,textarea,optgroup,
h1,h2,h3,h4,h5,h6,p,a,li,span,div,summary,label,figcaption,blockquote,
.elementor-widget-container,.elementor-widget-container :is(h1,h2,h3,h4,h5,h6,p,span,a,li,div,button,input,textarea,select,label,summary){
  font-family:'StapxThmanyah',Arial,sans-serif}
b,strong{font-weight:700}
/* ---- header: slim glass — lilac ~85% + blur + hairline ink border ---- */
header.site-header{height:var(--header-h);padding:0 clamp(20px,4vw,56px);background:rgba(252,250,255,.85);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);border-bottom:1px solid rgba(34,21,54,.08);box-shadow:0 8px 30px rgba(34,21,54,.05);transition:height .35s cubic-bezier(.22,1,.36,1),transform .4s cubic-bezier(.22,1,.36,1),background .35s}
.brand img,.site-logo{height:56px;width:auto;transition:height .35s cubic-bezier(.22,1,.36,1)}
header.site-header nav{font-size:16px}
header.site-header nav ul{gap:30px}
header.site-header nav a{padding:8px 0;position:relative}
header.site-header nav a::after{content:"";position:absolute;inset-inline-start:0;bottom:0;height:2px;width:0;background:var(--purple);border-radius:2px;transition:width .3s}
header.site-header nav a:hover::after,.current-menu-item>a::after,.current_page_item>a::after{width:100%}
.head-actions{gap:12px}
/* Compact-on-scroll (after 80px): shorter bar, smaller logo. */
header.site-header.is-compact{height:var(--header-h-compact)}
header.site-header.is-compact .brand img,header.site-header.is-compact .site-logo{height:44px}
/* Hide-on-scroll-down / show-on-scroll-up (JS toggles; never while the
   drawer or mega-menu is open). */
header.site-header.is-hidden{transform:translateY(-100%)}
/* ---- hamburger: three-line icon button (replaces the "Menu" text pill) ---- */
.menu-btn.hamburger{display:none;width:48px;height:48px;flex:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;background:#fff;border:1px solid rgba(34,21,54,.25);border-radius:50%;padding:0;cursor:pointer;transition:border-color .25s,background .25s,transform .25s}
.menu-btn.hamburger:hover{border-color:var(--purple);transform:translateY(-1px)}
.menu-btn.hamburger span{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px;transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .25s,width .25s}
.menu-btn.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-btn.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-btn.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
/* ---- mega-menu (desktop): grouped services under the glass header ---- */
.mega-menu{position:fixed;top:var(--header-h);inset-inline:0;z-index:49;background:rgba(252,250,255,.94);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid rgba(34,21,54,.1);box-shadow:0 24px 50px rgba(34,21,54,.12);padding:34px 5% 38px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .3s,transform .3s cubic-bezier(.22,1,.36,1),visibility .3s}
.mega-menu.is-open{opacity:1;visibility:visible;transform:translateY(0)}
.mega-menu[hidden]{display:block}
header.site-header.is-compact ~ .mega-menu{top:var(--header-h-compact)}
.mega-inner{max-width:1240px;margin-inline:auto;display:grid;grid-template-columns:repeat(3,1fr) .9fr;gap:40px}
.mega-group h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--purple);margin-bottom:12px}
.mega-group a{display:block;color:var(--ink);text-decoration:none;font-weight:700;font-size:17px;padding:7px 0;transition:color .2s,padding-inline-start .25s}
.mega-group a:hover{color:var(--purple);padding-inline-start:6px}
.mega-cta{display:flex;flex-direction:column;align-items:flex-start;gap:14px;border-inline-start:1px solid var(--line);padding-inline-start:32px}
.mega-cta .btn{white-space:nowrap}
.mega-wa{color:var(--purple);font-weight:700;text-decoration:none}
.mega-wa:hover{text-decoration:underline}
/* ---- drawer: FULL-SCREEN ink overlay + staggered link reveals ---- */
.menu-backdrop{position:fixed;inset:0;z-index:80;background:rgba(11,7,20,.55);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .35s}
.menu-backdrop.is-open{opacity:1;pointer-events:auto}
.menu-backdrop[hidden]{display:block;visibility:hidden}
.menu-backdrop.is-open[hidden]{visibility:visible}
#mobile-menu{position:fixed;top:0;bottom:0;inset-inline:0;z-index:90;width:100%;height:100dvh;background:var(--ink);color:#f5f0ff;padding:0 clamp(24px,7vw,48px) 40px;display:flex;flex-direction:column;gap:0;overflow-y:auto;transform:translateY(-100%);visibility:hidden;transition:transform .5s cubic-bezier(.22,1,.36,1),visibility .5s;border-bottom:0}
#mobile-menu.is-open{transform:translateY(0);visibility:visible}
#mobile-menu[hidden]{display:flex}
#mobile-menu.is-open[hidden]{visibility:visible}
body.menu-open{overflow:hidden}
/* Staggered reveal: each drawer row slides up in turn while opening. */
#mobile-menu .drawer-head,#mobile-menu .drawer-nav li,#mobile-menu .drawer-lang,#mobile-menu .drawer-cta,#mobile-menu .drawer-mail{opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .45s cubic-bezier(.22,1,.36,1)}
#mobile-menu.is-open .drawer-head,#mobile-menu.is-open .drawer-nav li,#mobile-menu.is-open .drawer-lang,#mobile-menu.is-open .drawer-cta,#mobile-menu.is-open .drawer-mail{opacity:1;transform:none}
#mobile-menu.is-open .drawer-head{transition-delay:.08s}
#mobile-menu.is-open .drawer-nav li:nth-child(1){transition-delay:.12s}
#mobile-menu.is-open .drawer-nav li:nth-child(2){transition-delay:.17s}
#mobile-menu.is-open .drawer-nav li:nth-child(3){transition-delay:.22s}
#mobile-menu.is-open .drawer-nav li:nth-child(4){transition-delay:.27s}
#mobile-menu.is-open .drawer-nav li:nth-child(5){transition-delay:.32s}
#mobile-menu.is-open .drawer-nav li:nth-child(6){transition-delay:.37s}
#mobile-menu.is-open .drawer-nav li:nth-child(7){transition-delay:.42s}
#mobile-menu.is-open .drawer-nav li:nth-child(8){transition-delay:.47s}
#mobile-menu.is-open .drawer-lang{transition-delay:.5s}
#mobile-menu.is-open .drawer-cta{transition-delay:.56s}
#mobile-menu.is-open .drawer-mail{transition-delay:.62s}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:var(--header-h);padding:12px 0;border-bottom:1px solid rgba(255,255,255,.14);flex:none}
.drawer-brand img{height:32px;width:auto;filter:brightness(0) invert(1)}
.drawer-brand .brand-word{color:#fff}
.drawer-close{width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid rgba(255,255,255,.35);border-radius:50%;color:#fff;font-size:26px;line-height:1;cursor:pointer;transition:border-color .25s,transform .25s,color .25s}
.drawer-close:hover{border-color:var(--magenta);color:#f0a6ff;transform:rotate(90deg)}
.drawer-close span{display:block;transform:translateY(-1px)}
.drawer-nav{margin-top:8px}
.drawer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.drawer-nav li{list-style:none}
#mobile-menu .drawer-nav a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 4px;color:#f5f0ff;text-decoration:none;font-weight:700;font-size:clamp(26px,6vw,34px);line-height:1.3;border-bottom:1px solid rgba(255,255,255,.12);transition:color .2s,padding-inline-start .25s}
.drawer-nav a::after{content:"\2190";color:#e58cff;opacity:0;transition:opacity .25s}
[dir="rtl"] .drawer-nav a::after{content:"\2192"}
.drawer-nav a:hover{color:#e58cff;padding-inline-start:10px}
.drawer-nav a:hover::after{opacity:1}
/* Language switch inside the drawer ONLY: plain text (not a pill), other
   language only — never shown in the header bar. */
.drawer-lang{margin-top:26px}
.drawer-lang-list{list-style:none;margin:0;padding:0;display:flex}
.drawer-lang-list li{list-style:none}
#mobile-menu .drawer-lang-list a{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:0;padding:6px 0;color:#cfc4e8;text-decoration:none;font-weight:700;font-size:17px;transition:color .2s}
#mobile-menu .drawer-lang-list a:hover{color:#fff;text-decoration:underline}
#mobile-menu .drawer-lang-list a::after{content:" \2192";color:#e58cff}
[dir="rtl"] #mobile-menu .drawer-lang-list a::after{content:" \2190"}
#mobile-menu a.cta,#mobile-menu .drawer-cta{margin-top:26px;justify-content:center;width:100%;padding:15px 22px;color:#fff}
.drawer-mail{margin-top:20px;text-align:center}
#mobile-menu .drawer-mail a{color:#9d8fc2;text-decoration:none;font-weight:700;font-size:15px;padding:6px 0;border-bottom:0}
#mobile-menu .drawer-mail a:hover{color:#fff}
/* ---- footer: "The field returns" (creative rework 2026-11-30) ----
   The page opens with the hero's Field of Light and closes with it: the
   footer carries the same precision grid + drifting particles as a live
   canvas, one light pulse travelling the top horizon, and a closing
   statement row above three clean columns. Same content, same short
   height — the creativity is the light and the composition, not clutter. */
footer{padding:64px 5% 28px}
#foot-field{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.foot-horizon{position:absolute;top:0;inset-inline:0;height:1px;background:rgba(34,21,54,.14);z-index:1}
.foot-horizon i{position:absolute;top:0;left:0;width:9px;height:9px;border-radius:50%;background:var(--purple);box-shadow:0 0 12px 3px rgba(139,32,237,.45);transform:translateY(-50%);animation:foot-pulse 16s linear infinite}
@keyframes foot-pulse{from{left:0}to{left:calc(100% - 9px)}}
[dir="rtl"] .foot-horizon i{left:auto;right:0;animation-name:foot-pulse-rtl}
@keyframes foot-pulse-rtl{from{right:0}to{right:calc(100% - 9px)}}
body.stapx-animations-off .foot-horizon i{display:none}
.foot{position:relative;z-index:1;max-width:1240px;margin-inline:auto}
.foot-statement{display:flex;align-items:center;justify-content:space-between;gap:20px 48px;flex-wrap:wrap;padding-bottom:36px;border-bottom:1px solid var(--line)}
.foot-statement-copy{max-width:660px}
.foot-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.foot-logo img{display:block;height:40px;width:auto}
.foot-logo .brand-word{font-size:25px;font-weight:800;color:var(--ink);line-height:1;letter-spacing:-.01em}
.foot-tagline{font-size:clamp(22px,2.6vw,30px);line-height:1.35;font-weight:700;color:var(--ink);margin:18px 0 0;max-width:22ch}
.foot-wa{flex:none}
.foot-cols{display:grid;grid-template-columns:1fr 1fr 1fr;gap:48px;padding-top:36px}
.foot-col h3{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:14px}
.foot-col h3::before{content:"";display:inline-block;width:7px;height:7px;background:var(--purple);transform:rotate(45deg);margin-inline-end:10px;vertical-align:1px}
.foot-col ul{list-style:none;margin:0;padding:0}
.foot-col li{list-style:none}
.foot-col a{display:block;color:var(--muted);text-decoration:none;padding:5px 0;font-size:15px;transition:color .2s,padding-inline-start .2s}
.foot-col a:hover{color:var(--purple);padding-inline-start:4px}
.foot-more{font-weight:700;color:var(--ink)!important}
.foot-contact{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:14px}
.foot-contact span{display:block;font-size:12px;font-weight:700;color:#6b5a78}
.foot-contact a{padding:2px 0;font-size:15px;text-align:start}
/* The WhatsApp number is an LTR run inside an RTL column: the dir="ltr"
   lives on an INNER span (footer.php) so the digits keep their order.
   v1.1.2 used text-align:start alone and it did NOT hold on desktop
   (the LTR run still landed at the far left in the stacked column);
   the flex column + align-items:flex-start anchors BOTH the label and
   the number to the inline-start (right in RTL, left in LTR) regardless
   of bidi. (Khaled 2026-11-30, verified on live v1.1.2.) */
.foot-base{position:relative;z-index:1;max-width:1240px;margin:40px auto 0;padding-top:20px;border-top:1px solid var(--line)}
.foot-base-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px 24px;flex-wrap:wrap}
.copy{color:#6b5a78;font-size:13px}
.foot-note-links{display:flex;flex-wrap:wrap;align-items:baseline;font-size:13px;color:#6b5a78}
.foot-note-links a{color:#6b5a78;text-decoration:none;white-space:nowrap}
.foot-note-links a:hover{color:var(--purple)}
.foot-note-links i{font-style:normal;padding:0 8px;color:#b9aec4}
.foot-legal{display:flex;flex-wrap:wrap;align-items:baseline;font-size:13px;color:#6b5a78}
.foot-legal a{color:#6b5a78;text-decoration:none;white-space:nowrap}
.foot-legal a:hover{color:var(--purple)}
.foot-legal i{font-style:normal;padding:0 8px;color:#b9aec4}
.foot-note{color:#8a7d99;font-size:12.5px;margin-top:10px;text-align:end}
@media (max-width:900px){
  .foot-cols{grid-template-columns:1fr 1fr;gap:40px}
  .foot-col-contact{grid-column:1/-1;display:flex;gap:32px;flex-wrap:wrap}
  .foot-col-contact h3{flex-basis:100%;margin-bottom:0}
  .foot-col-contact .foot-contact{margin-bottom:0}
}
@media (max-width:700px){
  footer{padding:48px 5% 24px}
  .foot-statement{padding-bottom:28px}
  .foot-cols{grid-template-columns:1fr 1fr;gap:36px 24px;padding-top:28px}
  .foot-base-row{flex-direction:column;gap:6px}
  .foot-note{text-align:start}
}
/* ---- spacing: intentional, premium, viewport-aware ---- */
section{padding:96px 5%}
.hero{padding:calc(var(--header-h) + 32px) 5% 7vh}
.hero .cta-row{margin-top:30px}
.hero .scroll-hint{margin-top:36px}
.stats{margin-top:40px;gap:24px}
.contact .box{padding:56px 6%}
.page-hero{padding:calc(var(--header-h) + 64px) 5% 64px}
@media (max-width:1024px){
  header.site-header nav,.head-cta{display:none}
  .menu-btn.hamburger{display:inline-flex}
  .mega-menu{display:none}
}
@media (max-width:900px){
  section{padding:72px 5%}
  .stats{gap:20px}
}
@media (max-width:700px){
  :root{--header-h:72px;--header-h-compact:60px}
  .brand img,.site-logo{height:44px}
  header.site-header.is-compact .brand img,header.site-header.is-compact .site-logo{height:38px}
  section{padding:64px 5%}
  .hero{padding-bottom:6vh}
  .hero .cta-row{margin-top:26px}
  .hero .scroll-hint{margin-top:28px}
  .contact .box{padding:36px 6%}
  .page-hero{padding:calc(var(--header-h) + 48px) 5% 48px}
  #mobile-menu .drawer-nav a{font-size:24px;padding:16px 4px}
}
/* Drawer / header motion off when animations are off or reduced motion is preferred */
@media (prefers-reduced-motion:reduce){
  #mobile-menu,.menu-backdrop,.menu-btn.hamburger span,.drawer-close,header.site-header,.brand img,.site-logo,#mobile-menu .drawer-head,#mobile-menu .drawer-nav li,#mobile-menu .drawer-lang,#mobile-menu .drawer-cta,#mobile-menu .drawer-mail,.mega-menu{transition:none}
  header.site-header nav a::after{transition:none}
}
body.stapx-animations-off #mobile-menu,body.stapx-animations-off .menu-backdrop,body.stapx-animations-off header.site-header,body.stapx-animations-off .mega-menu{transition:none}
/* === END OVERHAUL B === */
/* === OVERHAUL (child C: interactive services display) === */
/* Tabs */
.svc-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-top:36px}
.svc-tabs [role="tab"]{font:inherit;font-weight:700;font-size:15px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 20px;cursor:pointer;transition:background .25s,color .25s,border-color .25s,box-shadow .25s}
.svc-tabs [role="tab"]:hover{border-color:var(--purple);color:var(--purple)}
.svc-tabs [role="tab"][aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 8px 22px rgba(34,21,54,.25)}
.svc-tab-count{display:inline-block;min-width:22px;padding:1px 6px;margin-inline-start:6px;border-radius:999px;background:var(--lilac-soft);color:var(--purple);font-size:13px;text-align:center}
.svc-tabs [role="tab"][aria-selected="true"] .svc-tab-count{background:rgba(217,0,237,.28);color:#f0a6ff}
/* Rows container + phase headings (Consult / Build / Grow) */
.svc-rows{margin-top:20px;transition:opacity .18s ease,transform .18s ease}
.svc-rows.is-switching{opacity:0;transform:translateY(6px)}
.svc-phase{border-top:1px solid var(--line)}
.svc-phase:first-child{border-top:0}
.svc-phase-head{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;padding:40px 0 8px}
.svc-phase-title{font-size:clamp(24px,3vw,34px);line-height:1.15}
.svc-phase-sub{color:var(--muted);font-size:16px}
/* Editorial row — full width, alternating visual side, lilac field → white on hover */
.svc-row{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:center;padding:40px 24px;margin-inline:-24px;border-bottom:1px solid var(--line);transition:background .3s,transform .3s,box-shadow .3s}
.svc-row:hover{background:#fff;transform:translateY(-4px);box-shadow:0 24px 50px rgba(34,21,54,.10)}
.svc-row--flip .svc-row-visual{order:-1}
.svc-row-visual{position:relative;border:1px solid var(--line);border-radius:18px;background:var(--lilac-soft);overflow:hidden;flex:none}
.svc-row-visual svg{display:block;width:100%;height:auto;transition:transform .45s cubic-bezier(.22,1,.36,1);transform:translate(var(--mx,0px),var(--my,0px))}
.svc-row:hover .svc-row-visual svg{transform:translate(var(--mx,0px),var(--my,0px)) scale(1.04)}
.svc-row-bignum{position:absolute;bottom:2px;inset-inline-start:18px;font-size:88px;line-height:1;font-weight:700;color:transparent;-webkit-text-stroke:1.5px rgba(34,21,54,.28);pointer-events:none}
.svc-row-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.svc-row-top{display:flex;align-items:center;gap:12px}
.svc-row-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--svc-accent,#8b20ed)}
.svc-row-icon svg{width:26px;height:26px}
.svc-row-phase{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--svc-accent,#8b20ed)}
.svc-row-top .svc-num{margin-inline-start:auto;color:var(--purple);font-weight:700;font-size:15px}
.svc-row h3{font-size:clamp(26px,3vw,36px);line-height:1.2}
.svc-tagline{color:var(--muted);font-size:17px;max-width:56ch}
/* Per-service accent (solid — no gradient washes, per DIRECTION.md) */
.svc-a0{--svc-accent:#8b20ed}
.svc-a1{--svc-accent:#d900ed}
.svc-a2{--svc-accent:#5b7bfb}
.svc-a3{--svc-accent:#e0218a}
.svc-a4{--svc-accent:#6d28d9}
.svc-a5{--svc-accent:#4f46e5}
.svc-a6{--svc-accent:#7c3aed}
.svc-a7{--svc-accent:#221536}
/* Expansion — grid-rows trick: smooth, no layout jump */
.svc-more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.22,1,.36,1)}
.svc-more-inner{overflow:hidden;min-height:0}
.svc-row.is-open .svc-more{grid-template-rows:1fr}
/* NOTE (v1.1.8): there is deliberately NO :hover/:focus-within rule here.
   An earlier `@media (hover:hover) .svc-row:hover .svc-more{1fr}` rule kept
   the content expanded whenever the pointer hovered the row, regardless of
   the JS `is-open` state — so "Show less" flipped the button to "Show more"
   while the lists stayed visible. Hover/focus expansion is handled entirely
   by JS (`is-hover-open` + render()), which respects an explicit close. */
.svc-more h4{font-size:15px;margin:14px 0 8px;color:var(--ink)}
.svc-more h4:first-child{margin-top:6px}
.svc-list{list-style:none;display:grid;gap:8px}
.svc-list li{padding-inline-start:24px;position:relative;font-size:15px;color:var(--muted);line-height:1.55}
/* Stroke Checklist mechanic (v1.1.6): the mask check in each row's
   ::before (glyph-gap section below) pops in with a spring + stagger
   when the row opens — the check "arrives" as the list is revealed,
   instead of sitting there statically. The ::before shape itself is
   the theme's existing SVG-mask check (font-independent). */
.svc-list li::before{transform:scale(.3);opacity:0;transition:transform .4s var(--spring),opacity .25s}
.svc-row.is-open .svc-list li::before,
.svc-row:hover .svc-list li::before,
.svc-row:focus-within .svc-list li::before{transform:scale(1);opacity:1}
.svc-row.is-open .svc-list li:nth-child(2)::before{transition-delay:.07s}
.svc-row.is-open .svc-list li:nth-child(3)::before{transition-delay:.14s}
.svc-row.is-open .svc-list li:nth-child(4)::before{transition-delay:.21s}
.svc-row.is-open .svc-list li:nth-child(5)::before{transition-delay:.28s}
.svc-row.is-open .svc-list li:nth-child(n+6)::before{transition-delay:.35s}
/* Toggle + CTAs */
.svc-toggle{align-self:flex-start;background:none;border:0;padding:4px 0;font:inherit;font-weight:700;font-size:15px;color:var(--purple);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.svc-toggle:hover{text-decoration:underline}
.svc-toggle-chev{display:inline-block;transition:transform .35s;font-size:13px}
.svc-row.is-open .svc-toggle-chev{transform:rotate(180deg)}
.svc-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:6px;padding-top:14px;border-top:1px dashed var(--line)}
.svc-learn{color:var(--purple);font-weight:700;text-decoration:none;display:inline-flex;gap:8px;align-items:center}
.svc-learn:hover{text-decoration:underline}
.svc-arrow{display:inline-block;transition:transform .3s;font-size:18px}
.svc-row:hover .svc-arrow{transform:translateX(-6px)}
[dir="rtl"] .svc-row:hover .svc-arrow{transform:translateX(6px)}
.svc-wa{margin-inline-start:auto;display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:10px 18px;font-weight:700;font-size:14px;text-decoration:none;transition:transform .2s,box-shadow .2s,background .2s}
.svc-wa:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(34,21,54,.35);background:#2e1c4d}
.svc-wa svg{width:16px;height:16px;flex:none}
/* Solutions band (landing pages) — compact rows */
.svc-solutions{padding-top:40px}
.svc-solutions-list{margin-top:36px;border-top:1px solid var(--line)}
.svc-sol-row{display:flex;align-items:center;gap:18px;padding:22px 24px;margin-inline:-24px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);transition:background .3s,transform .3s,box-shadow .3s}
.svc-sol-row:hover{background:#fff;transform:translateY(-3px);box-shadow:0 16px 36px rgba(34,21,54,.10)}
.svc-sol-row .svc-row-icon{width:52px;height:52px}
.svc-sol-main{min-width:0;flex:1}
.svc-sol-num{color:var(--purple);font-weight:700;font-size:13px}
.svc-sol-main h3{font-size:21px;line-height:1.3;margin-top:2px}
.svc-sol-main p{color:var(--muted);font-size:15px;margin-top:4px}
.svc-sol-arrow{font-size:22px;color:var(--purple);transition:transform .3s;flex:none}
.svc-sol-row:hover .svc-sol-arrow{transform:translateX(-8px)}
[dir="rtl"] .svc-sol-row:hover .svc-sol-arrow{transform:translateX(8px)}
/* Mobile: visual on top, single column */
@media (max-width:900px){
  .svc-row{grid-template-columns:1fr;gap:20px;padding:32px 16px;margin-inline:-16px}
  .svc-row-visual{order:-1}
  .svc-row-bignum{font-size:64px}
  .svc-sol-row{padding:20px 16px;margin-inline:-16px}
  .svc-sol-main h3{font-size:19px}
}
/* Reduced motion / animations toggle: expansion + filtering are instant */
@media (prefers-reduced-motion:reduce){
  .svc-more{transition:none}
  .svc-rows,.svc-rows.is-switching{transition:none;opacity:1;transform:none}
  .svc-row-visual svg{transition:none}
}
body.stapx-animations-off .svc-more{transition:none}
body.stapx-animations-off .svc-rows,body.stapx-animations-off .svc-rows.is-switching{transition:none;opacity:1;transform:none}
/* === END OVERHAUL C === */
/* === OVERHAUL (child D: stats/counters) === */
/* Dynamic counts (see functions.php stapx_ai_verified_counts()): keep the
   numerals tabular so the animated counter does not shift layout as the
   number changes; no invented-number styling, no extra stats added. */
.stats .stat b{font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
/* Base rule `.stat span{display:block}` (for the label under the number)
   also hits the <span data-count> INSIDE <b>, forcing the "+" onto its own
   line ("60" over "+"). Keep the count + suffix on one line. */
.stats .stat b span{display:inline}
/* === END OVERHAUL D === */
/* === OVERHAUL (child E: performance/SEO) === */
/* CLS guard: any image with width/height attributes keeps its aspect ratio
   when CSS constrains its width (featured images, content images, logo).
   Theme CSS elsewhere sets explicit heights for header/brand images, which
   this rule does not override (specificity: those selectors win). */
img{height:auto}
/* === END OVERHAUL E === */
/* ---- page hero (inner pages) ---- */
.page-hero{padding:calc(var(--header-h) + 70px) 5% 70px;background:var(--ink);color:#f5f0ff;position:relative;overflow:hidden}
.page-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(70% 90% at 80% 0%,rgba(139,32,237,.35),transparent 60%),radial-gradient(60% 80% at 10% 100%,rgba(217,0,237,.22),transparent 60%)}
.page-hero .wrap{position:relative}
.page-hero h1{font-size:clamp(40px,6vw,84px);line-height:1.05;max-width:16ch}
.page-hero .sub{color:#d8cde8;max-width:60ch;margin-top:18px;font-size:clamp(16px,1.5vw,20px)}
.crumbs{color:#9d8fc2;font-size:14px;margin-bottom:18px}
.crumbs a{color:#cfc4e8;text-decoration:underline}
.crumbs a:hover{color:#fff}
/* ---- generic content blocks ---- */
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}
.check-list{list-style:none;display:grid;gap:12px;margin-top:24px}
.check-list li{padding-inline-start:30px;position:relative}
.check-list li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--purple);font-weight:700}
.dark .check-list li::before{color:#e58cff}
.sub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:40px}
.sub-card{border:1px solid var(--line);border-radius:18px;padding:24px;background:#fff}
.sub-card h3{font-size:20px;margin-bottom:6px}
.sub-card p{color:var(--muted);font-size:15px}
.faq{margin-top:40px;display:grid;gap:12px}
.faq details{border:1px solid var(--line);border-radius:16px;padding:18px 22px;background:#fff}
.faq summary{cursor:pointer;font-weight:700;font-size:18px;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
/* v1.2.1 — visible expand chevron on every FAQ card (Khaled 2026-11-30):
   pure-CSS chevron (no font glyph), points down when closed, up when open. */
.faq summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--purple);border-bottom:2px solid var(--purple);transform:rotate(45deg);transition:transform .25s ease}
.faq details[open] summary::after{transform:rotate(225deg)}
.faq p{color:var(--muted);margin-top:10px}
.cta-band{border-radius:28px;padding:56px 6%;text-align:center}
.cta-band.dark-band{background:var(--ink);color:#fff}
.cta-band.light-band{background:var(--lilac-soft);color:var(--ink)}
.cta-band h2{margin-inline:auto}
.cta-band p{margin:14px auto 26px;max-width:56ch}
.cta-band.dark-band p{color:#cfc4e8}
.cta-band.light-band p{color:var(--muted)}
/* ---- booking / forms ---- */
.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:36px}
.choice{border:2px solid var(--line);border-radius:18px;padding:22px;background:#fff;cursor:pointer;text-align:start;font:inherit;width:100%;transition:border-color .2s,box-shadow .2s}
.choice:hover{border-color:var(--purple)}
.choice[aria-pressed="true"]{border-color:var(--purple);box-shadow:0 0 0 3px rgba(139,32,237,.18)}
.choice h3{font-size:19px;margin-bottom:4px}
.choice p{color:var(--muted);font-size:14px}
.form-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:32px;margin-top:36px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{margin-bottom:16px}
.field label{display:block;font-weight:700;margin-bottom:6px;font-size:15px}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font:inherit;background:var(--lilac)}
.field textarea{min-height:110px;resize:vertical}
.form-note{color:#6b5a78;font-size:14px;margin-top:12px}
.pill-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.pill{border:1px solid var(--line);border-radius:999px;padding:9px 18px;font-weight:700;cursor:pointer;background:#fff;font:inherit}
.pill[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:#fff}
/* ---- blog hub ---- */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:44px}
.post{border:1px solid var(--line);border-radius:20px;padding:26px;background:#fff;display:flex;flex-direction:column;gap:10px}
.post .cat{color:var(--purple);font-size:13px;font-weight:700}
.post h3{font-size:20px;line-height:1.35}
.post p{color:var(--muted);font-size:15px}
.post .slot{margin-top:auto;color:#6b5a78;font-size:13px;border-top:1px dashed var(--line);padding-top:10px}
@media (max-width:900px){.two-col,.sub-grid,.choice-grid,.post-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}}

/* ============ ARTICLE REDESIGN 2026-11-30 — editorial reading experience ============ */
/* Reading progress bar (fixed above the header; filled by the inline script in single.php). */
.read-progress{position:fixed;top:0;inset-inline:0;height:3px;z-index:60;background:transparent;pointer-events:none}
.read-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--magenta),var(--purple) 55%,var(--blue));transition:width .12s linear}
/* Article hero: category eyebrow, standfirst, clean meta row. */
.article-hero{padding-bottom:56px}
.article-hero__wrap{max-width:860px}
.article-hero .eyebrow a{color:inherit;text-decoration:none}
.article-hero .eyebrow a:hover{text-decoration:underline}
.article-standfirst{max-width:62ch;margin-top:20px;color:#d8cde8;font-size:clamp(18px,1.7vw,23px);line-height:1.65}
.article-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:26px;color:#9d8fc2;font-size:15px}
.article-meta__dot{color:#6b5a78}
/* Narrow reading measure. */
.article-section{padding-top:64px}
.article-wrap{max-width:760px}
[dir="rtl"] .article-body{line-height:1.95}
[dir="ltr"] .article-body{line-height:1.85}
/* Featured image INSIDE the article body (after the lede): full measure,
   complete and visible — never a cropped strip. */
.article-inline-img{margin:36px 0 44px}
.article-inline-img img{display:block;width:100%;height:auto;border-radius:20px}
.article-inline-img figcaption,.article-body figcaption,.article-body .wp-caption-text{text-align:center;color:#6b5a78;font-size:14px;margin-top:12px}
/* Table of contents card (built from the article's own h2s). */
.article-toc{background:var(--lilac-soft);border:1px solid var(--line);border-radius:18px;padding:22px 26px;margin:0 0 44px}
.article-toc summary{cursor:pointer;font-weight:700;font-size:18px;list-style:none}
.article-toc summary::-webkit-details-marker{display:none}
.article-toc summary::after{content:" —";color:var(--purple)}
.article-toc ol{margin:14px 0 0;padding-inline-start:22px;display:grid;gap:9px}
.article-toc a{color:var(--ink);text-decoration:none}
.article-toc a:hover{color:var(--purple);text-decoration:underline}
/* Article body typography — the reading experience itself. */
.article-body{font-size:clamp(18px,1.15vw,20px);color:var(--ink)}
.article-body > p:first-of-type{font-size:1.22em;line-height:1.75;color:var(--ink-2)}
.article-body p{margin:0 0 1.5em}
.article-body h2{font-size:clamp(26px,3vw,32px);line-height:1.25;margin:56px 0 18px;padding-top:22px;border-top:1px solid var(--line);scroll-margin-top:100px}
.article-body h3{font-size:clamp(21px,2.2vw,24px);line-height:1.3;margin:40px 0 14px;scroll-margin-top:100px}
.article-body h4{font-size:19px;margin:32px 0 12px}
.article-body a{color:var(--purple);text-underline-offset:3px}
.article-body a:hover{color:var(--magenta)}
.article-body ul,.article-body ol{margin:0 0 1.5em;padding-inline-start:26px;display:grid;gap:10px}
.article-body ul li::marker{color:var(--purple)}
.article-body ol li::marker{color:var(--purple);font-weight:700}
.article-body blockquote{position:relative;margin:44px 0;padding:8px 0 8px 0;padding-inline-start:28px;border-inline-start:4px solid var(--purple);font-size:clamp(22px,2.4vw,27px);line-height:1.5;font-weight:700;color:var(--ink)}
.article-body blockquote p{margin:0}
.article-body blockquote::before{content:"”";position:absolute;top:-24px;inset-inline-start:-6px;font-size:72px;line-height:1;color:var(--purple);opacity:.28}
.article-body figure,.article-body .wp-block-image{margin:36px 0}
.article-body img{max-width:100%;height:auto;border-radius:16px;margin-inline:auto}
.article-body figure img,.article-body .wp-block-image img{display:block;width:100%}
.article-body pre{background:var(--ink);color:#f5f0ff;border-radius:14px;padding:20px;overflow-x:auto;font-size:15px;line-height:1.6;margin:0 0 1.5em}
.article-body code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.88em;background:var(--lilac-soft);border:1px solid var(--line);border-radius:6px;padding:2px 6px}
.article-body pre code{background:transparent;border:0;padding:0}
.article-body table{width:100%;border-collapse:collapse;margin:0 0 1.5em;font-size:16px}
.article-body th,.article-body td{border:1px solid var(--line);padding:10px 14px;text-align:start}
.article-body th{background:var(--lilac-soft)}
.article-body hr{border:0;border-top:1px solid var(--line);margin:44px 0}
/* Prev / next pager. */
.article-pager{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:64px 0 0}
.article-pager > div{border:1px solid var(--line);border-radius:18px;padding:20px 22px;background:#fff}
.article-pager a{text-decoration:none;color:inherit;display:block}
.article-pager span{display:block;color:var(--purple);font-size:13px;font-weight:700;margin-bottom:6px}
.article-pager strong{font-size:17px;line-height:1.4;display:block}
.article-pager__next{text-align:end}
.article-pager > div:hover{border-color:var(--purple)}
/* Related articles. */
.article-related{margin-top:72px}
.article-related__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:8px}
.article-related__head h2{font-size:clamp(26px,3vw,34px);margin:0}
/* Editorial article cards (blog hub, homepage latest, related). */
.post-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;transition:transform .3s,box-shadow .3s}
.post-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(34,21,54,.12)}
.post-card__media{display:block;overflow:hidden;aspect-ratio:16/9;background:var(--lilac-soft)}
.post-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.post-card:hover .post-card__media img{transform:scale(1.04)}
.post-card__body{padding:22px 24px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-card__meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:#6b5a78}
.post-card__cat{color:var(--purple);font-weight:700}
.post-card__dot{color:#b9a8cc}
.post-card__title{font-size:22px;line-height:1.35;margin:0}
.post-card__title a{text-decoration:none;color:inherit}
.post-card__title a:hover{color:var(--purple)}
.post-card__excerpt{color:var(--muted);font-size:15px;line-height:1.7;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-card__foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px dashed var(--line);padding-top:12px;color:#6b5a78;font-size:13px}
.post-card__more{color:var(--purple);font-weight:700;text-decoration:none;white-space:nowrap}
.post-card__more:hover{text-decoration:underline}
.post-card--lead{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
.post-card--lead .post-card__media{aspect-ratio:auto;min-height:280px}
.post-card--lead .post-card__body{padding:32px 34px;justify-content:center}
.post-card--lead .post-card__title{font-size:clamp(24px,2.6vw,30px)}
/* Blog hub: topic chips + pagination. */
.blog-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.blog-chips a{border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:9px 18px;color:#f5f0ff;text-decoration:none;font-weight:700;font-size:14px;transition:border-color .2s,color .2s}
.blog-chips a:hover{border-color:var(--magenta);color:#fff}
.blog-pagination{margin-top:40px}
.blog-pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.blog-pagination .page-numbers{border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:#fff;color:var(--ink);text-decoration:none;font-weight:700}
.blog-pagination .page-numbers.current{background:var(--purple);border-color:var(--purple);color:#fff}
.blog-pagination .page-numbers:hover{border-color:var(--purple)}
/* Latest articles on the homepage. */
.latest-articles .post-grid{margin-top:44px}
@media (max-width:900px){
  .post-card--lead{grid-template-columns:1fr}
  .post-card--lead .post-card__media{aspect-ratio:16/9;min-height:0}
  .article-pager{grid-template-columns:1fr}
  .article-pager__next{text-align:start}
  .article-section{padding-top:48px}
  .article-toc{padding:18px 20px}
}
@media (prefers-reduced-motion:reduce){
  .post-card,.post-card__media img{transition:none}
  .read-progress span{transition:none}
}

/* ============ LIVE DEFECTS FIX ROUND 2026-11-30 (Khaled's live QA) ============
   One appended block, in fix order. Nothing above is edited, so the
   overhaul history stays readable; these rules win by source order. */

/* --- (6) Header language switcher — prominent pill, desktop + mobile.
   The Polylang "Languages" menu item (added live 2026-11-30) is hidden so
   there is exactly ONE visible switcher: this pill. The drawer switcher
   stays as well. --- */
.head-lang{list-style:none;margin:0;padding:0;display:flex;flex:none}
.head-lang li{list-style:none}
.head-lang a{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid rgba(34,21,54,.28);color:var(--ink);border-radius:999px;padding:9px 16px;font:inherit;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;transition:border-color .25s,color .25s,box-shadow .25s}
.head-lang a::before{content:"";width:15px;height:15px;flex:none;background:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.7 3.8 9S14.5 18.4 12 21c-2.5-2.6-3.8-5.7-3.8-9S9.5 5.6 12 3z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.7 3.8 9S14.5 18.4 12 21c-2.5-2.6-3.8-5.7-3.8-9S9.5 5.6 12 3z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.head-lang a:hover{border-color:var(--purple);color:var(--purple);box-shadow:0 6px 18px rgba(139,32,237,.16)}
#mainNav .menu-item-language,.drawer-nav .menu-item-language{display:none!important}
/* The switcher is never hidden on mobile (the old ≤700px rule hid .head-cta only). */
@media (max-width:700px){
  .head-lang a{padding:8px 13px;font-size:14px}
}

/* --- (7/B) Gaps — hero bottom + next-section top were 70px + 96px = 166px
   of dead space below every hero (measured 96–148px on staging). --- */
.page-hero{padding-bottom:48px}
main > section.page-hero + section{padding-top:48px}
.article-section{padding-top:48px}
main > section:last-of-type{padding-bottom:64px}
footer{padding-top:48px}
section.contact.final-cta{padding-bottom:56px}
/* Heroes use the width they have: h1 16ch + sub 60ch left 40–60% blank. */
.page-hero h1{max-width:22ch;text-wrap:balance}
.page-hero .sub{max-width:68ch}

/* --- Heading measures + orphans (the global 18ch h2 broke article H2s,
   booking step headings and FAQ headings into narrow wraps). --- */
h2{max-width:26ch;text-wrap:balance}
h1{text-wrap:balance}
.hero h1{max-width:18ch}
.hero .sub,.lead,.page-hero .sub{text-wrap:pretty}
.article-body p{text-wrap:pretty}
.article-body h2{max-width:none;text-wrap:balance}
.article-body h3{max-width:none;text-wrap:balance}
.cta-band h2{max-width:28ch}
.form-card h2{max-width:none}

/* --- (1) Footer WhatsApp — belt and braces: the SVG carries width/height
   attributes in the markup AND this guard, so no missing/stale stylesheet
   can ever blow it up to a giant circle again. --- */
.wa-ico svg{width:20px!important;height:20px!important}
footer svg{max-width:64px}
/* Footer on mobile (Khaled 2026-11-30): Services + Site side by side in
   two columns, Contact full-width below. Full-width WhatsApp CTA. */
@media (max-width:700px){
  .foot-cols{grid-template-columns:1fr 1fr;gap:28px 20px}
  .foot-col-contact{grid-column:1/-1}
  .foot-statement{flex-direction:column;align-items:stretch}
  .foot-wa{width:100%;justify-content:center}
  .foot-tagline{max-width:none}
}

/* --- (2) Article cards — category chip, clean meta, no underlined titles. --- */
.post-card__cat{display:inline-flex;align-items:center;background:var(--lilac-soft);color:var(--purple);border-radius:999px;padding:3px 11px;font-size:12.5px;line-height:1.6}
.post-card__meta{gap:7px}
.post-card__foot{gap:10px}
.post-card__foot .post-card__dot{flex:none}
.blog-chips a{white-space:normal;line-height:1.5;text-align:center}

/* --- (3) Article — hero cover + honest measure + visible TOC card. --- */
.wrap.article-wrap{max-width:760px}
.article-hero-cover{margin:38px 0 0}
.article-hero-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:20px}
.article-hero-cover figcaption{color:#9d8fc2;font-size:14px;margin-top:12px;text-align:center}
.article-toc{background:#fff;box-shadow:0 10px 30px rgba(34,21,54,.07)}
.article-hero{padding-bottom:48px}

/* --- (4) SERVICE VISUAL MOTION — purposeful, gated, proven by frames.
   Runs only when animations are on + the user allows motion + the row is
   in view (.svc-inview, added by site-wp.js). Reduced-motion and
   animations-off keep everything static. --- */
@keyframes sv-sway{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}
@keyframes sv-spin{to{transform:rotate(360deg)}}
@keyframes sv-pulse-dot{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.22);opacity:.7}}
@keyframes sv-grow{from{transform:scaleY(.7)}to{transform:scaleY(1)}}
@keyframes sv-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes sv-blink{0%,100%{opacity:1}50%{opacity:.12}}
@keyframes sv-breathe{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.045);opacity:1}}
@media (prefers-reduced-motion:no-preference){
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-needle{animation:sv-sway 5.5s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 50%}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-ring{animation:sv-spin 48s linear infinite;transform-box:fill-box;transform-origin:50% 50%;stroke-dasharray:2 6}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-orbit{animation:sv-spin 26s linear infinite;transform-box:view-box;transform-origin:180px 110px}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-dot{animation:sv-pulse-dot 3.4s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-bar{animation:sv-grow 3.8s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-draw{stroke-dasharray:100;stroke-dashoffset:100;animation:sv-draw 1.6s ease-out .25s forwards}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-blink{animation:sv-blink 1.5s ease-in-out infinite}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-pulse{animation:sv-breathe 4.6s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
  /* Stagger the repeating parts so the motion never pulses in lockstep. */
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-dot:nth-of-type(2){animation-delay:-.9s}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-dot:nth-of-type(3){animation-delay:-1.7s}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-bar:nth-of-type(2){animation-delay:-.9s}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-bar:nth-of-type(3){animation-delay:-1.8s}
  body.stapx-animations-on .svc-row.svc-inview .svc-row-visual svg .sv-bar:nth-of-type(4){animation-delay:-2.6s}
  /* Hover / tap: the motion answers — needle swings faster, orbit quickens. */
  body.stapx-animations-on .svc-row:hover .svc-row-visual svg .sv-needle,body.stapx-animations-on .svc-row:active .svc-row-visual svg .sv-needle{animation-duration:2.1s}
  body.stapx-animations-on .svc-row:hover .svc-row-visual svg .sv-orbit,body.stapx-animations-on .svc-row:active .svc-row-visual svg .sv-orbit{animation-duration:9s}
  body.stapx-animations-on .svc-row:hover .svc-row-visual svg .sv-dot,body.stapx-animations-on .svc-row:active .svc-row-visual svg .sv-dot{animation-duration:1.6s}
}
/* Small service icons answer hover too (rows + solution rows). */
.svc-row-icon svg{transition:transform .3s}
.svc-row:hover .svc-row-icon svg,.svc-sol-row:hover .svc-row-icon svg{transform:scale(1.12) rotate(-6deg)}
.svc-arrow svg{display:block}
[dir="rtl"] .svc-arrow svg,[dir="rtl"] .svc-sol-arrow svg{transform:scaleX(-1)}
.svc-sol-arrow svg{display:block}

/* --- Glyph-gap replacements: checkmarks + diamonds as SVG masks (Thmanyah
   has no ✓ or ✦), drawer arrows + toggle chevron as border chevrons. --- */
.check-list li::before,.svc-list li::before{content:"";position:absolute;inset-inline-start:0;top:.3em;width:15px;height:15px;background:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-size:contain;mask-repeat:no-repeat}
.svc-benefits li::before{background:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l7 9-7 9-7-9z' fill='%23000'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l7 9-7 9-7-9z' fill='%23000'/%3E%3C/svg%3E")}
.drawer-nav a::after{content:"";width:9px;height:9px;flex:none;border-top:2.5px solid #e58cff;border-inline-end:2.5px solid #e58cff;transform:rotate(45deg)}
[dir="rtl"] .drawer-nav a::after{transform:rotate(45deg) scaleX(-1)}
#mobile-menu .drawer-lang-list a::after{content:"";width:8px;height:8px;border-top:2px solid #e58cff;border-inline-end:2px solid #e58cff;transform:rotate(45deg)}
[dir="rtl"] #mobile-menu .drawer-lang-list a::after{transform:rotate(45deg) scaleX(-1)}
.svc-toggle-chev{width:9px;height:9px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-start:2px}
.svc-row.is-open .svc-toggle-chev{transform:rotate(225deg)}

/* --- Lab-card marks are inline SVGs now (no ✳/◐ glyphs). --- */
.lab-card .mark{display:block;line-height:1;color:#e58cff}
.lab-card .mark svg{width:56px;height:56px}
.hero .kicker svg{flex:none}

/* --- MOBILE REDESIGN PASS (Khaled 2026-11-30 08:43: mobile design = 0).
   390px + 820px, every page, both languages. --- */
@media (max-width:820px){
  .hero h1{font-size:clamp(44px,11vw,72px);max-width:16ch}
  .hero .sub{font-size:17px}
  .svc-row-visual{border-radius:16px}
  .svc-row-bignum{font-size:56px}
  .final-cta__orb--a{width:260px;height:260px}
  .final-cta__orb--b{width:200px;height:200px}
  .final-cta__orb--c{width:150px;height:150px}
  .sub-grid{grid-template-columns:1fr}
  .article-related__head h2{max-width:none}
}
@media (max-width:700px){
  :root{--header-h:72px}
  header.site-header{padding:0 16px;gap:10px}
  .brand img,.site-logo{height:28px}
  header.site-header.is-compact .brand img,header.site-header.is-compact .site-logo{height:26px}
  .menu-btn.hamburger{width:46px;height:46px}
  .hero{min-height:0;padding-top:calc(var(--header-h) + 36px)}
  .hero h1{font-size:clamp(40px,10.5vw,52px);line-height:1.08}
  .hero .kicker{font-size:14px;flex-wrap:wrap}
  .hero .cta-row{flex-direction:column;align-items:stretch}
  .hero .cta-row .btn{justify-content:center;text-align:center}
  .hero .scroll-hint{display:none}
  section{padding:56px 5%}
  .page-hero{padding:calc(var(--header-h) + 36px) 5% 40px}
  .page-hero h1{font-size:clamp(34px,9vw,44px)}
  .page-hero .sub{font-size:16px}
  .svc-head{gap:12px}
  .svc-row{gap:16px;padding:26px 16px;margin-inline:-16px}
  .svc-row h3{font-size:26px}
  .svc-tagline{font-size:16px}
  .svc-cta{gap:12px}
  .svc-wa{padding:9px 16px}
  .svc-sol-row{gap:12px}
  .svc-sol-row .svc-row-icon{width:44px;height:44px}
  .svc-sol-main h3{font-size:18px}
  .svc-sol-main p{font-size:14px}
  .svc-phase-head{padding:28px 0 4px}
  .lab-grid{gap:14px}
  .lab-card{min-height:220px;padding:28px 22px}
  .lab-card h3{font-size:25px}
  .steps{gap:24px}
  .post-grid{gap:16px}
  .post-card__body{padding:18px 18px 16px}
  .post-card__title{font-size:20px}
  .post-card--lead .post-card__body{padding:22px 20px}
  .article-hero-cover{margin-top:28px}
  .article-hero-cover img{border-radius:14px}
  .article-body{font-size:17px}
  .article-body h2{font-size:25px;margin:44px 0 14px}
  .article-body blockquote{font-size:21px;margin:36px 0}
  .article-toc{margin-bottom:32px}
  .article-pager > div{padding:16px 18px}
  .cta-band{padding:44px 22px;border-radius:22px}
  .choice-grid{grid-template-columns:1fr}
  .form-card{padding:24px 18px}
  .form-row{grid-template-columns:1fr}
  .final-cta__inner{padding:40px 20px;gap:28px}
  section.contact.final-cta h2{font-size:34px}
  .foot-base-row{gap:4px}
  .foot-note-links{font-size:12.5px}
}
/* No horizontal scroll at any viewport — the negative-margin rows stay
   inside the section padding, and nothing may overflow the viewport. */
html,body{overflow-x:clip}
.svc-row,.svc-sol-row{max-width:100%}
img,svg,video,canvas{max-width:100%}

/* ============ UI MOMENTS INTERACTIONS — v1.1.6 (2026-11-30) ============
   Interaction mechanics adapted from UI Moments (guanmo-ai/ui-moments,
   MIT License, https://github.com/guanmo-ai/ui-moments) — see the credits
   note at the very end of this file. Only the MECHANICS are adapted
   (spring press, ripple, copy morph, sliding selection ring, step track,
   ring loader, stroke checklist, magnet parallax); all visuals are
   Stapx's own (Thmanyah, ink #221536, purple #8b20ed, lilac #fcfaff).
   Every rule below is gated on body.stapx-animations-on (the theme's
   animations toggle) and the global prefers-reduced-motion block above
   already zeroes all transitions/animations when motion is off. Nothing
   here moves off-screen: press/ripple/ring are pointer-driven, and the
   magnet only runs on fine pointers over a service visual. */

/* --- shared: springy press (Copy Button / Bell Toggle press mechanic) --- */
body.stapx-animations-on .btn,
body.stapx-animations-on .svc-wa,
body.stapx-animations-on .svc-learn,
body.stapx-animations-on .svc-toggle,
body.stapx-animations-on .wa-action,
body.stapx-animations-on .svc-tabs [role="tab"],
body.stapx-animations-on .choice,
body.stapx-animations-on .copy-link{transition-timing-function:var(--ease)}
body.stapx-animations-on .btn{transition:transform .25s,box-shadow .25s,background .25s,scale .3s var(--spring)}
body.stapx-animations-on .svc-wa{transition:transform .2s,box-shadow .2s,scale .3s var(--spring)}
body.stapx-animations-on .choice{transition:border-color .2s,box-shadow .2s,scale .3s var(--spring)}
body.stapx-animations-on .svc-toggle{transition:scale .3s var(--spring)}
body.stapx-animations-on .wa-action{transition:transform .25s,scale .3s var(--spring)}
body.stapx-animations-on .svc-tabs [role="tab"]{transition:background .25s,color .25s,border-color .25s,box-shadow .25s,scale .3s var(--spring)}
body.stapx-animations-on .copy-link{transition:scale .3s var(--spring),background .3s,color .3s,border-color .3s}
body.stapx-animations-on .btn:active,
body.stapx-animations-on .svc-wa:active,
body.stapx-animations-on .svc-learn:active,
body.stapx-animations-on .svc-toggle:active,
body.stapx-animations-on .wa-action:active,
body.stapx-animations-on .svc-tabs [role="tab"]:active,
body.stapx-animations-on .choice:active,
body.stapx-animations-on .copy-link:active{scale:.96;transition-duration:.1s}

/* --- shared: label swap (two labels ride one strip, spring apart) --- */
.stapx-swap{display:grid;overflow:hidden}
.stapx-swap>*{grid-area:1/1;transition:translate .4s var(--spring),opacity .25s}
.stapx-swap>:last-child{translate:0 110%;opacity:0}
[data-done] .stapx-swap>:first-child,[data-state="loading"] .stapx-swap>:first-child{translate:0 -110%;opacity:0}
[data-done] .stapx-swap>:last-child,[data-state="loading"] .stapx-swap>:last-child{translate:0 0;opacity:1}

/* --- touch ripple (Ripple Pad mechanic): a ring grows from the tap point --- */
.btn,.choice,.svc-toggle,.wa-action{position:relative;overflow:hidden}
.stapx-ripple{position:absolute;border-radius:50%;border:2px solid rgba(139,32,237,.45);pointer-events:none;transform:translate(-50%,-50%) scale(.05);opacity:.9;animation:stapx-ripple .7s var(--ease) forwards}
.btn .stapx-ripple,.wa-action .stapx-ripple{border-color:rgba(255,255,255,.55)}
@keyframes stapx-ripple{to{transform:translate(-50%,-50%) scale(1);opacity:0}}

/* --- copy-link button (Copy Button mechanic): clip morphs to a drawn check --- */
.article-share{display:flex;justify-content:center;margin-top:36px}
.copy-link{display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 20px;border:1px solid var(--line);border-radius:23px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.1),0 6px 18px rgba(0,0,0,.07);font:inherit;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer}
.copy-link[data-done]{color:var(--purple);border-color:rgba(139,32,237,.4)}
.copy-icon{display:grid}
.copy-icon svg{grid-area:1/1;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:scale .35s var(--spring),opacity .2s}
.copy-icon .check{stroke-width:2.2;stroke-dasharray:16;stroke-dashoffset:16;transition:stroke-dashoffset .35s var(--ease) .1s}
.copy-link[data-done] .copy-icon .clip{scale:.4;opacity:0}
.copy-link[data-done] .copy-icon .check{stroke-dashoffset:0}

/* --- consultation choice ring (Plan Picker mechanic): a border ring springs
       between the type cards; the check badge rides on its end corner --- */
.choice-grid{position:relative}
.choice-ring{position:absolute;top:0;left:0;border:2px solid var(--purple);border-radius:18px;pointer-events:none;z-index:1;opacity:0;transition:translate .5s var(--spring),width .45s var(--spring),height .45s var(--spring),opacity .25s}
.choice-ring[data-show]{opacity:1}
.choice-ring[data-move]{animation:choice-ring-squash .5s var(--ease)}
@keyframes choice-ring-squash{40%{scale:1.05 .95}}
.choice-ring__badge{position:absolute;top:-9px;inset-inline-end:-9px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--purple);box-shadow:0 2px 8px rgba(139,32,237,.4)}
.choice-ring__badge svg{width:12px;height:12px}

/* --- booking step track (Step Track mechanic): dots + fill line + labels --- */
.bk-steps{position:relative;display:flex;justify-content:space-between;max-width:560px;margin:4px auto 0}
.bk-steps::before,.bk-steps__line{position:absolute;top:50%;inset-inline-start:8px;inset-inline-end:8px;height:2px;margin-top:-1px;content:"";background:var(--line);border-radius:2px}
.bk-steps__line{inset-inline-end:auto;width:calc((100% - 16px) * var(--f,0));background:var(--purple);transition:width .5s var(--ease)}
.bk-steps i{position:relative;width:16px;height:16px;border-radius:50%;border:2px solid var(--line);background:#fff;transition:border-color .3s,background .3s}
.bk-steps i[data-on]{border-color:var(--purple);background:var(--purple)}
.bk-steps i[data-current]{animation:bk-step-pop .45s var(--spring)}
@keyframes bk-step-pop{50%{scale:1.35}}
.bk-steps__labels{display:flex;justify-content:space-between;max-width:560px;margin:10px auto 0;font-size:13px;color:var(--muted)}
.bk-steps__labels span{width:33.333%;text-align:center}
.bk-steps__labels span:first-child{text-align:start}
.bk-steps__labels span:last-child{text-align:end}
.bk-steps__labels span[data-on]{color:var(--purple);font-weight:700}

/* --- booking submit ring loader (Download Ring + Tide Ring motif): the
       submit button keeps its shape and shows an orbiting ring while the
       form posts, so a tap can never look dead or double-submit --- */
.bk-submit__ring{width:20px;height:20px;opacity:0;transition:opacity .25s;flex:none}
.bk-submit__ring circle{fill:none;stroke-width:3}
.bk-submit__ring .track{stroke:rgba(255,255,255,.35)}
.bk-submit__ring .bar{stroke:#fff;stroke-linecap:round;stroke-dasharray:81.7;stroke-dashoffset:20}
.bk-submit[data-state="loading"] .bk-submit__ring{opacity:1;animation:bk-spin .7s linear infinite}
.bk-submit[data-state="loading"]{pointer-events:none;opacity:.88}
@keyframes bk-spin{to{rotate:1turn}}

/* --- animations-off: the new motion is instant/off, same as the rest --- */
body.stapx-animations-off .stapx-ripple{display:none}
body.stapx-animations-off .choice-ring,body.stapx-animations-off .bk-steps__line,body.stapx-animations-off .svc-list li::before{transition:none}
body.stapx-animations-off .faq summary::after{transition:none}
body.stapx-animations-off .bk-submit__ring{animation:none}
body.stapx-animations-off .bk-steps i[data-current]{animation:none}
body.stapx-animations-off .choice-ring[data-move]{animation:none}
@media (prefers-reduced-motion:reduce){
  .stapx-ripple{display:none}
  .choice-ring,.bk-steps__line{transition:none}
  .faq summary::after{transition:none}
  .bk-submit__ring{animation:none}
  .bk-steps i[data-current]{animation:none}
  .choice-ring[data-move]{animation:none}
}
/* Mobile: the choice ring follows the single-column cards (JS measures the
   live geometry, so no extra CSS is needed); the step labels shrink. */
@media (max-width:700px){
  .bk-steps__labels{font-size:12px}
  .copy-link{height:44px;padding:0 18px}
}

/* ============ CREDITS — UI Moments (MIT) ============
   The interaction mechanics in the "UI MOMENTS INTERACTIONS" section above
   (spring press, touch ripple, copy-button morph, sliding selection ring,
   step track, ring loader, stroke checklist, magnet parallax) are adapted
   from UI Moments by Guanmo (观默), https://github.com/guanmo-ai/ui-moments,
   licensed under the MIT License (Copyright (c) 2026 guanmo-ai). The full
   attribution + MIT license text are in the theme's CREDITS.md.
   All Stapx visuals, copy, colours and typography are Stapx's own; no UI
   Moments branding, fonts or imagery are used. */

/* ============ v1.1.9 — SINGLE-SERVICE PAGE VOID FIX (Khaled 2026-11-30) ============
   The Problem section was a full-width short check-list (the rest of the
   1240px wrap empty); "What's included" sat in a .two-col whose editor
   column is empty for these pages (post_content is only the excerpt
   paragraph, which the de-dup strip removes); Deliverables had the same
   bare-list void. Fix: Problem = text + the service's own animated visual
   panel; What's included + Deliverables = full-width card grids (the same
   .sub-grid pattern as the solutions-page fix). No text changed, only layout. */

/* Problem: two-column composition — text + animated visual panel. */
.svc-problem{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:48px;align-items:center}
.svc-visual-panel{border:1px solid var(--line);border-radius:24px;background:#fff;padding:28px;display:flex;align-items:center;justify-content:center;min-height:340px;overflow:hidden}
.svc-visual-panel svg{display:block;width:100%;height:auto;max-width:420px}

/* The panel's SVG motion uses the same keyframes + gating as the service
   rows (animations on + motion allowed + panel in view via .svc-inview,
   added by site-wp.js). Reduced-motion / animations-off keep it static. */
@media (prefers-reduced-motion:no-preference){
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-needle{animation:sv-sway 5.5s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 50%}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-ring{animation:sv-spin 48s linear infinite;transform-box:fill-box;transform-origin:50% 50%;stroke-dasharray:2 6}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-orbit{animation:sv-spin 26s linear infinite;transform-box:view-box;transform-origin:180px 110px}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-dot{animation:sv-pulse-dot 3.4s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-bar{animation:sv-grow 3.8s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-draw{stroke-dasharray:100;stroke-dashoffset:100;animation:sv-draw 1.6s ease-out .25s forwards}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-blink{animation:sv-blink 1.5s ease-in-out infinite}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-pulse{animation:sv-breathe 4.6s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
  /* Stagger the repeating parts so the motion never pulses in lockstep. */
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-dot:nth-of-type(2){animation-delay:-.9s}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-dot:nth-of-type(3){animation-delay:-1.7s}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-bar:nth-of-type(2){animation-delay:-.9s}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-bar:nth-of-type(3){animation-delay:-1.8s}
  body.stapx-animations-on .svc-visual-panel.svc-inview svg .sv-bar:nth-of-type(4){animation-delay:-2.6s}
  /* Hover / tap: the motion answers — needle swings faster, orbit quickens. */
  body.stapx-animations-on .svc-visual-panel:hover svg .sv-needle,body.stapx-animations-on .svc-visual-panel:active svg .sv-needle{animation-duration:2.1s}
  body.stapx-animations-on .svc-visual-panel:hover svg .sv-orbit,body.stapx-animations-on .svc-visual-panel:active svg .sv-orbit{animation-duration:9s}
  body.stapx-animations-on .svc-visual-panel:hover svg .sv-dot,body.stapx-animations-on .svc-visual-panel:active svg .sv-dot{animation-duration:1.6s}
}

/* Editor copy that survives the de-dup strip, shown as a lead above the
   "What's included" grid (only rendered when there is genuine extra copy). */
.svc-lead{margin-top:24px;max-width:72ch;font-size:18px;line-height:1.75;color:var(--muted)}
.svc-lead p{margin:0 0 12px}
.svc-lead p:last-child{margin-bottom:0}

/* Single-phrase item card (What's included / Deliverables): checkmark +
   text, laid out as a full-width grid via .sub-grid. Dark variant for the
   Deliverables section. Checkmark reuses the SVG-mask from .check-list. */
.svc-card{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 22px;font-size:17px;font-weight:600;line-height:1.55}
.svc-card::before{content:"";flex:none;width:20px;height:20px;margin-top:3px;background:var(--purple);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-size:contain;mask-repeat:no-repeat}
.dark .svc-card{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);color:#f5f0ff}
.dark .svc-card::before{background:#e58cff}

/* Mobile: Problem stacks (text above, panel below); the card grids already
   collapse to one column via .sub-grid. */
@media (max-width:900px){
  .svc-problem{grid-template-columns:1fr;gap:28px}
  .svc-visual-panel{min-height:0;padding:20px}
}
