/* ==========================================================================
   EMABOTS — website styles (public/emabots/css/app.css)
   One stylesheet for the whole public site. Light + dark themes, LTR + RTL, phone to desktop.
   Brand: orange #F15B28, graphite #353635 (from the brand book).

   HOW THIS FILE WORKS
   - It is loaded by themes/default/layout/main.blade.php (with a ?v=<file time> suffix, so edits show up at once).
     There is no build step: edit this file directly.
   - Every colour, radius and shadow comes from the variables in section 1. Dark mode = [data-theme="dark"] on <html>
     (set by the script in main.blade.php and by the toggle in app.js). Arabic = [lang="ar"] / [dir="rtl"] on <html>.
   - RTL and responsive rules are written next to the component they change: search for [dir="rtl"], [lang="ar"]
     and @media inside the section of that component. Logical properties (inset-inline-*, margin-inline-*) are used
     wherever possible so most components need no RTL rule at all.
   - Classes named is-*, has-* are states switched by app.js; [data-*] attributes in the markup are the JS hooks.
   - Order matters: rules of equal specificity are resolved by position, so sections run shared -> specific.
     Known order constraints (do not break them when moving things):
       * 04 Shared components and 05 Forms stay above every section that overrides .btn, .field, .form or .studio.
       * 13 Motion holds ".js [data-reveal]", which ties in specificity with the hover lifts of cards: sections 10, 11
         and 12 must stay ABOVE it and sections 15, 23 and 27 BELOW it, otherwise cards animate / hover differently.
       * 29 (phone action bar) overrides .toast from section 05 and .wa-float from its own section, so it stays below them.
     This layout was produced on 2026-10-09 by moving whole blocks only (nothing was rewritten) and verified by comparing
     the computed style of every element on all pages (EN + AR, light + dark, 390 px + 1440 px): identical.

   TABLE OF CONTENTS
   01. Design tokens & themes
   02. Base, layout & accessibility helpers
   03. Typography helpers
   04. Shared components
   05. Forms & toast
   06. Navigation
   07. Home: hero
   08. Home: robots showcase
   09. Home: robot finder
   10. Home: what we do (feature cards)
   11. Team grid
   12. Home: partners
   13. Motion: scroll reveal, keyframes, reduced motion
   14. Home: production line
   15. Home: industries
   16. Home: savings calculator
   17. Home: automation readiness check
   18. Home: videos
   19. Home: book a demo
   20. Home: FAQ
   21. Quote & contact blocks
   22. Inner page hero & breadcrumb
   23. Products page
   24. Product page
   25. About page
   26. Contact page: map
   27. Downloads center
   28. Footer & OAF credit
   29. Floating UI & overlays
   30. 404 page
   ========================================================================== */

/* ==========================================================================
   01. Design tokens & themes
   CSS variables: brand colours, light / dark palette, radii, shadows, fonts (Arabic font swap).
   ========================================================================== */
:root {
  --brand: #F15B28;
  --brand-strong: #D9461A;
  --brand-soft: rgba(241, 91, 40, .10);
  --brand-glow: rgba(241, 91, 40, .35);
  /* Orange for SMALL text on light surfaces: #F15B28 is only ~3.1:1 there, this is 4.9-5.3:1 (WCAG 1.4.3). */
  --brand-text: #B93A0F;
  --graphite: #353635;

  --bg: #F5F6F8;
  --bg-alt: #ECEEF1;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --text: #15171A;
  --text-2: #4F555C;
  --text-3: #666C73; /* 4.6:1 on --bg-alt, 5:1 on white (was #868C93, 3.1-3.4:1) */
  --line: rgba(21, 23, 26, .09);
  --line-strong: rgba(21, 23, 26, .16);
  --logo-ink: #353635;

  --glass: rgba(255, 255, 255, .66);
  --glass-strong: rgba(255, 255, 255, .86);
  --menu-bg: rgba(255, 255, 255, .97);
  --glass-line: rgba(255, 255, 255, .7);
  --glass-shadow: 0 10px 40px -12px rgba(16, 24, 40, .18);

  --studio-a: #FFFFFF;
  --studio-b: #E9ECF0;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 30px 70px -24px rgba(16, 24, 40, .28);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Avenir Next (installed on most Macs, or self-hosted) with Nunito Sans as the closest free match. */
  --font-body: 'Avenir Next', 'Avenir Next Arabic', 'Nunito Sans', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-body);

  --container: 1720px;
  --edge: clamp(16px, 5vw, 100px);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #FF6534;
  --brand-strong: #F15B28;
  --brand-soft: rgba(255, 101, 52, .14);
  --brand-glow: rgba(255, 101, 52, .4);
  --brand-text: #FF6534;

  --bg: #0C0E11;
  --bg-alt: #111418;
  --surface: #15181D;
  --surface-2: #1B1F25;
  --text: #F1F2F4;
  --text-2: #AEB4BB;
  --text-3: #8A9199; /* 5.2-5.6:1 on the dark surfaces (was #737A82, 4.1:1) */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --logo-ink: #FFFFFF;

  --glass: rgba(18, 21, 26, .58);
  --glass-strong: rgba(18, 21, 26, .86);
  --menu-bg: rgba(18, 21, 26, .97);
  --glass-line: rgba(255, 255, 255, .09);
  --glass-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);

  --studio-a: #F3F4F6;
  --studio-b: #CBD0D6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);

  color-scheme: dark;
}

[lang="ar"] {
  --font-body: 'Avenir Next Arabic', 'Avenir Next', 'Nunito Sans', 'Noto Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
}

/* ==========================================================================
   02. Base, layout & accessibility helpers
   Reset, html / body, .container / .section wrappers, skip link, [hidden], .sr-only, .flip-rtl (mirrors arrow icons in RTL).
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 40px); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
[lang="ar"] body { font-size: 16.5px; line-height: 1.85; }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
/* Themed placeholder (the browser default grey is 3.6:1 on the dark fields): 5:1 light, 5.2:1 dark. */
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
/* The search overlay sits on translucent glass over the dimmed page: the stronger grey keeps 4.5:1 there. */
.search__bar input::placeholder { color: var(--text-2); }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: var(--text); }
[lang="ar"] :is(h1, h2, h3, h4, h5) { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--brand-text); color: #fff; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - var(--edge) * 2); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.flip-rtl { display: inline-block; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ==========================================================================
   03. Typography helpers
   .eyebrow, .section-head, .title-*, .lead, .muted.
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-text);
}
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.title-xl { font-size: clamp(32px, 4.6vw, 56px); }
.title-lg { font-size: clamp(28px, 3.6vw, 44px); }
.title-md { font-size: clamp(22px, 2.4vw, 28px); }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.accent { color: var(--brand); }

/* ==========================================================================
   04. Shared components
   Buttons, chips + tags, glass panels, the logo, the "studio" image well, the empty state and the filter helper class.
   ========================================================================== */

/* Buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-line: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-line);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn i { font-size: .9em; transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-left { transform: translateX(3px); }
[dir="rtl"] .btn:hover i.fa-arrow-right, [dir="rtl"] .btn:hover i.fa-arrow-left { transform: scaleX(-1) translateX(3px); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-line: transparent; box-shadow: 0 10px 24px -10px var(--brand-glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 34px -12px var(--brand-glow); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-line: var(--brand); --btn-fg: var(--brand); }
.btn--glass { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-line: rgba(255,255,255,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.22); }
.btn--dark { --btn-bg: var(--text); --btn-fg: var(--bg); --btn-line: transparent; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* WhatsApp button variant (finder, floating chat) */
.btn--wa { --btn-bg: #1A7F43; --btn-fg: #fff; --btn-line: transparent; } /* white on #1A7F43 = 5.05:1 (#25d366 was 1.98:1) */
.btn--wa:hover { --btn-bg: #146636; }

/* Chips / filter tabs and tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { font-size: 12px; color: var(--text-3); } /* solid token, no opacity: 5:1 light, 5.6:1 dark (WCAG 1.4.3) */
.chip.is-active .count { color: inherit; }
.chip--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Glass panels */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

/* Logo (inline SVG, colours follow the theme) */
.logo { display: block; height: 22px; width: auto; }
.logo .logo-ema { fill: var(--brand-strong); }
[data-theme="dark"] .logo .logo-ema { fill: var(--brand); }
.logo .logo-bots { fill: var(--logo-ink); transition: fill .3s; }

/* Studio image well (light "photo studio" behind product images, also in dark mode) */
.studio { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(100% 100% at 50% 30%, var(--studio-a) 0%, var(--studio-b) 100%); }
.studio img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }

/* Empty state ("no results") */
.empty { padding: 60px 20px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* Hides items filtered out by the data-filter JS (products page, team) */
.filter-hidden { display: none !important; }

/* ==========================================================================
   05. Forms & toast
   Floating-label fields, honeypot, select, form rows (quote form, demo form) and the toast message shown after submit.
   ========================================================================== */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font-size: 15.5px; outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; inset-inline-start: 17px; top: 16px; font-size: 15px; color: var(--text-3); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--brand-soft); background: var(--surface); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 12px; font-weight: 600; color: var(--brand-text); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #e5484d; }
/* Error text under a field (added by app.js 15 on a 422 answer, linked with aria-describedby) */
.field__error { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-inline-start: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #B42318; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: currentColor; color: var(--surface); font-size: 11px; font-weight: 800; }
[data-theme="dark"] .field__error { color: #FF8A8F; }

/* Honeypot field: invisible without pushing the page sideways (matters in RTL). */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Select field (demo form) */
.field--select select {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font-size: 15.5px; outline: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
}
[dir="rtl"] .field--select select { background-position: 16px 55%, 22px 55%; }
.field--select select:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--brand-soft); }
/* iOS Safari zooms into any field under 16px and does not zoom back: 16px on phones and tablets. */
@media (max-width: 768px) {
  .field input, .field textarea, .field--select select, .dl-search input { font-size: 16px; }
}
.field--select label { top: 7px; font-size: 12px; font-weight: 600; }

/* Toast notification (JS toast()) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .45s var(--ease); }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: #e5484d; color: #fff; }
.toast i { color: var(--brand); }
.toast.is-error i { color: #fff; }

/* ==========================================================================
   06. Navigation
   Floating glass header: links, products dropdown, language / theme / search buttons, burger + phone sheet, page progress line.
   ========================================================================== */
.nav { position: fixed; inset-inline: 0; top: 14px; z-index: 100; pointer-events: none; transition: top .4s var(--ease), transform .45s var(--ease); }
.nav__bar {
  pointer-events: auto;
  /* Same edges as the page content: the logo lines up with the text below. */
  width: min(var(--container) + 36px, 100% - var(--edge) * 2 + 36px, 100% - 24px); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 16px; padding-inline: 18px 10px;
  border-radius: 20px;
  /* --glass-strong also at the top of the page: over the dark home hero the .66 glass left the links at 3.3:1 (needs 4.5:1, WCAG 1.4.3). */
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  transition: height .4s var(--ease), background .3s, box-shadow .3s, border-radius .4s var(--ease);
}
.nav.is-scrolled { top: 8px; }
.nav.is-scrolled .nav__bar { --nav-h: 58px; background: var(--glass-strong); }
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav.is-hidden:focus-within { transform: none; } /* keyboard focus never lands in a hidden header */
.nav__logo { display: flex; align-items: center; flex-shrink: 0; padding: 6px 4px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color .25s, background .25s;
}
[lang="ar"] .nav__link { font-size: 16px; }
.nav__link:hover { color: var(--text); background: var(--line); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); transform: translateX(-50%);
  animation: dotIn .5s var(--ease) both;
}
.nav__link .fa-chevron-down { font-size: 10px; transition: transform .3s var(--ease); }
.nav__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--text-2); font-size: 15px; font-weight: 700;
  transition: color .25s, background .25s, transform .3s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--line); }
.icon-btn--lang { display: inline-flex; align-items: center; gap: 7px; width: auto; padding: 0 12px; font-size: 13.5px; letter-spacing: .02em; }
.icon-btn--lang i { font-size: 13px; }
.theme-toggle i { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .fa-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .fa-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .fa-sun { opacity: 1; transform: none; }

/* Products dropdown */
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  min-width: 460px; padding: 18px; border-radius: 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 18px;
  background: var(--menu-bg); /* near-opaque: the hero text must not show through, with or without backdrop-filter */
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top center;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.nav__menu::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease), visibility 0s;
}
.nav__item:hover .fa-chevron-down, .nav__item.is-open .fa-chevron-down { transform: rotate(180deg); }
/* Escape closes the dropdown even while the pointer or focus is still on it (WCAG 1.4.13); app.js removes the class on leave. */
.nav__item.is-dismissed .nav__menu { opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); }
.nav__menu-col { display: grid; align-content: start; gap: 2px; }
.nav__menu-title { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 700; font-size: 14px; color: var(--text); border-radius: 10px; }
.nav__menu-title i { color: var(--brand); width: 18px; }
.nav__menu-col a:not(.nav__menu-title) { padding: 7px 10px 7px 36px; font-size: 14px; color: var(--text-2); border-radius: 10px; transition: background .2s, color .2s; }
[dir="rtl"] .nav__menu-col a:not(.nav__menu-title) { padding: 7px 36px 7px 10px; }
.nav__menu a:hover { background: var(--line); color: var(--text); }
.nav__menu-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 14px; }
.nav__menu-all:hover { background: var(--brand) !important; color: #fff !important; }

/* Burger + mobile sheet */
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 20px; transform: rotate(-45deg); }
.nav__mobile {
  pointer-events: auto;
  width: min(var(--container) + 36px, 100% - var(--edge) * 2 + 36px, 100% - 24px); margin: 10px auto 0; padding: 14px; border-radius: 22px;
  max-height: calc(100dvh - var(--nav-h) - 44px); overflow-y: auto;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
  display: none;
}
.nav.is-open .nav__mobile { display: block; animation: sheetIn .45s var(--ease) both; }
.nav__mobile a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-size: 18px; font-weight: 600; }
.nav__mobile a:hover, .nav__mobile a.is-active { background: var(--line); }
.nav__mobile a.is-active { color: var(--brand-text); }
.nav__mobile .sub { padding-inline-start: 12px; border-inline-start: 2px solid var(--line); margin: 0 12px 6px; }
.nav__mobile .sub a { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 9px 12px; }
.nav__mobile .btn { margin-top: 10px; }
.nav.is-open .nav__mobile > * { animation: fadeUp .5s var(--ease) both; }
.nav.is-open .nav__mobile > *:nth-child(2) { animation-delay: .04s; }
.nav.is-open .nav__mobile > *:nth-child(3) { animation-delay: .08s; }
.nav.is-open .nav__mobile > *:nth-child(4) { animation-delay: .12s; }
.nav.is-open .nav__mobile > *:nth-child(5) { animation-delay: .16s; }
.nav.is-open .nav__mobile > *:nth-child(6) { animation-delay: .2s; }

@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__actions { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .nav__bar { padding-inline: 12px 6px; gap: 8px; }
  .nav__logo .logo { height: 18px; }
  .nav__actions { gap: 2px; }
  .icon-btn--lang i { display: none; }
  .icon-btn--lang { padding: 0 10px; }
}
/* Very small phones (320-360px): smaller logo and buttons so the burger stays inside the bar (WCAG 1.4.10). */
@media (max-width: 360px) {
  .nav__bar { padding-inline: 8px 4px; gap: 4px; }
  .nav__logo { padding-inline: 2px; min-width: 0; }
  .nav__logo .logo { height: 15px; }
  .nav__actions { gap: 0; }
  .icon-btn { width: 36px; height: 38px; }
  .icon-btn--lang { width: auto; padding: 0 6px; }
  .nav__burger { width: 38px; }
  .nav__burger span { left: 9px; right: 9px; }
}

/* Downloads link inside the products dropdown */
.nav__menu-dl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.nav__menu-dl i { color: var(--brand); }

/* Page progress line (inside the glass navbar) */
.nav__bar { position: relative; }
.nav__progress { position: absolute; inset-inline: 18px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.nav__progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--brand), #ffb08f); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .nav__progress span { transform-origin: right center; background: linear-gradient(270deg, var(--brand), #ffb08f); }

