/**
 * سَرْد | SARD Studio — Interior Architecture & Haute Living
 * ملف المتغيرات الجذرية ونظام الفصول اللونية (CSS Variables & Chapters)
 */

:root {
  /* ==========================================================================
     1. ثيمات الفصول الخمسة الثابتة (Chapter Palettes Reference)
     ========================================================================== */

  /* الفصل الأول: ملاذ البيج الهادئ (Chapter 1 — Beige Sanctuary) */
  --ch1-bg: #E8DFD2;
  --ch1-text: #2C2820;
  --ch1-text-muted: #6B6459;
  --ch1-accent: #B8623F;
  --ch1-border: rgba(44, 40, 32, 0.12);

  /* الفصل الثاني: حوار الطين والتراكوتا (Chapter 2 — Terracotta Monologue) */
  --ch2-bg: #B8623F;
  --ch2-text: #F2EBDD;
  --ch2-text-muted: #E0D2BE;
  --ch2-accent: #E8DFD2;
  --ch2-border: rgba(242, 235, 221, 0.20);

  /* الفصل الثالث: مخطوطة الزيتون المعماري (Chapter 3 — Olive Manuscript) */
  --ch3-bg: #4A5334;
  --ch3-text: #E8E4D5;
  --ch3-text-muted: #B8B5A3;
  --ch3-accent: #D4A853;
  --ch3-border: rgba(232, 228, 213, 0.15);

  /* الفصل الرابع: سكون الفحم والحجر (Chapter 4 — Charcoal Silence) */
  --ch4-bg: #1E1B18;
  --ch4-text: #E8E0D4;
  --ch4-text-muted: #9A9285;
  --ch4-accent: #C4894A;
  --ch4-border: rgba(232, 224, 212, 0.10);

  /* الفصل الخامس: الذهب العتيق والسكينة (Chapter 5 — Aged Gold) */
  --ch5-bg: #B8924A;
  --ch5-text: #1A1712;
  --ch5-text-muted: #4A3F2E;
  --ch5-accent: #2C2820;
  --ch5-border: rgba(26, 23, 18, 0.15);

  /* ==========================================================================
     2. المتغيرات الحية النشطة (Active Chapter Variables - Dynamically updated by JS)
     ========================================================================== */
  --chapter-bg: var(--ch1-bg);
  --chapter-text: var(--ch1-text);
  --chapter-text-muted: var(--ch1-text-muted);
  --chapter-accent: var(--ch1-accent);
  --chapter-border: var(--ch1-border);

  /* هالة الماوس وخلفية الشريط المتمدد */
  --cursor-halo-size: 700px;
  --nav-backdrop-blur: 20px;
  --nav-expanded-opacity: 0.94;

  /* ==========================================================================
     3. منظومة الخطوط والطباعة (Typography Stacks)
     ========================================================================== */
  --font-heading: 'Reem Kufi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-editorial: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-tech: 'Space Mono', monospace;

  /* ==========================================================================
     4. منحنيات ومدد الحركة السلسة (Animation & Easing Curves)
     ========================================================================== */
  --ease-chromatic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-subtle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --duration-chapter: 900ms;
  --duration-hover: 300ms;
  --duration-reveal: 800ms;

  /* ==========================================================================
     5. مقاييس التخطيط والأبعاد الهندسية (Layout & Spatial Metrics)
     ========================================================================== */
  --side-nav-width: 60px;
  --side-nav-width-expanded: 220px;
  --side-nav-mobile-height: 64px;
  --chapter-indicator-width: 8px;
  --container-max: 1440px;

  /* فلاتر الصور المعمارية الموحدة */
  --img-filter: saturate(0.95) contrast(1.08);
  --img-filter-hover: saturate(1.02) contrast(1.05);

  /* حواف وتفاصيل حصرية غير نمطية */
  --radius-sharp: 0px;
  --radius-subtle: 2px;
  --radius-card: 0px;
}
