/* Layout: على نمط المرجع المرسل — شريط معلومات تواصل كحلي، قائمة بيضاء ثابتة، عرض شرائح بصور كاملة بحافة سفلية منحنية،
   أقسام بيضاء/رمادية فاتحة بعناوين كحلية وكلمة مميزة باللون التركوازي، بطاقات كحلية للأرقام، فوتر كحلي احترافي.
   يدعم العربية (RTL) والإنجليزية (LTR) بالخصائص المنطقية. ثيم فاتح واحد مقصود. */
:root {
  --navy: var(--brand-navy, #0E2A47);
  --navy-2: #0A1F36;
  --teal: var(--brand-teal, #14B39A);
  --teal-2: #0F9A85;
  --teal-soft: #E3F6F2;
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --ink: #0E2A47;
  --muted: #5B6B7C;
  --line: #E1E8EF;
  --on-dark: #EAF2F7;
  --on-dark-2: rgba(234,242,247,.7);
  --ph-bg: #FFF4D6;
  --ph-fg: #7A5300;
  --f-head: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Readex Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  --r: 18px;
  --shadow: 0 24px 60px -32px rgba(14,42,71,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.75 var(--f-body); -webkit-font-smoothing: antialiased; }
#ms-app { transition: opacity .3s ease; }
#ms-app.loading { opacity: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ph { background: var(--ph-bg); color: var(--ph-fg); border-radius: 6px; padding: 0 .35em; font-size: .92em; }
.hl { color: var(--teal); }

/* صور مع بديل أنيق إذا تعذر تحميلها */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #12365A 0%, #0E2A47 45%, #127E74 100%); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media.broken img { display: none; }
.media.broken::after, .media.noimg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0 6%, transparent 6.5%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.12) 0 10%, transparent 10.5%),
    radial-gradient(circle at 45% 80%, rgba(20,179,154,.35) 0 14%, transparent 14.5%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3C/svg%3E") center / 56px no-repeat;
}

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: 500 .98rem var(--f-body); padding: 13px 26px; border-radius: 10px; border: 0; cursor: pointer; background: var(--teal); color: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(20,179,154,.8); }
.btn:hover::after { transform: translateX(120%); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { box-shadow: 0 14px 30px -14px rgba(14,42,71,.8); }
.btn.white { background: #fff; color: var(--navy); }
.btn.line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { padding: 9px 18px; font-size: .9rem; }
.btn .bi { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.btn .bi svg { width: 14px; height: 14px; }

/* Top bar */
.topbar { background: var(--navy-2); color: var(--on-dark-2); font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 44px; flex-wrap: wrap; padding-block: 6px; }
.tb-info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tb-info span, .tb-info a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tb-info .ic { width: 15px; height: 15px; color: var(--teal); }
.tb-end { display: flex; align-items: center; gap: 10px; }
.tb-hours { display: inline-flex; align-items: center; gap: 8px; background: rgba(20,179,154,.16); color: #BDF1E6; border-radius: 6px; padding: 4px 12px; }
.tb-hours .ic { width: 15px; height: 15px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; border: 0; border-radius: 6px; padding: 4px 12px; cursor: pointer; font-weight: 500; font-size: .84rem; }
.lang-btn .ic { width: 15px; height: 15px; }
.tb-hours .ph, .tb-info .ph { background: rgba(255,244,214,.12); color: #FFD98A; }
@media (max-width: 760px) { .tb-info span.addr, .tb-info a.mail, .tb-hours { display: none; } }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #fff; }
#ms-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); transition: box-shadow .3s ease; }
#ms-header.scrolled { box-shadow: 0 10px 30px -20px rgba(14,42,71,.45); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; transition: min-height .3s ease; }
#ms-header.scrolled .navbar { min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 76px; width: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(14,42,71,.12)); transition: transform .4s var(--ease), height .3s var(--ease); }
.logo:hover img { transform: rotate(-4deg) scale(1.04); }
#ms-header.scrolled .logo img { height: 60px; }
.logo-big img { height: 140px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
@media (max-width: 760px) { .logo img { height: 50px; } .logo-big img { height: 104px; } }
@media (max-width: 380px) { .logo .logo-text small { display: none; } }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, var(--teal), var(--navy)); display: grid; place-items: center; color: #fff; flex: none; }
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { display: grid; line-height: 1.1; }
.logo-text b { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.logo-text small { font-size: .72rem; color: var(--teal); font-weight: 500; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; text-decoration: none; padding: 10px 14px; font-weight: 500; font-size: .96rem; color: var(--ink); transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .navbar { flex-wrap: wrap; }
  .nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  #ms-header.open .nav { display: flex; }
  .nav-end .btn { display: none; }
}

/* Hero slideshow */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.slides { position: relative; min-height: clamp(560px, 62vw, 760px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.on { opacity: 1; visibility: visible; }
.slide .media { position: absolute; inset: 0; }
.slide.on .media img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,54,.2) 0%, rgba(10,31,54,.55) 45%, rgba(10,31,54,.92) 100%); }
[dir="ltr"] .slide::after { background: linear-gradient(270deg, rgba(10,31,54,.2) 0%, rgba(10,31,54,.55) 45%, rgba(10,31,54,.92) 100%); }
.slide-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-block: 80px 140px; }
.slide-copy { max-width: 620px; display: grid; gap: 20px; justify-items: start; }
.slide.on .slide-copy > * { animation: rise .9s var(--ease) both; }
.slide.on .slide-copy > :nth-child(2) { animation-delay: .12s; }
.slide.on .slide-copy > :nth-child(3) { animation-delay: .24s; }
.slide.on .slide-copy > :nth-child(4) { animation-delay: .36s; }
.slide.on .slide-copy > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: #BDF1E6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 14px; }
.pill-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,179,154,.25); }
.slide h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 700; line-height: 1.2; }
.slide p { color: rgba(234,242,247,.85); font-size: 1.1rem; max-width: 34rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.play i { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; position: relative; }
.play i::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play i svg { width: 18px; height: 18px; }
.trusted { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.avatars { display: flex; }
.avatars span { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; overflow: hidden; margin-inline-start: -12px; background: var(--teal); }
.avatars span:first-child { margin-inline-start: 0; }
.avatars img { width: 100%; height: 100%; object-fit: cover; }
.trusted small { display: block; color: rgba(234,242,247,.7); }
.slide-ui { position: absolute; z-index: 5; bottom: 96px; inset-inline: 0; }
.slide-ui .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; overflow: hidden; position: relative; }
.dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: right; animation: fill 6s linear forwards; }
[dir="ltr"] .dots button.on::after { transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { display: flex; gap: 10px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.round:hover { background: var(--teal); border-color: var(--teal); }
.round svg { width: 18px; height: 18px; }
.wave { position: absolute; z-index: 4; inset-inline: 0; bottom: -1px; height: clamp(40px, 6vw, 80px); color: var(--surface); }
.wave svg { width: 100%; height: 100%; display: block; }

/* Inner page banner */
.banner { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.banner .media { position: absolute; inset: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,31,54,.92), rgba(10,31,54,.6)); }
.banner .wrap { position: relative; z-index: 2; padding-block: clamp(70px, 9vw, 120px) clamp(90px, 11vw, 150px); display: grid; gap: 14px; justify-items: center; text-align: center; }
.banner h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
.banner p { color: rgba(234,242,247,.85); max-width: 40rem; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px 16px; }
.crumbs a { text-decoration: none; color: #BDF1E6; }

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.white { background: var(--surface); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-size: .9rem; font-weight: 500; }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.start::after { display: none; }
.head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 46rem; }
.head.center { text-align: center; justify-items: center; margin-inline: auto; }
.head h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
.head p { color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.head-row .head { margin-bottom: 0; }

/* Partners marquee */
.partners { padding-block: 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.partners .wrap { display: grid; gap: 18px; }
.partners h2 { font-size: .95rem; font-weight: 500; color: var(--muted); text-align: center; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 20px; width: max-content; animation: marquee 32s linear infinite; }
[dir="rtl"] .track { animation-name: marquee-rtl; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.partner { width: 190px; height: 76px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; padding: 12px 18px; flex: none; color: var(--muted); font-family: var(--f-head); font-weight: 600; text-align: center; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner:hover { filter: none; opacity: 1; }
.partner img { max-height: 48px; width: auto; object-fit: contain; }
.partner .ph { font-family: var(--f-body); font-weight: 400; font-size: .85rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-grid > * { min-width: 0; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy { display: grid; gap: 22px; justify-items: start; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
.about-copy > p { color: var(--muted); }
.feats { display: grid; gap: 18px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .fi { width: 54px; height: 54px; border-radius: 50%; border: 1.5px dashed var(--teal); display: grid; place-items: center; color: var(--teal); flex: none; transition: background .3s, color .3s; }
.feat:hover .fi { background: var(--teal); color: #fff; border-style: solid; }
.feat .fi svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.08rem; font-weight: 600; }
.feat p { color: var(--muted); font-size: .94rem; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 150px; gap: 16px; }
.collage .media { border-radius: 20px; box-shadow: var(--shadow); }
.collage .media:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.collage .media:nth-child(2) { grid-column: 2; grid-row: 1 / 3; margin-top: 50px; }
.collage .media:nth-child(3) { grid-column: 1; grid-row: 3; }
.collage:hover .media img { transform: scale(1.04); }
.badge { grid-column: 2; grid-row: 3; align-self: end; background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.badge b { font-family: var(--f-head); font-size: 2.6rem; font-weight: 700; color: var(--teal); line-height: 1; direction: ltr; }
[dir="rtl"] .badge b { text-align: right; }
.badge span { color: var(--muted); }
.spark-dot { position: absolute; top: -10px; inset-inline-end: -10px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1060px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 24px; display: grid; gap: 12px; justify-items: center; text-align: center; align-content: start; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; isolation: isolate; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { transform: none; }
.svc:hover h3 { color: #fff; }
.svc:hover p { color: var(--on-dark-2); }
.svc .si { width: 76px; height: 76px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; transition: background .35s, color .35s, transform .5s var(--ease); }
.svc:hover .si { background: var(--teal); color: #fff; transform: rotateY(180deg); }
.svc .si svg { width: 34px; height: 34px; }
.svc h3 { font-size: 1.12rem; transition: color .3s; }
.svc p { color: var(--muted); font-size: .93rem; transition: color .3s; }
.center-btn { display: flex; justify-content: center; margin-top: 40px; }

/* Service cards with photos (services page) */
.svc2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 960px) { .svc2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc2-grid { grid-template-columns: 1fr; } }
.svc2 { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.svc2:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc2 .media { aspect-ratio: 16 / 11; }
.svc2:hover .media img { transform: scale(1.07); }
.svc2 .body { position: relative; padding: 40px 24px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.svc2 .si { position: absolute; top: -32px; inset-inline-start: 24px; width: 64px; height: 64px; border-radius: 16px; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(20,179,154,.9); }
.svc2 .si svg { width: 30px; height: 30px; }
.svc2 h3 { font-size: 1.2rem; }
.svc2 p { color: var(--muted); font-size: .95rem; }
.svc2 a.more { margin-top: auto; color: var(--teal); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding-top: 6px; }
.svc2 a.more svg { width: 16px; height: 16px; transition: transform .3s; }
.svc2 a.more:hover svg { transform: translateX(-4px); }
[dir="ltr"] .svc2 a.more:hover svg { transform: translateX(4px) scaleX(-1); }

/* Why us */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-grid > * { min-width: 0; }
@media (max-width: 920px) { .why-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks i { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.checks i svg { width: 13px; height: 13px; }
.stat-card { position: relative; border-radius: 26px; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 34px 24px; isolation: isolate; }
.stat-card > .media { position: absolute; inset: 0; z-index: -2; opacity: .3; background: transparent; }
.stat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, rgba(14,42,71,.96), rgba(14,42,71,.82) 60%, rgba(15,154,133,.6)); }
.stat2 { display: flex; gap: 14px; align-items: center; }
.stat2 .sic { width: 54px; height: 54px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; flex: none; }
.stat2 .sic svg { width: 26px; height: 26px; }
.stat2 b { font-family: var(--f-head); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; display: block; line-height: 1.1; direction: ltr; }
[dir="rtl"] .stat2 b { text-align: right; }
.stat2 span { color: var(--on-dark-2); font-size: .93rem; }
.stat2 b span, .stat3 b span { color: inherit; font-size: inherit; }
@media (max-width: 520px) { .stat-card { grid-template-columns: 1fr; } }

/* Stats row (light) */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat3 { text-align: center; display: grid; justify-items: center; gap: 6px; }
.stat3 .sic { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--teal); display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 0 0 8px var(--teal-soft); }
.stat3 .sic svg { width: 28px; height: 28px; }
.stat3 b { font-family: var(--f-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); direction: ltr; line-height: 1.1; }
.stat3 span { color: var(--muted); font-size: .93rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.member { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.member .media { aspect-ratio: 3 / 3.6; }
.member:hover .media img { transform: scale(1.06); }
.member .cap { position: absolute; inset-inline: 12px; bottom: 12px; background: rgba(255,255,255,.95); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; transform: translateY(6px); transition: transform .4s var(--ease); }
.member:hover .cap { transform: none; }
.member .cap b { font-weight: 600; font-size: .95rem; }
.member .cap i { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.member .cap i svg { width: 15px; height: 15px; }

/* Projects carousel */
.proj-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.proj-track::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .proj-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .proj-track { grid-auto-columns: 82%; } }
.proj { scroll-snap-align: start; text-decoration: none; display: grid; gap: 12px; }
.proj .media { aspect-ratio: 4 / 4.4; border-radius: var(--r); }
.proj:hover .media img { transform: scale(1.07); }
.proj .media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,31,54,.6), transparent 50%); opacity: 0; transition: opacity .4s; }
.proj:hover .media::before { opacity: 1; }
.proj small { color: var(--teal); font-weight: 500; font-size: .85rem; }
.proj h3 { font-size: 1.05rem; font-weight: 600; }
.ctrl { display: flex; gap: 10px; }
.ctrl .round { border-color: var(--line); background: #fff; color: var(--navy); }
.ctrl .round:hover { color: #fff; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; inset-inline: 12%; border-top: 2px dashed #B9E6DD; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; text-align: center; display: grid; justify-items: center; gap: 10px; }
.step .ring { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal-soft); display: grid; place-items: center; transition: transform .4s var(--ease); }
.step .ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--teal); }
.step .ring svg { position: relative; width: 32px; height: 32px; color: #fff; }
.step .num { position: absolute; top: -4px; inset-inline-end: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .85rem; display: grid; place-items: center; border: 3px solid var(--surface); }
.step:hover .ring { transform: translateY(-6px) rotate(-6deg); }
.step h3 { font-size: 1.12rem; margin-top: 8px; }
.step p { color: var(--muted); font-size: .93rem; max-width: 16rem; }

/* Testimonial band */
.testi { background: var(--navy); color: #fff; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; gap: 0; align-items: stretch; }
@media (max-width: 860px) { .testi { grid-template-columns: 1fr; } }
.testi .media { min-height: 320px; }
.testi .tbody { padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; align-content: center; min-width: 0; }
.testi h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.testi .eyebrow { color: #7FE3D1; }
.testi blockquote { margin: 0; color: var(--on-dark-2); font-size: 1.08rem; }
.testi .who b { display: block; font-weight: 600; }
.testi .who span { color: #7FE3D1; font-size: .9rem; }
.testi .ph { background: rgba(255,244,214,.12); color: #FFD98A; }
.tnav { display: flex; gap: 10px; align-items: center; }
.stars { color: #FFC542; letter-spacing: 3px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-grid > * { min-width: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-side { display: grid; gap: 20px; }
.faq-side .media { aspect-ratio: 4 / 3; border-radius: var(--r); }
.callbox { position: relative; margin-top: -70px; margin-inline: 20px; background: var(--teal); color: #fff; border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; z-index: 2; box-shadow: var(--shadow); }
.callbox i { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.callbox b { display: block; }
.callbox .ph { background: rgba(255,255,255,.2); color: #fff; }
.acc { display: grid; gap: 12px; }
.acc details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc details[open] { border-color: var(--teal); box-shadow: 0 16px 40px -28px rgba(20,179,154,.8); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; transition: transform .3s, background .3s, color .3s; }
.acc details[open] summary i { transform: rotate(45deg); background: var(--teal); color: #fff; }
.acc summary i svg { width: 14px; height: 14px; }
.acc .ans { padding: 0 20px 18px; color: var(--muted); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chip.on, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.masonry { columns: 3 280px; column-gap: 20px; }
.gitem { break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer; display: block; width: 100%; border: 0; padding: 0; background: var(--navy); text-align: inherit; color: #fff; }
.gitem .media { border-radius: 0; }
.gitem img, .gitem video { width: 100%; height: auto; transition: transform .7s var(--ease); }
.gitem.broken .media { aspect-ratio: 4 / 3; }
.gitem:hover img, .gitem:hover video { transform: scale(1.06); }
.gitem .ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,31,54,.85), rgba(10,31,54,0) 55%); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 18px; opacity: 0; transition: opacity .4s; }
.gitem:hover .ov, .gitem:focus-visible .ov { opacity: 1; }
.gitem .ov small { color: #7FE3D1; }
.gitem .ov b { font-family: var(--f-head); font-weight: 600; }
.gitem .vbadge { position: absolute; top: 14px; inset-inline-start: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal); display: grid; place-items: center; z-index: 2; }
.gitem .vbadge svg { width: 18px; height: 18px; }
.yt-thumb { aspect-ratio: 16 / 9; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,18,32,.94); display: grid; place-items: center; padding: 60px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } }
.lb-stage { max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lb-stage img, .lb-stage video { max-height: 78vh; width: auto; max-width: 100%; border-radius: 12px; }
.lb-stage iframe { width: min(1000px, 92vw); aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.lb-stage p { color: #fff; }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px; }
.lb-prev { position: absolute; top: 50%; inset-inline-start: 16px; }
.lb-next { position: absolute; top: 50%; inset-inline-end: 16px; }

/* Contact */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 48px; }
@media (max-width: 960px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 20px; display: grid; gap: 8px; justify-items: center; text-align: center; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ccard .si { width: 62px; height: 62px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.ccard .si svg { width: 26px; height: 26px; }
.ccard span { color: var(--muted); font-size: .9rem; }
.ccard b { font-weight: 600; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.form-card h2 { font-size: 1.7rem; font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,179,154,.15); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-msg { border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.form-msg.ok { background: #E3F6F2; color: #0B6B5C; }
.form-msg.err { background: #FDE8E6; color: #8C2318; }
.side-card { background: var(--navy); color: #fff; border-radius: 22px; padding: 28px; display: grid; gap: 18px; }
.side-card h3 { font-size: 1.3rem; }
.side-card p, .side-card li { color: var(--on-dark-2); }
.side-card .ph { background: rgba(255,244,214,.12); color: #FFD98A; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a, .socials span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--teal); transform: translateY(-3px); }
.socials span { opacity: .4; }
.socials svg { width: 18px; height: 18px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--teal-2), var(--teal) 55%, #2CC9AE); color: #fff; border-radius: 26px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.08); inset-inline-end: -140px; top: -180px; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 200px; height: 200px; border-radius: 50%; background: rgba(14,42,71,.15); inset-inline-start: 30%; bottom: -120px; }
.cta-band > div { min-width: 0; flex: 1 1 380px; display: grid; gap: 8px; }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.88); }

/* Footer */
#ms-footer { background: var(--navy-2); color: var(--on-dark-2); position: relative; overflow: hidden; }
#ms-footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(20,179,154,.18), transparent 70%); inset-inline-end: -160px; top: -200px; pointer-events: none; }
.foot-top { position: relative; padding-block: 64px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 36px; }
.foot-top > * { min-width: 0; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: 18px; align-content: start; }
#ms-footer .logo-text b { color: #fff; }
#ms-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
#ms-footer h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; background: var(--teal); }
#ms-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#ms-footer ul a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; transition: color .2s, transform .2s; }
#ms-footer ul a:hover { color: var(--teal); transform: translateX(-4px); }
[dir="ltr"] #ms-footer ul a:hover { transform: translateX(4px); }
#ms-footer ul a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.fcontact li { display: flex; gap: 12px; align-items: flex-start; }
.fcontact i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--teal); display: grid; place-items: center; flex: none; }
.fcontact i svg { width: 17px; height: 17px; }
.fcontact small { display: block; color: rgba(234,242,247,.5); font-size: .8rem; }
#ms-footer .ph { background: rgba(255,244,214,.1); color: #FFD98A; }
.foot-strip { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.foot-strip b { color: #fff; font-family: var(--f-head); font-size: 1.15rem; display: block; }
.foot-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; }
.foot-base a { text-decoration: none; color: rgba(234,242,247,.55); }
.foot-base a:hover { color: var(--teal); }

/* Floating buttons */
.to-top { position: fixed; z-index: 40; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(20px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); }
.to-top svg { width: 20px; height: 20px; }
.wa-float { position: fixed; z-index: 40; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-start: calc(20px + env(safe-area-inset-left, 0px)); width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(37,211,102,.8); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-l { transform: translateX(40px); }
[dir="ltr"] .rv-l { transform: translateX(-40px); }
.rv-zoom { transform: scale(.92); }
.rv-l.in, .rv-zoom.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
#ms-main { overflow-x: clip; }