/* ==========================================================================
   07. Home: hero
   Full-screen video / image hero with title lines, buttons, trust line and the stats strip.
   ========================================================================== */
.hero {
  position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate; background: #07090c;
  border-radius: 0 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,9,12,.88) 0%, rgba(7,9,12,.55) 45%, rgba(7,9,12,.15) 100%),
    linear-gradient(0deg, rgba(7,9,12,.8) 0%, transparent 40%);
}
[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(7,9,12,.88) 0%, rgba(7,9,12,.55) 45%, rgba(7,9,12,.15) 100%),
    linear-gradient(0deg, rgba(7,9,12,.8) 0%, transparent 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 60%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 20% 60%, #000 0%, transparent 65%);
}
.hero__inner { padding-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__toggle {
  position: absolute; z-index: 2; top: calc(var(--nav-h) + 30px); inset-inline-end: clamp(16px, 3vw, 32px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(7, 9, 12, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; transition: background .25s;
}
.hero__toggle:hover { background: rgba(7, 9, 12, .8); }
.hero__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero__content { max-width: 1120px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
[lang="ar"] .hero__badge { letter-spacing: 0; font-size: 14px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); animation: pulse 2s ease-out infinite; }
.hero__title {
  margin: 22px 0 20px; color: #fff;
  font-size: clamp(36px, 5.4vw, 84px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
}
[lang="ar"] .hero__title { line-height: 1.35; letter-spacing: 0; font-size: clamp(36px, 5.4vw, 80px); font-weight: 800; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title em, .hl { font-style: normal; background: linear-gradient(100deg, #ffd9c8 0%, #ff9a70 45%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl { background-image: linear-gradient(100deg, var(--brand) 0%, #ff8f5e 100%); }
.hero__text { max-width: 56ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.78); animation: fadeUp 1s .35s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: fadeUp 1s .5s var(--ease) both; }
.hero__badge { animation: fadeUp .9s var(--ease) both; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 6vw, 72px);
  max-width: 760px; border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fadeUp 1s .65s var(--ease) both;
}
.hero__stat { padding: 18px 22px; background: rgba(10,12,16,.35); }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; color: #fff; }
.hero__stat span { font-size: 13.5px; color: rgba(255,255,255,.68); }
[dir="rtl"] .hero__stat strong, [dir="rtl"] .media-card__badge strong { direction: ltr; text-align: right; }
.hero__scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: calc(clamp(36px, 6vw, 72px) + 16px);
  display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
  writing-mode: vertical-rl;
}
.hero__scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top; }
[dir="rtl"] .hero__scroll { right: auto; left: clamp(20px, 4vw, 48px); }
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero__stat { padding: 14px 12px; }
  .hero__stat span { font-size: 12px; }
  .hero__scroll { display: none; }
}

/* Trust line under the buttons */
.hero__trust { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.85); animation: fadeUp 1s .6s var(--ease) both; }
.hero__trust i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(241,91,40,.25); color: #ffb08f; font-size: 12px; }

/* ==========================================================================
   08. Home: robots showcase
   Tabbed stage with one big robot, details, arrows and a thumbnail rail (emb/robots.blade.php).
   ========================================================================== */
.showcase { position: relative; }
.showcase__stage {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr; min-height: clamp(520px, 62vh, 640px);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.showcase__visual { position: relative; overflow: hidden; background: radial-gradient(90% 90% at 50% 35%, var(--studio-a) 0%, var(--studio-b) 100%); }
.showcase__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 70%);
}
.showcase__glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(241,91,40,.22) 0%, transparent 65%); animation: glow 5s ease-in-out infinite; }
.showcase__ring { position: absolute; left: 50%; bottom: 13%; width: 62%; aspect-ratio: 4 / 1; translate: -50% 0; border-radius: 50%; border: 1px solid rgba(241,91,40,.35); background: radial-gradient(ellipse, rgba(0,0,0,.12) 0%, transparent 70%); }
.showcase__ring::after { content: ""; position: absolute; inset: -14% -8%; border-radius: 50%; border: 1px dashed rgba(53,54,53,.18); animation: spin 30s linear infinite; }
.showcase__slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 40px 70px; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.showcase__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.showcase__slide img { max-height: min(460px, 56vh); width: auto; max-width: 92%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.showcase__slide.is-active img { animation: robotIn .9s var(--ease) both, float 6s 1s ease-in-out infinite; }
.showcase__info { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); border-inline-start: 1px solid var(--line); }
.showcase__panel { display: none; flex: 1; flex-direction: column; gap: 16px; }
.showcase__panel.is-active { display: flex; animation: fadeUp .7s var(--ease) both; }
.showcase__panel .tag { align-self: flex-start; }
.showcase__name { font-size: clamp(26px, 3vw, 38px); }
.showcase__panel p { color: var(--text-2); }
.showcase__panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.showcase__count { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-3); }
.showcase__count b { color: var(--text); font-size: 22px; }
.showcase__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.showcase__arrows { display: flex; gap: 8px; }
.round-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: all .3s var(--ease); }
.round-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
[dir="rtl"] .round-btn i { transform: scaleX(-1); }
.showcase__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--line); }
.showcase__progress span { display: block; height: 100%; width: 0; background: var(--brand); }
.showcase__rail { display: flex; gap: 12px; margin-top: 16px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.showcase__thumb {
  flex: 0 0 auto; width: 150px; scroll-snap-align: start; text-align: start;
  border-radius: 16px; padding: 8px 8px 12px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s, opacity .3s;
}
.showcase__thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.showcase__thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.showcase__thumb:focus-visible { outline-offset: -2px; } /* the scrolling rail would clip an outer ring */
.showcase__thumb[hidden] { display: none; }
.showcase__thumb .studio { aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: 8px; }
/* span.studio is the image well (a span: no div inside a button), these rules are for the name only. */
.showcase__thumb span:not(.studio) { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.showcase__thumb.is-active span:not(.studio) { color: var(--text); }
@media (max-width: 900px) {
  .showcase__stage { grid-template-columns: 1fr; }
  .showcase__visual { min-height: 340px; }
  .showcase__slide img { max-height: 260px; }
  .showcase__info { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   09. Home: robot finder
   3-step wizard: task, weight, hours, then the recommended robots (emb/finder.blade.php).
   ========================================================================== */
.finder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.finder__intro { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 32px); }
.finder__progress { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; padding: 0; }
.finder__progress li { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-weight: 600; transition: color .3s; }
.finder__progress b { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); font-size: 14px; transition: all .3s var(--ease); }
.finder__progress li.is-done { color: var(--text-2); }
.finder__progress li.is-done b { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }
.finder__progress li.is-active { color: var(--text); }
.finder__progress li.is-active b { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand-glow); }
.finder__panel { position: relative; display: grid; align-content: start; min-height: 420px; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.finder__step { display: grid; gap: 16px; }
.finder__step.is-active { animation: fadeUp .5s var(--ease) both; }
.finder__step h3 { font-size: clamp(20px, 2vw, 26px); }
.finder__count { color: var(--brand-text); font-weight: 700; font-size: 13px; }
.finder__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.finder__opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px; text-align: start; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.finder__opt i { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 18px; transition: background .2s, color .2s; }
.finder__opt--row i { font-size: calc(18px * var(--s, 1)); }
.finder__opt:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.finder__opt.is-picked { border-color: var(--brand); background: var(--brand-soft); }
.finder__opt.is-picked i { background: var(--brand); color: #fff; }
.finder__badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 13px; }
.finder__match { display: grid; gap: 12px; }
.finder__match p { color: var(--text-2); }
.finder__robots { display: grid; gap: 10px; margin-top: 4px; }
.finder__robot { display: flex; align-items: center; gap: 14px; padding: 10px; padding-inline-end: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.finder__robot:hover { border-color: var(--brand); transform: translateX(4px); }
[dir="rtl"] .finder__robot:hover { transform: translateX(-4px); }
.finder__img { display: grid; place-items: center; flex-shrink: 0; width: 76px; height: 64px; border-radius: 12px; background: linear-gradient(160deg, var(--studio-a), var(--studio-b)); overflow: hidden; color: var(--text-3); }
.finder__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.finder__meta { flex: 1; min-width: 0; display: grid; }
.finder__meta b { font-size: 15.5px; }
.finder__meta small { color: var(--text-3); font-size: 13px; }
.finder__robot > i { color: var(--brand); }
.finder__summary { display: flex; flex-wrap: wrap; gap: 8px; }
.finder__summary span { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--text-2); font-size: 13px; font-weight: 600; }
.finder__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.finder__nav { display: flex; justify-content: space-between; margin-top: 18px; }
.finder__back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--text-3); font-weight: 600; font-size: 14px; }
.finder__back:hover { color: var(--brand); }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .finder__intro { position: static; }
  .finder__progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finder__progress li { flex-direction: column; gap: 6px; font-size: 12px; text-align: center; }
}

