/* ============================================================
   Cloud Station — المحطة السحابية
   Monochrome design system  ·  #191919 / #F1F1F1
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: "Somar Sans"; src: url("../fonts/SomarSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Somar Sans"; src: url("../fonts/SomarSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Somar Sans"; src: url("../fonts/SomarSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Somar Sans"; src: url("../fonts/SomarSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Somar Sans"; src: url("../fonts/SomarSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Somar Sans"; src: url("../fonts/SomarSans-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: "NT Voice"; src: url("../fonts/NTVoice-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NT Voice"; src: url("../fonts/NTVoice-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "NT Voice"; src: url("../fonts/NTVoice-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NT Voice"; src: url("../fonts/NTVoice-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #191919;
  --ink-soft: rgba(25, 25, 25, 0.64);
  --ink-mute: rgba(25, 25, 25, 0.62);
  --ink-line: rgba(25, 25, 25, 0.14);
  --ink-line-soft: rgba(25, 25, 25, 0.08);

  --paper: #F1F1F1;
  --paper-raise: #FFFFFF;
  --paper-soft: rgba(241, 241, 241, 0.66);
  --paper-mute: rgba(241, 241, 241, 0.6);
  --paper-line: rgba(241, 241, 241, 0.16);
  --paper-line-soft: rgba(241, 241, 241, 0.09);

  --font-main: "NT Voice", "Somar Sans", "Helvetica Neue", Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.28s;

  --shadow-card: 0 1px 2px rgba(25,25,25,0.05), 0 12px 32px -16px rgba(25,25,25,0.18);
  --shadow-pop: 0 24px 64px -24px rgba(25,25,25,0.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }
.ltr { display: inline-block; direction: ltr; unicode-bidi: isolate; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
[id] { scroll-margin-top: 96px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Skip link */
.skip-link {
  position: fixed; top: -60px; right: 16px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: var(--radius-pill);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 120;
  transition: transform 0.35s var(--ease-out);
}
.site-header .nav-shell {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px);
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: calc(10px + env(safe-area-inset-top, 0px)) auto 0;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  background: rgba(241, 241, 241, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--ink-line-soft);
  box-shadow: 0 8px 30px -18px rgba(25,25,25,0.35);
}

.brand { display: inline-flex; align-items: center; gap: 9px; padding-inline-start: 10px; }
.brand svg { height: 27px; width: auto; }
.brand .brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-word .en { font-weight: 900; font-size: 13.5px; letter-spacing: 0.01em; }
.brand .brand-word .ar { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; position: relative; }
.main-nav a {
  position: relative; display: inline-block;
  padding: 7px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="true"] { color: var(--ink); }
.nav-indicator {
  position: absolute; bottom: -1px; height: 2px; background: var(--ink);
  border-radius: 2px; width: 0; opacity: 0;
  transition: right 0.35s var(--ease-out), width 0.35s var(--ease-out), opacity 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(1.02, 0.95); transition-duration: 0.1s; }
.btn[hidden] { display: none; }
.btn .btn-arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(-4px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; box-shadow: 0 14px 30px -14px rgba(25,25,25,0.55); }

.btn-ghost { border-color: var(--ink-line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-invert { background: var(--paper); color: var(--ink); }
.btn-invert:hover { background: #fff; box-shadow: 0 14px 34px -14px rgba(0,0,0,0.6); }

.btn-outline-light { border-color: var(--paper-line); color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--paper); }

.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 13px; }

/* Burger */
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink-line); position: relative; }
.nav-burger span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%) translateY(var(--o, 0px));
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.nav-burger span:nth-child(1) { --o: -6px; }
.nav-burger span:nth-child(3) { --o: 6px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 1024px) {
  /* backdrop-filter turns .nav-shell into a containing block and cages the
     fixed fullscreen menu inside the pill — disable it where the menu exists */
  .site-header .nav-shell {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #F1F1F1;
  }
  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--paper);
    display: grid; place-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; z-index: 110; }
  .brand, .nav-actions { position: relative; z-index: 115; }
  .main-nav { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .main-nav ul { flex-direction: column; gap: 14px; align-items: center; }
  .main-nav a { font-size: 26px; font-weight: 800; padding: 10px 22px; }
  .nav-indicator { display: none; }
  .nav-burger { display: block; }
  .nav-actions .btn-login { display: none; }
}
@media (max-width: 560px) {
  .brand .brand-word { display: none; }
  .nav-actions .btn-join { min-height: 40px; padding: 8px 16px; font-size: 13.5px; }
}

