/* ═══════════════════════════════════════════════════════════════════════════════
   AURAX — Arabic / RTL layer. Loaded only by the Arabic pages.
   Arabic is served from one self-hosted family with real static weights 300–800;
   Latin glyphs continue to fall back to Inter / JetBrains Mono.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Self-hosted Noto Sans Arabic; each file is a real static weight. */
@font-face {
  font-family: 'AURAX Arabic';
  src: url('assets/fonts/noto-sans-arabic-300.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: 'AURAX Arabic';
  src: url('assets/fonts/noto-sans-arabic-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: 'AURAX Arabic';
  src: url('assets/fonts/noto-sans-arabic-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: 'AURAX Arabic';
  src: url('assets/fonts/noto-sans-arabic-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: 'AURAX Arabic';
  src: url('assets/fonts/noto-sans-arabic-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: 'AURAX Arabic';
  src: url('assets/fonts/noto-sans-arabic-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

:root[dir="rtl"] {
  --font-display: 'AURAX Arabic', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'AURAX Arabic', ui-monospace, monospace;
}
/* A real local file exists for every weight used below, so avoid browser-synthesized glyphs. */
[dir="rtl"] body { font-family: var(--font-display); font-synthesis: none; font-weight: 400; line-height: 1.75; font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body :not(svg, svg *, .code-panel *, .dash *, .terminal *) { letter-spacing: 0; }
[dir="rtl"] em, [dir="rtl"] i.sv-accent { font-style: normal; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.4; }
[dir="rtl"] .hero-title-v2 { font-weight: 700; line-height: 1.35; }
[dir="rtl"] .hero-typing-line { font-weight: 600; line-height: 1.5; }
[dir="rtl"] .hero-desc-v2, [dir="rtl"] .section-desc { font-weight: 400; line-height: 1.9; }
[dir="rtl"] .section-desc { font-size: 17.5px; text-wrap: pretty; }
[dir="rtl"] .section-title, [dir="rtl"] .section-title strong, [dir="rtl"] .section-title em,
[dir="rtl"] .contact-title { font-weight: 600; line-height: 1.5; text-wrap: balance; }
[dir="rtl"] .about-heading, [dir="rtl"] .sv-title, [dir="rtl"] .insight-body h3,
[dir="rtl"] .workflow-title, [dir="rtl"] .faq-q, [dir="rtl"] .project-card-content h3 { font-weight: 600; }
[dir="rtl"] .btn, [dir="rtl"] .nav-link, [dir="rtl"] .mobile-link { font-weight: 600; }
[dir="rtl"] .hero-eyebrow { font-size: 14px; font-weight: 600; line-height: 1.6; }
[dir="rtl"] .mono { font-size: 0.96em; }

/* Drawings, mock terminals / dashboards and code stay as drawn (English, left-to-right) */
[dir="rtl"] svg, [dir="rtl"] .code-panel, [dir="rtl"] .dash, [dir="rtl"] .terminal { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .code-panel, [dir="rtl"] .dash, [dir="rtl"] .terminal { text-align: left; }

/* Phone numbers, e-mail and URLs keep their own (left-to-right) order */
[dir="rtl"] bdi[dir="ltr"], [dir="rtl"] .pm-live-url { unicode-bidi: isolate; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
[dir="rtl"] input[type="email"]::placeholder { direction: ltr; }

/* ─── Arrows & icons that point "forward" ─────────────────────────────────────── */
svg.ico-flip { transform: scaleX(-1); }
.btn-primary:hover svg.ico-flip, .btn-ghost:hover svg.ico-flip { transform: scaleX(-1) translateX(4px); }
.workflow-cta:hover svg.ico-flip { transform: scaleX(-1) translateX(3px); }

/* ─── Accessibility, progress, navigation ─────────────────────────────────────── */
.skip-link { left: auto; right: 16px; }
.scroll-progress { left: auto; right: 0; }
.nav-inner { padding: 12px 24px 12px 12px; }
@media (max-width: 1100px) { .nav-inner { padding: 8px 16px 8px 8px; } }
.mobile-nav { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border-1); transform: translateX(-100%); }
.mobile-nav.open { transform: translateX(0); }
.mobile-link:hover { padding-left: 0; padding-right: 8px; }
.mobile-link { direction: rtl; }
.hero-socials-row .mono { margin-right: 0; margin-left: 4px; }

/* ─── Stats ──────────────────────────────────────────────────────────────────── */
.stat { border-left: 0; border-right: 1px solid var(--border-1); }
.stat:first-child { border-right: 0; padding-left: 32px; padding-right: 0; }
@media (max-width: 768px) {
  .stat { padding: 20px 0; border-right: 0; border-top: 1px solid var(--border-1); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
}
.stat-suffix { margin-left: 0; margin-right: 2px; }

/* ─── Lists, checklists, steps ───────────────────────────────────────────────── */
.checklist-grid { border-left: 0; border-right: 1px solid var(--border-1); }
.checklist-col { border-right: 0; border-left: 1px solid var(--border-1); }
.check-list li, .pm-features li, .why-points li { padding-left: 0; padding-right: 26px; }
.pm-features li { padding-right: 24px; }
.check-list li::before, .pm-features li::before, .why-points li::before { left: auto; right: 0; }
.workflow-step, .faq-q { text-align: right; }
.faq-q { padding: 26px 0 26px 8px; }
.step-duration::before { margin-right: 0; margin-left: 6px; }
.process-dots { margin-left: 0; margin-right: auto; }
.sv-statement span + span::before { margin-right: 0; margin-left: 14px; }
.contact-grid { text-align: right; }
.exp-row:hover { padding-left: 0; padding-right: 12px; }

/* ─── Projects: horizontal strip starts at the right edge ────────────────────── */
.project-track { padding-left: 0; padding-right: var(--gutter); }
@media (max-width: 900px) { .project-track { padding-left: 0; padding-right: 20px; } }
@media (max-width: 640px) { .project-track { padding-left: 0; padding-right: var(--gutter); } }
.pm-media-label { left: auto; right: 16px; }
.pm-close { right: auto; left: 16px; }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.field select { padding: 12px 16px 12px 40px; background-position: left 14px center; }

/* ─── Floating actions: back-to-top on the left, assistant on the right ──────── */
.float-actions { right: auto; left: max(20px, env(safe-area-inset-left)); }
.fab-whatsapp { left: auto; right: max(20px, env(safe-area-inset-right)); }
@media (max-width: 560px) {
  .float-actions { right: auto; left: max(16px, env(safe-area-inset-left)); }
  .fab-whatsapp { left: auto; right: max(16px, env(safe-area-inset-right)); }
}
.chat-panel { left: auto; right: max(20px, env(safe-area-inset-right)); transform-origin: bottom right; }
.chat-teaser { left: auto; right: max(20px, env(safe-area-inset-right)); border-end-start-radius: 16px; border-end-end-radius: 4px; }
@media (max-width: 560px) { .chat-panel { left: 12px; right: 12px; } }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero-video-progress i { transform-origin: right center; }

/* Latin technology tags ("JavaScript ES6+") keep their own order */
.project-stack span, .pm-tech span, .tech-chip, .tech-pill { direction: ltr; unicode-bidi: isolate; }
