/*!
 * نَسَق للحلول البرمجية — Main stylesheet
 * https://nasqsoft.com
 */

/* ==========================================================================
   1. Brand colors
   ========================================================================== */
:root {
  --g9: #06231d;
  --g8: #0b3b31;
  --g7: #0f6e56;
  --g5: #1d9e75;
  --g3: #5dcaa5;
  --g1: #ddf4ec;
  --g0: #f1faf6;
  --sun: #f5b83d;
  --gold: #e2be6a;
  --nav: 64px;
}

/* ==========================================================================
   2. Theme tokens — Day (default)
   Every color on the page comes from these tokens; the Night block below redefines the same names.
   ========================================================================== */
:root {
  color-scheme: light;
  --page: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f1faf6;
  --bg-feat: radial-gradient(110% 85% at 80% 0%, #d6f0e5 0%, #eaf6f0 42%, #f6fbf9 78%);
  --surface: #ffffff;
  --line: #e3ece8;
  --line-gold: rgba(214, 170, 74, 0.38);
  --heading: #06231d;
  --ink: #10241f;
  --strong: #0b3b31;
  --lead: #42574f;
  --gray: #56665f;
  --accent: #1d9e75;
  --chip: #ddf4ec;
  --chip-ink: #0f6e56;
  --gold-ink: #b7791f;
  --gold-chip: #fbf1da;
  --gold-dot: #d9a93f;
  --k: #0f6e56;
  --k-feat: #0f6e56;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-line: #e3ece8;
  --nav-link: #56665f;
  --nav-on: #0f6e56;
  --logo: #0b3b31;
  --logo-sub: #1d9e75;
  --hover-bg: rgba(15, 110, 86, 0.08);
  --menu-ink: #0b3b31;
  --tbtn-bg: #f1faf6;
  --tbtn-line: #dcebe4;
  --tbtn-ink: #0b3b31;
  --dot: rgba(29, 158, 117, 0.2);
  --glow-o: 0.16;
  --tag-bg: rgba(29, 158, 117, 0.1);
  --tag-ink: #0f6e56;
  --hero-em: #13855f;
  --btn-o-bg: #ffffff;
  --btn-o-ink: #0b3b31;
  --btn-o-line: #cfe5db;
  --phone-shadow: 0 30px 70px rgba(6, 35, 29, 0.28), 0 0 0 2px rgba(93, 202, 165, 0.35);
  --card-shadow: 0 20px 40px rgba(15, 110, 86, 0.12);
  --pri-bg: linear-gradient(160deg, #0f4035, #06231d);
  --erp-bg: linear-gradient(150deg, #14493d, #06231d);
  --wh-bg: #ffffff;
  --wh-line: rgba(214, 170, 74, 0.42);
  --wh-shadow: 0 24px 60px rgba(6, 35, 29, 0.07);
  --wh-step: #f3f9f6;
  --wh-step-line: #e3ece8;
  --chips-bg: #eaf6f1;
  --chips-ink: #1d9e75;
  --icd-bg: linear-gradient(160deg, #ffffff, #f7fbf9);
  --icd-shadow: 0 14px 34px rgba(6, 35, 29, 0.06);
  --old-bg: #f1faf6;
  --stage-shadow: 0 30px 70px rgba(6, 35, 29, 0.14);
  --nav2-bg: #06231d;
  --th-on: #1d9e75;
  --sv3-bg: #06231d;
  --sv3-line: transparent;
  --jc-shadow: 0 30px 60px rgba(6, 35, 29, 0.16);
  --contact-bg: #ffffff;
  --contact-line: #e3ece8;
  --contact-ink: #10241f;
  --ci-wa: #1d9e75;
  --ci-ph: #b7791f;
  --ci-ml: #3b78c4;
  --copy: #56665f;
  --hint: #56665f;
  --hint-line: rgba(15, 110, 86, 0.4);
  --hint-dot: #1d9e75;
  --counter-bg: rgba(255, 255, 255, 0.92);
  --counter-line: #e3ece8;
  --counter-ink: #0f6e56;
  --overlay: rgba(6, 35, 29, 0.5);
  --sb-bg: #ffffff;
  --sb-ink: #06231d;
  --sb-hover: #f1faf6;
  --sb-icon: #b7791f;
  --sb-close: #0b3b31;
  --sb-shadow: -15px 0 50px rgba(6, 35, 29, 0.2);
  --sb-tshadow: none;
  --sb-logo-shadow: none;
  --sb-icon-fx: none;
  --sel: rgba(29, 158, 117, 0.22);
  --focus: #0f6e56;
}

/* ==========================================================================
   3. Theme tokens — Night
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #051a15;
  --bg: #051a15;
  --bg-alt: #08241e;
  --bg-feat: radial-gradient(100% 80% at 80% 0%, #0f4035, #06231d 62%);
  --surface: #0b2b24;
  --line: rgba(159, 196, 183, 0.14);
  --line-gold: rgba(226, 190, 106, 0.22);
  --heading: #ffffff;
  --ink: #e4f1ec;
  --strong: #e4f1ec;
  --lead: #b9d6cc;
  --gray: #9fc4b7;
  --accent: #5dcaa5;
  --chip: rgba(93, 202, 165, 0.13);
  --chip-ink: #5dcaa5;
  --gold-ink: #e2be6a;
  --gold-chip: rgba(226, 190, 106, 0.14);
  --gold-dot: #e2be6a;
  --k: #5dcaa5;
  --k-feat: #e2be6a;
  --nav-bg: rgba(5, 26, 21, 0.92);
  --nav-line: rgba(93, 202, 165, 0.14);
  --nav-link: #9fc4b7;
  --nav-on: #5dcaa5;
  --logo: #ffffff;
  --logo-sub: #5dcaa5;
  --hover-bg: rgba(255, 255, 255, 0.08);
  --menu-ink: #e4f1ec;
  --tbtn-bg: rgba(255, 255, 255, 0.06);
  --tbtn-line: rgba(255, 255, 255, 0.12);
  --tbtn-ink: #f5b83d;
  --dot: rgba(93, 202, 165, 0.18);
  --glow-o: 0.4;
  --tag-bg: rgba(93, 202, 165, 0.14);
  --tag-ink: #6fd6b1;
  --hero-em: #5dcaa5;
  --btn-o-bg: rgba(255, 255, 255, 0.06);
  --btn-o-ink: #ffffff;
  --btn-o-line: rgba(255, 255, 255, 0.24);
  --phone-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(93, 202, 165, 0.35);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --pri-bg: linear-gradient(160deg, #14503f, #082a23);
  --erp-bg: linear-gradient(150deg, #175443, #082a23);
  --wh-bg: rgba(255, 255, 255, 0.03);
  --wh-line: rgba(226, 190, 106, 0.3);
  --wh-shadow: none;
  --wh-step: rgba(255, 255, 255, 0.05);
  --wh-step-line: rgba(255, 255, 255, 0.07);
  --chips-bg: rgba(93, 202, 165, 0.1);
  --chips-ink: #5dcaa5;
  --icd-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --icd-shadow: none;
  --old-bg: rgba(255, 255, 255, 0.08);
  --stage-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(159, 196, 183, 0.14);
  --nav2-bg: #1d9e75;
  --th-on: #5dcaa5;
  --sv3-bg: linear-gradient(160deg, #0f3a31, #0a2a23);
  --sv3-line: rgba(93, 202, 165, 0.22);
  --jc-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --contact-bg: rgba(255, 255, 255, 0.08);
  --contact-line: transparent;
  --contact-ink: #ffffff;
  --ci-wa: #5dcaa5;
  --ci-ph: #e2be6a;
  --ci-ml: #8fb8f0;
  --copy: #8fb0a5;
  --hint: #9fc4b7;
  --hint-line: rgba(159, 196, 183, 0.6);
  --hint-dot: #5dcaa5;
  --counter-bg: rgba(6, 35, 29, 0.88);
  --counter-line: rgba(93, 202, 165, 0.2);
  --counter-ink: #5dcaa5;
  --overlay: rgba(0, 0, 0, 0.75);
  --sb-bg: #06231d;
  --sb-ink: #ffffff;
  --sb-hover: #0b3b31;
  --sb-icon: #e2be6a;
  --sb-close: #ffffff;
  --sb-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
  --sb-tshadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --sb-logo-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  --sb-icon-fx: drop-shadow(0 2px 4px rgba(226, 190, 106, 0.3));
  --sel: rgba(93, 202, 165, 0.3);
  --focus: #5dcaa5;
}
/* ==========================================================================
   4. Base / reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav);
  /* thin brand-colored page scrollbar (Chrome, Edge, Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--g5) var(--page);
}
/* Safari / older Chrome */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--page);
}
::-webkit-scrollbar-thumb {
  background: var(--g5);
  border-radius: 999px;
  border: 2px solid var(--page);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--g7);
}
body {
  font-family: Cairo, "DejaVu Sans", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
.sprite {
  position: absolute;
}
.brk {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   5. Top navigation & buttons
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav);
  z-index: 120;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-line);
  padding-top: env(safe-area-inset-top);
}
nav .in {
  height: 100%;
  width: min(1200px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo b {
  font-size: 22px;
  font-weight: 900;
  color: var(--logo);
  line-height: 1;
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--logo-sub);
  margin-top: 2px;
}
.links {
  display: flex;
  gap: 22px;
  font-weight: 700;
  font-size: 14px;
  color: var(--nav-link);
}
.links a.on,
.links a:hover {
  color: var(--nav-on);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 24px;
  transition:
    transform 0.25s,
    background 0.25s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.btn.p {
  background: var(--g5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 158, 117, 0.3);
}
.btn.s {
  background: var(--sun);
  color: var(--g9);
  box-shadow: 0 10px 24px rgba(245, 184, 61, 0.3);
}
.btn.o {
  background: var(--btn-o-bg);
  color: var(--btn-o-ink);
  border: 2px solid var(--btn-o-line);
}
.btn.d {
  background: var(--g9);
  color: #fff;
}

/* ==========================================================================
   6. Mobile menu button
   ========================================================================== */
.menu-btn {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.menu-btn:hover {
  background: var(--hover-bg);
}
.menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--menu-ink);
}
.menu-btn[aria-expanded="true"] svg {
  color: var(--accent);
}

/* ==========================================================================
   7. Day / Night toggle
   moon = switch to night, sun = switch to day
   ========================================================================== */
.acts {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-btn {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--tbtn-line);
  background: var(--tbtn-bg);
  color: var(--tbtn-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.theme-btn:hover {
  background: var(--hover-bg);
}
.theme-btn .tg {
  grid-area: 1/1;
  width: 21px;
  height: 21px;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
}
:root[data-theme="dark"] .tg-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.3);
}
:root:not([data-theme="dark"]) .tg-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.3);
}

