/* ==========================================================================
   AxoOne — site stylesheet
   Palette taken from the AxoOne logo (teal arc + slate wordmark).
   ========================================================================== */

:root {
  --ink: #13262e;
  --ink-2: #1c3540;
  --slate: #3f5a65;
  --muted: #566a72;
  --teal: #269cb8;
  --teal-ink: #16728a;
  --teal-wash: #e7f4f7;
  --paper: #f4f7f7;
  --white: #ffffff;
  --line: #dbe3e6;
  --line-dark: #2d4651;
  --green: #0e7c4a;
  --green-wash: #e4f3ea;
  --wa: #25d366;

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 1.25 modular scale on a 16px base */
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.4375rem);
  --fs-3xl: clamp(2.125rem, 1.3rem + 3vw, 3.5rem);

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;

  --gutter: 20px;
  --max: 1200px;
  --header-h: 72px;
  --shadow-paper: 0 1px 0 rgba(19, 38, 46, .04), 0 18px 40px -18px rgba(19, 38, 46, .28);
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; color: inherit; }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-l); }
h4 { font-size: var(--fs-m); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: #fff; }
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--font-body); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-s); line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--teal-ink); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #0b2b1a; }
.btn--wa:hover { background: #1fb457; color: #0b2b1a; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--teal-wash); color: var(--ink); }
.on-ink .btn--ghost { color: #fff; }
.on-ink .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
@media (max-width: 600px) { .brand img { height: 36px; } }

.nav { margin-inline-start: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none;
}
.nav .nav-link:hover, .nav .nav-link[aria-expanded="true"] { background: var(--paper); }
.nav .nav-link[aria-current="page"] { color: var(--teal-ink); }
.nav .nav-link .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.nav .nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -16px;
  width: min(640px, 90vw); padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 24px 50px -20px rgba(19, 38, 46, .35);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.menu[hidden] { display: none; }
.menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu a:hover { background: var(--paper); }
.menu a .icon { width: 22px; height: 22px; color: var(--teal-ink); margin-top: 2px; }
.menu strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: .95rem; line-height: 1.3; }
.menu small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; margin-top: 2px; }
.menu .menu-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 12px 2px; font-size: var(--fs-s); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-link { font-family: var(--font-body); font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; }
.lang-link:hover { background: var(--paper); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-actions .btn { min-height: 42px; padding: 9px 16px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 49; overflow-y: auto; padding: 8px var(--gutter) 40px; border-top: 1px solid var(--line); }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer > ul > li { border-bottom: 1px solid var(--line); }
.drawer a, .drawer summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; text-decoration: none; color: var(--ink); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer details ul { padding: 0 0 10px 12px; }
.drawer details a { font-family: var(--font-body); font-weight: 400; font-size: 1rem; padding: 10px 2px; color: var(--slate); }
.drawer .btn-row { margin-top: 24px; }
.drawer .btn { flex: 1 1 100%; }
body.drawer-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #e8f0f2; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a:not(.btn) { color: #8fd3e4; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--muted); font-size: var(--fs-l); line-height: 1.55; margin: 0; }
.section--ink .section-head p { color: #b7c8ce; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }
.lede { font-size: var(--fs-l); line-height: 1.55; color: var(--slate); max-width: 62ch; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin-bottom: .35em; }
.hero h1 .ar { display: block; text-align: left; font-size: .42em; letter-spacing: 0; font-weight: 500; color: var(--slate); margin-top: .5em; line-height: 1.4; }
.hero .lede { margin-bottom: 28px; }
.hero-proof { margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--slate); font-size: var(--fs-s); max-width: 60ch; }
.hero-proof strong { color: var(--ink); font-weight: 600; }

/* The receipt — the one memorable thing on the home page */
.counter { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 0 20px; }
.counter::before {
  content: ""; position: absolute; inset: 0 6% 0; border-radius: 28px;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-ink) 100%);
  transform: rotate(-3deg);
}
.receipt {
  position: relative; width: min(340px, 100%);
  background: #fff; color: #1d2a30;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55;
  padding: 22px 22px 34px;
  box-shadow: var(--shadow-paper);
  --tooth: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  transform-origin: top center;
}
.receipt__shop { text-align: center; border-bottom: 1px dashed #b9c4c8; padding-bottom: 12px; margin-bottom: 10px; }
.receipt__shop b { display: block; font-size: 15px; font-family: var(--font-display); font-weight: 600; }
.receipt__shop .ar-name { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.receipt__type { text-align: center; font-weight: 600; margin: 6px 0 10px; }
.receipt__type span { display: block; font-family: var(--font-body); }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt td:last-child { text-align: end; white-space: nowrap; }
.receipt .meta td { color: #4c5c63; }
.receipt .items { border-top: 1px dashed #b9c4c8; border-bottom: 1px dashed #b9c4c8; margin: 8px 0; }
.receipt .items td { padding: 4px 0; }
.receipt .total td { font-weight: 600; font-size: 14px; padding-top: 6px; }
.receipt__qr { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.receipt__qr svg { width: 104px; height: 104px; flex: none; }
.receipt__qr p { margin: 0 0 30px; font-size: 11px; color: #4c5c63; line-height: 1.45; }
.stamp {
  position: absolute; inset-inline-end: -22px; bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-wash); color: var(--green);
  border: 2px solid var(--green); border-radius: 8px;
  padding: 6px 12px; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  transform: rotate(-8deg);
  box-shadow: 0 6px 18px -8px rgba(14, 124, 74, .6);
}
.stamp .icon { width: 16px; height: 16px; }
.receipt-caption { position: relative; text-align: center; font-size: var(--fs-xs); color: #fff; margin: 14px 0 0; opacity: .9; }

@media (prefers-reduced-motion: no-preference) {
  .js .receipt { animation: print 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .js .stamp { animation: stamp .35s cubic-bezier(.2, 1.6, .4, 1) 1.35s both; }
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .counter { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ---------- Business picker (tabs) ---------- */
.tabs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink);
}
.tab .icon { width: 18px; height: 18px; color: var(--teal-ink); }
.tab:hover { border-color: var(--slate); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab[aria-selected="true"] .icon { color: #8fd3e4; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.no-js .panel + .panel { margin-top: 56px; }
.panel[hidden] { display: none; }
.panel__img { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel h3 { font-size: var(--fs-xl); }
.panel p { color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; font-size: var(--fs-s); }
.ticks .icon { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.ticks--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } .ticks--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ticks, .ticks--3 { grid-template-columns: 1fr; } }

.also { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.also a { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); background: #fff; }
.also a:hover { border-color: var(--slate); }
.also img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.also strong { font-family: var(--font-display); font-weight: 500; display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 2px; }
.also span { color: var(--muted); font-size: var(--fs-s); line-height: 1.45; display: block; }
@media (max-width: 760px) { .also { grid-template-columns: 1fr; } .also a { grid-template-columns: 88px 1fr; } .also img { width: 88px; height: 72px; } }

/* ---------- ZATCA band ---------- */
.zatca { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.zatca p { color: #c3d3d8; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 64px; }
[dir="rtl"] .steps li { padding: 0 64px 26px 0; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: -2px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; background: var(--teal); color: #fff;
}
.steps li::after { content: ""; position: absolute; inset-inline-start: 20px; top: 46px; bottom: 6px; width: 2px; background: var(--line-dark); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--fs-l); margin-bottom: .3em; }
.steps p { margin: 0; }
.section:not(.section--ink) .steps li::after { background: var(--line); }
.section:not(.section--ink) .steps p { color: var(--slate); }

.phase-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: var(--fs-s); }
.phase-table th, .phase-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.phase-table thead th { font-family: var(--font-display); font-weight: 500; color: #fff; }
.phase-table tbody th { font-weight: 500; color: #e8f0f2; width: 30%; }
.phase-table td { color: #c3d3d8; }
.table-wrap { overflow-x: auto; }
@media (max-width: 900px) { .zatca { grid-template-columns: 1fr; } }

/* light table variant */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); margin: 8px 0 24px; }
.data-table th, .data-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--font-display); font-weight: 500; background: var(--paper); }

/* ---------- Services index ---------- */
.svc-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.svc-index a { display: grid; grid-template-columns: 44px 1fr 20px; gap: 16px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.svc-index a:hover h3 { color: var(--teal-ink); }
.svc-index .svc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-wash); color: var(--teal-ink); display: grid; place-items: center; }
.svc-index .svc-ic .icon { width: 22px; height: 22px; }
.svc-index h3 { font-size: 1.125rem; margin: 0 0 2px; transition: color .15s; }
.svc-index p { margin: 0; color: var(--muted); font-size: var(--fs-s); line-height: 1.45; }
.svc-index .chev { width: 20px; height: 20px; color: var(--slate); }
[dir="rtl"] .svc-index .chev { transform: scaleX(-1); }
@media (max-width: 760px) { .svc-index { grid-template-columns: 1fr; } }

/* ---------- Why / features ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.why > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.section--ink .why > div { border-top-color: var(--teal); }
.why .icon { width: 26px; height: 26px; color: var(--teal-ink); margin-bottom: 12px; }
.section--ink .why .icon { color: #8fd3e4; }
.why h3 { font-size: 1.125rem; }
.why p { margin: 0; color: var(--muted); font-size: var(--fs-s); }
.section--ink .why p { color: #b7c8ce; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Media + text split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__img { border-radius: var(--r-l); overflow: hidden; }
.split__img img { width: 100%; height: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Video facade */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--ink); border: 0; padding: 0; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video:hover img { opacity: 1; }
.video .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video .play .icon { width: 30px; height: 30px; margin-inline-start: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-grid figure { margin: 0; }
.client-grid img { width: 100%; aspect-ratio: 370 / 269; object-fit: cover; border-radius: var(--r-m); background: var(--paper); }
.client-grid figcaption { margin-top: 10px; font-family: var(--font-display); font-weight: 500; line-height: 1.3; }
.client-grid figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-s); color: var(--muted); }
.client-grid--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 900px) { .client-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .client-grid { gap: 14px; } }

.name-wall { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.name-wall li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-s); }
.name-wall li span { color: var(--muted); }

/* tech logos */
.tech { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.tech li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 8px 12px; text-align: center; font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.tech img { width: 100%; max-width: 110px; margin: 0 auto 4px; }
@media (max-width: 1000px) { .tech { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 560px) { .tech { grid-template-columns: repeat(3, 1fr); } }

/* cities */
.cities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 24px; gap: 0; border-top: 1px solid var(--line); }
.cities li { padding: 14px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-display); font-weight: 500; }
.cities li span { font-family: var(--font-body); font-weight: 500; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 2px; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--teal-ink); transition: transform .2s ease; margin-top: 1px; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 22px; color: var(--slate); max-width: 72ch; }
.faq .answer p:last-child { margin: 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-m); margin-bottom: 16px; }
.post time { font-size: var(--fs-xs); color: var(--muted); }
.post h3 { font-size: 1.1875rem; margin: 4px 0 8px; }
.post p { color: var(--muted); font-size: var(--fs-s); margin: 0; }
.post:hover h3 { color: var(--teal-ink); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; gap: 36px; } .post { display: grid; grid-template-columns: 160px 1fr; gap: 18px; } .post img { margin: 0; aspect-ratio: 4/3; } }
@media (max-width: 480px) { .post { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-ink); color: #fff; }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding-block: clamp(48px, 6vw, 72px); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #d6eef4; font-size: var(--fs-l); }
.cta-band .ar { display: block; font-size: var(--fs-m); margin-top: 6px; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b7c8ce; font-size: var(--fs-s); }
.site-footer a { color: #e3eef1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 64px 48px; }
.footer-top h2 { font-size: 1rem; color: #fff; margin-bottom: 14px; font-weight: 500; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.nap { font-style: normal; display: grid; gap: 10px; margin-top: 18px; }
.nap div { display: flex; gap: 10px; align-items: flex-start; }
.nap .icon { width: 18px; height: 18px; color: #8fd3e4; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.social a:hover { background: var(--ink-2); }
.social svg { width: 18px; height: 18px; fill: #e3eef1; }
.gcc { display: grid; gap: 6px; }
.gcc li { display: flex; justify-content: space-between; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* WhatsApp float */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.05); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 48px) clamp(44px, 6vw, 72px); }
.page-head--text .container { grid-template-columns: 1fr; max-width: calc(860px + var(--gutter) * 2); }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
.page-head .lede { margin-bottom: 24px; }
.page-head__img { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-paper); }
.page-head__img img { width: 100%; height: auto; }
.page-head .ar-sub { display: block; text-align: left; font-family: var(--font-body); font-size: var(--fs-l); font-weight: 500; color: var(--slate); margin: -6px 0 16px; line-height: 1.5; }
@media (max-width: 900px) { .page-head .container { grid-template-columns: 1fr; } }

.crumbs { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: #9fb0b6; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2b3d44; }
.prose ul li { margin-bottom: .35em; }
.prose img { border-radius: var(--r-m); margin: 8px 0 24px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--teal); color: var(--slate); }
.prose .ticks { margin-top: 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.card h2, .card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.card--ink { background: var(--ink); color: #c3d3d8; border-color: var(--ink); }
.card--ink h2, .card--ink h3 { color: #fff; }
.card--ink p { font-size: var(--fs-s); }
.card .btn { width: 100%; margin-top: 8px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink); font-size: var(--fs-s); }
.link-list a[aria-current="page"] { color: var(--teal-ink); font-weight: 600; }
.link-list a:hover { color: var(--teal-ink); }
.link-list .icon { width: 16px; height: 16px; color: var(--muted); }
[dir="rtl"] .link-list .icon { transform: scaleX(-1); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 12px 0 8px; }
.feature-grid > div { padding: 18px 0; border-top: 1px solid var(--line); }
.feature-grid h3 { font-size: 1.0625rem; margin: 0 0 4px; display: flex; gap: 10px; align-items: center; }
.feature-grid h3 .icon { width: 20px; height: 20px; color: var(--teal-ink); }
.feature-grid p { margin: 0; color: var(--muted); font-size: var(--fs-s); }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.ar-summary { margin: 40px 0; padding: 24px 26px; background: var(--paper); border-radius: var(--r-m); border-inline-start: 4px solid var(--teal); }
.ar-summary h2 { font-size: var(--fs-l); margin-bottom: 8px; }
.ar-summary p { margin: 0; font-size: 1.0625rem; line-height: 1.9; }

.callout { margin: 32px 0; padding: 22px 24px; border-radius: var(--r-m); background: var(--green-wash); border: 1px solid #bfe0cc; }
.callout h3 { margin: 0 0 6px; font-size: 1.0625rem; color: var(--green); display: flex; align-items: center; gap: 8px; }
.callout p { margin: 0; color: #24433a; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { display: block; text-decoration: none; color: var(--ink); }
.related img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-m); margin-bottom: 12px; }
.related strong { font-family: var(--font-display); font-weight: 500; display: block; }
.related span { color: var(--muted); font-size: var(--fs-s); }
.related a:hover strong { color: var(--teal-ink); }
@media (max-width: 760px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .related { grid-template-columns: 1fr; } }

.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.office--hq { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--ink); color: #c3d3d8; border-color: var(--ink); }
.office--hq h2, .office--hq h3 { color: #fff; }
.office--hq a { color: #8fd3e4; }
.office h3 { font-size: 1.125rem; margin-bottom: 8px; }
.office address { font-style: normal; line-height: 1.6; }
.office iframe { width: 100%; height: 100%; min-height: 260px; border: 0; border-radius: var(--r-m); }
@media (max-width: 900px) { .offices { grid-template-columns: 1fr 1fr; } .office--hq { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } .office--hq { grid-column: auto; } }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-s); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(38, 156, 184, .2); }
.form .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.thanks { text-align: center; max-width: 620px; margin-inline: auto; }
.thanks .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks .big-check .icon { width: 36px; height: 36px; }
.thanks .btn-row { justify-content: center; }

/* Article */
.article-meta { color: var(--muted); font-size: var(--fs-s); margin-top: -4px; }
.toc { font-size: var(--fs-s); }
.toc ol { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack-l > * + * { margin-top: clamp(56px, 7vw, 96px); }

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

@media print {
  .site-header, .site-footer, .wa-float, .cta-band, .aside { display: none !important; }
}
.btn svg:not(.icon) { width: 20px; height: 20px; fill: currentColor; flex: none; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .feature-grid--3 { grid-template-columns: 1fr; } }
[dir="rtl"] .receipt td:last-child { text-align: left; }
.counter > div { width: min(340px, 100%); }
/* Arabic typography */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .hero h1, [dir="rtl"] .page-head h1 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .prose p, [dir="rtl"] .prose li { font-size: 1.0625rem; line-height: 1.9; }
[dir="rtl"] .lede { line-height: 1.75; }
/* product pages */
.media-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; margin-top: 1.6em; }
.media-row h2 { margin-top: 0; }
.phone-shot { margin: 0; }
.phone-shot img { width: 100%; height: auto; border-radius: var(--r-l); margin: 0; }
@media (max-width: 700px) { .media-row { grid-template-columns: 1fr; } .phone-shot { max-width: 300px; margin-inline: auto; } }
/* mega menu */
.site-header .container { position: relative; }
.has-menu--mega { position: static; }
.menu--mega { inset-inline: var(--gutter); inset-inline-start: var(--gutter); top: calc(100% - 6px); width: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; padding: 18px; max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto; }
.menu-col { display: grid; align-content: start; gap: 2px; }
.menu-group { margin: 0 0 6px; padding: 0 12px 8px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--teal-ink); }
.menu--mega a { padding: 8px 12px; }
.menu--mega small { font-size: .78rem; }
.drawer-group { padding: 14px 2px 4px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--teal-ink); }
/* software catalogue */
.catalogue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.cat-col h3 { font-size: 1rem; color: var(--teal-ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.cat-col ul { list-style: none; margin: 0; padding: 0; }
.cat-col a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cat-col a:hover strong { color: var(--teal-ink); }
.cat-ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.cat-ic .icon { width: 19px; height: 19px; }
.cat-col strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: .98rem; line-height: 1.3; }
.cat-col small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; margin-top: 2px; }
@media (max-width: 1000px) { .catalogue { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .catalogue { grid-template-columns: 1fr; } }
.page-head__img:has(img[src*="/products/"]) { box-shadow: none; border-radius: 0; overflow: visible; }
