/* ============================================================
   Merghani & Sons Engineering — stylesheet
   ------------------------------------------------------------
   Design language taken from the MSE company profile:
     · brand navy #063c6b + cyan #3abfde
     · the MS mark tiled as a background texture
     · diagonal clipped corners + cyan corner triangles
     · duotone (navy-tinted monochrome) photography
     · bold uppercase display type (Inter 800 — the 2026 profile
       replaced the earlier condensed face)

   Sections
     1.  Tokens
     2.  Reset & base
     3.  Layout + shared pieces
     4.  Brand motifs (pattern, clipped corners, duotone)
     5.  Header / nav
     6.  Hero
     7.  About + quote
     8.  Parallax band (philosophy)
     9.  Vision / Mission
     10. Values
     11. Why us
     12. Services (tabbed)
     13. Approach steps
     14. Team
     15. Partners
     16. Contact + closing
     17. Footer, FAB, to-top, progress
     18. Reveal animations
     19. Responsive
     20. RTL
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand, straight from the profile */
  --navy:        #063c6b;
  --navy-deep:   #04294a;
  --navy-soft:   #0a4d87;
  --cyan:        #3abfde;
  --cyan-soft:   #6fd2e9;

  /* Light theme */
  --bg:          #ffffff;
  --bg-alt:      #f2f6fa;
  --bg-elev:     #ffffff;
  --text:        #0d2338;
  --text-muted:  #5a7086;
  --border:      #dbe5ef;
  --heading:     var(--navy);
  --accent:      var(--navy);
  --header-bg:   rgba(255, 255, 255, 0.82);
  --shadow-sm:   0 2px 10px rgba(6, 60, 107, .07);
  --shadow-md:   0 12px 34px rgba(6, 60, 107, .12);
  --shadow-lg:   0 28px 70px rgba(6, 60, 107, .20);

  /* Sections that are always navy get their own on-dark tokens */
  --on-dark-text:  #d7e6f4;
  --on-dark-title: #ffffff;

  --radius:    14px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --cut:       26px;              /* diagonal corner size */

  /* The 2026 profile dropped the condensed display face for a normal-width
     bold grotesque, so display and body now share Inter and separate by
     weight instead of by width. --display-scale multiplies every display
     size (see section 2) — it is the one knob for face-swap adjustments. */
  --font-display-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body-en:    'Inter', system-ui, -apple-system, sans-serif;
  --font-ar:         'Cairo', system-ui, sans-serif;

  --font-display: var(--font-display-en);
  --font-body:    var(--font-body-en);
  --display-weight: 800;
  --display-tracking: -.015em;
  --display-scale: 1;
}

[data-theme="dark"] {
  --bg:         #05192c;
  --bg-alt:     #07223b;
  --bg-elev:    #0a2b49;
  --text:       #e4eef8;
  --text-muted: #9db4cb;
  --border:     #14405f;
  --heading:    #ffffff;
  --accent:     var(--cyan);
  --header-bg:  rgba(5, 25, 44, .82);
  --shadow-sm:  0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md:  0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg:  0 28px 70px rgba(0, 0, 0, .55);
}

/* Arabic swaps both faces; Cairo needs no extra tracking and sits a little
   large next to Inter at the same size, hence the scale trim. */
[lang="ar"] {
  --font-display: var(--font-ar);
  --font-body:    var(--font-ar);
  --display-weight: 800;
  --display-tracking: 0;
  --display-scale: .94;
}


/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.12;
  color: var(--heading);
  letter-spacing: var(--display-tracking);
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip-link:focus { inset-inline-start: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ---------- 3. LAYOUT + SHARED ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { position: relative; padding-block: clamp(64px, 8vw, 110px); }

.section__head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }

.section__title {
  font-size: calc(clamp(1.7rem, 3.6vw, 2.7rem) * var(--display-scale));
  text-transform: uppercase;
  margin-bottom: 14px;
}
[lang="ar"] .section__title { text-transform: none; }
.section__title--on-dark { color: var(--on-dark-title); }