/* ============================================================
   Sections — shared
   ============================================================ */
.section { position: relative; padding-block: clamp(52px, 7vw, 92px); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark ::selection { background: var(--paper); color: var(--ink); }

.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.section-title {
  text-wrap: balance;
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 800; line-height: 1.3; letter-spacing: normal;
}
.section-title .hollow {
  padding-inline: 0.07em; margin-inline: -0.02em;
  background-image: linear-gradient(to top,
    color-mix(in srgb, currentColor 17%, transparent) 0.44em, transparent 0.44em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 4px;
}

.section-sub { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-soft); max-width: 56ch; }
.section-dark .section-sub { color: var(--paper-soft); }

/* Blueprint grid texture (dark sections) */
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(241,241,241,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,241,241,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 82%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 82%);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease-enter), transform 0.65s var(--ease-enter); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding-top: clamp(92px, 11vh, 128px);
  padding-bottom: 0;
  overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero > .container { flex: 1; display: flex; align-items: center; width: 100%; }

.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--ink); }
.hero-media canvas { width: 100%; height: 100%; display: block; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(25,25,25,0.6) 0%, rgba(25,25,25,0.25) 34%, rgba(25,25,25,0) 60%);
}
@media (max-width: 820px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(25,25,25,0.35) 0%, rgba(25,25,25,0) 35%, rgba(25,25,25,0.55) 100%); }
}
.hero .container { position: relative; z-index: 2; }

@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }


.hero-grid { position: relative; display: grid; gap: clamp(16px, 2.2vw, 24px); text-align: start; justify-items: start; width: 100%; }

