/* Saudi EMS — site styles. Brand: navy #10203F, purple #561F7F, cyan #22B5E6. Font: Cairo. RTL-safe (logical properties). */
:root{--navy:#10203F;--navy-2:#0A1530;--navy-3:#22305A;--line:#3D4A6B;--purple:#561F7F;--purple-2:#3C147B;--lilac:#F2ECF8;--cyan:#22B5E6;--cyan-2:#35A9D9;--tint:#F4F7FA;--border:#E3E9EF;--muted:#51627D;--text:#10203F;--green:#1F8F4E;--radius:16px;--wrap:1200px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Cairo',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--text);background:#fff;font-size:16px;line-height:1.65}
img,video{max-width:100%;display:block}
a{color:var(--text)}a:hover{color:var(--purple)}
h1,h2,h3{margin:0;line-height:1.25;font-weight:900}
h2{font-size:clamp(26px,3.2vw,36px)}
p{margin:0}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:24px}
.wrap--narrow{max-width:820px}
.skip{position:absolute;inset-inline-start:-999px;top:8px;background:#fff;padding:8px 12px;z-index:100}
.skip:focus{inset-inline-start:8px}
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.ltr-num{unicode-bidi:plaintext}
.muted{color:var(--muted)}
.stack{display:flex;flex-direction:column;gap:24px}
.stack--tight{gap:10px}
.lead{color:var(--muted);font-size:17px;line-height:1.8;max-width:820px}
.lead--light{color:#C6D4E2}
.h3{font-size:20px;font-weight:800;margin:0}
.strong-link{font-weight:700}
.link-arrow{font-weight:700;color:var(--purple);text-decoration:none}
/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 24px;border-radius:999px;font:inherit;font-weight:800;font-size:16px;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:transform .15s,background .15s}
.btn:hover{transform:translateY(-1px)}
.btn--purple{background:var(--purple);color:#fff}.btn--purple:hover{background:var(--purple-2);color:#fff}
.btn--cyan{background:var(--cyan);color:var(--navy-2)}.btn--cyan:hover{color:var(--navy-2);background:#4cc5ee}
.btn--navy{background:var(--navy);color:#fff}.btn--navy:hover{color:#fff;background:var(--navy-3)}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}.btn--ghost:hover{color:#fff;background:rgba(255,255,255,.1)}
.btn--outline{background:#fff;color:var(--navy);border-color:var(--navy)}
.btn--sm{min-height:44px;padding:8px 18px;font-size:14px;border-radius:10px}
.btn--block{width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
.btn-row--center{justify-content:center}
/* Top bar + header */
.topbar{background:var(--navy-2);color:#C6D4E2;font-size:13px;border-bottom:1px solid var(--navy-3)}
.topbar__inner{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;justify-content:space-between;padding-block:6px}
.topbar a{color:#C6D4E2;text-decoration:none}.topbar a:hover{color:#fff}
.topbar__info,.topbar__actions{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}
.socials{display:inline-flex;gap:2px}
.socials a{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;color:inherit}
.lang-btn{color:#fff!important;font-weight:700;border:1px solid var(--line);border-radius:6px;padding:4px 10px}
.site-header{background:var(--navy);position:relative;z-index:20}
.site-header--overlay{position:absolute;inset-inline:0;background:linear-gradient(180deg,rgba(10,21,48,.65),rgba(10,21,48,0))}
.site-header__inner{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center;justify-content:space-between;padding-block:14px}
.brand img{height:58px;width:auto}
.main-nav{display:flex;flex-wrap:wrap;gap:4px 22px}
.main-nav a{color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:10px 2px;border-bottom:2px solid transparent}
.main-nav a:hover,.main-nav a[aria-current="page"]{color:var(--cyan-2);border-bottom-color:var(--cyan-2)}
.nav-toggle{display:none;background:transparent;border:1px solid var(--line);color:#fff;border-radius:8px;width:44px;height:44px;align-items:center;justify-content:center;cursor:pointer}
@media (max-width:980px){
  .nav-toggle{display:inline-flex}
  .main-nav{display:none;order:4;width:100%;flex-direction:column;gap:0;background:var(--navy);border-radius:12px;padding:8px 16px}
  .main-nav.is-open{display:flex}
  .main-nav a{padding:12px 0;border-bottom:1px solid var(--navy-3)}
  .header-cta{display:none}
  .site-header--overlay{background:var(--navy);position:relative}
  .topbar__info span{display:none}
}
/* Hero */
.hero{position:relative;min-height:min(92vh,760px);display:flex;align-items:center;justify-content:center;overflow:hidden;color:#fff;background:var(--navy)}
.hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero__shade{position:absolute;inset:0;background:rgba(10,21,48,.58)}
.hero__content{position:relative;z-index:2;text-align:center;padding-block:150px 120px;max-width:1000px}
.slide{display:flex;flex-direction:column;align-items:center;gap:22px}
.slide.anim{animation:fade .5s ease}
.slide[hidden]{display:none}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.pill{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 16px;font-size:14px;font-weight:700}
.hero__title{font-size:clamp(34px,5.4vw,66px);font-weight:900;line-height:1.2}
.hero__title .accent{color:var(--cyan)}
.hero__body{font-size:clamp(16px,1.8vw,20px);line-height:1.8;color:#DCE6F0;max-width:720px}
.hero__arrow{position:absolute;top:50%;z-index:3;width:48px;height:48px;border-radius:999px;border:none;background:rgba(255,255,255,.85);color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer}
.hero__arrow--prev{inset-inline-start:24px}.hero__arrow--next{inset-inline-end:24px}
[dir="rtl"] .hero__arrow svg{transform:scaleX(-1)}
.hero__dots{position:absolute;bottom:36px;inset-inline:0;z-index:3;display:flex;justify-content:center;gap:10px}
.hero__dots button{width:12px;height:12px;border-radius:999px;border:none;padding:0;background:rgba(255,255,255,.55);cursor:pointer;transition:width .2s}
.hero__dots button[aria-current="true"]{width:32px;background:var(--cyan)}
.hero__ecg{position:absolute;inset-inline:0;bottom:70px;width:100%;height:60px;opacity:.35;fill:none;stroke:var(--cyan);stroke-width:2}
@media (max-width:700px){.hero__arrow{display:none}.hero__content{padding-block:60px 100px}}
.strip{background:#fff;border-bottom:1px solid var(--border)}
.strip__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding-block:24px}
.strip__item{font:inherit;text-align:start;display:flex;flex-direction:column;gap:2px;padding:14px 16px;min-height:44px;border-radius:12px;cursor:pointer;background:#fff;color:var(--text);border:1px solid var(--border)}
.strip__item strong{font-size:17px;font-weight:800}.strip__item span{font-size:13px;color:var(--muted)}
.strip__item.is-active{background:var(--lilac);border:2px solid var(--purple)}
/* Sections */
.section{padding-block:72px}
.section--tight{padding-block:32px}
.section--first{padding-top:56px;padding-bottom:16px}
.section--tint{background:var(--tint)}
.section--navy{background:var(--navy);color:#fff}
.sec-head{display:flex;flex-direction:column;gap:10px}
.eyebrow{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--purple)}
.lang-ar .eyebrow{letter-spacing:0;font-size:14px}
.eyebrow--light{color:var(--cyan-2)}
.band{background:var(--navy);color:#fff}
.band--photo{background-image:linear-gradient(90deg,rgba(10,21,48,.92) 0%,rgba(10,21,48,.7) 55%,rgba(10,21,48,.45) 100%),var(--band-img);background-size:cover;background-position:center}
[dir="rtl"] .band--photo{background-image:linear-gradient(270deg,rgba(10,21,48,.92) 0%,rgba(10,21,48,.7) 55%,rgba(10,21,48,.45) 100%),var(--band-img)}
.band__inner{display:flex;flex-direction:column;gap:14px;padding-block:72px 80px}
.band--photo .band__inner{padding-block:96px 104px}
.band h1{font-size:clamp(32px,4.6vw,52px);max-width:860px}
.band p{color:#C6D4E2;font-size:19px;line-height:1.8;max-width:760px}
/* Grids */
.grid{display:grid;gap:20px}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.grid--auto{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.grid--cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:24px}
.split{display:flex;flex-wrap:wrap;gap:40px}
.split>*{flex:1 1 420px;min-width:0}
.split--center{align-items:center}
.split--wide>:first-child{flex:999 1 560px}
.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:8px}
.card strong{font-size:18px}.card span{color:var(--muted);line-height:1.75;font-size:15px}
.card--navy{background:var(--navy);border-color:var(--navy);color:#fff}.card--navy span{color:#C6D4E2}
.card--lilac{background:var(--lilac);border-color:var(--lilac)}
.card--big{padding:28px}
.statement{border-radius:var(--radius);padding:36px;display:flex;flex-direction:column;gap:12px;color:#fff}
.statement p{font-size:clamp(19px,2vw,24px);font-weight:800;line-height:1.6}
.statement--navy{background:var(--navy)}.statement--purple{background:var(--purple)}.statement--purple .eyebrow{color:#E6D6F5}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{border-radius:999px;padding:8px 16px;font-size:15px;font-weight:700;text-decoration:none}
.chip--outline{border:1px solid #C9D3DD;color:var(--text)}
.chip--purple{background:var(--lilac);color:var(--purple-2);font-size:14px;padding:6px 14px}
.chip--icon{display:inline-flex;gap:8px;align-items:center}
.list{margin:0;padding-inline-start:20px;color:#33475B;line-height:2}
.photo{width:100%;height:340px;object-fit:cover;border-radius:var(--radius)}
.photo--wide{height:clamp(240px,32vw,400px)}
.fig{margin:0;display:flex;flex-direction:column;gap:8px}
.fig img{width:100%;height:220px;object-fit:cover;border-radius:14px}
.fig figcaption{font-size:14px;color:var(--muted);font-weight:600}
/* Services cards (home) */
.svc-card{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:var(--text);background:#fff;transition:box-shadow .2s,transform .2s}
.svc-card:hover{box-shadow:0 14px 30px rgba(16,32,63,.12);transform:translateY(-2px);color:var(--text)}
.svc-card img{width:100%;height:200px;object-fit:cover}
.svc-card__body{padding:20px;display:flex;flex-direction:column;gap:6px}
.svc-card__body strong{font-size:20px;font-weight:900}.svc-card__body span{color:var(--muted);line-height:1.7}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;margin-bottom:40px}
.stats--inline{display:flex;flex-wrap:wrap;gap:36px;margin:0}
.stat{display:flex;flex-direction:column}
.stat strong{font-size:clamp(34px,4vw,52px);font-weight:900;color:var(--purple);line-height:1.1}
.stat span{color:var(--muted);font-weight:600}
.stats--small .stat strong{font-size:28px}
.refs{display:flex;flex-direction:column;gap:14px}
.refs__title{font-size:22px;font-weight:900}
.cta-band{background:var(--purple);color:#fff}
.cta-band__inner{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between;padding-block:48px}
.cta-band h2{font-size:clamp(24px,3vw,32px)}.cta-band p{color:#EADCF6;margin-top:6px}
/* About */
.subnav{background:var(--tint);border-bottom:1px solid var(--border)}
.subnav__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px 28px;padding-block:18px}
.subnav__group{display:flex;flex-direction:column;gap:6px}
.subnav__group>span{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.subnav__group div{display:flex;flex-wrap:wrap;gap:4px 14px}
.subnav__group a{font-weight:700;font-size:15px;text-decoration:none;padding:4px 0}
.pills{display:flex;flex-wrap:wrap;gap:10px}
.subnav--pills .pills{padding-block:16px}
.pills a,.pills button{border:1px solid #C9D3DD;background:#fff;color:var(--text);border-radius:999px;padding:10px 18px;min-height:44px;text-decoration:none;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.pills button[aria-selected="true"]{background:var(--purple);border-color:var(--purple);color:#fff}
.timeline{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.timeline li{border-top:3px solid var(--navy);padding-top:16px;display:flex;flex-direction:column;gap:6px}
.timeline li.is-first{border-top-color:var(--purple)}
.timeline__year{font-weight:900;font-size:24px;color:var(--navy)}.is-first .timeline__year{color:var(--purple)}
.timeline span:last-child{color:var(--muted);line-height:1.7;font-size:15px}
.person{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
.person img{width:100%;height:240px;object-fit:cover;object-position:top}
.person div{padding:18px;display:flex;flex-direction:column;gap:6px}
.person strong{font-size:18px}.person span{color:var(--muted);font-size:14px;line-height:1.7}
.person .person__role{color:var(--purple);font-weight:700}
.shots{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
.shots__main{flex:2 1 420px;min-width:0;height:300px;object-fit:cover;border-radius:14px;border:1px solid var(--border)}
.shots__phone{flex:0 0 140px;height:300px;object-fit:contain;background:#fff;border-radius:14px;border:1px solid var(--border)}
.cert{background:#fff;color:var(--text);border-radius:18px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}
.cert__frame{background:linear-gradient(160deg,#F2ECF8,#E6EEF6);padding:28px 28px 0;display:flex;justify-content:center}
.cert__frame img{width:100%;max-width:260px;height:340px;object-fit:cover;object-position:top;border-radius:6px 6px 0 0;box-shadow:0 10px 24px rgba(16,32,63,.25)}
.cert__body{padding:22px 24px 24px;display:flex;flex-direction:column;gap:6px;border-top:4px solid var(--purple)}
.cert__body strong{font-size:20px;font-weight:900}.cert__body span{color:var(--muted);font-size:14px;line-height:1.7}
.cert__body .cert__issuer{color:var(--purple);font-weight:700}
.badges{display:flex;flex-wrap:wrap;gap:12px}
.badge{display:inline-flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:14px;padding:12px 18px}
.badge span{color:#C6D4E2;font-size:13px}
.doc-row{border:1px solid var(--border);border-radius:10px;padding:14px 16px;font-weight:700;background:#fff}
/* Knowledge */
.feature{display:flex;flex-wrap:wrap;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.feature[hidden]{display:none}
.feature__media{flex:1 1 520px;min-height:340px;background:var(--navy-3) var(--feat-img) center/cover;display:flex;align-items:center;justify-content:center;position:relative}
.feature__play{width:64px;height:64px;border-radius:999px;background:var(--purple);color:#fff;display:flex;align-items:center;justify-content:center}
.feature__body{flex:1 1 380px;padding:32px}
.post-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:var(--text);background:#fff}
.post-card[hidden]{display:none}
.post-card img{width:100%;height:170px;object-fit:cover}
.post-card>div{padding:18px;display:flex;flex-direction:column;gap:8px}
.post-card h3{font-size:17px;line-height:1.45}
.post-card__kind{font-size:12px;font-weight:800;color:var(--purple);text-transform:uppercase;letter-spacing:.06em}
.entry{font-size:17px;line-height:1.9}.entry img{border-radius:12px;height:auto}.entry h2,.entry h3{margin:28px 0 10px}.entry p{margin:0 0 16px}
.pager{margin-top:24px}
/* Contact + forms */
.contact-card{border:1px solid var(--border);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--text);word-break:break-word}
.contact-card strong{font-size:18px}.contact-card span,.contact-card a{color:var(--muted)}
.contact-card--navy{background:var(--navy);border-color:var(--navy);color:#fff}.contact-card--navy span{color:#C6D4E2}
.contact-card--green{background:var(--green);border-color:var(--green);color:#fff}.contact-card--green span{color:#E3F5EA}
.contact-card--navy:hover,.contact-card--green:hover{color:#fff}
.form-box{background:var(--tint);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:18px}
.seg{display:inline-flex;gap:4px;background:var(--border);border-radius:999px;padding:4px;align-self:flex-start}
.seg button{border:none;border-radius:999px;font:inherit;font-size:15px;font-weight:800;padding:10px 20px;min-height:44px;cursor:pointer;background:transparent;color:var(--muted)}
.seg button[aria-selected="true"]{background:#fff;color:var(--text)}
.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form--card{background:#fff;color:var(--text);border-radius:var(--radius);padding:28px}
.fld{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#33475B}
.fld--full{grid-column:1/-1}
.fld input,.fld select,.fld textarea{font:inherit;font-weight:400;font-size:15px;color:var(--text);border:1px solid #C9D3DD;border-radius:8px;padding:11px 12px;background:#fff;min-height:44px;width:100%}
[dir="rtl"] .fld input[dir="ltr"]{text-align:right}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#33475B;line-height:1.5}
.consent input{width:20px;height:20px;margin:0;flex:none}
.hp{position:absolute!important;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:560px){.form{grid-template-columns:1fr}}
.notice{max-width:var(--wrap);margin:20px auto 0;padding:14px 20px;border-radius:12px;font-weight:700}
.notice--ok{background:#E3F5EA;color:#14532D}.notice--err{background:#FDE8E8;color:#7F1D1D}
.map{width:100%;height:260px;border:0;border-radius:var(--radius);background:#DCE4EC}
.map--link{display:flex;align-items:center;justify-content:center;color:var(--muted);text-decoration:none;font-weight:700}
.job{border:1px solid var(--border);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:12px}
.job__head{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:flex-start;justify-content:space-between}
.job h3{font-size:20px}
/* Footer */
.site-footer{background:var(--navy-2);color:#A9BBCD;font-size:14px}
.site-footer a{color:#A9BBCD;text-decoration:none}.site-footer a:hover{color:#fff}
.site-footer__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:32px;padding-block:56px 32px}
.site-footer__col{display:flex;flex-direction:column;gap:10px}
.site-footer__col strong{color:#fff}.site-footer__brand{font-size:18px}
.site-footer__bottom{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;padding-block:16px 96px;border-top:1px solid #1E3754}
/* Floating WhatsApp + Noor */
.float-actions{position:fixed;inset-inline-end:24px;bottom:24px;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.float-wa{width:56px;height:56px;border-radius:999px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,.22)}
.float-wa:hover{color:#fff;transform:scale(1.05)}
.noor{display:flex;flex-direction:column;align-items:flex-end;position:relative}
.noor summary{list-style:none;cursor:pointer;width:64px;height:64px;border-radius:999px;background:var(--purple);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.noor summary::-webkit-details-marker{display:none}
.noor[open] summary{background:var(--navy)}
.noor__panel{position:absolute;bottom:76px;inset-inline-end:0;width:min(340px,calc(100vw - 48px));background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 50px rgba(16,32,63,.3);border:1px solid var(--border)}
.noor__head{background:var(--navy);color:#fff;padding:14px 16px;display:flex;gap:10px;align-items:center}
.noor__head span{display:flex;flex-direction:column}.noor__head small{color:#7FE0A6;font-size:12px}
.noor__avatar{width:36px;height:36px;border-radius:999px;background:var(--purple);display:flex!important;align-items:center;justify-content:center;font-weight:900}
.noor__body{padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--tint)}
.noor__bubble{background:#fff;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.6;max-width:85%;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.noor__quick{display:flex;flex-wrap:wrap;gap:6px}
.noor__quick a{border:1px solid var(--purple);background:#fff;color:var(--purple);border-radius:999px;font-size:13px;font-weight:700;padding:8px 12px;text-decoration:none}
.noor__quick a:hover{background:var(--purple);color:#fff}
.noor__note{padding:10px 14px 14px;font-size:11px;color:var(--muted);text-align:center}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
