/* almuhallab-code.com — the rebuilt home and service pages, one stylesheet.
   Espresso Ink: black, white, grey and brown. Brown-700 is the accent on white grounds,
   tan-400 on black ones; never tan text on white (2.35:1) or brown text on black (2.85:1).
   Arabic first (dir=rtl), so every box uses logical properties. */

/* ---------- Fonts (self-hosted; the CSP allows fonts from 'self') ---------- */
@font-face{font-family:"Cairo";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/cairo-400.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/cairo-500.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/cairo-600.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/cairo-700.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:800;font-display:swap;src:url("/fonts/cairo-800.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:400 800;font-display:swap;src:url("/fonts/cairo-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Chakra Petch";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/chakrapetch-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Chakra Petch";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/chakrapetch-700.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url("/fonts/jetbrainsmono-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-warm: #f6f0ea;      /* cream-50: one warm band per page */
  --bg-soft: #f5f5f5;
  --ink: #141414;          /* body text, 18.4:1 on white */
  --ink-2: #474747;        /* secondary text, 9.4:1 */
  --ink-3: #6b6b6b;        /* small print, 5.3:1 */
  --line: #e4e4e4;
  --line-2: #cfcfcf;
  --brown: #7a5233;        /* brown-700: accent on white, 6.81:1 */
  --brown-deep: #5c3d26;   /* brown-800: hover, focus ring on white */
  --cream: #f6f0ea;
  --cream-2: #efe4d8;
  --dark: #0d0d0d;
  --dark-2: #1a1a1a;
  --dark-line: #2b2b2b;
  --on-dark: #f2f2f2;
  --on-dark-2: #bdbdbd;    /* 10.6:1 on #0d0d0d */
  --tan: #c9a27e;          /* tan-400: accent on black, 8.29:1 */
  --tan-light: #e2c9ad;    /* tan-300: hover on black */

  --sans: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display-en: "Chakra Petch", "Cairo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  /* One inner padding per kind of box, so text edges line up from card to card down the page
     (26 Nov 2026: a phone showed five different insets, 16 to 24px, in one scroll).
     --pad: cards. --pad-sm: compact cards that sit three or four to a row. --pad-screen: the dark
     "screen" illustrations (terminal, browser, chat), shared by each one's top bar and body. */
  --pad: clamp(20px, 2.5vw, 32px);
  --pad-sm: clamp(20px, 2vw, 24px);
  --pad-screen: clamp(18px, 3vw, 28px);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --focus-ring: var(--brown-deep);
  -webkit-text-size-adjust: 100%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, svg { display: block; max-inline-size: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* Chakra Petch is for English headings only; English body copy uses Cairo's own Latin face. */
:is(.h1, .h2):lang(en) { font-family: var(--display-en); letter-spacing: 0; }
::selection { background: var(--tan-light); color: var(--ink); }
:is(a, button, input, select, textarea, summary, label) { -webkit-tap-highlight-color: rgba(122, 82, 51, .18); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { --focus-ring: var(--tan); }

.wrap { inline-size: 100%; max-inline-size: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
/* Two sections on the same background share one gap. Where the background changes, each side keeps
   its own padding. The dark band was missing from that list, so the section after it began flush
   against the band, and a hero's own bottom padding was added to the next section's top, twice the
   gap of every other pair (both 26 Nov 2026). */
.section + .section { padding-block-start: 0; }
.band-warm { background: var(--bg-warm); }
.band-warm + .section, .section + .band-warm,
.section.on-dark + .section, .section + .section.on-dark { padding-block-start: var(--section); }
:is(.hero, .svc-hero) + .section:not(.band-warm, .on-dark) { padding-block-start: 0; }
.on-dark { background: var(--dark); color: var(--on-dark); }

.skip {
  position: fixed; z-index: 100; inset-block-start: 10px; inset-inline-start: 10px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--tan); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: var(--tan); }

/* Bilingual service pages: the toggle sets data-lang on <html>. */
html[data-lang="ar"] .en-only, html:not([data-lang]) .en-only { display: none !important; }
html[data-lang="en"] .ar-only { display: none !important; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brown); font-size: 14px; font-weight: 700; letter-spacing: 0;
}
.eyebrow .prompt { font-family: var(--mono); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.on-dark .eyebrow { color: var(--tan); }
.h1 { font-size: clamp(2.05rem, 5.4vw, 3.7rem); font-weight: 800; line-height: 1.28; letter-spacing: 0; text-wrap: balance; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.35; text-wrap: balance; }
.h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.9; text-wrap: pretty; max-inline-size: 38em; }
.on-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--ink-3); }
.en-line { display: block; margin-block-start: 10px; color: var(--ink-2); font-family: var(--display-en); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.5; direction: ltr; text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .en-line { text-align: right; }

.sec-head { display: grid; gap: 12px; margin-block-end: clamp(32px, 5vw, 56px); max-inline-size: 46em; }
.sec-head .lead { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 52px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { inline-size: 20px; block-size: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: #2b2b2b; }
.btn-ghost { border-color: var(--line-2); background: #ffffff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brown); color: var(--brown-deep); }
.btn-accent { background: var(--brown); color: #ffffff; }
.btn-accent:hover { background: var(--brown-deep); }
.on-dark .btn-primary, .btn-tan { background: var(--tan); color: var(--ink); }
.on-dark .btn-primary:hover, .btn-tan:hover { background: var(--tan-light); }
.on-dark .btn-ghost { border-color: #4a4a4a; background: transparent; color: var(--on-dark); }
.on-dark .btn-ghost:hover { border-color: var(--tan); color: var(--tan-light); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brown); font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "←"; font-family: var(--sans); transition: transform .15s ease; }
html[dir="ltr"] .link-arrow::after { content: "→"; }
.link-arrow:hover { color: var(--brown-deep); }
.link-arrow:hover::after { transform: translateX(-3px); }
html[dir="ltr"] .link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: var(--dark); color: var(--on-dark); border-block-end: 1px solid var(--dark-line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-block-size: var(--header-h); }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; color: #ffffff; text-decoration: none; direction: ltr; white-space: nowrap; }
.wordmark .wm-name { font-family: var(--display-en); font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; }
.wordmark .wm-code { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--tan); letter-spacing: .12em; }
.wordmark .wm-code::before { content: ">_ "; }
.site-nav { display: flex; gap: 4px; margin-inline-start: 24px; }
.site-nav a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 14px; border-radius: 8px; color: #d4d4d4; font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--tan-light); }
.site-header .actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.site-header .btn { min-block-size: 44px; padding: 8px 18px; font-size: .95rem; white-space: nowrap; }
/* A service page's phone header holds the wordmark and the language switch; its quote button
   would wrap there, and the hero's WhatsApp button and the «تواصل» link already sit one tap away. */
@media (max-width: 520px) { .site-header .actions:has(.lang-btn) .btn { display: none; } }
.lang-btn { min-inline-size: 44px; min-block-size: 44px; border: 1.5px solid #4a4a4a; border-radius: 10px; background: transparent; color: var(--on-dark); font-family: var(--display-en); font-weight: 700; cursor: pointer; }
.lang-btn:hover { border-color: var(--tan); color: var(--tan-light); }
@media (max-width: 899px) {
  .site-header .bar { gap: 12px; }
  .site-header .site-nav { display: none; }
}
.site-header .btn .short { display: none; }
/* The wordmark (221px) and the long label (125px) need 390px of screen. Below that the button ran
   into the gutter, and at 360 it left the screen and the page scrolled sideways. */
@media (max-width: 389px) {
  .site-header .btn .long { display: none; }
  .site-header .btn .short { display: inline; }
}
@media (max-width: 339px) {
  .wordmark .wm-name { font-size: 1.15rem; }
  .wordmark .wm-code { font-size: .76rem; }
}
/* Phone: the section links ride in a second row so they stay one tap away. */
/* Not sticky: only the 64px bar follows the reader down the page. */
.subnav { display: none; }
@media (max-width: 899px) {
  .subnav { display: block; background: var(--dark); }
  .subnav ul { display: flex; gap: 6px; overflow-x: auto; padding-block: 6px; scrollbar-width: none; }
  .subnav ul::-webkit-scrollbar { display: none; }
  .subnav a { display: inline-flex; align-items: center; min-block-size: 40px; padding-inline: 14px; border-radius: 999px; background: var(--dark-2); color: #d4d4d4; font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
}

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) var(--section); }
.hero .grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero .grid { grid-template-columns: 1.08fr .92fr; } }
.hero .copy { display: grid; gap: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 6px; }
@media (max-width: 520px) { .hero .ctas .btn { flex: 1 1 100%; } }
.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-block-start: 8px; color: var(--ink-3); font-size: .92rem; }
.proof-line a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; border-block-end: 1.5px solid var(--tan-light); }
.proof-line a:hover { border-color: var(--brown); }
.proof-line img { block-size: 22px; inline-size: auto; }

/* The terminal card: the brand's ">_" motif, showing work that is live today. */
.term { border-radius: var(--radius); background: var(--dark); color: var(--on-dark); box-shadow: 0 24px 60px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12); overflow: hidden; }
.term .top { display: flex; align-items: center; gap: 8px; padding: 14px var(--pad-screen); border-block-end: 1px solid var(--dark-line); direction: ltr; }
.term .dot { inline-size: 11px; block-size: 11px; border-radius: 50%; background: #3a3a3a; }
.term .title { margin-inline-start: 10px; color: #8f8f8f; font-family: var(--mono); font-size: .78rem; }
.term .body { display: grid; gap: 14px; padding: var(--pad-screen); font-family: var(--mono); font-size: clamp(.8rem, 1.5vw, .92rem); line-height: 1.7; direction: ltr; text-align: left; }
.term .cmd { color: #e6e6e6; }
.term .cmd::before { content: "$ "; color: var(--tan); }
.term .row { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--dark-line); border-radius: 10px; background: var(--dark-2); text-decoration: none; color: inherit; }
.term a.row:hover { border-color: #4a4a4a; }
.term .row .ok { color: var(--tan); }
.term .muted-dark { color: #8f8f8f; }   /* 5.6:1 on the row's #1a1a1a */
.term .row .host { color: #ffffff; font-weight: 600; }
/* Under its host name, on the terminal's one left edge. */
.term .row .desc { grid-column: 2; direction: rtl; text-align: left; color: var(--on-dark-2); font-family: var(--sans); font-size: .9rem; }
.term .next { color: var(--tan-light); }
.term .next .ar { direction: rtl; unicode-bidi: isolate; font-family: var(--sans); }
.term .caret { display: inline-block; inline-size: .6em; block-size: 1.1em; vertical-align: -.2em; background: var(--tan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Work (proof) ---------- */
.work-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.work-card:hover { border-color: var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .08); }
.work-card .shot { aspect-ratio: 1200 / 630; background: var(--bg-soft); }
.work-card .shot img { inline-size: 100%; block-size: 100%; object-fit: cover; }
/* A column, so the link can sit on the card's last line: two cards in a row then end on one line. */
.work-card .body { display: flex; flex-direction: column; gap: 14px; padding: var(--pad); }
.work-card .name { display: flex; align-items: center; gap: 12px; }
.work-card .name .tag { padding: 2px 10px; border-radius: 999px; background: var(--cream); color: var(--brown); font-size: .8rem; font-weight: 700; }
.work-card .what { color: var(--ink-2); }
.work-card ul { display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
.work-card li { position: relative; padding-inline-start: 18px; }
.work-card li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .78em; inline-size: 7px; block-size: 7px; border-radius: 2px; background: var(--brown); }
.work-card .go { align-self: flex-start; margin-block-start: auto; padding-block-start: 6px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: var(--pad); border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.svc-card:hover { border-color: var(--brown); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .07); }
.svc-card .num { font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--brown); direction: ltr; }
.svc-card .icon { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 12px; background: var(--cream); color: var(--brown-deep); }
.svc-card .icon svg { inline-size: 24px; block-size: 24px; }
.svc-card .head { display: flex; align-items: center; justify-content: space-between; }
.svc-card p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.svc-card .link-arrow { align-self: flex-start; margin-block-start: auto; padding-block-start: 4px; }
.svc-card .link-arrow::before { content: ""; position: absolute; inset: 0; } /* the whole card is the link's hit area */

.more { margin-block-start: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.more h3 { padding: 18px var(--pad) 0; font-size: 1rem; color: var(--ink-2); }
.more ul { display: grid; }
@media (min-width: 900px) { .more ul { grid-template-columns: repeat(3, 1fr); } }
.more li { display: flex; flex-direction: column; gap: 4px; padding: 16px var(--pad) 20px; }
@media (min-width: 900px) { .more li + li { border-inline-start: 1px solid var(--line); } }
@media (max-width: 899px) { .more li + li { border-block-start: 1px solid var(--line); } }
.more strong { font-size: 1.05rem; }
.more span { color: var(--ink-2); font-size: .92rem; }
.more .link-arrow { align-self: flex-start; margin-block-start: auto; font-size: .92rem; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: var(--pad-sm); border-radius: var(--radius); background: #ffffff; }
.step .n { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--brown); color: #ffffff; font-family: var(--mono); font-weight: 700; direction: ltr; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Why us (dark band) ---------- */
.why-grid { display: grid; gap: 1px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-line); overflow: hidden; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why { display: grid; gap: 12px; align-content: start; padding: var(--pad); background: var(--dark); }
.why .icon { color: var(--tan); }
.why .icon svg { inline-size: 28px; block-size: 28px; }
.why p { color: var(--on-dark-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.channels { display: grid; gap: 10px; margin-block-start: 28px; }
.channel { display: flex; align-items: center; gap: 14px; min-block-size: 64px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.channel:hover { border-color: var(--brown); }
.channel .icon { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 10px; background: var(--cream); color: var(--brown-deep); flex: none; }
.channel .icon svg { inline-size: 20px; block-size: 20px; }
.channel .label { display: grid; line-height: 1.4; }
.channel .label b { font-size: .98rem; }
.channel .label span { color: var(--ink-3); font-size: .9rem; }
.channel .label .ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }

.form-card { padding: var(--pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.form-card .h3 { margin-block-end: 4px; }
.form-card .note { margin-block-end: 22px; color: var(--ink-3); font-size: .92rem; }
.fields { display: grid; gap: 18px; }
/* The pair stacks on a phone. It had no gap of its own there, so the two fields sat 6px apart
   where every other field has 18. */
.fields .two { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink-2); font-size: .92rem; font-weight: 700; }
.field :is(input, select, textarea) {
  inline-size: 100%; min-block-size: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: #ffffff; color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.6;
}
.field textarea { min-block-size: 128px; resize: vertical; }
/* The browser's own arrow sat 6px from the box edge. This one keeps the text's 14px inset. */
.field select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-size: 6px 6px; background-repeat: no-repeat;
  background-position: left 14px top 50%, left 20px top 50%;
}
html[dir="ltr"] .field select { background-position: right 20px top 50%, right 14px top 50%; }
.field :is(input, select, textarea):hover { border-color: #a8a8a8; }
.field :is(input, select, textarea):focus-visible { border-color: var(--brown-deep); outline-offset: 1px; }
.field .hint { color: #b42318; font-size: .88rem; display: none; }
.field [aria-invalid="true"] { border-color: #b42318; }
.field [aria-invalid="true"] ~ .hint { display: block; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form-card .btn { inline-size: 100%; margin-block-start: 22px; }
.form-card .btn.golink { margin-block-start: 12px; }
.form-card .send[disabled] { opacity: .7; cursor: default; }
.form-status { margin-block-start: 12px; color: var(--ink-2); font-size: .92rem; }
.form-status:empty { display: none; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: var(--ink) !important;
}

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(48px, 6vw, 72px) 28px; }
.site-footer .top { display: grid; gap: 36px; padding-block-end: 36px; border-block-end: 1px solid var(--dark-line); }
@media (min-width: 900px) { .site-footer .top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .about p { margin-block-start: 14px; max-inline-size: 34em; color: var(--on-dark-2); font-size: .95rem; }
.site-footer h3 { margin-block-end: 12px; color: #ffffff; font-size: .95rem; }
.site-footer nav ul { display: grid; gap: 2px; }
.site-footer nav a { display: inline-flex; align-items: center; min-block-size: 40px; color: var(--on-dark-2); font-size: .93rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--tan-light); }
.site-footer .ltr { direction: ltr; unicode-bidi: isolate; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block-start: 24px; color: #9a9a9a; font-size: .85rem; }

/* ---------- Service pages ---------- */
.crumbs { padding-block: 24px 0; color: var(--ink-3); font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-2); }
.crumbs a { display: inline-flex; align-items: center; min-block-size: 32px; color: var(--ink-2); text-decoration: none; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--brown); }
.svc-hero { padding-block: clamp(28px, 5vw, 56px) var(--section); }
.svc-hero .grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .svc-hero .grid { grid-template-columns: 1.05fr .95fr; } }
.svc-hero .copy { display: grid; gap: 20px; }
.svc-hero .h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
.svc-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .svc-hero .ctas .btn { flex: 1 1 100%; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .93rem; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--brown); }

/* Chat example (AI employee page) */
.chat { border-radius: var(--radius); background: var(--dark); color: var(--on-dark); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); overflow: hidden; }
.chat .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--pad-screen); border-block-end: 1px solid var(--dark-line); }
.chat .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.chat .avatar { display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--tan); color: var(--ink); font-family: var(--mono); font-size: .8rem; font-weight: 700; direction: ltr; }
.chat .status { color: var(--on-dark-2); font-size: .82rem; font-weight: 500; }
.chat .label { padding: 2px 10px; border: 1px solid #4a4a4a; border-radius: 999px; color: var(--on-dark-2); font-size: .78rem; }
.chat .msgs { display: grid; gap: 12px; padding: var(--pad-screen); }
.bubble { max-inline-size: 85%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.75; }
.bubble.in { justify-self: start; border-start-start-radius: 4px; background: var(--dark-2); color: var(--on-dark); }
.bubble.out { justify-self: end; border-start-end-radius: 4px; background: var(--tan); color: var(--ink); }
.bubble.out small { display: block; margin-block-start: 4px; color: #3d2817; font-size: .78rem; font-weight: 600; }

/* Hero illustrations for the other service pages: drawn in CSS, labelled «مثال», no figures or claims. */
.mock { position: relative; border-radius: var(--radius); background: var(--dark); color: var(--on-dark); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); overflow: hidden; }
.mock .tag-example { position: absolute; inset-block-start: 14px; inset-inline-end: 16px; z-index: 1; padding: 2px 10px; border: 1px solid #4a4a4a; border-radius: 999px; background: var(--dark); color: var(--on-dark-2); font-size: .78rem; }
/* The browser bar runs left to right (dots, then the address), so the tag sits at its right end in both languages. */
.mock-browser .tag-example { inset-block-start: 10px; right: var(--pad-screen); left: auto; }
.mock-browser .top { display: flex; align-items: center; gap: 8px; padding: 14px var(--pad-screen); border-block-end: 1px solid var(--dark-line); direction: ltr; }
.mock-browser .dot { inline-size: 11px; block-size: 11px; border-radius: 50%; background: #3a3a3a; }
.mock-browser .url { margin-inline-start: 12px; padding: 4px 14px; border-radius: 999px; background: var(--dark-2); color: #8f8f8f; font-family: var(--mono); font-size: .78rem; }
.mock-browser .page { display: grid; gap: 22px; padding: var(--pad-screen); }
.wf-nav { display: flex; align-items: center; justify-content: space-between; }
.wf-logo { inline-size: 64px; block-size: 14px; border-radius: 4px; background: var(--tan); }
.wf-links { display: flex; gap: 10px; }
.wf-links i { inline-size: 34px; block-size: 8px; border-radius: 4px; background: #3a3a3a; }
.wf-hero { display: grid; gap: 10px; justify-items: start; padding-block: 8px; }
.wf-line { block-size: 16px; border-radius: 5px; background: #f2f2f2; }
.wf-line.l1 { inline-size: 78%; } .wf-line.l2 { inline-size: 56%; }
.wf-text { inline-size: 64%; block-size: 8px; border-radius: 4px; background: #4a4a4a; }
.wf-btn { inline-size: 108px; block-size: 30px; margin-block-start: 6px; border-radius: 8px; background: var(--tan); }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wf-cards span { display: grid; gap: 8px; align-content: start; block-size: 96px; padding: 12px; border: 1px solid var(--dark-line); border-radius: 10px; background: var(--dark-2); }
.wf-cards span::before { content: ""; inline-size: 24px; block-size: 24px; border-radius: 7px; background: #3a3a3a; }
.wf-cards span::after { content: ""; inline-size: 70%; block-size: 8px; border-radius: 4px; background: #4a4a4a; }

.mock-phone { display: grid; place-items: center; padding: clamp(28px, 4vw, 40px) 20px; }
.phone { position: relative; inline-size: min(230px, 100%); aspect-ratio: 9 / 18.5; border: 8px solid #2b2b2b; border-radius: 36px; background: #141414; overflow: hidden; }
.phone .notch { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; inline-size: 72px; block-size: 18px; border-radius: 999px; background: #0d0d0d; transform: translateX(50%); }
html[dir="ltr"] .phone .notch { transform: translateX(-50%); }
.phone .screen { display: grid; gap: 12px; align-content: start; padding: 40px 14px 14px; block-size: 100%; }
.phone .bar { display: flex; align-items: center; justify-content: space-between; }
.phone .bar b { font-size: .9rem; }
.phone .bar i { inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--tan); }
.phone .banner { block-size: 92px; border-radius: 14px; background: linear-gradient(135deg, var(--brown) 0%, var(--tan) 100%); }
.phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .tiles span { block-size: 64px; border-radius: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.phone .toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f2f2f2; color: var(--ink); font-size: .8rem; font-weight: 700; line-height: 1.5; }
.phone .toast::before { content: ""; flex: none; inline-size: 22px; block-size: 22px; border-radius: 7px; background: var(--brown); }
.phone .nav { position: absolute; inset-inline: 14px; inset-block-end: 14px; display: flex; justify-content: space-around; padding: 10px; border-radius: 14px; background: var(--dark-2); }
.phone .nav i { inline-size: 18px; block-size: 18px; border-radius: 6px; background: #4a4a4a; }
.phone .nav i:first-child { background: var(--tan); }

.mock-brand { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dark-line); }
.mock-brand > div { display: grid; place-items: center; min-block-size: 168px; padding: 20px; background: var(--dark); }
.mock-brand .mark svg { inline-size: 84px; block-size: 84px; color: var(--tan); }
.mock-brand .type { gap: 4px; text-align: center; }
.mock-brand .type b { font-size: 2.6rem; line-height: 1.1; color: #ffffff; }
.mock-brand .type span { color: var(--on-dark-2); font-size: .8rem; }
.mock-brand .swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; min-block-size: 0; place-items: stretch; }
/* Four across do not fit their hex labels under 380px. */
@media (max-width: 379px) { .mock-brand .swatches { grid-template-columns: repeat(2, 1fr); } }
.swatch { display: grid; align-content: end; block-size: 84px; padding: 8px 10px; border-radius: 10px; font-family: var(--mono); font-size: .72rem; direction: ltr; text-align: left; }
.mock-brand .light { background: #f6f0ea; }
.mock-brand .light .lockup { display: flex; align-items: center; gap: 10px; color: var(--ink); direction: ltr; }
.mock-brand .light .lockup svg { inline-size: 36px; block-size: 36px; color: var(--brown); }
.mock-brand .light .lockup b { font-family: var(--display-en); font-size: 1.1rem; letter-spacing: .08em; }

.feat-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { display: grid; gap: 10px; align-content: start; padding: var(--pad-sm); border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.feat .num { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--brown); direction: ltr; text-align: start; }
.feat p { color: var(--ink-2); font-size: .96rem; }

.faq-list { display: grid; gap: 12px; max-inline-size: 860px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 60px; padding: 14px var(--pad-sm); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 8px; background: var(--cream); color: var(--brown-deep); font-family: var(--mono); font-size: 1.1rem; }
.faq[open] summary::after { content: "−"; }
.faq .a { padding: 0 var(--pad-sm) 18px; color: var(--ink-2); }

.cta-band { border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 5vw, 56px); display: grid; gap: 20px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Full width on a phone, as the hero's buttons are: two buttons of different widths looked ragged. */
@media (max-width: 520px) { .cta-band .ctas .btn { flex: 1 1 100%; } }

.other-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .other-grid { grid-template-columns: repeat(3, 1fr); } }
.other { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 72px; padding: 16px var(--pad-sm); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; font-weight: 700; transition: border-color .15s ease; }
.other:hover { border-color: var(--brown); }
.other span.en { color: var(--ink-3); font-size: .85rem; font-weight: 600; }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .subnav, .form-card, .term, .chat { display: none !important; }
  body { color: #000000; }
}
