/* ==========================================================================
   HIT — شركة هت لتقنية نظم المعلومات والاتصالات
   styles.css
   ========================================================================== */

:root {
  --ink-900: #07131f;
  --ink-800: #0b1b2c;
  --ink-700: #2c4257;
  --ink-600: #41586e;
  --ink-500: #4c6379;
  --ink-400: #566e85;
  --slate-300: #8fa6bc;
  --slate-200: #a9bed2;
  --slate-100: #dce7f1;

  --paper: #f5f2ed;
  --paper-2: #f2eee7;
  --paper-line: #e4ded4;
  --paper-line-2: #ded8cf;
  --white: #fff;

  --blue: #1b4e9b;
  --blue-soft: #eef3fa;
  --blue-200: #7fa6d6;
  --orange: #f26722;
  --orange-600: #c2551a;
  --orange-300: #ff8b45;
  --green: #7bd3a0;

  --shell: min(1280px, 92vw);
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 96px;
  --pad-section: clamp(72px, 10vw, 132px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ink-900);
  color: #eaf0f6;
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--orange); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--orange-300); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--orange); color: #fff; }

.shell { width: var(--shell); margin-inline: auto; }
.mono { font-family: var(--mono); }
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--ink-800); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { inset-inline-start: 0; }

/* Latin / numeric runs inside Arabic text ------------------------------- */
.ltr { direction: ltr; unicode-bidi: isolate; text-align: left; }
.num { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--white);
  border-bottom: 1px solid rgba(11, 27, 44, .12);
}
.header-inner {
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: stretch; gap: 0 28px; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 16px; flex: 0 0 auto;
  padding: 14px 0 12px; padding-inline-end: 26px;
}
.brand img { height: clamp(46px, 5.4vw, 66px); width: auto; display: block; }
.brand-rule { width: 1px; align-self: stretch; background: rgba(11, 27, 44, .14); }
.brand-sub { font-size: 12.5px; line-height: 1.55; color: #5a7288; max-width: 15ch; }

.nav { flex: 1 1 300px; display: flex; align-items: stretch; justify-content: flex-start; gap: 2px; }
.nav-link {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  white-space: nowrap; padding: 0 16px;
  color: var(--ink-600); border-bottom: 2px solid transparent;
}
.nav-link .n { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #a6b4c1; transition: color .18s ease; }
.nav-link .t { font-size: 14.5px; font-weight: 500; }
.nav-link:hover, .nav-link:focus-visible { color: var(--blue); background: var(--blue-soft); border-bottom-color: var(--blue); }
.nav-link:hover .n, .nav-link:focus-visible .n { color: var(--blue); }
.nav-link.is-active { color: var(--blue); background: var(--blue-soft); border-bottom-color: var(--blue); }
.nav-link.is-active .n { color: var(--blue); }

.nav-cta {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 0 22px; background: var(--ink-800); color: #fff;
  font-size: 14.5px; font-weight: 600;
}
.nav-cta:hover { background: var(--orange-600); color: #fff; }
.nav-cta .arrow { font-family: var(--mono); font-size: 15px; color: var(--orange); }
.nav-cta:hover .arrow { color: #fff; }

.lang-switch {
  align-self: center; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; margin-inline-start: 14px;
  border: 1px solid rgba(11, 27, 44, .18); border-radius: 10px;
  color: var(--ink-800); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.lang-switch svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lang-switch:hover, .lang-switch:focus-visible { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; align-self: center;
  background: transparent; border: 1px solid rgba(11, 27, 44, .18); border-radius: 10px;
  cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--ink-800); border-radius: 2px;
  position: relative; transition: transform .25s ease, background-color .25s ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; inset-inline-start: 0; width: 22px; height: 2px;
  background: var(--ink-800); border-radius: 2px; transition: transform .25s ease, top .25s ease;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(7, 19, 31, .55); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  :root { --header-h: 78px; }
  .burger { display: flex; order: 3; }
  .lang-switch { order: 2; margin-inline-start: auto; padding: 0 12px; }
  .header-inner { align-items: center; gap: 12px; }
  .brand { padding-inline-end: 0; }
  .brand-rule, .brand-sub { display: none; }
  .nav {
    position: fixed; top: 0; inset-inline-end: 0; z-index: 90;
    width: min(340px, 86vw); height: 100dvh;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
    background: var(--white); padding: 88px 0 28px;
    border-inline-start: 1px solid rgba(11, 27, 44, .12);
    box-shadow: -18px 0 50px rgba(7, 19, 31, .14);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.3, .7, .3, 1);
    overflow-y: auto;
  }
  [dir="rtl"] .nav { transform: translateX(-100%); }
  body.nav-open .nav { transform: translateX(0); }
  .nav-link {
    flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px;
    min-height: 56px; padding: 0 26px;
    border-bottom: 1px solid rgba(11, 27, 44, .08);
    border-inline-start: 3px solid transparent;
  }
  .nav-link:hover, .nav-link.is-active { border-bottom-color: rgba(11, 27, 44, .08); border-inline-start-color: var(--blue); }
  .nav-link .t { font-size: 16px; }
  .nav-cta { margin: 22px 26px 0; min-height: 54px; justify-content: center; border-radius: 10px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(92vh, 880px); padding: clamp(64px, 9vw, 96px) 0 72px; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: -15% -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-blue { top: -18%; left: -12%; width: min(760px, 86vw); height: min(760px, 86vw);
  background: radial-gradient(circle, rgba(27, 78, 155, .55), rgba(27, 78, 155, 0) 62%); }
.orb-orange { bottom: -26%; right: -8%; width: min(560px, 72vw); height: min(560px, 72vw);
  background: radial-gradient(circle, rgba(242, 103, 34, .32), rgba(242, 103, 34, 0) 64%); }
.hero-body { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.eyebrow .rule { width: 44px; height: 1px; background: var(--orange); }
.eyebrow .label { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--orange); }

.hero h1 { font-size: clamp(32px, 6.4vw, 78px); line-height: 1.16; max-width: 20ch; }
.hero h1 .soft { color: var(--blue-200); font-weight: 300; }
.hero h1 .hot { color: var(--orange); }
.hero-lede { margin-top: 28px; max-width: 60ch; font-size: clamp(16px, 1.9vw, 20px); line-height: 1.85; color: var(--slate-200); }
.hero-lede strong { color: #fff; font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
}
.btn-primary { background: var(--orange); color: var(--ink-900); }
.btn-primary:hover { background: var(--orange-300); color: var(--ink-900); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .22); color: #eaf0f6; font-weight: 500; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.stat-strip {
  margin-top: clamp(48px, 7vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden;
}
.stat { background: var(--ink-900); padding: 24px 22px; }
.stat .v { font-family: var(--mono); font-size: clamp(28px, 3.6vw, 40px); color: #fff; font-weight: 500; }
.stat .v.hot { color: var(--orange); }
.stat .k { font-size: 13px; color: var(--slate-300); margin-top: 6px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--pad-section) 0; }
.section-light { background: var(--paper); color: var(--ink-800); }
.section-mid { position: relative; background: var(--ink-800); overflow: hidden; }
.section-dark { position: relative; background: var(--ink-900); overflow: hidden; }
.section-lines-h { position: absolute; inset: -20% -10%; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 100% 64px; }
.section-lines-v { position: absolute; inset: -20% -10%; background-image: linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 64px 100%; }
.section-body { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; margin-bottom: 18px; }
.kicker-dark { color: var(--orange); }
.kicker-light { color: var(--orange-600); }

.h2 { font-size: clamp(27px, 4.2vw, 50px); line-height: 1.25; }
.h2 .soft { color: var(--blue-200); font-weight: 300; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { font-size: 17px; line-height: 1.95; color: var(--ink-600); }
.prose + .prose { margin-top: 18px; }
.prose-dark { font-size: 17px; line-height: 1.95; color: var(--slate-200); }

.value-list { display: grid; gap: 1px; background: var(--paper-line-2); border: 1px solid var(--paper-line-2); border-radius: 18px; overflow: hidden; }
.value { background: var(--paper); padding: 26px; }
.value h3 { font-size: 18px; color: var(--orange-600); margin-bottom: 8px; }
.value p { font-size: 15px; line-height: 1.8; color: var(--ink-500); }

.card-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: 34px; }
.card-outline { border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: clamp(26px, 3.6vw, 44px); }
.card-outline h3 { font-size: clamp(23px, 3vw, 34px); color: #fff; margin-bottom: 20px; }
.tint-blue { background: linear-gradient(180deg, rgba(27, 78, 155, .16), rgba(27, 78, 155, 0)); }
.tint-orange { background: linear-gradient(180deg, rgba(242, 103, 34, .14), rgba(242, 103, 34, 0)); }

/* Services ---------------------------------------------------------------- */
.service-stack { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.service {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 48px);
  background: var(--white); border: 1px solid var(--paper-line);
  border-radius: 22px; padding: clamp(24px, 3.4vw, 44px);
}
.service .idx { font-family: var(--mono); font-size: 13px; color: var(--orange-600); margin-bottom: 12px; }
.service h3 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 12px; }
.service p { font-size: 15px; line-height: 1.85; color: var(--ink-400); }
.tags { display: flex; flex-wrap: wrap; gap: 9px; align-content: flex-start; }
.tag { font-size: 14px; color: var(--ink-700); background: var(--paper-2); border: 1px solid var(--paper-line); padding: 9px 15px; border-radius: 999px; }
.service-dark { background: var(--ink-800); border-color: var(--ink-800); color: #eaf0f6; }
.service-dark .idx { color: var(--orange); }
.service-dark h3 { color: #fff; }
.service-dark p { color: var(--slate-200); }
.service-dark .tag { color: var(--slate-100); background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }

/* Reach ------------------------------------------------------------------- */
.reach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(30px, 4vw, 72px); align-items: center; }
.panel-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; overflow: hidden; }
.panel-cell { background: var(--ink-800); padding: clamp(22px, 3vw, 36px); }
.panel-cell .label { font-size: 15px; color: var(--orange); font-weight: 600; margin-bottom: 14px; }
.panel-cell .big { font-family: var(--mono); font-size: clamp(32px, 5vw, 54px); color: #fff; font-weight: 500; line-height: 1; }
.panel-cell .note { font-size: 14px; color: var(--slate-300); margin-top: 8px; line-height: 1.8; }

/* Clients ----------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filter {
  font-family: inherit; font-size: 14px; cursor: pointer;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid #ddd6cb; background: transparent; color: var(--ink-500);
  transition: all .2s ease;
}
.filter:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.filter[aria-pressed="true"] { background: var(--ink-800); border-color: var(--ink-800); color: #fff; font-weight: 600; }
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line);
  border-radius: 20px; overflow: hidden;
}
.logo-cell { background: #fff; aspect-ratio: 1.35 / 1; display: flex; align-items: center; justify-content: center; padding: 18px; transition: background-color .2s ease; }
.logo-cell:hover { background: #fbfaf8; }
.logo-cell img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }

/* Saudi ------------------------------------------------------------------- */
.data-list { display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; }
.data-row { background: var(--ink-800); padding: 15px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--slate-100); }
.data-row .k { font-size: 14px; color: var(--slate-300); }
.data-row .v { font-family: var(--mono); font-size: 14px; color: #fff; direction: ltr; unicode-bidi: isolate; }
.data-row .v.ok { font-family: var(--sans); color: var(--green); direction: inherit; }
.subhead { font-size: 15px; font-weight: 600; color: var(--orange); margin-bottom: 20px; }

/* Contact + footer -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; overflow: hidden; }
.contact-cell { background: var(--ink-900); padding: clamp(22px, 3vw, 34px); }
.contact-cell .k { font-size: 13px; color: var(--slate-300); margin-bottom: 10px; }
.contact-cell a, .contact-cell .v { font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); color: #fff; }
.contact-cell a:hover { color: var(--orange); }
.contact-cell .addr { font-family: var(--sans); font-size: 16px; color: #fff; line-height: 1.7; }
.contact-cell .addr span { color: var(--slate-300); font-size: 14px; }

.site-footer { position: relative; z-index: 2; background: #fff; border-top: 1px solid rgba(11, 27, 44, .1); }
.footer-inner { width: var(--shell); margin-inline: auto; padding: 26px 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-inner img { height: 44px; width: auto; display: block; }
.footer-inner p { font-size: 13px; color: var(--ink-500); }
.footer-credit { background: var(--paper); border-top: 1px solid rgba(11, 27, 44, .08); }
.footer-credit .shell { padding: 14px 0; display: flex; justify-content: center; }
.footer-credit p {
  font-family: var(--sans); font-size: 12.5px; font-weight: 400; letter-spacing: .02em;
  color: var(--ink-400);
}
.footer-credit strong { font-weight: 600; color: var(--ink-800); }
.footer-credit a { color: var(--ink-800); border-bottom: 1px solid transparent; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }
.footer-credit a:hover strong, .footer-credit a:focus-visible strong { color: var(--blue); }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.22, .7, .3, 1), transform .8s cubic-bezier(.22, .7, .3, 1); }
@media print {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .orb, .hero-grid, .section-lines-h, .section-lines-v { transform: none !important; }
}