@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.hero-title {
  text-wrap: balance;
  font-size: clamp(40px, 6.6vw, 84px);
  font-weight: 900; line-height: 1.2; letter-spacing: normal;
  max-width: 15ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.hero-title .line {
  display: block; opacity: 0; transform: translateY(0.45em);
  transition: opacity 0.7s var(--ease-enter), transform 0.7s var(--ease-enter);
}
.hero-title.in .line { opacity: 1; transform: none; }
.hero-title.in .line:nth-child(2) { transition-delay: 0.14s; }

.hero-slogan {
  font-size: clamp(16px, 1.8vw, 20px); font-weight: 800; color: var(--paper);
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) { .hero-slogan { white-space: normal; } }
.hero-sub { font-size: clamp(15.5px, 1.7vw, 18px); color: var(--paper-soft); font-weight: 500; max-width: 42ch; margin-top: -6px; }
.hero-sub .sep { opacity: 0.4; margin-inline: 6px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; margin-top: 8px; }
@media (max-width: 480px) {
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
.hero-ctas .btn { min-height: 56px; padding-inline: 34px; font-size: 16.5px; }

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: stretch;
  gap: 0;
  margin-top: clamp(26px, 5vh, 56px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(241, 241, 241, 0.22);
  width: 100%;
}
.hero-stats .stat + .stat {
  margin-inline-start: clamp(28px, 4.5vw, 64px);
  padding-inline-start: clamp(28px, 4.5vw, 64px);
  border-inline-start: 1px solid rgba(241, 241, 241, 0.18);
}
@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stats .stat + .stat { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; }
  .hero-stats .stat-label { max-width: none; }
  .hero-stats .stat-num { font-size: 30px; min-width: 56px; }
}
.hero-stats .stat {
  display: flex; align-items: center; gap: 14px;
  text-align: start; opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s var(--ease-enter), transform 0.55s var(--ease-enter);
}
.hero-stats.in .stat { opacity: 1; transform: none; }
.hero-stats.in .stat:nth-child(1) { transition-delay: 0.05s; }
.hero-stats.in .stat:nth-child(2) { transition-delay: 0.16s; }
.hero-stats.in .stat:nth-child(3) { transition-delay: 0.27s; }
.hero-stats .stat-num { font-size: clamp(32px, 3.2vw, 44px); font-weight: 900; line-height: 1; direction: ltr; flex: none; min-width: 62px; }
.hero-stats .stat-num sup { font-size: 0.5em; font-weight: 800; margin-inline-end: 2px; }
.hero-stats .stat-num { text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.hero-stats .stat-label { font-size: 13px; color: var(--paper-soft); font-weight: 600; line-height: 1.5; max-width: 15ch; }

/* Ticker */
.ticker { position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--paper-line-soft); background: rgba(241,241,241,0.03); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 26px; padding: 16px 26px 16px 0; font-size: 15px; font-weight: 700; letter-spacing: normal; color: var(--paper-soft); white-space: nowrap; }
.ticker-item svg { width: 14px; height: 14px; opacity: 0.5; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ============================================================
   Services — كيف ندعم أعمالك
   ============================================================ */
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.services-head .section-head { margin-bottom: 0; }

/* stretch, not start: the four cards carry 4-5 bullets each, and ragged
   bottoms read as sloppy in a 4-up row */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
@media (max-width: 1180px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--paper-raise);
  border: 1px solid var(--ink-line-soft);
  border-radius: var(--radius-l);
  padding: clamp(22px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--ink-line); box-shadow: 0 24px 48px -20px rgba(25,25,25,0.25); }

.service-media {
  margin: 0; border-radius: 14px; overflow: hidden;
  height: 140px; position: relative; z-index: 1;
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.07);
  transform: scale(1.001);
  transition: transform 0.9s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.07); }

.service-card::after {
  content: ""; position: absolute; inset-inline-end: -70px; top: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1.5px solid var(--ink-line-soft);
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.service-card:hover::after { transform: scale(1.18); border-color: var(--ink-line); }

.service-top { display: flex; align-items: center; justify-content: flex-start; }
.service-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.55);
  transition: transform 0.55s var(--ease-spring) 0.12s, opacity 0.3s var(--ease-enter) 0.12s;
}
.service-card.in .service-icon { opacity: 1; transform: scale(1); }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); transition-delay: 0s; }
.service-icon svg { width: 25px; height: 25px; }
.service-num { font-size: 15px; font-weight: 900; color: var(--ink-mute); letter-spacing: 0.08em; }

.service-card h3 { font-size: clamp(21px, 1.9vw, 24px); font-weight: 800; line-height: 1.35; }
.service-desc { color: var(--ink-soft); font-size: 14.5px; }

.service-list { display: grid; gap: 12px; margin-top: 4px; padding-top: 18px; border-top: 1px dashed var(--ink-line); }
.service-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.8px; font-weight: 500; color: var(--ink); line-height: 1.6;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease-enter), transform 0.45s var(--ease-enter);
}
.service-card.in .service-list li { opacity: 1; transform: none; }
.service-card.in .service-list li:nth-child(1) { transition-delay: 0.2s; }
.service-card.in .service-list li:nth-child(2) { transition-delay: 0.27s; }
.service-card.in .service-list li:nth-child(3) { transition-delay: 0.34s; }
.service-card.in .service-list li:nth-child(4) { transition-delay: 0.41s; }
.service-card.in .service-list li:nth-child(5) { transition-delay: 0.48s; }
.service-list li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.service-list li span b { font-weight: 700; }

.services-cta { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }

/* ============================================================
   Branches — شبكة فروعنا
   ============================================================ */