.section__lead { color: var(--text-muted); font-size: 1.03rem; }
.section__lead--on-dark { color: var(--on-dark-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow::before {
  content: ""; inline-size: 26px; block-size: 3px;
  background: var(--cyan); transform: skewX(-20deg);
}
.eyebrow--on-dark { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .98rem;
  border: 2px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--cyan); color: #06283f; }
.btn--primary:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }


/* ---------- 4. BRAND MOTIFS ---------- */

/* The tiled MS mark. Applied to any element via .pattern-layer. */
.hero__pattern, .band__pattern, .why__pattern,
.approach__pattern, .contact__pattern {
  position: absolute; inset: 0;
  background-image: url('../assets/pattern-mark.png');
  background-size: 285px auto;
  opacity: .05;
  pointer-events: none;
}

/* Diagonal corner cut — the profile's signature frame. */
.clip-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, 0 100%);
}
.clip-corner--tl {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

/* Cyan triangle tucked into a corner. */
.cyan-corner { position: relative; }
.cyan-corner::after {
  content: ""; position: absolute;
  inset-inline-end: 0; bottom: 0;
  inline-size: 62px; block-size: 62px;
  background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Photography is navy-duotone throughout the profile. */
.duotone { position: relative; overflow: hidden; }
.duotone img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}
.duotone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(6,60,107,.72), rgba(4,41,74,.55));
  mix-blend-mode: multiply;
}
[data-theme="dark"] .duotone::after {
  background: linear-gradient(150deg, rgba(4,32,58,.78), rgba(3,22,40,.68));
}


/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header__inner { display: flex; align-items: center; gap: 18px; min-block-size: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { block-size: 34px; inline-size: auto; }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark  { display: block; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: -.01em; color: var(--heading);
}
[lang="ar"] .brand__name { text-transform: none; font-size: .98rem; }
.brand__sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted);
  max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
[lang="ar"] .brand__sub { letter-spacing: 0; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: block; padding: 9px 13px;
  font-size: .9rem; font-weight: 600; color: var(--text-muted);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 2px;
  block-size: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--heading); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--heading); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  inline-size: 40px; block-size: 40px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.icon-btn svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.icon-btn--lang { inline-size: auto; padding-inline: 11px; }
.icon-btn__label { font-size: .82rem; font-weight: 700; line-height: 1; }

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  inline-size: 40px; block-size: 40px;
  border: 1px solid var(--border); background: var(--bg-elev);
}
.burger span {
  display: block; inline-size: 17px; block-size: 2px; margin-inline: auto;
  background: var(--text); transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-block-size: clamp(560px, calc(100svh - 76px), 900px);
  padding-block: 70px;
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  overflow: hidden;
}

/* Duotone photograph anchored to the leading edge, exactly as the cover. */
.hero__photo {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  inline-size: min(46%, 620px);
  overflow: hidden;
}
.hero__photo img {
  inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% center;
  filter: grayscale(1) contrast(1.05);
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,60,107,.25) 0%, rgba(6,60,107,.55) 62%, var(--navy) 100%);
}

/* Cyan slab that the panel sits on top of — it reads as a band running
   under the panel and out over the photograph, as on the cover. */
.hero__cyan {
  position: absolute; z-index: 1;
  inset-inline-start: max(6%, 60px); top: 50%;
  inline-size: min(42%, 560px); block-size: 240px;
  background: var(--cyan); opacity: .55;
  transform: translateY(-50%);
}
[data-theme="dark"] .hero__cyan { opacity: .38; }

.hero__inner { position: relative; z-index: 2; }

.hero__panel {
  max-width: 680px;
  margin-inline-start: auto;
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(120deg, rgba(58,191,222,.92), rgba(41,150,190,.86));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  color: #06283f;
}
[data-theme="dark"] .hero__panel {
  background: linear-gradient(120deg, rgba(10,77,135,.94), rgba(6,60,107,.9));
  color: #eaf5fb;
}

.hero__eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #06283f; opacity: .8; margin-bottom: 14px;
}
[data-theme="dark"] .hero__eyebrow { color: var(--cyan); opacity: 1; }
[lang="ar"] .hero__eyebrow { letter-spacing: 0; }

.hero__title { margin-bottom: 14px; color: inherit; }
/* The Arabic line carries dir="rtl" so it shapes correctly, which would
   otherwise align it to the opposite edge from the English line. Pin both
   to the document's leading edge. */
.hero__ar {
  display: block; font-family: var(--font-ar); font-weight: 800;
  font-size: calc(clamp(1.5rem, 3vw, 2.4rem) * var(--display-scale)); line-height: 1.35;
  text-align: left;
}
[dir="rtl"] .hero__ar { text-align: right; }
.hero__en {
  display: block; font-family: var(--font-display-en); font-weight: var(--display-weight);
  font-size: calc(clamp(1.35rem, 2.7vw, 2.2rem) * var(--display-scale));
  text-transform: uppercase; letter-spacing: var(--display-tracking);
}