/* ==========================================================================
   10. Home: what we do (feature cards)
   Numbered cards; also used for the values on the About page.
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.feature {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 60%);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature__num { position: absolute; top: 24px; inset-inline-end: 26px; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--text-3); }
.feature__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 26px;
  background: var(--brand-soft); color: var(--brand); font-size: 22px;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.feature:hover .feature__icon { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.06); }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.feature__bar { position: absolute; inset-inline-start: 28px; bottom: 0; height: 3px; width: 40px; border-radius: 3px 3px 0 0; background: var(--brand); transition: width .6s var(--ease); }
.feature:hover .feature__bar { width: calc(100% - 56px); }

/* ==========================================================================
   11. Team grid
   Compact member cards (home + About page, emb/team.blade.php).
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.member {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.member__photo { position: relative; flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; padding: 2px; background: conic-gradient(from 180deg, var(--line-strong), var(--line-strong)); transition: background .4s; }
.member:hover .member__photo { background: conic-gradient(from 0deg, var(--brand), #ffb08f, var(--brand)); }
.member__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); background: var(--bg-alt); }
.member__photo .initials { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; border: 2px solid var(--surface); }
.member__name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.member__role { font-size: 13.5px; color: var(--text-2); line-height: 1.35; }
.member__dept { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
[lang="ar"] .member__dept { letter-spacing: 0; font-size: 12px; }

/* ==========================================================================
   12. Home: partners
   Partner logos: a static row, or a moving strip when there are 5 or more.
   ========================================================================== */