.branches { overflow: hidden; }
.branches-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (max-width: 980px) { .branches-grid { grid-template-columns: 1fr; } }

.branches-copy { display: grid; gap: 26px; }
.branches-copy .section-head { margin-bottom: 0; }

.branch-counter { display: flex; align-items: baseline; gap: 14px; }
.branch-counter .big {
  font-size: clamp(64px, 9vw, 110px); font-weight: 900; line-height: 1;
  display: inline-flex; align-items: baseline; direction: ltr;
}
.branch-counter .big .plus { font-size: 0.45em; font-weight: 800; transform: translateY(-0.9em); margin-inline-end: 4px; }
.branch-counter .cap { font-size: 17px; font-weight: 600; color: var(--paper-soft); line-height: 1.5; }

.city-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.city-chip {
  font-size: 13.5px; font-weight: 600;
  color: var(--paper-soft);
  border: 1px solid var(--paper-line);
  padding: 7px 15px; border-radius: var(--radius-pill);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
  cursor: pointer;
}
.city-chip:hover, .city-chip.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.map-wrap { position: relative; }
.map-frame {
  position: relative;
  border: 1px solid var(--paper-line-soft);
  border-radius: var(--radius-l);
  background: rgba(241,241,241,0.03);
  padding: clamp(18px, 3vw, 34px);
}
.map-frame .map-tag {
  position: absolute; top: 18px; inset-inline-start: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--paper-mute);
}
#saudi-map { width: 100%; height: auto; }
#saudi-map .land { fill: rgba(241,241,241,0.06); stroke: rgba(241,241,241,0.35); stroke-width: 1.6; }
#saudi-map .land-dots { fill: rgba(241,241,241,0.16); }

.map-pin { cursor: pointer; }
.map-pin circle.core { fill: var(--paper); transition: r 0.25s var(--ease-out); }
.map-pin circle.halo { fill: none; stroke: var(--paper); stroke-width: 1; opacity: 0.5; }
.map-pin.hq circle.halo { animation: mapPulse 2.4s var(--ease-out) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mapPulse { 0% { transform: scale(0.6); opacity: 0.8; } 75%, 100% { transform: scale(2.1); opacity: 0; } }
.map-pin text { fill: var(--paper-soft); font-size: 11.5px; font-weight: 600; font-family: var(--font-main); transition: fill 0.2s; }
.map-pin:hover text, .map-pin.active text { fill: var(--paper); font-weight: 700; }
.map-pin:hover circle.core, .map-pin.active circle.core { r: 6; }

.map-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--paper-mute); }
.map-note svg { width: 16px; height: 16px; flex: none; }

/* routes: dashed supply lines from HQ */
#saudi-map .route {
  fill: none; stroke: rgba(241, 241, 241, 0.13); stroke-width: 1.3;
  stroke-dasharray: 3 7; stroke-linecap: round;
  transition: stroke 0.3s var(--ease-out);
}
#saudi-map .route.active,
#saudi-map .routes.intro .route {
  stroke: rgba(241, 241, 241, 0.75);
  animation: routeFlow 1.1s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -20; } }

/* floating city tooltip */
.map-tip {
  position: absolute; z-index: 5;
  background: var(--paper); color: var(--ink);
  border-radius: 12px; padding: 10px 16px 12px;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.75);
  display: grid; gap: 3px; width: max-content; max-width: 240px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px));
  font-size: 12.5px;
  text-align: center;
}
.map-tip[hidden] { display: none; }
.map-tip { animation: tipIn 0.3s var(--ease-spring); }
@keyframes tipIn {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 16px)) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, calc(-100% - 16px)) scale(1); }
}
.map-tip b { font-size: 14.5px; font-weight: 800; }
.map-tip span { color: var(--ink-soft); font-weight: 500; line-height: 1.6; }
.map-tip::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; margin-left: -5px;
  width: 10px; height: 10px; background: var(--paper); transform: rotate(45deg);
}

