/* ══════════════════════════════════════════════════════════════════════
 *  site-footer.css — الفوتر الموحّد لموقع رَبْع
 *  (2026-10-14 — طلب أحمد: اعتماد فوتر الصفحة الرئيسية مرجعاً لكل الصفحات)
 *
 *  المصدر: فوتر landing.html حرفاً — نفس الألوان والمقاسات والمسافات.
 *
 *  لماذا كل قاعدة مُسوَّرة داخل .rb-site-footer:
 *    صفحات الموقع تحمل CSS خاصاً بها بأسماء متطابقة (.footer-grid و.footer-col
 *    و.badge و.container)، فلو تُركت القواعد مجرّدة لتنازعت مع كل صفحة بنتيجة
 *    مختلفة. التسوير يرفع التخصيص درجةً فيحسم لصالح هذا الملف في كل صفحة،
 *    ويمنع في الوقت نفسه تسرُّب أي قاعدة إلى بقيّة الصفحة.
 *    ويجب أن يُحمَّل بعد كتلة <style> الخاصة بالصفحة — أي قبل </head> مباشرة.
 *
 *  والمتغيّرات مُعرَّفة هنا بقيمها لا بـvar() من الصفحة: صفحات كثيرة لا تعرّف
 *  ‎--t1‎ ولا ‎--gold‎، فكان الفوتر سيخرج بلا لون.
 * ══════════════════════════════════════════════════════════════════════ */

/* تصفير صريح لا تسوير فقط:
   التسوير يرفع التخصيص، لكنه لا يحسم إلا الخصائص المُصرَّح بها هنا. وأي خاصية
   تضبطها الصفحة على الوسم footer ولا نذكرها نحن تمرّ كما هي — وهذا ما جعل
   الفوتر يخرج بعرض 980 في help.html (قاعدتها: footer{max-width:980px;margin:40px 150px}).
   فكل خاصية تؤثر في الصندوق أو النص تُذكر هنا بقيمتها حتى لو كانت الافتراضية. */
.rb-site-footer {
  --rbf-bg: #013A42;
  --rbf-gold: #EAA238;
  background: var(--rbf-bg);
  color: rgba(255,255,255,.85);
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 60px 0 30px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  float: none;
  position: static;
  inset: auto;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  direction: rtl;
  text-align: start;
  /* امتداد الخلفية لحافتَي الشاشة مهما كانت حشوة <body>:
     صفحات رُصدت تضبط body{padding:30px 20px} فظهر الشريط الداكن منحسراً عن
     الحواف بينما هو في الصفحة الرئيسية من طرفٍ لطرف. الظلّ يرسم بلا أن يزحزح
     تخطيطاً، والـclip-path يقصّه رأسياً فلا يطفح فوق المحتوى ولا يُحدث تمريراً
     أفقياً — بخلاف 100vw التي تحسب عرض شريط التمرير ضمنها. */
  box-shadow: 0 0 0 100vmax var(--rbf-bg);
  clip-path: inset(0 -100vmax);
}
.rb-site-footer *, .rb-site-footer *::before, .rb-site-footer *::after { box-sizing: border-box; }
.rb-site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

.rb-site-footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (max-width: 880px) { .rb-site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rb-site-footer .footer-grid { grid-template-columns: 1fr; } }

.rb-site-footer .footer-brand { display: flex; flex-direction: column; }
.rb-site-footer .footer-brand p {
  margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.7);
  line-height: 1.8; max-width: 320px; padding: 0;
}
.rb-site-footer img { max-width: 100%; border: 0; }

/* تصفير عام للروابط داخل الفوتر — القواعد الخاصة أدناه (.raba-foot-soc و.badge)
   أعلى تخصيصاً فتكسبه حيث يلزم. القيم هي نفسها المحسوبة في الصفحة الرئيسية:
   صفحات رُصدت تضبط a{display:block;padding:4px 0} وa{margin:0 8px} فتغيّر الارتفاع. */
.rb-site-footer a {
  display: inline; margin: 0; padding: 0; border: 0; background: none;
  text-decoration: none; line-height: 1.7; letter-spacing: normal;
  font-weight: 400; font-style: normal; text-transform: none;
}
.rb-site-footer .footer-col { min-width: 0; }
.rb-site-footer .footer-col h4 {
  font-size: 13px; color: var(--rbf-gold); margin: 0 0 16px; padding: 0;
  font-weight: 700; line-height: 1.5; letter-spacing: normal;
}
.rb-site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.rb-site-footer .footer-col li { margin: 0 0 10px; padding: 0; font-size: 14px; line-height: 1.7; }
.rb-site-footer .footer-col a {
  font-size: 13px; color: rgba(255,255,255,.7);
  transition: color .15s; text-decoration: none;
}
.rb-site-footer .footer-col a:hover { color: var(--rbf-gold); }

.rb-site-footer .footer-bottom {
  border: 0; border-top: 1px solid rgba(255,255,255,.1);
  margin: 0; padding: 24px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.rb-site-footer .footer-bottom .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.rb-site-footer .footer-bottom .badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  margin: 0; line-height: 1.7;
}

/* ─── أيقونات التواصل ─── */
.rb-site-footer .raba-foot-soc {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  color: #fff !important;
  transition: all .2s ease;
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  margin: 0; padding: 0; flex: none;
}
.rb-site-footer .raba-foot-soc svg { display: block; }
.rb-site-footer .raba-foot-soc:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.rb-site-footer .raba-fs-wa:hover   { background: #25D366; border-color: #25D366; }
.rb-site-footer .raba-fs-snap:hover { background: #FFFC00; color: #000 !important; border-color: #FFFC00; }
.rb-site-footer .raba-fs-ig:hover   { background: linear-gradient(135deg,#833AB4,#FD1D1D,#FCB045); border-color: transparent; }
.rb-site-footer .raba-fs-tt:hover   { background: #000; border-color: #fff; }
.rb-site-footer .raba-fs-fb:hover   { background: #1877F2; border-color: #1877F2; }
.rb-site-footer .raba-fs-x:hover    { background: #000; border-color: #fff; }
.rb-site-footer .raba-fs-em:hover   { background: #EF4444; border-color: #EF4444; }

@media (max-width: 640px) {
  .rb-site-footer .raba-foot-soc { width: 36px; height: 36px; }
  .rb-site-footer .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .rb-site-footer .footer-bottom .badges { justify-content: center; }
}