.hero__tagline {
  font-weight: 600; font-size: clamp(.98rem, 1.6vw, 1.12rem);
  margin-bottom: 26px; opacity: .92;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__panel .btn--primary { background: var(--navy); color: #fff; }
.hero__panel .btn--primary:hover { background: #fff; color: var(--navy); }
.hero__panel .btn--ghost { border-color: rgba(6,40,63,.45); color: #06283f; }
.hero__panel .btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
[data-theme="dark"] .hero__panel .btn--primary { background: var(--cyan); color: #06283f; }
[data-theme="dark"] .hero__panel .btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }

.scroll-hint {
  position: absolute; z-index: 2; bottom: 22px; inset-inline: 0;
  margin-inline: auto; inline-size: 22px; block-size: 36px;
  border: 2px solid rgba(255,255,255,.5); border-radius: 999px;
}
.scroll-hint span {
  position: absolute; top: 7px; inset-inline: 0; margin-inline: auto;
  inline-size: 3px; block-size: 7px; border-radius: 2px; background: var(--cyan);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}
@media (max-height: 700px), (max-width: 760px) { .scroll-hint { display: none; } }


/* ---------- 7. ABOUT ---------- */
.about { background: var(--bg); }
.about__grid {
  display: grid; grid-template-columns: 1.35fr .95fr;
  gap: clamp(30px, 5vw, 64px); align-items: start;
}
.about__body p { color: var(--text-muted); }

.quote {
  position: relative; margin: 0;
  padding: clamp(28px, 3.5vw, 42px);
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(clamp(1.02rem, 1.6vw, 1.3rem) * var(--display-scale)); line-height: 1.45;
}
.quote__mark {
  display: block; font-family: Georgia, serif; font-size: 4.2rem; line-height: .7;
  color: var(--cyan); opacity: .85;
}
.quote__mark--end { text-align: end; margin-top: 14px; }


/* ---------- 8. PARALLAX BAND ---------- */
.band {
  position: relative; overflow: hidden;
  padding-block: clamp(80px, 11vw, 150px);
  background: var(--navy-deep);
  text-align: center;
}
.band__media { position: absolute; inset: -12% 0; }
.band__media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  will-change: transform;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(4,41,74,.90), rgba(6,60,107,.86));
}
.band__pattern { z-index: 1; opacity: .07; }
.band__inner { position: relative; z-index: 2; max-width: 860px; }
.band__text { color: var(--on-dark-text); font-size: clamp(1rem, 1.7vw, 1.15rem); }


/* ---------- 9. VISION / MISSION ---------- */
.vm { background: var(--bg-alt); }
.vm__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3.4vw, 44px); }

