/* ═══════════════════════════════════════════════
   خطوة الألف ميل — ملف السمة الرئيسي
   A Thousand Mile Step — Master Theme File
   ═══════════════════════════════════════════════ */

/* ── الخطوط / Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Tajawal:wght@300;400;500;700&display=swap');

/* ── متغيرات اللون / Color Tokens ── */
:root {
  /* الخلفيات / Backgrounds */
  --color-bg:          #0C0C0F;
  --color-bg-surface:  #13131A;
  --color-bg-elevated: #1C1C27;

  /* النص / Text */
  --color-text-primary:   #F0EDE6;
  --color-text-secondary: #9B9899;
  --color-text-muted:     #56545A;

  /* لون النبرة / Accent */
  --color-accent:       #C8A96E;   /* ذهبي دافئ */
  --color-accent-glow:  #C8A96E33;
  --color-accent-light: #E2CC9A;

  /* الحدود / Borders */
  --color-border:       #2A2A38;
  --color-border-soft:  #1E1E2A;

  /* ── المسافات / Spacing ── */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   32px;
  --space-xl:   64px;
  --space-2xl:  128px;

  /* ── الحجوم النصية / Type Scale ── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  3rem;
  --text-4xl:  4.5rem;

  /* ── الخطوط / Font Families ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Tajawal', Arial, sans-serif;

  /* ── الزوايا / Radii ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 9999px;

  /* ── الظلال / Shadows ── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 32px var(--color-accent-glow);

  /* ── الانتقالات / Transitions ── */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   150ms;
  --dur-base:   300ms;
  --dur-slow:   600ms;

  /* ── التخطيط / Layout ── */
  --max-width:      1200px;
  --content-width:  760px;
  --nav-height:     72px;
}

/* ── إعادة الضبط / Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  direction: rtl;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── المساعدون / Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── حركة / Motion helpers ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

.animate-fade-up {
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
}

/* ── الاستجابة / Responsive ── */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --space-xl: 40px;
    --space-2xl: 80px;
  }

  .container {
    padding-inline: var(--space-md);
  }
}