/* Language menu (AR · EN · DE) — the button has the same look as the theme toggle, pill-shaped for the label */
.lang-btn {
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--tbtn-line);
  background: var(--tbtn-bg);
  color: var(--tbtn-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.lang-btn:hover {
  background: var(--hover-bg);
}
.lang-btn .lang-ic {
  flex: 0 0 18px;
  color: var(--accent);
}
.lang-btn .lang-code {
  letter-spacing: 0.5px;
}
.lang-btn:focus-visible,
.lang-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* <details> dropdown: works without JS; main.js adds close-on-outside-click / Esc */
.lang-menu {
  position: relative;
}
.lang-menu > summary {
  list-style: none;
}
.lang-menu > summary::-webkit-details-marker {
  display: none;
}
.lang-menu[open] > .lang-btn {
  background: var(--hover-bg);
  border-color: var(--accent);
}
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  animation: lang-pop 0.16s ease-out;
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.lang-list a b {
  flex: 0 0 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  direction: ltr;
}
.lang-list a:hover {
  background: var(--hover-bg);
}
.lang-list a[aria-current="page"] {
  background: var(--hover-bg);
  font-weight: 800;
}
.lang-list a[aria-current="page"]::after {
  content: "✓";
  margin-inline-start: auto;
  color: var(--accent);
}
@keyframes lang-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   8. Sidebar (mobile)
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}
.sidebar {
  position: fixed;
  top: var(--nav);
  inset-inline-start: 0;
  bottom: 0;
  width: 85%;
  max-width: 400px;
  background: var(--sb-bg);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2vh, 18px) 0;
  box-shadow: var(--sb-shadow);
  border-inline-end: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(24px, 5vh, 36px);
  padding-bottom: clamp(16px, 3vh, 22px);
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  background: var(--sb-bg);
  padding: clamp(12px, 2vh, 16px) clamp(14px, 2.5vw, 18px);
}
.sidebar-close {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(226, 190, 106, 0.2);
  cursor: pointer;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 190, 106, 0.3);
}
.sidebar-close:hover {
  background: rgba(226, 190, 106, 0.3);
  transform: rotate(90deg);
  border-color: var(--gold);
}
.sidebar-close svg {
  width: 24px;
  height: 24px;
  color: var(--sb-close);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-logo svg {
  filter: drop-shadow(0 3px 8px rgba(93, 202, 165, 0.4));
}
.sidebar-logo b {
  font-size: 24px;
  font-weight: 900;
  color: var(--sb-ink);
  line-height: 1;
  text-shadow: var(--sb-logo-shadow);
  letter-spacing: 0.5px;
}
.sidebar-logo small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sb-icon);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: clamp(16px, 3vh, 24px);
  position: relative;
  z-index: 1;
  overflow-y: auto;
  margin-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 190, 106, 0.3) transparent;
  background: var(--sb-bg);
}
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(226, 190, 106, 0.3);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 190, 106, 0.5);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2.5vh, 22px) clamp(18px, 3vw, 24px);
  font-weight: 700;
  font-size: clamp(16px, 2vh, 18px);
  color: var(--sb-ink);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: var(--sb-bg);
}
.sidebar-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 158, 117, 0.15), rgba(29, 158, 117, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.on {
  background: var(--sb-hover);
  color: var(--sb-ink);
  transform: translateX(-6px);
}
.sidebar-nav a:hover::before,
.sidebar-nav a.on::before {
  opacity: 1;
}
.sidebar-nav a.on::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: var(--gold);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(226, 190, 106, 0.5);
}
.sidebar-nav a svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--sb-icon);
  transition: transform 0.3s;
  filter: var(--sb-icon-fx);
}
.sidebar-nav a:hover svg,
.sidebar-nav a.on svg {
  transform: scale(1.15);
}
.sidebar-nav a span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-weight: 800;
  text-shadow: var(--sb-tshadow);
}
.sidebar-cta {
  margin-top: auto;
  padding-top: clamp(18px, 3vh, 28px);
  position: relative;
  z-index: 1;
  background: var(--sb-bg);
  padding: clamp(12px, 2vh, 16px) clamp(14px, 2.5vw, 18px);
}
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  padding: clamp(16px, 2.5vh, 20px);
  font-size: clamp(16px, 2vh, 18px);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(245, 184, 61, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.sidebar-cta .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(245, 184, 61, 0.5);
}