.vm__card {
  position: relative; background: var(--bg-elev);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.vm__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.vm__media { position: relative; block-size: 260px; overflow: hidden; }
.vm__media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform .7s var(--ease);
}
.vm__card:hover .vm__media img { transform: scale(1.06); }
.vm__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(6,60,107,.62), rgba(4,41,74,.42));
}
/* cyan triangle, mirroring the profile's photo frames */
.vm__media::before {
  content: ""; position: absolute; z-index: 2;
  inset-inline-end: 0; bottom: 0; inline-size: 58px; block-size: 58px;
  background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.vm__card--flip .vm__media::before {
  inset-inline: 0 auto; top: 0; bottom: auto;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.vm__body { padding: clamp(22px, 2.6vw, 32px); }
.vm__title {
  font-size: calc(clamp(1.2rem, 2vw, 1.55rem) * var(--display-scale)); text-transform: uppercase; margin-bottom: 10px;
}
[lang="ar"] .vm__title { text-transform: none; }
.vm__body p { color: var(--text-muted); }


/* ---------- 10. VALUES ---------- */
.values { background: var(--bg); }
.values__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}
.value {
  position: relative; padding: 30px 26px;
  background: var(--bg-elev); border: 1px solid var(--border);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.value::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  inline-size: 20px; block-size: 20px; background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.value:hover { transform: translateY(-6px); border-color: var(--cyan); }
.value:hover::after { opacity: 1; }

.value__icon {
  display: grid; place-items: center;
  inline-size: 54px; block-size: 54px; margin-bottom: 16px;
  border: 2px solid var(--navy); color: var(--navy);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
[data-theme="dark"] .value__icon { border-color: var(--cyan); color: var(--cyan); }
.value:hover .value__icon { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .value:hover .value__icon { background: var(--cyan); color: #06283f; border-color: var(--cyan); }
.value__icon svg { inline-size: 26px; block-size: 26px; }

.value__title { font-size: calc(1.12rem * var(--display-scale)); text-transform: uppercase; margin-bottom: 6px; }
[lang="ar"] .value__title { text-transform: none; }
.value__text { color: var(--text-muted); font-size: .95rem; margin: 0; }


/* ---------- 11. WHY US ---------- */
.why {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
}
.why__pattern { opacity: .06; }
.why__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.why__photo { block-size: 320px; margin-top: 26px; overflow: hidden; position: relative; }
.why__photo img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.why__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(6,60,107,.5), rgba(4,41,74,.3));
}

.why__list { display: grid; gap: 18px; }
.why__item {
  position: relative;
  display: flex; align-items: center; gap: 22px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.why__item:hover { background: rgba(255, 255, 255, .11); transform: translateX(6px); }
.why__item::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  inline-size: 22px; block-size: 22px; background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.why__num {
  font-family: var(--font-display-en); font-weight: var(--display-weight);
  font-size: calc(clamp(2.2rem, 4.1vw, 3.4rem) * var(--display-scale)); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--cyan);
  flex-shrink: 0;
}
.why__icon { flex-shrink: 0; color: var(--cyan); }
.why__icon svg { inline-size: 46px; block-size: 46px; }
.why__text { color: var(--on-dark-text); margin: 0; font-size: .98rem; }

.why__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.why__tag {
  font-size: .78rem; font-weight: 600; padding: 4px 12px;
  color: var(--cyan); border: 1px solid rgba(58, 191, 222, .4);
}


/* ---------- 12. SERVICES ---------- */
.services { background: var(--bg-alt); }

.svc__tabs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-bottom: 28px;
}
.svc__tab {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  text-align: center; line-height: 1.25;
  transition: transform .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), background-color .25s var(--ease);
}
.svc__tab svg { inline-size: 26px; block-size: 26px; }
.svc__tab span { font-size: .8rem; font-weight: 600; }
.svc__tab:hover { transform: translateY(-4px); color: var(--heading); border-color: var(--cyan); }
.svc__tab[aria-selected="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
[data-theme="dark"] .svc__tab[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: #06283f; }

.svc__panel { display: none; }
.svc__panel.is-active { display: block; animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.svc__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-elev); border: 1px solid var(--border);
  overflow: hidden;
}
.svc__media { position: relative; min-block-size: 420px; overflow: hidden; }
.svc__media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.svc__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(6,60,107,.55), rgba(4,41,74,.35));
}
.svc__media::before {
  content: ""; position: absolute; z-index: 2;
  inset-inline-end: 0; bottom: 0; inline-size: 74px; block-size: 74px;
  background: var(--cyan); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.svc__body { padding: clamp(26px, 3vw, 40px); }
.svc__title { font-size: calc(clamp(1.28rem, 2.1vw, 1.72rem) * var(--display-scale)); text-transform: uppercase; margin-bottom: 12px; }
[lang="ar"] .svc__title { text-transform: none; }
.svc__intro { color: var(--text-muted); margin-bottom: 22px; }

.svc__scopeLabel {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
[lang="ar"] .svc__scopeLabel { letter-spacing: 0; }

.svc__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.svc__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; font-size: .9rem; font-weight: 500;
  background: var(--bg-alt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.svc__item::before {
  content: ""; flex-shrink: 0;
  inline-size: 12px; block-size: 4px; background: var(--cyan);
  transform: skewX(-20deg);
}
.svc__item:hover { background: var(--navy); color: #fff; }
[data-theme="dark"] .svc__item:hover { background: var(--cyan); color: #06283f; }


/* ---------- 13. APPROACH ---------- */
.approach {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.approach__pattern { opacity: .055; }
.approach .container { position: relative; z-index: 1; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step {
  position: relative; padding: 26px 20px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.13);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.step::before {   /* cyan notch, top-leading corner */
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  inline-size: 24px; block-size: 24px; background: var(--cyan);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.step:hover { transform: translateY(-8px); background: rgba(255,255,255,.13); }

.step__n {
  font-family: var(--font-display-en); font-weight: var(--display-weight);
  font-size: calc(2.9rem * var(--display-scale)); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.6px rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.step:hover .step__n { -webkit-text-stroke-color: var(--cyan); }
.step__title {
  font-size: calc(1rem * var(--display-scale)); text-transform: uppercase; color: #fff; margin-bottom: 8px;
}
[lang="ar"] .step__title { text-transform: none; }
.step__text { color: var(--on-dark-text); font-size: .86rem; line-height: 1.65; margin: 0; }


/* ---------- 14. TEAM ---------- */
.team { background: var(--bg); }
.team__banner { position: relative; block-size: 320px; margin-bottom: 56px; overflow: hidden; }
.team__banner img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.team__banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(6,60,107,.55), rgba(4,41,74,.35));
}

.team__sub {
  text-align: center; font-size: calc(clamp(1.28rem, 2.3vw, 1.72rem) * var(--display-scale));
  text-transform: uppercase; margin-bottom: 34px;
}
[lang="ar"] .team__sub { text-transform: none; }

/* Seven members never divide evenly into a grid, so flex is used: the
   trailing row centres itself instead of leaving an orphan gap, and the
   max width stops three cards stretching wider than a full row of four. */
.team__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(16px, 2.2vw, 26px);
}
.member {
  flex: 1 1 235px;
  max-inline-size: 268px;
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--navy), var(--navy-deep));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  inline-size: 22px; block-size: 22px; background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.member__photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.member__photo img {
  inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center top;
  transition: transform .6s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 18px 20px 24px; }
/* Two lines reserved so the names line up across a row whether the role
   wraps or not. */
.member__role {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 4px;
  min-block-size: 2.8em;
}
[lang="ar"] .member__role { letter-spacing: 0; }
.member__name {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(1.05rem * var(--display-scale)); color: #fff;
}


/* ---------- 15. PARTNERS ---------- */
.partners { background: var(--bg-alt); }
.partners__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.partner {
  position: relative;
  display: grid; place-items: center;
  min-block-size: 130px; padding: 22px 26px;
  background: #fff; border: 2px solid var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  inline-size: 20px; block-size: 20px; background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* The profile shows partner marks in full colour, so they stay in colour
   here — hover just gives them a small lift. */
.partner img {
  max-block-size: 74px; inline-size: auto; object-fit: contain;
  transition: transform .3s var(--ease);
}
.partner:hover img { transform: scale(1.05); }


/* ---------- 16. CONTACT ---------- */
.contact {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
}
.contact__pattern { opacity: .06; }
.contact .container { position: relative; z-index: 1; }

.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; max-width: 940px; margin-inline: auto;
}
.card {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 24px 26px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  inline-size: 20px; block-size: 20px; background: var(--cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.card:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }

.card__icon {
  display: grid; place-items: center; flex-shrink: 0;
  inline-size: 50px; block-size: 50px;
  border: 2px solid var(--cyan); color: var(--cyan);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.card:hover .card__icon { background: var(--cyan); color: #06283f; }
.card__icon svg { inline-size: 23px; block-size: 23px; fill: currentColor; }
.card--wa .card__icon { border-color: #25d366; color: #25d366; }
.card--wa:hover .card__icon { background: #25d366; color: #fff; }

.card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan);
}
[lang="ar"] .card__label { letter-spacing: 0; }
.card__value { font-size: 1rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.card__hint { font-size: .8rem; color: var(--on-dark-text); opacity: .75; }
.card__arrow { margin-inline-start: auto; flex-shrink: 0; color: var(--cyan); opacity: .6; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.card__arrow svg { inline-size: 19px; block-size: 19px; }
.card:hover .card__arrow { transform: translateX(4px); opacity: 1; }

.closing {
  max-width: 760px; margin: clamp(44px, 6vw, 72px) auto 0;
  text-align: center; color: #fff;
}
.closing blockquote {
  margin: 10px 0 0; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(clamp(1.2rem, 2.4vw, 1.8rem) * var(--display-scale)); text-transform: uppercase; line-height: 1.3;
}
[lang="ar"] .closing blockquote { text-transform: none; }
.closing .quote__mark { text-align: center; }


/* ---------- 17. FOOTER / FAB / TO-TOP / PROGRESS ---------- */
.progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 150;
  block-size: 3px; background: transparent; pointer-events: none;
}
.progress span {
  display: block; block-size: 100%; inline-size: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--navy-soft));
  transition: inline-size .1s linear;
}

.site-footer { background: var(--navy-deep); color: #b9d0e4; padding-block: 40px; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; text-align: center;
}
.brand--footer img { block-size: 34px; inline-size: auto; }
.footer__copy { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: .86rem; margin: 0; }
.footer__copy .dot { opacity: .5; }
.footer__links { display: flex; gap: 22px; font-size: .86rem; }
.footer__links a { transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--cyan); }

.fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  inline-size: 54px; block-size: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.fab svg { inline-size: 28px; block-size: 28px; fill: currentColor; }
.fab:hover { transform: scale(1.08); }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.to-top {
  position: fixed; inset-inline-end: 22px; bottom: 88px; z-index: 90;
  display: grid; place-items: center;
  inline-size: 44px; block-size: 44px;
  background: var(--navy); color: #fff; border: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cyan); color: #06283f; }
.to-top svg { inline-size: 20px; block-size: 20px; }


/* ---------- 18. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }


/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .svc__tabs { grid-template-columns: repeat(3, 1fr); }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset-block-start: 76px; inset-inline: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-135%); transition: transform .35s var(--ease);
    z-index: 99; margin-inline-start: 0;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; }
  .nav__link { padding: 14px 18px; }
  .nav__link::after { display: none; }
  .burger { display: flex; }
  .header__actions { margin-inline-start: auto; }

  .about__grid { grid-template-columns: 1fr; }
  .vm__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__photo { block-size: 240px; }
  .svc__grid { grid-template-columns: 1fr; }
  .svc__media { min-block-size: 260px; }
  .cards { grid-template-columns: 1fr; }

  .hero__photo { inline-size: 100%; }
  .hero__photo::after {
    background: linear-gradient(180deg, rgba(4,41,74,.55) 0%, rgba(6,60,107,.88) 60%, var(--navy) 100%);
  }
  .hero__cyan { display: none; }
  .hero__panel { margin-inline: 0; max-width: none; }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc__tabs { grid-template-columns: repeat(2, 1fr); }
  .svc__items { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; }
  .why__item { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .brand__text { display: none; }
  .steps { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .btn { inline-size: 100%; }
  .hero__cta { flex-direction: column; }
  .team__banner { block-size: 210px; }
  /* One card per row on a phone, so drop the cap that keeps a short
     trailing row from stretching on wide screens. */
  .member { max-inline-size: none; }
}


/* ---------- 20. RTL ---------- */
[dir="rtl"] .eyebrow::before,
[dir="rtl"] .svc__item::before { transform: skewX(20deg); }

[dir="rtl"] .card__arrow svg { transform: scaleX(-1); }
[dir="rtl"] .card:hover .card__arrow { transform: translateX(-4px); }
[dir="rtl"] .why__item:hover { transform: translateX(-6px); }

[dir="rtl"] .nav__link::after { transform-origin: right; }

/* Clip paths are physical, so mirror the ones that carry a direction. */
[dir="rtl"] .btn,
[dir="rtl"] .value,
[dir="rtl"] .svc__tab,
[dir="rtl"] .svc__item,
[dir="rtl"] .why__item,
[dir="rtl"] .card,
[dir="rtl"] .member,
[dir="rtl"] .partner,
[dir="rtl"] .clip-corner,
[dir="rtl"] .to-top {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
[dir="rtl"] .hero__panel,
[dir="rtl"] .quote {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}
[dir="rtl"] .value::after,
[dir="rtl"] .svc__media::before,
[dir="rtl"] .why__item::after,
[dir="rtl"] .card::after,
[dir="rtl"] .member::after,
[dir="rtl"] .partner::after,
[dir="rtl"] .vm__media::before {
  inset-inline: 0 auto; clip-path: polygon(0 0, 100% 100%, 0 100%);
}
[dir="rtl"] .vm__card--flip .vm__media::before {
  inset-inline: auto 0; top: 0; clip-path: polygon(100% 0, 100% 100%, 0 0);
}
[dir="rtl"] .step { clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
[dir="rtl"] .step::before {
  inset-inline: auto 0; clip-path: polygon(0 0, 100% 100%, 0 100%);
}

[lang="ar"] body { line-height: 1.95; }
[lang="ar"] .step__text { line-height: 1.8; }
