/* BSoft — site styles. Brand: charcoal + orange from the BSoft logo. */
@font-face{font-family:Plex;src:url(fonts/plex-ar-400.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:Plex;src:url(fonts/plex-ar-700.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:Plex;src:url(fonts/plex-lat-400.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:Plex;src:url(fonts/plex-lat-700.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}

:root{
  --ink:#2b2d33; --graphite:#4e505a; --muted:#5e616b; --line:#dfe1e5;
  --paper:#f3f4f6; --white:#fff; --orange:#f0901f; --orange-text:#a85c06; --wa:#1fa855;
  --wrap:1160px; --gut:clamp(16px,4vw,32px); --r:6px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font:400 1.0625rem/1.75 Plex,"Segoe UI",Tahoma,Arial,sans-serif;color:var(--ink);background:var(--white)}
[lang=en] body,body:lang(en){line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{line-height:1.25;margin:0 0 .5em;font-weight:700}
h1{font-size:clamp(2.1rem,5.2vw,3.6rem);letter-spacing:-.01em;line-height:1.15}
h2{font-size:clamp(1.6rem,3.4vw,2.35rem)}
h3{font-size:1.125rem}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0;list-style:none}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.lead{font-size:1.15rem;color:var(--muted);max-width:60ch}
.ic{width:1.2em;height:1.2em;flex:none;--accent:var(--orange)}
.sr,.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;inset-inline-start:8px;top:-60px;background:var(--ink);color:#fff;padding:8px 14px;z-index:20;border-radius:var(--r)}
.skip:focus{top:8px}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:2px}
section{padding-block:clamp(64px,9vw,112px)}
section[id]{scroll-margin-top:72px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:var(--r);font-weight:700;text-decoration:none;border:2px solid transparent;cursor:pointer;font:inherit;font-weight:700;transition:background-color .15s,border-color .15s}
.btn-main{background:var(--orange);color:var(--ink)}
.btn-main:hover{background:#ffa33a}
.btn-line{border-color:var(--ink);color:var(--ink)}
.btn-line:hover{background:var(--ink);color:#fff}

/* header */
.top{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:24px}
.brand img{height:42px;width:auto}
.nav{display:flex;align-items:center;gap:28px;font-weight:700;font-size:.98rem}
.nav a{text-decoration:none;padding-block:6px}
.nav a:hover{color:var(--orange-text)}
.nav-one{display:inline-flex;align-items:center;gap:7px;direction:ltr}
.nav-one img{height:19px;width:auto}
.nav .lang{border:1px solid var(--line);border-radius:var(--r);padding:4px 12px;font-weight:400}
.menu-btn{display:none;width:44px;height:44px;border:0;background:none;position:relative;cursor:pointer}
.menu-btn span:first-child,.menu-btn span:first-child::before,.menu-btn span:first-child::after{position:absolute;inset-inline:10px;height:2px;background:var(--ink);content:"";transition:transform .2s}
.menu-btn span:first-child{top:21px}
.menu-btn span:first-child::before{inset-inline:0;top:-7px}
.menu-btn span:first-child::after{inset-inline:0;top:7px}
.menu-btn[aria-expanded=true] span:first-child{background:transparent}
.menu-btn[aria-expanded=true] span:first-child::before{transform:translateY(7px) rotate(45deg)}
.menu-btn[aria-expanded=true] span:first-child::after{transform:translateY(-7px) rotate(-45deg)}

/* hero */
.hero{padding-block:clamp(48px,7vw,96px) 0;position:relative;isolation:isolate;background:#f5f6f7;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--bg-hero,none) center/cover no-repeat}
[dir=rtl] .hero::before{transform:scaleX(-1)}
@media (max-width:1000px){.hero::before{opacity:.35}}
.hero-in{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(32px,6vw,80px);align-items:center}
.hero-copy h1{max-width:17ch}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* the merge visual: 2008-2019 services funnel into ONE ERP and its modules (axis on the left in Arabic) */
.merge{display:grid;grid-template-columns:1fr 48px;column-gap:12px}
.merge>.past,.merge>.funnel,.merge>.orbit{grid-column:1}
.axis{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.85rem;color:var(--graphite)}
.axis b{direction:ltr;white-space:nowrap}
.axis i{flex:1;width:2px;min-height:24px;background:var(--graphite);position:relative}
.axis i::after{content:"";position:absolute;bottom:-1px;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top:8px solid var(--graphite);border-bottom:0}
.axis-1{grid-row:1/3}
.axis-2{grid-row:3;padding-top:10px}
.past{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.past li{border:1.5px dashed var(--orange);border-radius:var(--r);padding:12px 6px 10px;text-align:center;font-size:.88rem;line-height:1.35;color:var(--muted);background:rgba(255,255,255,.85);display:flex;flex-direction:column;align-items:center;gap:6px}
.past .ic{width:24px;height:24px;color:var(--graphite)}
.funnel{display:block;width:100%;height:60px}
.funnel path{fill:none;stroke:#9a9da5;stroke-width:1.5;vector-effect:non-scaling-stroke}
.orbit{position:relative;width:min(100%,400px);aspect-ratio:1;margin-inline:auto;border-radius:50%;background:radial-gradient(circle at 50% 38%,#5a5d66 0%,#3d3f46 48%,#2b2d33 78%,#24262b 100%);box-shadow:inset 0 2px 0 rgba(255,255,255,.08),0 18px 40px -18px rgba(43,45,51,.55)}
.orbit::before{content:"";position:absolute;top:-2px;left:50%;transform:translateX(-50%);border:8px solid transparent;border-top:10px solid #9a9da5;border-bottom:0}
.orbit-core{position:absolute;left:50%;top:50%;width:34%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:5px solid var(--orange);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.orbit-core img{height:46%;width:auto}
.orbit-core span{font-weight:700;font-size:clamp(.72rem,1.8vw,.95rem);direction:ltr;color:var(--ink)}
.mod{position:absolute;width:25%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:0;box-shadow:0 4px 12px rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px;text-align:center;font-size:clamp(.66rem,1.5vw,.8rem);line-height:1.2;font-weight:700;color:var(--ink)}
.mod .ic{width:clamp(18px,2.4vw,24px);height:clamp(18px,2.4vw,24px)}

@media (prefers-reduced-motion:no-preference){
  .js .past li{animation:fadeIn .5s both;animation-delay:calc(var(--i)*80ms)}
  .js .funnel path{stroke-dasharray:400;stroke-dashoffset:400;animation:draw .9s .55s forwards}
  .js .orbit{animation:rise .7s 1.1s both}
  .js .mod{animation:fadeIn .4s both;animation-delay:calc(1.5s + var(--i)*70ms)}
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* facts */
.facts{display:grid;grid-template-columns:repeat(4,1fr);margin:clamp(48px,7vw,88px) 0 0;position:relative}
.facts::before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;background:linear-gradient(180deg,#e8eaed,#dcdfe3);border-top:1px solid #d3d6db}
.facts div+div{border-color:#cfd2d8!important}
.facts div{padding:22px 0 30px;padding-inline-end:16px}
.facts div+div{border-inline-start:1px solid var(--line);padding-inline-start:24px}
.facts dt{font-size:.9rem;color:var(--muted)}
.facts dd{margin:4px 0 0;font-size:1.5rem;font-weight:700}

/* story timeline */
.story{background:linear-gradient(180deg,#eceef1,#f7f8f9)}
.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin-top:64px}
.timeline li{position:relative;padding-top:40px;border-top:2px solid var(--ink)}
.node{position:absolute;top:-23px;inset-inline-start:0;width:44px;height:44px;border-radius:50%;background:#fff;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center}
.node .ic{width:22px;height:22px}
.timeline li:last-child .node{border-color:var(--orange)}
.timeline li:last-child{border-top-color:var(--orange)}
.timeline li:not(:last-child)::after{content:"";position:absolute;top:-8px;inset-inline-end:-2px;border-block:7px solid transparent}
[dir=rtl] .timeline li:not(:last-child)::after{border-right:11px solid var(--ink)}
[dir=ltr] .timeline li:not(:last-child)::after{border-left:11px solid var(--ink)}
.yr{display:block;font-weight:700;color:var(--orange-text);margin-bottom:6px}
.timeline p{color:var(--muted);margin:0}

/* ONE ERP */
.one{background:linear-gradient(rgba(43,45,51,.55),rgba(43,45,51,.86)),var(--ink) var(--bg-dark,none) center top/cover no-repeat;color:#fff}
.one-logo{width:96px;height:96px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:24px;box-shadow:0 0 0 6px rgba(255,255,255,.08)}
.one-logo img{height:70px;width:auto}
.one .lead{color:#c9cbd2}
.one-intro{display:grid;grid-template-columns:minmax(0,760px) auto;justify-content:space-between;column-gap:48px}
.one-intro>*{grid-column:1}
.one-intro .one-logo{grid-column:2;grid-row:1/span 4;width:200px;height:200px;border-radius:28px;margin:0;align-self:center}
.one-intro .one-logo img{height:150px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.chips li{border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:5px 14px;font-size:.95rem;display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.04)}
.chips .ic{width:18px;height:18px;color:#fff}
.shot{margin:48px 0 0;border-radius:var(--r);overflow:hidden;border:1px solid rgba(255,255,255,.14)}
.points{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin:56px 0 44px}
.points div{border-top:3px solid var(--orange);padding-top:20px}
.points .ic-lg{width:34px;height:34px;color:#fff;margin-bottom:12px;display:block}
.points p{color:#c9cbd2;margin:0}

/* services */
.sec-head{max-width:640px;margin-bottom:40px}
.sec-head p{color:var(--muted)}
.svc{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.svc>div{background:linear-gradient(160deg,#f3f4f6,#fff);border:1px solid var(--line);border-radius:10px;padding:28px 24px}
.tile{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:12px;background:#fff;border:1px solid var(--line);margin-bottom:18px}
.tile .ic-lg{width:30px;height:30px;color:var(--ink)}
.svc p{color:var(--muted);margin:0}

/* clients */
.clients{padding-top:0}
.logos{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 8px}
.logos li{display:flex;align-items:center;justify-content:center;width:150px;height:88px;padding:14px}
.logos img{max-height:52px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.72;transition:filter .2s,opacity .2s}
.logos li:hover img{filter:none;opacity:1}

/* faq */
.faq{background:var(--paper)}
.faq-in{display:grid;grid-template-columns:1fr 2fr;gap:40px}
details{border-bottom:1px solid var(--line)}
details:first-child{border-top:1px solid var(--line)}
summary{cursor:pointer;list-style:none;padding:18px 0;font-weight:700;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--orange-text);transition:transform .2s}
details[open] summary::after{transform:rotate(45deg)}
details p{color:var(--muted);padding-bottom:18px;margin:0;max-width:65ch}

/* contact */
.contact-in{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(32px,6vw,72px);align-items:start}
.info li{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.info span{color:var(--muted);font-size:.92rem;display:inline-flex;align-items:center;gap:8px}
.info .ic{width:18px;height:18px;color:var(--graphite);flex:none}
.info .flag{width:24px;height:16px;flex:none;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.info a{text-decoration:none;font-weight:700;unicode-bidi:plaintext;text-align:start}
.info a:hover{color:var(--orange-text)}
.form{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:var(--paper);padding:clamp(20px,4vw,36px);border-radius:var(--r)}
.form label{display:flex;flex-direction:column;gap:6px;font-size:.92rem;font-weight:700}
.form .full{grid-column:1/-1}
.form input,.form textarea{font:inherit;font-weight:400;border:1px solid #c4c7ce;border-radius:var(--r);padding:10px 12px;background:#fff;color:var(--ink);min-height:46px}
.form input[dir=ltr]{text-align:start}
[dir=rtl] .form input[dir=ltr]{text-align:right}
.form input:focus,.form textarea:focus{border-color:var(--ink);outline:2px solid var(--orange);outline-offset:0}
.form-note{margin:0;font-weight:700;min-height:1.5em}
.form-note[data-state=sent]{color:#16723d}
.form-note[data-state=error]{color:#b42318}
.form button[disabled]{opacity:.6;cursor:wait}

/* footer */
.foot{background:linear-gradient(rgba(43,45,51,.7),rgba(43,45,51,.88)),var(--ink) var(--bg-footer,none) center/cover no-repeat;color:#c9cbd2;padding-block:48px}
.foot-one{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-weight:700;background:#fff;color:var(--ink);padding:4px 14px 4px 10px;border-radius:999px;direction:ltr}
.foot .foot-one img{height:22px;width:auto}
.foot-in{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px}
.foot img{height:40px;width:auto}
.foot p{margin:0}
.social{display:flex;gap:20px;margin-inline-start:auto}
.social a{text-decoration:none;color:#fff}
.social a:hover{color:var(--orange)}
.copy{width:100%;font-size:.88rem;border-top:1px solid rgba(255,255,255,.14);padding-top:16px;direction:ltr;text-align:start}
[dir=rtl] .copy{text-align:right}

/* whatsapp */
.wa{position:fixed;bottom:18px;inset-inline-end:18px;width:54px;height:54px;border-radius:50%;background:var(--wa);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.18);z-index:9}

/* responsive */
@media (max-width:1000px){
  .hero-in{grid-template-columns:1fr}
  .merge{max-width:520px}
  .timeline,.points{grid-template-columns:repeat(2,1fr)}
  .timeline li:nth-child(2n)::after{display:none}
  .faq-in{grid-template-columns:1fr;gap:16px}
  .one-intro{display:block}
  .one-intro .one-logo{width:96px;height:96px;border-radius:16px;margin-bottom:24px}
  .one-intro .one-logo img{height:70px}
}
@media (max-width:820px){
  .menu-btn{display:block}
  .nav{position:absolute;top:100%;inset-inline:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid var(--line);padding:8px var(--gut) 16px;display:none}
  .nav.open{display:flex}
  .nav a{padding:12px 0;border-bottom:1px solid var(--line)}
  .nav .lang{border:0;border-radius:0}
  .facts{grid-template-columns:repeat(2,1fr)}
  .facts dd{font-size:1.2rem}
  .facts div:nth-child(3){border-inline-start:0;padding-inline-start:0}
  .facts div:nth-child(n+3){border-top:1px solid var(--line)}
  .svc,.contact-in{grid-template-columns:1fr}
}
@media (max-width:560px){
  .timeline,.points{grid-template-columns:1fr}
  .timeline li::after{display:none}
  .form{grid-template-columns:1fr}
  .past li{font-size:.76rem;padding:10px 4px 8px}
  .merge{grid-template-columns:1fr 40px;column-gap:8px}
  .logos{gap:4px}
  .logos li{width:calc(33.3% - 4px);height:72px;padding:10px}
  .logos img{max-height:40px}
  .btn{width:100%}
  .actions{flex-direction:column}
  .brand img{height:36px}
}