/* ==========================================================================
   9. Sections — normal page flow
   ========================================================================== */
main {
  padding-top: var(--nav);
}
.slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 11vh, 112px) 0;
}
#top {
  min-height: calc(100vh - var(--nav));
  min-height: calc(100svh - var(--nav));
  padding: clamp(28px, 5vh, 56px) 0;
}
.fit {
  width: min(1160px, 92vw);
}
.plain {
  background: var(--bg);
}
.tint {
  background: var(--bg-alt);
}
.feature {
  background: var(--bg-feat);
  color: var(--ink);
}
.dots {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.8px, transparent 2.2px);
  background-size: 34px 34px;
  animation: dm 50s linear infinite;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
@keyframes dm {
  to {
    transform: translate(34px, 34px);
  }
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--glow-o);
  pointer-events: none;
}
.hero-glow {
  width: 520px;
  height: 520px;
  background: var(--g5);
  top: -180px;
  inset-inline-start: -140px;
}

/* ==========================================================================
   10. Section headings
   ========================================================================== */
.head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(16px, 3.4vh, 40px);
}
.k {
  color: var(--k);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.feature .k {
  color: var(--k-feat);
}
.head h2 {
  font-size: clamp(25px, min(3.4vw, 5vh), 44px);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.3;
  margin: 4px 0 6px;
}
.head p {
  color: var(--gray);
  font-size: clamp(14px, 2vh, 17px);
}

/* ==========================================================================
   11. Reveal on scroll
   ========================================================================== */
.js .rv {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
.js .rv.in:nth-child(2) {
  transition-delay: 0.08s;
}
.js .rv.in:nth-child(3) {
  transition-delay: 0.16s;
}
.js .rv.in:nth-child(4) {
  transition-delay: 0.24s;
}
.js .rv.in:nth-child(5) {
  transition-delay: 0.32s;
}
.js .rv.in:nth-child(6) {
  transition-delay: 0.4s;
}

/* ==========================================================================
   12. Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(36px, min(5.4vw, 8vh), 68px);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.25;
  margin: clamp(8px, 2vh, 18px) 0 clamp(6px, 1.4vh, 14px);
}
.hero h1 em {
  font-style: normal;
  color: var(--hero-em);
}
.hero p {
  font-size: clamp(15px, 2.2vh, 19px);
  color: var(--lead);
  max-width: 540px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(14px, 3vh, 30px);
}
.stats {
  display: flex;
  gap: 28px;
  margin-top: clamp(16px, 3.6vh, 38px);
  flex-wrap: wrap;
}
.stats div {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}
.stats b {
  display: block;
  color: var(--heading);
  font-size: 18px;
  font-weight: 900;
}
.phone {
  position: relative;
  height: min(64vh, 620px);
  aspect-ratio: 9/19.2;
  margin: 0 auto;
  border-radius: clamp(30px, 5vh, 46px);
  background: #020f0c;
  padding: clamp(8px, 1.2vh, 12px);
  box-shadow: var(--phone-shadow);
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(24px, 4vh, 36px);
  background: #06231d;
}
.play {
  position: absolute;
  inset: clamp(8px, 1.2vh, 12px);
  border-radius: clamp(24px, 4vh, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(6, 35, 29, 0.35);
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  transition: opacity 0.3s;
}
.play i {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(245, 184, 61, 0.25);
  animation: pl 2.4s infinite;
}
.play i svg {
  color: var(--g9);
}
@keyframes pl {
  50% {
    box-shadow: 0 0 0 20px rgba(245, 184, 61, 0.08);
  }
}
.play.hide {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   13. Who we serve
   ========================================================================== */
.whog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.8vh, 18px);
}
.wc {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(14px, 2.6vh, 26px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.wc:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}
.wc .ic {
  width: clamp(44px, 6.5vh, 62px);
  height: clamp(44px, 6.5vh, 62px);
  border-radius: 16px;
  background: var(--chip);
  color: var(--chip-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.wc h3 {
  font-size: clamp(16px, 2.3vh, 20px);
  font-weight: 900;
  color: var(--heading);
}
.wc p {
  font-size: clamp(13px, 1.8vh, 15px);
  color: var(--gray);
}
.wc.pri {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: var(--pri-bg);
  border-color: rgba(226, 190, 106, 0.4);
}
.wc.pri .ic {
  flex: 0 0 auto;
  width: clamp(60px, 9vh, 84px);
  height: clamp(60px, 9vh, 84px);
  border-radius: 22px;
  background: rgba(226, 190, 106, 0.15);
  color: var(--gold);
  margin: 0;
}
.wc.pri h3 {
  color: #fff;
  font-size: clamp(19px, 2.8vh, 25px);
}
.wc.pri p {
  color: #b9d6cc;
}

/* ==========================================================================
   14. Warehouse & institutions
   ========================================================================== */
.wh {
  border: 1px solid var(--wh-line);
  border-radius: 28px;
  padding: clamp(16px, 3vh, 30px);
  background: var(--wh-bg);
  box-shadow: var(--wh-shadow);
}
.whd {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: clamp(14px, 2.6vh, 24px);
}
.whd b {
  font-size: clamp(17px, 2.5vh, 21px);
  font-weight: 900;
  display: block;
}
.whd small {
  color: var(--accent);
  font-size: 14px;
}
.whd .ic {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--g9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.whs > div {
  position: relative;
  background: var(--wh-step);
  border: 1px solid var(--wh-step-line);
  border-radius: 20px;
  padding: clamp(14px, 2.4vh, 22px) 10px;
  text-align: center;
}
.whs .ill {
  height: clamp(80px, 15vh, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whs .ill svg {
  height: 100%;
  width: auto;
}
.whs b {
  display: block;
  color: var(--heading);
  font-size: clamp(14px, 2vh, 17px);
  font-weight: 800;
  margin-top: 8px;
}
.whs i {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--g9);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(12px, 2.4vh, 20px);
}
.chips span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chips-bg);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.chips svg {
  color: var(--chips-ink);
  flex: 0 0 18px;
}
.ig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2.2vh, 20px);
}
.icd {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  padding: clamp(16px, 3vh, 28px);
  background: var(--icd-bg);
  box-shadow: var(--icd-shadow);
}
.icd .ic {
  flex: 0 0 auto;
  width: clamp(54px, 8vh, 72px);
  height: clamp(54px, 8vh, 72px);
  border-radius: 18px;
  background: var(--gold-chip);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icd h3 {
  font-size: clamp(17px, 2.5vh, 21px);
  font-weight: 900;
  color: var(--heading);
}
.icd ul {
  list-style: none;
  margin-top: 4px;
}
.icd li {
  font-size: clamp(13px, 1.9vh, 15px);
  color: var(--lead);
  display: flex;
  gap: 8px;
  align-items: center;
}
.icd li:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-dot);
  flex: 0 0 6px;
}

/* ==========================================================================
   15. Before / after
   ========================================================================== */
.ba {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vh, 18px);
}
.bacard {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 22px;
  padding: clamp(18px, 3.4vh, 32px) 14px;
  text-align: center;
}
.bacard .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bacard .row > svg {
  color: var(--g3);
}
.bacard .old {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--old-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: grayscale(1);
}
.bacard .new {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--g5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 158, 117, 0.3);
}
.bacard h3 {
  font-size: clamp(16px, 2.3vh, 19px);
  font-weight: 900;
  color: var(--heading);
}
.bacard p {
  font-size: 14px;
  color: var(--gray);
}
.gain4 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(16px, 3.4vh, 34px);
}
.gain4 span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--strong);
  background: var(--surface);
}
.gain4 svg {
  color: var(--accent);
}

