/* ============================================================
   منصة إدارة الجودة والتميز بشركة الحمراء لخدمات حجاج الداخل — CSS Variables & Base Reset (shared)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Custom Properties ─────────────────────────────────────────
   🟥 RED THEME — مستوحى من شعار «شركة الحمراء»
   الأساسي: أحمر برغندي دافئ — مكمَّل بذهبي ملكي وأبيض كريمي
   ملاحظة: أسماء المتغيّرات بقيت --green-* لتفادي تغيير كل الـ selectors
   لكن قيمها الآن أحمر — يتم استخدامها في كل المنصة
   ─────────────────────────────────────────────────────────────── */
:root {
  --green-dark:    #3D0A0A;  /* أحمر داكن جدًا — نافبار/فوتر */
  --green-main:    #8B2424;  /* الأحمر الأساسي (برغندي دافئ) */
  --green-mid:     #A52A2A;  /* أحمر متوسط */
  --green-light:   #C0392B;  /* أحمر فاتح/حيوي */
  --gold:          #C9A84C;
  --gold-light:    #E8C97A;
  --gold-dark:     #A0812A;
  --white:         #FFFFFF;
  --off-white:     #FAF7F2;
  --text-muted:    #C7BBA8;
  --glass-bg:      rgba(255,255,255,0.07);
  --glass-border:  rgba(201,168,76,0.25);
  --shadow-gold:   0 8px 40px rgba(201,168,76,0.18);
  --shadow-dark:   0 8px 40px rgba(0,0,0,0.35);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --transition:    0.35s cubic-bezier(0.4,0,0.2,1);

  /* Fluid font scale */
  --fs-xs:   clamp(0.65rem, 1.2vw, 0.75rem);
  --fs-sm:   clamp(0.78rem, 1.5vw, 0.88rem);
  --fs-base: clamp(0.88rem, 1.8vw, 1rem);
  --fs-md:   clamp(1rem,    2vw,   1.15rem);
  --fs-lg:   clamp(1.2rem,  2.5vw, 1.5rem);
  --fs-xl:   clamp(1.5rem,  3vw,   2rem);
  --fs-2xl:  clamp(1.8rem,  4vw,   2.8rem);
  --fs-3xl:  clamp(2rem,    5.5vw, 4rem);

  /* Fluid spacing */
  --sp-xs:  clamp(6px,   1vw,  8px);
  --sp-sm:  clamp(10px,  2vw,  14px);
  --sp-md:  clamp(16px,  3vw,  24px);
  --sp-lg:  clamp(24px,  4vw,  40px);
  --sp-xl:  clamp(40px,  6vw,  64px);
  --sp-2xl: clamp(60px,  8vw,  100px);
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { font-size: 16px; scroll-behavior: smooth; }
body   { font-family: 'Cairo', sans-serif; direction: rtl; overflow-x: hidden; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
img    { max-width: 100%; display: block; }
button { font-family: 'Cairo', sans-serif; }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ─── Scroll Animations ─────────────────────── */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left  { opacity: 0; transform: translateX(60px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(-60px); transition: opacity .7s ease, transform .7s ease; }
.reveal-scale { opacity: 0; transform: scale(0.85);       transition: opacity .6s ease, transform .6s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}

/* ═══ BRAND SLOGAN — "حُجَّ معنا.. فمعنا للحجِّ معنى" ═════════════════
   شعار نصّي موحَّد يظهر في كلّ صفحات المنصّة (الواجهة + لوحات التحكّم + الصفحات)
   ══════════════════════════════════════════════════════════════════ */
.brand-slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(201,168,76,.18) 0%, rgba(139,36,36,.10) 100%);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 999px;
  color: #c9a84c;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .005em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  position: relative;
  overflow: hidden;
}
.brand-slogan::before {
  content: '';
  position: absolute;
  top: 0; right: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: brandSlogShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brandSlogShine {
  0%, 100% { right: -60%; }
  55%      { right: 110%; }
}
.brand-slogan-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #e8c97a);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(201,168,76,.6);
  animation: brandSlogPulse 2.2s ease-in-out infinite;
}
@keyframes brandSlogPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: .75; }
}
.brand-slogan-text { position: relative; z-index: 1; }

/* نسخة داكنة (sidebar / hero ذو خلفية داكنة) */
.brand-slogan--dark {
  background: linear-gradient(135deg, rgba(201,168,76,.22) 0%, rgba(139,36,36,.18) 100%);
  border-color: rgba(201,168,76,.55);
  color: #e8c97a;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* نسخة كبيرة بارزة (للفوتر / صفحات المستندات / hero) */
.brand-slogan--xl {
  font-size: 1.05rem;
  padding: 10px 24px;
  gap: 12px;
}
.brand-slogan--xl .brand-slogan-dot { width: 10px; height: 10px; }

/* نسخة بسيطة بدون إطار (للذيول والتوقيعات) */
.brand-slogan--plain {
  background: transparent;
  border: none;
  padding: 4px 0;
  font-size: .92rem;
  color: #c9a84c;
}
.brand-slogan--plain::before { display: none; }

@media (max-width: 480px) {
  .brand-slogan { font-size: .74rem; padding: 5px 12px; gap: 6px; }
  .brand-slogan--xl { font-size: .92rem; padding: 8px 18px; }
  .brand-slogan-dot { width: 7px; height: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-slogan::before, .brand-slogan-dot { animation: none; }
}

/* ─── Utilities ─────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
section    { scroll-margin-top: 72px; }

.section-header { text-align: center; margin-bottom: clamp(40px,6vw,64px); }
.section-header .eyebrow {
  display: inline-block; color: var(--gold);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); vertical-align: middle; margin: 0 8px;
}
.section-header h2  { font-size: var(--fs-2xl); font-weight: 800; color: var(--green-main); line-height: 1.3; }
.section-header p   { margin-top: 16px; font-size: var(--fs-sm); color: #555; max-width: 600px; margin-inline: auto; }
.gold-underline     { width: 72px; height: 4px; background: linear-gradient(90deg,var(--gold),var(--gold-light)); border-radius: 2px; margin: 16px auto 0; }