.brands { padding-block: 56px; border-block: 1px solid var(--line); }
.brands__title { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; }
[lang="ar"] .brands__title { letter-spacing: 0; font-size: 15px; }
.brands__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; }
.brands__logo { height: 48px; width: auto; max-width: 170px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .65; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
[data-theme="dark"] .brands__logo { mix-blend-mode: screen; }
[data-theme="dark"] .brands__logo { filter: grayscale(1) invert(1) brightness(1.4); opacity: .5; }
.brands__logo:hover { filter: none; opacity: 1; transform: scale(1.06); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }

/* ==========================================================================
   13. Motion: scroll reveal, keyframes, reduced motion
   data-reveal entrance animation, shared @keyframes and the prefers-reduced-motion switch-off.
   ========================================================================== */

/* Scroll reveal (JS adds .is-in) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
[dir="rtl"].js [data-reveal="left"] { transform: translateX(36px); }
[dir="rtl"].js [data-reveal="right"] { transform: translateX(-36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dotIn { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 70% { box-shadow: 0 0 0 22px rgba(241,91,40,0); } 100% { box-shadow: 0 0 0 0 rgba(241,91,40,0); } }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes robotIn { from { opacity: 0; transform: translateY(30px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   14. Home: production line
   Conveyor with clickable stations and a panel for the selected station (emb/line.blade.php).
   ========================================================================== */
.pline__track { position: relative; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 8px; padding: 12px 0 8px; }
.pline__belt {
  position: absolute; inset-inline: calc(50% / var(--n, 7)); top: 46px; height: 10px; border-radius: 6px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 14px, transparent 14px 22px), var(--bg-alt); background-size: 22px 100%, auto;
  animation: belt 1.2s linear infinite;
}
[dir="rtl"] .pline__belt { animation-direction: reverse; }
@keyframes belt { to { background-position: 22px 0, 0 0; } }
.pline__belt i { position: absolute; top: 0; width: 22px; height: 10px; border-radius: 3px; background: var(--brand); opacity: .9; animation: crate 9s linear infinite; inset-inline-start: -30px; }
.pline__belt i:nth-child(2) { animation-delay: -2.25s; background: #ffb08f; }
.pline__belt i:nth-child(3) { animation-delay: -4.5s; }
.pline__belt i:nth-child(4) { animation-delay: -6.75s; background: #ffb08f; }
@keyframes crate { from { inset-inline-start: -30px; } to { inset-inline-start: 100%; } }
.pline__station { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 4px 2px 12px; border-radius: 16px; color: var(--text-2); transition: color .2s; }
.pline__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text-2); font-size: 22px; box-shadow: var(--shadow-sm); transition: all .3s var(--ease); }
.pline__num { font-size: 12px; font-weight: 800; color: var(--text-3); }
.pline__name { font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
.pline__station:hover .pline__icon { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.pline__station.is-active { color: var(--text); }
.pline__station.is-active .pline__icon { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 8px var(--brand-soft), 0 14px 30px -12px var(--brand-glow); }
.pline__station.is-active .pline__num { color: var(--brand-text); }
.pline__station::after { content: ""; position: absolute; bottom: 0; inset-inline: 30%; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .pline__station::after { transform-origin: right; }
.pline.is-auto .pline__station.is-active::after { animation: plineTimer var(--pline-ms, 6000ms) linear forwards; }
@keyframes plineTimer { to { transform: scaleX(1); } }
.pline__controls { display: flex; justify-content: center; margin-top: 6px; }
.pline__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 700; transition: color .2s, border-color .2s; }
.pline__toggle:hover { color: var(--text); border-color: var(--text-3); }
.pline__toggle i { font-size: 11px; }
.pline__station:focus-visible { outline-offset: -2px; }
.pline__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 22px; padding: clamp(22px, 3.5vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pline__panel:not([hidden]) { animation: fadeUp .45s var(--ease) both; }
.pline__info { display: grid; gap: 12px; justify-items: start; }
.pline__step { color: var(--brand-text); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.pline__info h3 { font-size: clamp(24px, 2.6vw, 34px); }
.pline__info p { color: var(--text-2); font-size: 16px; }
.pline__gain { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; }
.pline__robots { display: grid; gap: 10px; }
.pline__robots > small { color: var(--text-3); font-weight: 700; font-size: 13px; }
.pline__robot { display: flex; align-items: center; gap: 14px; padding: 10px; padding-inline-end: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pline__robot:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pline__robot > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.pline__robot b { font-size: 16px; }
.pline__robot small { color: var(--text-3); font-size: 13px; }
.pline__robot > i { color: var(--brand); }
.pline__img { display: grid; place-items: center; flex-shrink: 0; width: 96px; height: 78px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--studio-a), var(--studio-b)); color: var(--text-3); }
.pline__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
@media (max-width: 900px) {
  .pline__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; padding-inline: 4px; scrollbar-width: none; }
  .pline__track::-webkit-scrollbar { display: none; }
  .pline__station { flex: 0 0 104px; scroll-snap-align: center; }
  .pline__belt { inset-inline: 0; }
  .pline__panel { grid-template-columns: 1fr; }
}

/* ==========================================================================
   15. Home: industries
   Cards that turn orange on hover (emb/industries.blade.php).
   ========================================================================== */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }
.industry {
  position: relative; display: grid; gap: 10px; align-content: start; min-height: 230px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, color .3s;
}
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, var(--brand) 0%, #b8360c 100%); opacity: 0; transition: opacity .45s var(--ease); }
.industry:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px var(--brand-glow); border-color: transparent; }
.industry:hover::before { opacity: 1; }
.industry__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .5s; }
.industry.has-image:hover .industry__bg { opacity: .25; }
.industry__num { position: absolute; top: 18px; inset-inline-end: 22px; font-size: 54px; font-weight: 800; line-height: 1; color: var(--line-strong); transition: color .4s; }
.industry__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 23px; margin-bottom: 10px; transition: background .4s, color .4s, transform .5s var(--ease); }
.industry h3 { font-size: 21px; transition: color .3s; }
.industry p { color: var(--text-2); font-size: 15px; transition: color .3s; }
.industry:hover .industry__icon { background: rgba(255,255,255,.18); color: #fff; transform: scale(1.08) rotate(-6deg); }
.industry:hover h3, .industry:hover p { color: #fff; }
.industry:hover .industry__num { color: rgba(255,255,255,.22); }

/* ==========================================================================
   16. Home: savings calculator
   Inputs + sliders on the left, payback result and chart on the dark panel (emb/calculator.blade.php).
   ========================================================================== */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc__intro { display: grid; gap: 14px; align-content: start; padding: clamp(26px, 4vw, 52px); }
.calc__fields { display: grid; gap: 24px; margin-top: 14px; }
.calc__field { display: grid; gap: 10px; }
.calc__field input[type="range"] { height: 4px; margin-top: 4px; }
.calc__label { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 15.5px; line-height: 1.45; }
.calc__label b { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-size: 12.5px; }
.calc__control { display: flex; align-items: stretch; gap: 8px; }
.calc__step { flex-shrink: 0; width: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 14px; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.calc__step:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.calc__step:active { transform: scale(.94); }
.calc__box { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.calc__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--brand-soft); background: var(--surface); }
.calc__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.calc__box span { flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--line-strong) var(--fill, 50%));
}
[dir="rtl"] .calc input[type="range"] { background: linear-gradient(270deg, var(--brand) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 4px 12px -2px var(--brand-glow); cursor: grab; transition: transform .2s; }
.calc input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.calc input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); cursor: grab; }
.calc__result { position: relative; display: grid; gap: 18px; align-content: center; padding: clamp(26px, 4vw, 48px); color: #fff; background: radial-gradient(120% 120% at 100% 0%, #2a160d 0%, #0d0f12 60%); overflow: hidden; }
.calc__big span { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
.calc__big strong { display: block; margin-top: 4px; font-size: clamp(48px, 6vw, 78px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.calc__big em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.6); }
.calc__sentence { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.88); }
.calc.is-long .calc__big b { background: none; color: rgba(255,255,255,.75); -webkit-text-fill-color: currentColor; }
.calc__big b { background: linear-gradient(100deg, #ffd9c8, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__big small { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: 0; }
.calc__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc__rows div { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.calc__rows span { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); }
.calc__rows strong { font-size: 18px; font-weight: 800; color: #fff; }
.calc__note { font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* Calculator chart: savings after each year (bars) vs. the cost of the robot (dashed line) */
.calc__chart { display: grid; gap: 10px; }
.calc__plot { position: relative; height: 190px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 12px; padding-top: 26px; border-bottom: 1px solid rgba(255,255,255,.16); }
.calc__bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.calc__bar-fill { display: grid; place-items: start center; width: 100%; max-width: 56px; height: var(--h, 0%); min-height: 3px; padding-top: 7px; border-radius: 10px 10px 3px 3px; background: rgba(255,255,255,.16); transition: height .9s var(--ease), background .4s, box-shadow .4s; transition-delay: calc(var(--d, 0) * 90ms); overflow: hidden; }
.calc__bar.is-paid .calc__bar-fill { background: linear-gradient(180deg, #ff9a70 0%, var(--brand) 100%); box-shadow: 0 10px 24px -10px var(--brand-glow); }
.calc__bar-fill i { font-size: 11px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .3s .6s, transform .4s .6s var(--ease); }
.calc__bar.is-first .calc__bar-fill i { opacity: 1; transform: none; }
.calc__bar-val { position: absolute; bottom: calc(var(--h, 0%) + 6px); font-size: 11.5px; font-weight: 800; color: rgba(255,255,255,.85); white-space: nowrap; transition: bottom .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); font-variant-numeric: tabular-nums; }
.calc__bar.is-paid .calc__bar-val { color: #ffc2a8; }
.calc__cost { position: absolute; z-index: 2; inset-inline: -4px; bottom: var(--c, 50%); border-top: 2px dashed rgba(255,255,255,.6); pointer-events: none; transition: bottom .7s var(--ease); }
.calc__cost span { position: absolute; inset-inline-start: 0; bottom: 5px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; background: rgba(13,15,18,.9); border: 1px solid rgba(255,255,255,.14); font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.85); white-space: nowrap; }
.calc__cost span i { color: var(--brand); }
.calc__years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; text-align: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); }
.calc__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.calc__legend span { display: inline-flex; align-items: center; gap: 7px; }
.calc__legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.calc__legend .sw--save { background: rgba(255,255,255,.22); }
.calc__legend .sw--paid { background: var(--brand); }
.calc__legend .sw--cost { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed rgba(255,255,255,.6); }
.calc__legend b { color: #fff; font-weight: 800; }
.calc__cost { z-index: 0; }
.calc__bar { z-index: 1; }
.calc__bar-val { padding: 1px 6px; border-radius: 6px; background: rgba(13,15,18,.92); }
.calc__box, .calc__box input { min-width: 0; }
.calc__intro, .calc__result { min-width: 0; }
@media (max-width: 480px) { .calc__plot, .calc__years { gap: 6px; } .calc__bar-val { font-size: 10.5px; padding: 1px 4px; } .calc__rows strong { font-size: 16px; } }
.calc__intro, .calc__fields, .calc__field { grid-template-columns: minmax(0, 1fr); }
.calc__box input { flex: 1 1 0; width: 100%; }
@media (max-width: 420px) { .calc__rows { grid-template-columns: minmax(0, 1fr); } .calc__rows div { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .calc__rows strong { white-space: nowrap; } }

/* ==========================================================================
   17. Home: automation readiness check
   Dark "control panel" quiz with a score ring (emb/readiness.blade.php).
   ========================================================================== */
.rdy { display: grid; gap: clamp(24px, 4vw, 40px); }
.rdy__head { display: grid; gap: 14px; justify-items: center; max-width: 760px; margin-inline: auto; text-align: center; }
.rdy__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(70% 90% at 0% 0%, rgba(241, 91, 40, .28), transparent 60%), linear-gradient(160deg, #1a1d23 0%, #0c0e11 100%);
  box-shadow: var(--shadow-lg);
}
.rdy__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(75% 85% at 25% 45%, #000, transparent); mask-image: radial-gradient(75% 85% at 25% 45%, #000, transparent);
}
.rdy__meter { display: grid; justify-items: center; gap: 24px; }
.rdy__ring { position: relative; width: min(100%, 290px); aspect-ratio: 1; }
.rdy__ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rdy__ticks { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 7; stroke-dasharray: .35 1.65; }
.rdy__track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 15; }
.rdy__fill {
  fill: none; stroke: var(--brand); stroke-width: 15; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 10px rgba(241, 91, 40, .65)); transition: stroke-dashoffset 1s var(--ease), stroke .4s, opacity .3s;
}
.rdy__fill.is-zero { opacity: 0; }
.rdy__fill.is-mid { stroke: #ffb020; filter: drop-shadow(0 0 10px rgba(255, 176, 32, .55)); }
.rdy__fill.is-low { stroke: #9aa3b2; filter: none; }
.rdy__value { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.rdy__value b { direction: ltr; font-size: clamp(54px, 6vw, 76px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rdy__value span { direction: ltr; margin-top: 2px; color: rgba(255, 255, 255, .5); font-weight: 700; }
.rdy__value small { margin-top: 10px; color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
[lang="ar"] .rdy__value small { letter-spacing: 0; font-size: 13px; }
.rdy__leds { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; }
.rdy__leds li { display: grid; justify-items: center; gap: 6px; color: rgba(255, 255, 255, .38); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; transition: color .3s; }
.rdy__leds i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background .3s, box-shadow .3s; }
.rdy__leds li.is-current { color: #fff; }
.rdy__leds li.is-current i { box-shadow: inset 0 0 0 2px #fff; animation: rdyLed 1.4s ease-in-out infinite; }
.rdy__leds li.is-yes, .rdy__leds li.is-some, .rdy__leds li.is-no { color: rgba(255, 255, 255, .75); }
.rdy__leds li.is-yes i { background: #2fd27a; box-shadow: 0 0 14px rgba(47, 210, 122, .8); }
.rdy__leds li.is-some i { background: #ffb020; box-shadow: 0 0 14px rgba(255, 176, 32, .8); }
.rdy__leds li.is-no i { background: #ff5a4e; box-shadow: 0 0 14px rgba(255, 90, 78, .8); }
@keyframes rdyLed { 50% { box-shadow: inset 0 0 0 2px #fff, 0 0 0 6px rgba(255, 255, 255, .08); } }

.rdy__stage { position: relative; display: grid; align-content: center; gap: 22px; min-height: 360px; }
.rdy__top { display: flex; align-items: center; gap: 14px; }
.rdy__step { flex-shrink: 0; color: #ff8a5c; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
[lang="ar"] .rdy__step { letter-spacing: 0; font-size: 14px; }
.rdy__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rdy__bar i { display: block; width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #ffb08f); transition: width .5s var(--ease); }
[dir="rtl"] .rdy__bar i { background: linear-gradient(270deg, var(--brand), #ffb08f); }
.rdy__q { display: grid; gap: 20px; }
.rdy__q.is-active, .rdy__result:not([hidden]) { animation: rdyIn .45s var(--ease) both; }
@keyframes rdyIn { from { opacity: 0; transform: translateY(14px); } }
.rdy__qicon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(241, 91, 40, .16); color: #ff8a5c; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(241, 91, 40, .35); }
.rdy__q h3 { max-width: 26ch; color: #fff; font-size: clamp(24px, 2.7vw, 36px); line-height: 1.25; }
.rdy__answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rdy__ans {
  display: grid; justify-items: center; gap: 10px; padding: 20px 10px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font-size: 16px; font-weight: 800;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.rdy__ans i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 20px; transition: background .2s, color .2s, box-shadow .2s; }
.rdy__ans:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.rdy__ans:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.rdy__ans[aria-checked="true"] { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }
.rdy__ans--yes:hover i, .rdy__ans--yes[aria-checked="true"] i { background: #2fd27a; color: #06140c; box-shadow: 0 0 18px rgba(47, 210, 122, .6); }
.rdy__ans--some:hover i, .rdy__ans--some[aria-checked="true"] i { background: #ffb020; color: #1c1304; box-shadow: 0 0 18px rgba(255, 176, 32, .55); }
.rdy__ans--no:hover i, .rdy__ans--no[aria-checked="true"] i { background: #ff5a4e; color: #1f0604; box-shadow: 0 0 18px rgba(255, 90, 78, .55); }
.rdy__result { display: grid; justify-items: start; gap: 16px; }
.rdy__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(47, 210, 122, .15); color: #6ee7a7; font-size: 14px; font-weight: 800; }
.rdy__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.rdy__badge.is-mid { background: rgba(255, 176, 32, .15); color: #ffc65a; }
.rdy__badge.is-low { background: rgba(255, 255, 255, .1); color: #d3d8e0; }
.rdy__verdict { max-width: 34ch; color: #fff; font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; line-height: 1.45; }
.rdy__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rdy__chips span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .82); font-size: 13px; font-weight: 600; }
.rdy__chips span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9aa3b2; }
.rdy__chips span.is-yes::before { background: #2fd27a; }
.rdy__chips span.is-some::before { background: #ffb020; }
.rdy__chips span.is-no::before { background: #ff5a4e; }
.rdy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.rdy__link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; color: rgba(255, 255, 255, .62); font-size: 14px; font-weight: 700; }
.rdy__link:hover { color: #fff; }
.rdy__back { justify-self: start; }
@media (max-width: 900px) {
  .rdy__panel { grid-template-columns: minmax(0, 1fr); }
  .rdy__ring { width: 210px; }
  .rdy__stage { min-height: 0; }
}
@media (max-width: 520px) {
  .rdy__answers { gap: 8px; }
  .rdy__ans { padding: 14px 6px; font-size: 14px; }
  .rdy__ans i { width: 40px; height: 40px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .rdy__leds li.is-current i { animation: none; } }

/* Score digits: number and "/100" on one line */
.rdy__value { grid-template-columns: auto auto; align-items: baseline; column-gap: 4px; direction: ltr; }
.rdy__value small { grid-column: 1 / -1; }
[dir="rtl"] .rdy__value small { direction: rtl; }

/* ==========================================================================
   18. Home: videos
   One big video card and smaller ones; opens the video modal (emb/videos.blade.php).
   ========================================================================== */
/* One big video, the others stacked beside it */
.videos { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.videos--single { grid-template-columns: 1fr; }
.video-card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; color: #fff; text-align: start; isolation: isolate; }
.video-card--big { grid-row: span var(--rows, 1); aspect-ratio: auto; min-height: 100%; }
.videos--single .video-card--big { aspect-ratio: 16 / 9; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), opacity .4s; opacity: .85; }
.video-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 55%); }
.video-card:hover img { transform: scale(1.06); opacity: 1; }
.video-card__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 18px; transition: transform .4s var(--ease), background .3s; }
.video-card--big .video-card__play { width: 86px; height: 86px; font-size: 24px; background: var(--brand); border-color: var(--brand); animation: ring 2.4s infinite; }
.video-card:hover .video-card__play { transform: scale(1.1); background: var(--brand); border-color: var(--brand); }
.video-card__title { position: absolute; inset-inline: 18px; bottom: 14px; font-weight: 700; font-size: 15px; }
.video-card--big .video-card__title { font-size: 22px; inset-inline: 26px; bottom: 22px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } .video-card--big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; } }

/* ==========================================================================
   19. Home: book a demo
   Demo type, day / time picker and contact fields (emb/demo.blade.php).
   ========================================================================== */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.demo__intro { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 32px); }
.demo__visual { position: relative; display: grid; place-items: center; height: 280px; margin-top: 16px; border-radius: var(--radius-lg); background: radial-gradient(60% 60% at 50% 45%, var(--brand-soft), transparent 70%), var(--surface); border: 1px solid var(--line); overflow: hidden; }
.demo__visual > i { font-size: 92px; color: var(--brand); filter: drop-shadow(0 16px 24px var(--brand-glow)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.demo__ring { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 2px dashed var(--brand-glow); animation: spin 18s linear infinite; }
.demo__ring--2 { width: 250px; height: 250px; border-style: solid; border-color: var(--line-strong); animation-duration: 30s; animation-direction: reverse; }

.demo__chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 13px; }
.demo__chip i { color: var(--brand); }
.demo__chip--a { top: 26px; inset-inline-start: 22px; }
.demo__chip--b { bottom: 26px; inset-inline-end: 22px; }
.demo__form { gap: 22px; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo__group { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.demo__group legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; font-size: 17px; }
.demo__group legend b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; }
.demo__types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.demo__type, .demo__day, .demo__time { position: relative; }
.demo__type input, .demo__day input, .demo__time input { position: absolute; opacity: 0; pointer-events: none; }
.demo__type span { display: grid; align-content: start; gap: 4px; height: 100%; padding: 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; transition: all .2s; }
.demo__type i { margin-bottom: 4px; color: var(--brand); font-size: 20px; }
.demo__type b { font-size: 15px; }
.demo__type small { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.demo__type input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.demo__type input:focus-visible + span, .demo__day input:focus-visible + span, .demo__time input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.demo__day input:focus-visible + span { outline-offset: -2px; outline-color: var(--text); }
.demo__days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.demo__day { flex: 0 0 auto; scroll-snap-align: start; }
.demo__day span { display: grid; justify-items: center; width: 64px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; transition: all .2s; }
.demo__day small { color: var(--text-3); font-size: 12px; font-weight: 700; } /* 12px minimum on phones */
.demo__day b { font-size: 20px; line-height: 1.2; }
.demo__day input:checked + span { background: #B93A0F; border-color: #B93A0F; color: #fff; }
.demo__day input:checked + span small { color: rgba(255, 255, 255, .92); }
.demo__times { display: flex; flex-wrap: wrap; gap: 8px; }
.demo__time span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 700; font-size: 14px; cursor: pointer; direction: ltr; transition: all .2s; }
.demo__time input:checked + span { background: #B93A0F; border-color: #B93A0F; color: #fff; }
/* Chosen day / time tiles: white on the brand orange was 2.9-3.4:1; the darker brand shade (--brand-text of the light theme,
   fixed in both themes) gives 5.7:1 for the text and 4.6:1 for the small labels (WCAG 1.4.3). */
.demo__form .field textarea { min-height: 80px; }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo__intro { position: static; }
  .demo__visual { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .pline__belt, .pline__belt i, .demo__visual > i, .demo__ring { animation: none !important; }
}

/* ==========================================================================
   20. Home: FAQ
   Accordion built on <details> (emb/faq.blade.php).
   ========================================================================== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 16px; }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); color: var(--text); font-size: 13px; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq__item[open] summary i { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__answer { padding: 0 22px 20px; color: var(--text-2); animation: fadeUp .45s var(--ease) both; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ==========================================================================
   21. Quote & contact blocks
   Two-column quote section, contact list, social buttons, form card and the orange call-to-action band.
   ========================================================================== */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.quote__info { display: grid; gap: 22px; }
.contact-list { display: grid; gap: 10px; margin-top: 8px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
a.contact-item:hover { border-color: var(--brand); transform: translateX(4px); }
[dir="rtl"] a.contact-item:hover { transform: translateX(-4px); }
.contact-item__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.contact-item small { display: block; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
[lang="ar"] .contact-item small { letter-spacing: 0; text-transform: none; font-size: 13px; }
.contact-item span { font-weight: 600; direction: ltr; unicode-bidi: plaintext; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-2); transition: all .3s var(--ease); }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.form-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--text-2); margin-bottom: 24px; }

.cta-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); color: #fff; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, #ff8a5c 0%, var(--brand-strong) 45%, #9e2e08 100%);
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 38px); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 60ch; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #15171A; --btn-line: transparent; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }

/* ==========================================================================
   22. Inner page hero & breadcrumb
   Header of About / Contacts / Downloads / Products (emb/page-hero.blade.php).
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + 90px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.page-hero::after { content: ""; position: absolute; z-index: -1; top: -30%; inset-inline-end: -10%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft) 0%, transparent 65%); animation: glow 7s ease-in-out infinite; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 72px); margin: 14px 0 16px; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; } /* tap height >= 24px (WCAG 2.5.8) */
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb i { font-size: 9px; }
[dir="rtl"] .breadcrumb i { transform: scaleX(-1); }

/* ==========================================================================
   23. Products page
   Sticky filter chips, product grid and product cards (product/products.blade.php, emb/product-card.blade.php).
   ========================================================================== */
.filters { position: sticky; top: calc(var(--nav-h) + 26px); z-index: 20; display: grid; gap: 10px; padding: 12px; margin-bottom: 28px; border-radius: 20px; }
.filters .chips--sub { padding-top: 10px; border-top: 1px solid var(--line); }
.filters .chips--sub:empty { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.p-card {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.p-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.p-card .studio { aspect-ratio: 4 / 3.2; }
.p-card:hover .studio img { transform: scale(1.07) translateY(-4px); }
.p-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.p-card__body small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 3px; }
[lang="ar"] .p-card__body small { letter-spacing: 0; font-size: 13px; }
.p-card__body h3 { font-size: 17px; line-height: 1.3; font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.p-card__go { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); color: var(--text); transition: all .4s var(--ease); }
.p-card:hover .p-card__go { background: var(--brand); color: #fff; transform: rotate(-45deg); }
[dir="rtl"] .p-card__go i { transform: scaleX(-1); }
[dir="rtl"] .p-card:hover .p-card__go { transform: rotate(45deg); }
.p-card.filter-hidden { display: none; }

/* Tilt target (image well inside product cards, moved by JS) */
[data-tilt-target] { transition: transform .3s ease-out; will-change: transform; }
.p-card:hover { transform: translateY(-4px); }

/* Phones: lighter product browsing */
@media (max-width: 720px) {
  .filters { position: static; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card { border-radius: 16px; }
  .p-card__body { padding: 10px 12px 12px; gap: 6px; }
  .p-card__body h3 { font-size: 14px; }
  .p-card__body small { font-size: 12px; } /* 12px minimum on phones (was 10.5px) */
  .p-card__go { width: 30px; height: 30px; font-size: 12px; }
  .section-head--row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   24. Product page
   Gallery, product info, rich-text description, tabs and share buttons (product/product.blade.php).
   ========================================================================== */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 920px) { .pd { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: calc(var(--nav-h) + 30px); display: grid; gap: 12px; }
@media (max-width: 920px) { .gallery { position: static; } }
.gallery__main { position: relative; aspect-ratio: 1 / .86; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.gallery__main img { width: 88%; height: 88%; }
.gallery__main video { width: 100%; height: 100%; object-fit: contain; background: #000; position: absolute; inset: 0; }
.gallery__main .studio { position: absolute; inset: 0; }
.gallery__main .is-hidden { display: none !important; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { position: relative; flex: 0 0 82px; height: 82px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.gallery__thumb.is-active { border-color: var(--brand); }
.gallery__thumb:focus-visible { outline: 3px solid var(--text); outline-offset: -5px; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb .studio { width: 100%; height: 100%; }
.gallery__thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; }
.pd-info { display: grid; gap: 20px; }
.pd-info h1 { font-size: clamp(30px, 3.8vw, 48px); }
.pd-info .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prose { color: var(--text-2); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .9em; }
.prose :is(h1, h2, h3, h4, h5, strong, b) { color: var(--text); }
.prose :is(h1, h2, h3, h4) { font-family: var(--font-body); font-size: 1.15em; letter-spacing: 0; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--brand-text); text-decoration: underline; }
.prose img { border-radius: 12px; margin-block: 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: start; }
.prose th { background: var(--bg-alt); color: var(--text); }
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: transparent !important; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose [style*="line-height"] { line-height: inherit !important; }
.prose p, .prose li { margin-block: 0; }
.prose p + p { margin-top: .8em; }
.tabs { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tabs__nav { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs__btn { flex: 1; min-height: 44px; border-radius: 12px; font-weight: 600; color: var(--text-2); transition: all .3s var(--ease); }
.tabs__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs__panel { display: none; padding: clamp(20px, 3vw, 30px); }
.tabs__panel.is-active { display: block; animation: fadeUp .5s var(--ease) both; }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.share > span { font-size: 13px; font-weight: 700; color: var(--text-3); margin-inline-end: 4px; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-2); transition: all .3s var(--ease); }
.share a:hover, .share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   25. About page
   Intro split, photo card with play button, mission / vision cards.
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.media-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-card:hover img { transform: scale(1.05); }
.media-card__badge { position: absolute; inset-inline-start: 18px; bottom: 18px; padding: 16px 20px; border-radius: 18px; color: var(--text); }
.media-card__badge strong { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--brand); }
.media-card__badge span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.play-btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; box-shadow: 0 0 0 0 var(--brand-glow); animation: ring 2.4s infinite; transition: transform .4s var(--ease); }
.play-btn:hover { transform: scale(1.1); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }
.mv__card { position: relative; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mv__card i { font-size: 26px; color: var(--brand); margin-bottom: 18px; display: block; }
.mv__card h3 { font-size: 24px; margin-bottom: 10px; }
.mv__card p { color: var(--text-2); }
.mv__card::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); }

/* About page: text starts level with the photo (no empty block above it on wide screens) */
.page-about .split { align-items: start; }
.page-about .media-card { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .page-about .media-card { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   26. Contact page: map
   Lazy Google map box (contact_us.blade.php).
   ========================================================================== */
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: clamp(320px, 45vw, 480px); background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }

/* ==========================================================================
   27. Downloads center
   Search box, file list and the company-profile banner (downloads.blade.php).
   ========================================================================== */
.dl-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dl-search { display: flex; align-items: center; gap: 10px; min-width: min(360px, 100%); height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.dl-search input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font-size: 15px; }
.dl-search i { color: var(--text-3); }
.dl-search:focus-within { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 2px; }
.dl-list { display: grid; gap: 10px; }
.dl-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.dl-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.dl-item .studio { width: 64px; height: 64px; border-radius: 14px; }
.dl-item__type { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #fde8e1; color: #d23b1f; font-size: 24px; }
.dl-item b { display: block; font-size: 16px; }
.dl-item small { color: var(--text-3); font-size: 13px; }
.dl-item__actions { display: flex; gap: 8px; }
.dl-feature { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 22px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #ff8a5c 0%, var(--brand-strong) 45%, #9e2e08 100%); }
.dl-feature i.big { font-size: 34px; }
.dl-feature b { display: block; font-size: 20px; }
.dl-feature span { color: rgba(255,255,255,.8); font-size: 14px; }
.dl-feature .btn { --btn-bg: #fff; --btn-fg: #15171A; --btn-line: transparent; }
@media (max-width: 600px) { .dl-item { grid-template-columns: auto 1fr; } .dl-item__actions { grid-column: 1 / -1; } .dl-feature { grid-template-columns: 1fr; } }

/* ==========================================================================
   28. Footer & OAF credit
   Dark footer plus the "Website by OAF Programmer" strip, which must stay on every page.
   ========================================================================== */
.footer { position: relative; margin-top: clamp(64px, 9vw, 120px); background: #0B0D10; color: rgba(255,255,255,.62); overflow: hidden; isolation: isolate; border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0; }
[data-theme="dark"] .footer { background: #08090B; border-top: 1px solid var(--line); }
.footer::before { content: ""; position: absolute; z-index: -1; top: -40%; inset-inline-start: -10%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(241,91,40,.16), transparent 65%); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px) 40px; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }
.footer .logo { height: 26px; margin-bottom: 20px; }
.footer .logo .logo-bots { fill: #fff; }
.footer .logo .logo-ema { fill: var(--brand); }
.footer p { font-size: 14.5px; line-height: 1.75; max-width: 38ch; }
.footer .footer__title { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
[lang="ar"] .footer .footer__title { letter-spacing: 0; font-size: 14px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 14.5px; transition: color .2s, padding .3s var(--ease); }
.footer__links a:hover { color: #fff; padding-inline-start: 6px; }
.footer .socials { margin-top: 24px; }
.footer .socials a { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.footer__contact { display: grid; gap: 14px; font-size: 14.5px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact i { color: var(--brand); margin-top: 5px; width: 16px; }
.footer__contact a:hover { color: #fff; }
.footer__contact .ltr { direction: ltr; unicode-bidi: plaintext; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.55); }
.footer__bottom b { color: var(--brand); font-weight: 700; }
.footer .logo.footer__mark { display: block; width: 100%; height: auto; margin: 0 0 -1.2%; opacity: .06; pointer-events: none; }
.footer .logo.footer__mark .logo-ema, .footer .logo.footer__mark .logo-bots { fill: #fff; }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; transition: color .2s; } /* tap height >= 24px (WCAG 2.5.8) */
.footer__top-link:hover { color: #fff; }

/* "Website by OAF Programmer" strip (last strip of every page) */
.oaf-by { position: relative; padding: 26px 16px 30px; text-align: center; background: #0d0c18; border-top: 1px solid rgba(255,255,255,.06); }
.oaf-by a { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px; text-decoration: none; }
.oaf-by__label { font: 600 18px/1.2 var(--font-body); color: #9ea6bf; letter-spacing: .01em; }
.oaf-by__name {
  font: 800 clamp(28px, 4vw, 38px)/1.15 var(--font-body); letter-spacing: .01em;
  background: linear-gradient(90deg, #ffffff 0%, #bff4ff 14%, #ffffff 28%, #f2c8ff 42%, #cfd6ff 56%, #ffffff 70%, #bff4ff 84%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(190, 215, 255, .22));
  animation: oafShine 6s linear infinite;
}
.oaf-by a:hover .oaf-by__name { animation-duration: 2.4s; filter: drop-shadow(0 0 22px rgba(210, 190, 255, .4)); }
/* 166.667% = exactly one gradient tile (size 250%), so the loop is seamless */
@keyframes oafShine { from { background-position: 0% 0; } to { background-position: 166.667% 0; } }

/* ==========================================================================
   29. Floating UI & overlays
   WhatsApp button, video modal, instant-search overlay and the phone action bar.
   ========================================================================== */

/* Floating WhatsApp button */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1A7F43; color: #fff; font-size: 26px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* Video modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(5,6,8,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.modal__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; transform: scale(.94); transition: transform .45s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__box iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -52px; inset-inline-end: 0; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; }
.modal__box { overflow: visible; }
.modal__box iframe { border-radius: 18px; }
.modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-height: 520px) {
  .modal { padding: 10px; }
  .modal__box { width: min(960px, 100%, (100vh - 20px) * 16 / 9); width: min(960px, 100%, (100dvh - 20px) * 16 / 9); }
  .modal__close { top: 8px; inset-inline-end: 8px; z-index: 1; background: rgba(0, 0, 0, .65); }
}

/* Instant search overlay (Ctrl + K) */
.search { position: fixed; inset: 0; z-index: 250; display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; background: rgba(5,6,8,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.search.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.search__box { width: min(680px, 100%); border-radius: 22px; overflow: hidden; background: var(--menu-bg); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); transform: translateY(-10px) scale(.98); transition: transform .35s var(--ease); }
.search.is-open .search__box { transform: none; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.search__bar i { color: var(--text-3); }
.search__bar input { flex: 1; height: 62px; border: 0; outline: 0; background: none; font-size: 18px; color: var(--text); }
.search__bar input:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 10px; padding-inline: 10px; }
.search__bar kbd { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-strong); font: 600 12px var(--font-body); color: var(--text-3); }
.search__bar input { min-width: 0; } /* lets the input shrink so the Esc button stays inside on phones */
.search__close { flex-shrink: 0; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-inline-end: -6px; border-radius: 10px; }
.search__close:hover kbd { color: var(--text); border-color: var(--text-3); }
.search__results { max-height: min(56vh, 520px); overflow-y: auto; padding: 8px; }
.search__group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
[lang="ar"] .search__group { letter-spacing: 0; font-size: 13px; }
.search__item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; color: var(--text); }
.search__item .studio { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; }
.search__item .icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.search__item b { display: block; font-size: 15px; }
.search__item small { color: var(--text-2); font-size: 13px; }
.search__item mark { background: none; color: var(--brand-text); }
.search__item.is-active, .search__item:hover { background: rgba(21, 23, 26, .06); }
[data-theme="dark"] .search__item.is-active, [data-theme="dark"] .search__item:hover { background: var(--line); }
/* The box uses the .97 menu glass (the .86 glass let the dark hero through: the highlighted row was ~#cacaca) and a lighter
   highlight, so the grey line (--text-2) and the orange match (--brand-text) keep 4.5:1 on the chosen row (WCAG 1.4.3). */
.search__empty { padding: 30px 16px; text-align: center; color: var(--text-3); }

/* Phone action bar (call / WhatsApp / quote) */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; inset-inline: 10px; bottom: 10px; z-index: 95; display: flex; gap: 6px; padding: 6px;
    border-radius: 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); transition: transform .45s var(--ease);
  }
  .mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 13px; font-weight: 700; font-size: 14px; color: var(--text); }
  .mbar a.wa { color: #0E6B3A; } /* 6.6:1 on white (#128C4A was 4.3:1) */
  [data-theme="dark"] .mbar a.wa { color: #2FD27A; }
  .mbar a.quote { flex: 1.5; background: var(--brand); color: #fff; }
  .wa-dock { display: none; } /* the phone bar has WhatsApp: no empty landmark left behind */
  .toast { bottom: 88px; }
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   30. 404 page
   Big "4 gear 4" error page (errors/404.blade.php). The other error pages are self-contained, see errors/minimal.blade.php.
   ========================================================================== */
.e404 { padding-block: calc(var(--nav-h) + 110px) 110px; }
.e404__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.e404__code { display: flex; align-items: center; gap: .08em; direction: ltr; font-size: clamp(96px, 18vw, 190px); font-weight: 800; line-height: 1; color: var(--text); }
.e404__code i { font-size: .78em; color: var(--brand); animation: spin 8s linear infinite; }
.e404__inner .lead { max-width: 52ch; }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .e404__code i { animation: none; } }