/* ==========================================================================
   16. Report viewer
   ========================================================================== */
.viewer {
  display: grid;
  grid-template-columns: auto 300px;
  gap: 30px;
  align-items: center;
  justify-content: center;
}
.stage {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--stage-shadow);
}
.stage img {
  height: min(58vh, 640px);
  width: auto;
  aspect-ratio: 210/297;
  border-radius: 12px;
  object-fit: cover;
  transition: opacity 0.3s;
}
.nav2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--nav2-bg);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.nav2.r {
  inset-inline-start: -18px;
}
.nav2.l {
  inset-inline-end: -18px;
}
.nav2.r svg {
  transform: scaleX(-1);
}
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.th {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: inherit;
  text-align: start;
  transition: border-color 0.25s;
}
.th.on {
  border-color: var(--th-on);
}
.th img {
  width: 46px;
  height: auto; /* let aspect-ratio win over the img's height attribute */
  border-radius: 6px;
  aspect-ratio: 210/297;
  object-fit: cover;
}
.th b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--heading);
}
.th span {
  font-size: 12px;
  color: var(--gray);
}
.note {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.note svg {
  color: var(--g5);
}

/* ==========================================================================
   17. Video
   ========================================================================== */
.vsec {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
.vsec .head {
  text-align: start;
  margin: 0;
}
.checks {
  list-style: none;
  margin-top: clamp(12px, 2.4vh, 22px);
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: clamp(14px, 2vh, 17px);
}
.vsec .btn {
  margin-top: 24px;
}
.checks i {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--chip);
  color: var(--chip-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   18. Services & steps
   ========================================================================== */
.erpc {
  display: flex;
  gap: 30px;
  align-items: center;
  border-radius: 28px;
  padding: clamp(18px, 3.4vh, 32px) clamp(18px, 3vw, 36px);
  background: var(--erp-bg);
  color: #fff;
  border: 1px solid rgba(226, 190, 106, 0.45);
}
.erpsvg {
  flex: 0 0 auto;
  height: clamp(110px, 20vh, 180px);
  width: auto;
}
.erpsvg use {
  color: #f4ecda;
}
.erpc h3 {
  font-size: clamp(24px, min(3vw, 4.4vh), 36px);
  font-weight: 900;
}
.erpc h3 em {
  font-style: normal;
  color: var(--gold);
}
.erpc p {
  color: #c9ddd4;
  font-size: clamp(14px, 2vh, 16px);
  margin: 4px 0 12px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  background: var(--gold);
  color: var(--g9);
  padding: 2px 12px;
  border-radius: 999px;
}
.mods {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mods span {
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(226, 190, 106, 0.45);
  color: var(--gold);
  border-radius: 999px;
  padding: 2px 12px;
}
.svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vh, 18px);
  margin-top: clamp(10px, 2vh, 18px);
}
.sv {
  border-radius: 22px;
  padding: clamp(16px, 3vh, 26px) 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sv .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.sv h3 {
  font-size: clamp(17px, 2.4vh, 20px);
  font-weight: 900;
}
.sv p {
  font-size: 14px;
  opacity: 0.9;
}
.sv1 {
  background: #1d9e75;
}
.sv2 {
  background: #0f6e56;
}
.sv3 {
  background: var(--sv3-bg);
  box-shadow: inset 0 0 0 1px var(--sv3-line);
}
.sv3 .ic svg {
  color: var(--g3);
}
.svc3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vh, 18px);
}
.s3 {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(14px, 2.6vh, 22px) 18px;
}
.s3 .ic {
  flex: 0 0 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--chip);
  color: var(--chip-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s3 b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--heading);
}
.s3 small {
  color: var(--gray);
  font-size: 13px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(22px, 5vh, 54px);
}
.st {
  text-align: center;
}
.st .c {
  width: clamp(56px, 8.4vh, 76px);
  height: clamp(56px, 8.4vh, 76px);
  margin: 0 auto 10px;
  border-radius: 22px;
  background: var(--chip);
  color: var(--chip-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.st .c em {
  position: absolute;
  top: -9px;
  inset-inline-end: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--g9);
  font-weight: 900;
  font-size: 13px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st .c.hl {
  background: var(--g5);
  color: #fff;
}
.st b {
  font-size: clamp(15px, 2.2vh, 17px);
  font-weight: 900;
  color: var(--heading);
}
.st p {
  font-size: 13px;
  color: var(--gray);
}

/* ==========================================================================
   19. Forms & contact
   ========================================================================== */
.jc {
  border-radius: 28px;
  padding: clamp(20px, 3.6vh, 36px);
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--jc-shadow);
}
.jc.a {
  background: linear-gradient(160deg, #0f6e56, #0b3b31);
  color: #fff;
  color-scheme: dark;
}
.jc.b {
  background: linear-gradient(160deg, #f5b83d, #e89b1e);
  color: var(--g9);
  color-scheme: light;
}
.jtop {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}
.jc .ic {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jc.a .ic {
  background: rgba(255, 255, 255, 0.14);
}
.jc.b .ic {
  background: rgba(6, 35, 29, 0.12);
}
.jc.a .ic svg {
  color: var(--sun);
}
.jc.b .ic svg {
  color: var(--g9);
}
.jc h3 {
  font-size: clamp(22px, 3.4vh, 30px);
  font-weight: 900;
  line-height: 1.3;
}
.jc > p {
  font-size: clamp(14px, 2vh, 16px);
  margin: 4px 0 clamp(12px, 2.4vh, 20px);
  opacity: 0.92;
}
.jc label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.9;
}
.jc input,
.jc select,
.jc textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  padding: 11px 15px;
  margin-bottom: 12px;
  outline: none;
}
.jc.a input,
.jc.a select,
.jc.a textarea {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.jc.a input::placeholder,
.jc.a textarea::placeholder {
  color: #9fc4b7;
}
.jc.a select option {
  background: #0b3b31;
  color: #fff;
}
.jc.b input {
  background: rgba(255, 255, 255, 0.6);
  color: var(--g9);
}
.jc input:focus,
.jc select:focus,
.jc textarea:focus {
  border-color: var(--g3);
}
.jc textarea {
  min-height: clamp(64px, 10vh, 96px);
  resize: none;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.err {
  font-size: 13px;
  font-weight: 700;
  color: #ffb4a2;
  min-height: 18px;
  margin-top: -4px;
}
.jc.b .err {
  color: #8b1e0e;
}
.perks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(12px, 2.4vh, 20px);
}
.perks span {
  background: rgba(6, 35, 29, 0.1);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 800;
}
.contact {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(14px, 3vh, 26px);
}
.contact a {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--contact-bg);
  box-shadow: inset 0 0 0 1px var(--contact-line);
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--contact-ink);
  font-size: 14px;
}
.ci-wa {
  color: var(--ci-wa);
}
.ci-ph {
  color: var(--ci-ph);
}
.ci-ml {
  color: var(--ci-ml);
}
.copy {
  text-align: center;
  font-size: 12px;
  color: var(--copy);
  margin-top: 12px;
}

/* ==========================================================================
   20. Floating WhatsApp button
   fixed at the reading-end bottom corner (left in Arabic, right in English), gently bobbing
   ========================================================================== */
.wa-float {
  position: fixed;
  inset-inline-end: calc(20px + env(safe-area-inset-left));
  bottom: calc(48px + env(safe-area-inset-bottom));
  z-index: 90; /* above the page, below the sidebar overlay (100) */
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 10px 24px rgba(37, 211, 102, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.15);
  animation: wa-bob 2.6s ease-in-out infinite;
  will-change: transform;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
.wa-float:hover {
  background: #1ebe5a;
  box-shadow:
    0 14px 30px rgba(37, 211, 102, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.18);
}
/* bob distance: change -6px to move more or less */
@keyframes wa-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 860px) {
  .wa-float {
    inset-inline-end: calc(16px + env(safe-area-inset-left));
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
  .wa-float svg {
    width: 27px;
    height: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
  }
}

/* ==========================================================================
   21. Utilities
   icon colors used inside the warehouse illustrations
   ========================================================================== */
.fg-white {
  color: #fff;
}
.fg-ink {
  color: var(--g9);
}
.fg-deep {
  color: #061f1a;
}
.fg-amber {
  color: #b7791f;
}

/* ==========================================================================
   22. Responsive (≤ 860px) & reduced motion
   ========================================================================== */
@media (max-width: 860px) {
  :root {
    --nav: 58px;
  }
  .links {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .acts {
    gap: 8px;
  }
  .theme-btn {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .logo b {
    font-size: 19px;
  }
  .logo small {
    font-size: 10px;
  }
  .fit {
    width: 86vw;
  }
  .slide {
    padding: clamp(48px, 8vh, 72px) 0;
  }
  #top {
    padding: clamp(22px, 4vh, 40px) 0;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2vh;
  }
  .hero .txt {
    order: 1;
  }
  .hero .ph {
    order: 2;
  }
  .hero p {
    margin: 0 auto;
    font-size: clamp(14px, 2vh, 16px);
  }
  .cta {
    justify-content: center;
  }
  .cta .btn {
    padding: 11px 18px;
    font-size: 14px;
  }
  .stats {
    display: none;
  }
  .phone {
    height: min(36vh, 330px);
  }
  .play i {
    width: 56px;
    height: 56px;
  }
  .play {
    font-size: 13px;
  }
  .whog {
    grid-template-columns: 1fr 1fr;
  }
  .wc.pri {
    grid-column: span 2;
    padding: 2vh 16px;
  }
  .wc {
    padding: 1.8vh 12px;
    gap: 2px;
  }
  .wc .ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 2px;
  }
  .wc .ic svg {
    width: 24px;
    height: 24px;
  }
  .wc h3 {
    font-size: 15px;
  }
  .wc p {
    font-size: 12px;
    line-height: 1.45;
  }
  .wc.pri .ic {
    width: 54px;
    height: 54px;
  }
  .wc.pri h3 {
    font-size: 18px;
  }
  .whs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .whs .ill {
    height: 12vh;
  }
  .chips {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .chips span {
    font-size: 12.5px;
    padding: 8px 10px;
  }
  .whd small {
    font-size: 12px;
  }
  .ig {
    grid-template-columns: 1fr;
    gap: 1.6vh;
  }
  .icd {
    padding: 1.9vh 16px;
    gap: 12px;
  }
  .icd .ic {
    width: 48px;
    height: 48px;
  }
  .icd h3 {
    font-size: 16px;
  }
  .icd li {
    font-size: 12.5px;
  }
  .ba {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bacard {
    padding: 2.4vh 10px;
  }
  .bacard .old {
    width: 40px;
    height: 40px;
  }
  .bacard .new {
    width: 54px;
    height: 54px;
  }
  .bacard h3 {
    font-size: 15px;
  }
  .bacard p {
    font-size: 12px;
  }
  .gain4 span {
    font-size: 12.5px;
    padding: 6px 12px;
  }
  .viewer {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }
  .stage {
    padding: 8px;
  }
  .stage img {
    height: min(52vh, 560px);
  }
  .nav2 {
    width: 40px;
    height: 40px;
  }
  .nav2.r {
    inset-inline-start: -14px;
  }
  .nav2.l {
    inset-inline-end: -14px;
  }
  .thumbs {
    flex-direction: row;
    gap: 8px;
  }
  .th {
    padding: 4px;
    border-radius: 10px;
  }
  .th div {
    display: none;
  }
  .th img {
    width: 38px;
  }
  .note {
    display: none;
  }
  .vsec {
    grid-template-columns: 1fr;
    gap: 2.4vh;
    text-align: center;
  }
  .vsec .phone {
    height: min(46vh, 430px);
  }
  .vsec .head {
    text-align: center;
  }
  .vsec .head p {
    display: none;
  }
  .checks {
    display: none;
  }
  .vsec .btn {
    margin-top: 1.6vh;
  }
  .erpc {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 2.4vh 16px;
  }
  .erpc .mods {
    justify-content: center;
  }
  .erpsvg {
    height: 13vh;
  }
  .erpc p {
    font-size: 13px;
  }
  .svc {
    grid-template-columns: 1fr;
    gap: 1.4vh;
  }
  .sv {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 1.8vh 16px;
  }
  .sv .ic {
    margin: 0;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }
  .sv p {
    font-size: 12.5px;
  }
  .svc3 {
    grid-template-columns: 1fr;
    gap: 1.4vh;
  }
  .s3 {
    padding: 1.8vh 16px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.4vh 12px;
    margin-top: 3.6vh;
  }
  .jc {
    border-radius: 22px;
    padding: 2.6vh 18px;
  }
  .jc .ic {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .jc h3 {
    font-size: 20px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .jc input,
  .jc select,
  .jc textarea {
    padding: 9px 13px;
    margin-bottom: 1.2vh;
  }
  .jc .btn {
    width: 100%;
  }
  .contact {
    flex-direction: column;
    align-items: stretch;
  }
  .contact a {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dots,
  .play i {
    animation: none;
  }
  .js .rv {
    transition: none;
  }
  .sidebar {
    transition: none;
  }
  .sidebar-overlay {
    transition: none;
  }
  .theme-btn .tg {
    transition: none;
  }
}

/* ==========================================================================
   23. Theme switching & accessibility
   theme switching: freeze color transitions for one frame so nothing lags behind in the old colors
   ========================================================================== */
.theme-switching *:not(.track):not(.rv):not(.tg),
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
  animation-timing-function: ease-out;
  mix-blend-mode: normal;
}
::selection {
  background: var(--sel);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ==========================================================================
   24. Localization — Arabic (RTL, default) / English (LTR)
   Positions above use logical properties (inset-inline-*, text-align: start…), so they
   mirror on their own. Only transforms and direction-specific icons need overrides here.
   ========================================================================== */
[dir="ltr"] .sidebar {
  transform: translateX(-100%);
}
[dir="ltr"] .sidebar.open {
  transform: translateX(0);
}
[dir="ltr"] .sidebar-nav a:hover,
[dir="ltr"] .sidebar-nav a.on {
  transform: translateX(6px);
}
[dir="ltr"] .sidebar-nav a::before {
  background: linear-gradient(270deg, rgba(29, 158, 117, 0.15), rgba(29, 158, 117, 0.05));
}
/* the arrow icon points left: in English "previous" keeps it, "next" and the before→after arrow flip */
[dir="ltr"] .nav2.r svg {
  transform: none;
}
[dir="ltr"] .nav2.l svg,
[dir="ltr"] .bacard .row > svg {
  transform: scaleX(-1);
}
[dir="ltr"] .wa-float {
  inset-inline-end: calc(20px + env(safe-area-inset-right));
}
@media (max-width: 860px) {
  [dir="ltr"] .wa-float {
    inset-inline-end: calc(16px + env(safe-area-inset-right));
  }
  .lang-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
  }
}
@media (max-width: 380px) {
  /* very small phones: keep only the language label so the top bar never overflows */
  .lang-btn .lang-ic {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lang-btn {
    transition: none;
  }
  .lang-list {
    animation: none;
  }
}

/* social icons under the contact links */
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--g5, #1d9e75);
  background: var(--contact-bg);
  box-shadow: inset 0 0 0 1px var(--contact-line);
  transition: transform 0.2s, color 0.2s;
}
.social a:hover {
  transform: translateY(-2px);
  color: var(--g7, #0f6e56);
}
