/* ==========================================================================
   Mixora Marketing — نظام التصميم الأساسى (Tokens + Typography + Primitives)
   ستايل كل Component فى ملف .cshtml.css جنبه (CSS isolation) — الملف ده للمشترك بس.
   كل المسافات/الاتجاهات بـ logical properties ⇒ RTL الآن و LTR لاحقًا بدون إعادة بناء.
   ========================================================================== */

:root {
  /* الهوية */
  --navy: #071D3B;
  --navy-2: #0B2D5C;
  --blue: #1473E6;
  --blue-bright: #2495FF;
  --bg: #F7FAFF;
  --white: #FFFFFF;
  --text: #10233F;
  --muted: #64748B;
  --border: #E5ECF5;
  --blue-50: #EEF5FF;
  --success: #16A34A;
  --danger: #DC2626;
  --star: #F5B301;

  /* Typography */
  --font: "Alexandria", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-display: clamp(1.95rem, 1.15rem + 3.1vw, 3.35rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem);
  --fs-h3: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --fs-lead: clamp(1rem, .96rem + .25vw, 1.125rem);
  --fs-body: 1rem;
  --fs-sm: .9rem;
  --fs-xs: .8rem;

  /* المسافات والشكل */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 5rem + 2vw, 112px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(16, 35, 63, .06);
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, .05), 0 2px 8px -2px rgba(16, 35, 63, .06);
  --shadow: 0 10px 30px -12px rgba(16, 35, 63, .16), 0 2px 6px rgba(16, 35, 63, .04);
  --shadow-lg: 0 30px 60px -24px rgba(7, 29, 59, .32);
  --header-h: 70px;

  /* الحركة */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
  --dur-slow: 380ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: var(--white); }

/* ---------- الأيقونات (sprite) ---------- */
.icon {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[dir="ltr"] .icon-dir { transform: scaleX(-1); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg); }
.section--tight { padding-block: clamp(40px, 3rem + 1vw, 64px); }

.text-highlight { color: var(--blue-bright); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- الأزرار ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  border: 1.5px solid var(--btn-bd); border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .icon { font-size: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: linear-gradient(180deg, #2B8CFF 0%, var(--blue) 100%);
  background: var(--btn-bg);
  box-shadow: 0 8px 20px -8px rgba(20, 115, 230, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover { box-shadow: 0 12px 26px -10px rgba(20, 115, 230, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .35); }
.btn--light:hover { --btn-bg: #F1F6FF; }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .04); --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .32); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: rgba(255, 255, 255, .55); }
.btn--outline { --btn-bg: var(--white); --btn-fg: var(--blue); --btn-bd: #CFE0F7; }
.btn--wa { --btn-bg: #22C55E; --btn-fg: var(--white); box-shadow: 0 8px 18px -10px rgba(34, 197, 94, .7); }
.btn--wa:hover { --btn-bg: #16A34A; }
.btn--white-outline { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--border); }
.btn--white-outline:hover { --btn-bd: var(--blue); --btn-fg: var(--blue); }
.btn--outline:hover { --btn-bd: var(--blue); --btn-bg: var(--blue-50); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .875rem; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: .8em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }

/* رابط نصى مع سهم */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--accent, var(--blue)); font-weight: 600; font-size: .95rem;
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(-3px); }
[dir="ltr"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(-3px); }

/* شارة صغيرة */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .8em; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.5;
  background: var(--blue-50); color: var(--blue);
}
.badge--sample { background: #FFF7E6; color: #9A6200; border: 1px dashed #F0C36A; }

/* ---------- أيقونة داخل مربع ملوّن (مشتركة بين كذا Component) ---------- */
.icon-tile {
  --tile: var(--accent, var(--blue));
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  color: var(--tile);
  background: color-mix(in srgb, var(--tile) 11%, white);
  font-size: 22px;
}
.icon-tile--solid { color: var(--white); background: var(--tile); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--tile) 70%, transparent); }
.icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }

/* ---------- قايمة مميزات بعلامة صح ---------- */
.check-list { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.6; }
.check-list .icon { margin-top: .2em; color: var(--accent, var(--blue)); font-size: 1.15rem; stroke-width: 2.2; }

/* ---------- Animation (خفيف · بيحترم reduced motion) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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