/* ============================================================
   Logos — شركاؤنا / عملاؤنا
   ============================================================ */
.logos-strip { padding-block: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--ink-line-soft); }
.logos-strip + .logos-strip { border-top: 0; }
.logos-label { text-align: center; font-size: 13.5px; font-weight: 700; letter-spacing: normal; color: var(--ink-mute); margin-bottom: 28px; }
.logos-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-track { display: flex; align-items: center; width: max-content; gap: clamp(40px, 6vw, 80px); animation: ticker 26s linear infinite; }
.logos-track.rev { animation-direction: reverse; }
.logo-ph {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-mute); font-weight: 800; font-size: 17px; white-space: nowrap;
  filter: grayscale(1); opacity: 0.75;
  transition: opacity var(--dur), color var(--dur);
}
.logo-ph:hover { opacity: 1; color: var(--ink); }
.logo-ph svg { width: 30px; height: 30px; }
.logo-item { display: inline-flex; align-items: center; }
/* ---------- Clients wall ---------- */
.clients-wall {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}
@media (max-width: 1024px) { .clients-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .clients-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px)  { .clients-wall { grid-template-columns: repeat(2, 1fr); } }

.client-tile {
  margin: 0;
  /* every logo is pre-baked into a 640x400 canvas at matched optical weight,
     so the tile just holds the canvas — no padding or centring needed here */
  aspect-ratio: 640 / 360;
  overflow: hidden;
  border: 1px solid var(--ink-line-soft);
  border-radius: var(--radius-m);
  background: var(--paper-raise);
  transition: border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease-out);
}
.client-tile:hover {
  border-color: var(--ink-line);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(25, 25, 25, 0.35);
}
.client-tile img {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out);
}
.client-tile:hover img { opacity: 1; }
.logo-item img {
  height: 54px; width: auto;
  opacity: 1;
  transition: opacity var(--dur), transform var(--dur) var(--ease-spring);
}
.logo-item:hover img { opacity: 1; transform: scale(1.05); }
@media (max-width: 640px) { .logo-item img { height: 42px; } }

/* ============================================================
   Steps — شراكتك تبدأ
   ============================================================ */
.steps { position: relative; }
.steps-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  counter-reset: step;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.steps-route {
  position: absolute; top: 44px; inset-inline: 12%;
  height: 2px; z-index: 0; pointer-events: none;
}
.steps-route svg { width: 100%; height: 14px; overflow: visible; }
.steps-route .route-line { stroke: var(--ink-line); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; }
.steps-route .route-dot { fill: var(--ink); }
@media (max-width: 900px) { .steps-route { display: none; } }

.step-card {
  position: relative; z-index: 1;
  background: var(--paper-raise);
  border: 1px solid var(--ink-line-soft);
  border-radius: var(--radius-l);
  padding: clamp(26px, 3vw, 34px);
  display: grid; gap: 14px; justify-items: start;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(25,25,25,0.25); }

.step-badge {
  width: 88px; height: 88px; position: relative;
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.step-badge .ring2 { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--ink-line); transition: transform 0.5s var(--ease-out); }
.step-card:hover .step-badge .ring2 { transform: rotate(40deg); }
.step-badge .num {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 900;
  opacity: 0; transform: scale(0.55);
  transition: transform 0.55s var(--ease-spring) 0.15s, opacity 0.3s var(--ease-enter) 0.15s;
}
.step-card.in .step-badge .num { opacity: 1; transform: scale(1); }
.step-card h3 { font-size: clamp(21px, 1.9vw, 24px); font-weight: 800; line-height: 1.35; }
.step-card p { color: var(--ink-soft); font-size: 15px; }

.steps-cta { display: grid; justify-items: center; gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.steps-cta .hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-mute); font-weight: 500; }
.steps-cta .hint svg { width: 15px; height: 15px; }

/* ============================================================
   Register — سجّل الآن
   ============================================================ */
