/* ElmamSoft Design System / phase 03. Loaded after legacy component styles.
   Public semantic tokens are the shared contract for phases 04–10. */
:root {
  --ds-navy: #071c32;
  --ds-ink: #142e47;
  --ds-text: #314b62;
  --ds-muted: #50677c;
  --ds-blue: #005bbd;
  --ds-blue-hover: #07478f;
  --ds-teal: #007b83;
  --ds-ice: #edf7fa;
  --ds-canvas: #f5f7fa;
  --ds-white: #fff;
  --ds-border: #d4dfe9;
  --ds-focus: #005bbd;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 48px;
  --ds-space-8: 64px;
  --ds-radius-control: 12px;
  --ds-radius-card: 20px;
  --ds-radius-panel: 28px;
  --ds-shadow-card: 0 8px 32px rgb(7 28 50 / .055);
  --ds-shadow-raised: 0 18px 54px rgb(7 28 50 / .10);
  --ds-duration: 200ms;
  --ds-ease: cubic-bezier(.2,.75,.2,1);
  --ds-font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --ds-font-en: "Inter", "Segoe UI", Arial, sans-serif;
  --color-brand-50: #edf4ff;
  --color-brand-100: #dceaff;
  --color-brand-500: var(--ds-blue);
  --color-brand-600: var(--ds-blue);
  --color-brand-700: var(--ds-blue-hover);
  --color-ink-950: var(--ds-navy);
  --color-ink-900: var(--ds-ink);
  --color-ink-700: var(--ds-text);
  --color-muted-600: var(--ds-muted);
  --color-surface-50: var(--ds-canvas);
  --color-surface-100: var(--ds-ice);
  --color-border: var(--ds-border);
  --radius-sm: var(--ds-radius-control);
  --radius: var(--ds-radius-card);
  --radius-lg: var(--ds-radius-panel);
  --shadow-sm: var(--ds-shadow-card);
  --shadow-md: var(--ds-shadow-raised);
  --polish-shadow-card: var(--ds-shadow-card);
  --polish-shadow-hover: var(--ds-shadow-raised);
  --ease: var(--ds-ease);
}
body { font-family: var(--ds-font-ar); min-width: 0; }
.ltr-page { font-family: var(--ds-font-en); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .eyebrow { letter-spacing: normal; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.35; }
.eyebrow::before { background: var(--ds-teal); }
.section { padding-block: clamp(64px, 7vw, 108px); }
.section-tight { padding-block: var(--ds-space-7); }
.section-head { margin-block-end: clamp(24px, 4vw, 40px); }
.container { width: min(calc(100% - 48px), var(--container)); }
.btn, .lang-link, .nav-toggle { border-radius: var(--ds-radius-control); min-height: 44px; }
.btn { white-space: normal; max-inline-size: 100%; }
.btn-primary { box-shadow: 0 8px 22px rgb(0 91 189 / .16); }
.btn-primary:hover { box-shadow: 0 12px 28px rgb(0 91 189 / .21); }
.btn:disabled { transform: none; }
.site-header { border-bottom-color: var(--ds-border); }
.site-nav a.active::after { background: var(--ds-teal); }
.footer { background: var(--ds-navy); }
.surface-card, .service-card, .feature-card, .insight-card, .industry-card,
.info-card, .choice-card, .engagement-card, .sitemap-group, .deliverable,
.process-step, .why-item, .faq-list details, .sticky-panel, .article-aside,
.screenshot-card, .service-bento > article {
  border-color: var(--ds-border); border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow-card);
}
.product-card, .download-item, .project-form, .work-card, .inner-visual,
.project-form.wizard-form, .case-study, .featured-product, .featured-panel,
.cta-panel, .flow-video-teaser { border-radius: var(--ds-radius-panel); }
.field input, .field select, .field textarea { border-radius: var(--ds-radius-control); }
:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 3px; }
.footer :focus-visible, .cta-panel :focus-visible, .ai-launch:focus-visible,
.lightbox :focus-visible { outline-color: #f8d56a; }
.field :is(input,select,textarea):focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
[hidden] { display: none !important; }
/* Content is visible at all times, including failed/blocked scripts. Motion is
   optional decoration, not a gate; no animation on interactive focus targets. */
.reveal, .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible:not(:focus-within) { animation: ds-enter 420ms var(--ds-ease) both; }
  @keyframes ds-enter { from { translate: 0 5px; } to { translate: 0 0; } }
}
.brief-fallback { padding: var(--ds-space-5); }
.lightbox-dialog img { display: block; inline-size: 100%; block-size: auto; max-block-size: 76vh; object-fit: contain; }
/* Centering is direction-independent; logical start + translateX was wrong in RTL. */
.flow-video-play-indicator { inset-inline-start: auto; left: 50%; }
@media (max-width: 920px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-ready .site-nav { visibility: hidden; }
  .nav-ready .menu-open .site-nav { visibility: visible; }
  html:not(.nav-ready) .site-header { position: static; height: auto; }
  html:not(.nav-ready) .nav-shell { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.nav-ready) .nav-toggle { display: none; }
  html:not(.nav-ready) .nav-actions { order: 0; margin-inline-start: auto; }
  html:not(.nav-ready) .site-nav { position: static; order: 2; display: flex; flex-wrap: wrap; width: 100%; height: auto; max-height: none; padding: 0; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: 0; }
  html:not(.nav-ready) .site-nav a { padding: 8px 10px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .nav-shell { gap: 8px; }
  .nav-actions { gap: 6px; }
  .hero-copy h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .engineering-copy h2 { font-size: clamp(1.65rem, 8vw, 2.25rem); overflow-wrap: anywhere; }
  .footer-contact a[dir="ltr"], .surface-card .btn[href^="https://wa.me/"] { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .footer, .ai-launch { display: none !important; } }