.modal-progress[hidden], .modal-footer[hidden] { display: none; }
.services-lead { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.check-card.full { grid-column: 1 / -1; }
.check-grid .other-input { grid-column: 1 / -1; margin-top: -4px; }
.check-grid .other-input[hidden] { display: none; }

/* ============================================================
   Contact — تواصل معنا
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-copy { display: grid; gap: 26px; }
.contact-copy .section-head { margin-bottom: 0; }

.contact-meta { display: grid; gap: 4px; }
.contact-meta-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--ink-line-soft);
  font-weight: 600; font-size: 15px;
  transition: padding-inline-start var(--dur) var(--ease-out);
}
a.contact-meta-item:hover { padding-inline-start: 10px; }
.contact-meta-item .mi {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--ink-line); display: grid; place-items: center;
}
.contact-meta-item .mi svg { width: 19px; height: 19px; }
.contact-meta-item .dir { font-size: 12.5px; color: var(--ink-mute); display: block; font-weight: 500; }
.contact-meta-item .en-val { direction: ltr; unicode-bidi: embed; }

.form-card {
  background: var(--paper-raise);
  border: 1px solid var(--ink-line-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.5vw, 40px);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field label .req { color: var(--ink); opacity: 0.55; }
.field label .opt { font-weight: 500; font-size: 12.5px; color: var(--ink-mute); }

.field .control {
  width: 100%;
  font: inherit; font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  min-height: 50px;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.field .control::placeholder { color: var(--ink-mute); }
.field .control:hover { border-color: rgba(25,25,25,0.3); }
.field .control:focus { outline: none; border-color: var(--ink); background: var(--paper-raise); box-shadow: 0 0 0 3px rgba(25,25,25,0.08); }
.field textarea.control { min-height: 120px; resize: vertical; }

.field select.control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-inline-start: 16px; padding-inline-end: 40px;
  cursor: pointer;
}

.phone-field .phone-wrap { position: relative; display: flex; align-items: stretch; direction: ltr; }
.phone-field .cc {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--ink-line); border-right: 0;
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  padding-inline: 12px; background: var(--paper);
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.phone-field .cc svg { width: 20px; height: 14px; border-radius: 2px; }
.phone-field input.control { border-radius: 0 var(--radius-s) var(--radius-s) 0; direction: ltr; text-align: left; }

.field .error-msg { display: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.field .error-msg::before { content: "✕ "; font-weight: 900; }
.field.has-error .control { border-color: var(--ink); background: rgba(25,25,25,0.04); }
.field.has-error .error-msg { display: block; }
.field.has-error .cc { border-color: var(--ink); }

.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--ink-mute); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }

.footer-cta {
  position: relative;
  text-align: center;
  padding-block: clamp(52px, 7vw, 84px);
  border-bottom: 1px solid var(--paper-line-soft);
}
.footer-cta #footer-particles {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.footer-cta .inner { position: relative; display: grid; gap: 22px; justify-items: center; }
.footer-cta h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 900; line-height: 1.3; max-width: 20ch; }
.footer-cta p { color: var(--paper-soft); font-size: clamp(15.5px, 1.8vw, 18px); }
.footer-cta .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.footer-main { padding-block: clamp(36px, 5vw, 54px); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-brand svg.logo { height: 44px; width: auto; }
.footer-brand p { color: var(--paper-soft); font-size: 15px; max-width: 34ch; }

.social-row { display: flex; gap: 10px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--paper-line);
  display: grid; place-items: center;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
}
.social-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-3px); }
.social-link svg { width: 18px; height: 18px; }

.footer-col h4 { font-size: 15px; font-weight: 800; margin-bottom: 20px; color: var(--paper); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col .fitem { color: var(--paper-soft); font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: color var(--dur), padding-inline-start var(--dur) var(--ease-out); }
.footer-col a:hover { color: var(--paper); padding-inline-start: 6px; }
.footer-link-btn {
  color: var(--paper-soft); font-size: 14.5px; font-weight: 500;
  transition: color var(--dur), padding-inline-start var(--dur) var(--ease-out);
}
.footer-link-btn:hover { color: var(--paper); padding-inline-start: 6px; }
.footer-col svg { width: 16px; height: 16px; opacity: 0.6; flex: none; }
.footer-col .en-val { direction: ltr; unicode-bidi: embed; }

.footer-bottom {
  border-top: 1px solid var(--paper-line-soft);
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--paper-mute);
}

/* ============================================================
   Modal — التسجيل
   ============================================================ */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.open { display: block; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(25, 25, 25, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.modal-root.show .modal-backdrop { opacity: 1; }

.modal-shell {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-card {
  width: min(620px, 100%);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  opacity: 0; transform: translateY(30px) scale(0.96);
  transition: opacity 0.22s var(--ease-exit), transform 0.22s var(--ease-exit);
  margin-block: auto;
}
.modal-root.show .modal-card {
  opacity: 1; transform: none;
  transition: opacity 0.3s var(--ease-enter), transform 0.5s var(--ease-spring);
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 28px 0;
}
.modal-head .m-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 14px; }
.modal-head .m-brand svg { height: 26px; width: auto; }
.modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: grid; place-items: center;
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }

.modal-progress { padding: 18px 28px 0; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.progress-meta .p-step { color: var(--ink-mute); }
.progress-bar { height: 5px; border-radius: 5px; background: var(--ink-line-soft); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0%; background: var(--ink); border-radius: 5px; transition: width 0.45s var(--ease-out); }

.modal-body { padding: 24px 28px 28px; }
.mstep { display: none; }
.mstep.active { display: block; animation: stepIn 0.4s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.mstep h3 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.mstep h3:focus, .mstep h3:focus-visible { outline: none; }
.mstep .m-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.check-card { position: relative; }
.check-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-card .cc-box {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-weight: 600; font-size: 14.5px;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
  min-height: 54px;
  cursor: pointer;
}
.check-card:hover .cc-box { border-color: rgba(25,25,25,0.35); }
.check-card input:focus-visible + .cc-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.check-card .cc-mark {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--ink-line); border-radius: 7px;
  display: grid; place-items: center;
  transition: background var(--dur), border-color var(--dur);
}
.check-card .cc-mark svg { width: 12px; height: 12px; color: var(--paper); opacity: 0; transform: scale(0.4); transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.check-card input:checked + .cc-box { border-color: var(--ink); background: rgba(25,25,25,0.045); }
.check-card input:checked + .cc-box .cc-mark { background: var(--ink); border-color: var(--ink); }
.check-card input:checked + .cc-box .cc-mark svg { opacity: 1; transform: scale(1); }

.services-error { display: none; margin-top: 12px; font-size: 13.5px; font-weight: 700; }
.services-error.show { display: block; }
.services-error::before { content: "✕ "; font-weight: 900; }

.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.modal-footer .spacer { flex: 1; }

/* Success step */
.mstep-success { text-align: center; padding-block: 18px; }
.success-mark { width: 108px; height: 108px; margin: 0 auto 22px; position: relative; }
.success-mark .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--ink-line); animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.success-mark .disc { position: absolute; inset: 14px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: var(--paper); }
.success-mark .disc svg { width: 34px; height: 34px; }
.success-mark .disc svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s 0.25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mstep-success h3 { font-size: 28px; }
.mstep-success p { color: var(--ink-soft); max-width: 36ch; margin: 8px auto 26px; }

/* Toast */
.toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%;
  transform: translate(50%, calc(100% + 40px));
  background: var(--ink); color: var(--paper);
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-pop);
  z-index: 300;
  transition: transform 0.4s var(--ease-out);
  max-width: min(92vw, 480px); text-align: center;
}
.toast.show { transform: translate(50%, 0); }

/* ============================================================
   Misc
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track, .logos-track { animation: none; }
}
