/* ═══════════════════════════════════════════
   footer.css — الفوتر + الشعار في بلوك navy + السلوقن
   ═══════════════════════════════════════════ */

.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line-2);
  padding: 0 0 32px;
  position: relative;
}

/* ── قسم الشعار الكبير في الفوتر ── */
.footer-hero {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--line-2);
}

/* ══ بلوك الشعار navy في الفوتر ══ */
.footer-hero-logo {
  display: inline-flex;
  background: var(--logo-bg);   /* #0a1628 — ثابت */
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow:
    0 0 80px rgba(56, 189, 248, 0.18),
    0 0 120px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.footer-hero-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
  z-index: 2;
}
.footer-hero-logo img {
  height: 168px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── السلوقن الكبير ── */
.footer-slogan {
  font-family: var(--font-ar);
  font-size: 96px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--text-0);
  margin-bottom: 0;
}
.footer-slogan em {
  font-family: var(--font-ar);
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -3px;
}
.footer-slogan-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 4px 18px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--accent);
}

/* ── منطقة الروابط ── */
.footer-main {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 56px;
  border-bottom: 1px solid var(--line-2);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-px);
}

/* ══ شعار العلامة في الفوتر الأسفل (صغير) ══ */
.footer-brand-logo {
  display: inline-flex;
  background: var(--logo-bg);   /* #0a1628 — ثابت */
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.1);
  height: 56px;
}
.footer-brand-logo img { height: 56px; width: auto; display: block; }

/* ── السلوقن الصغير تحت الشعار ── */
.footer-tagline {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 8px;
}

.footer-sub-slogan {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-ar);
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
}
.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.footer-status-text {
  font-family: var(--font-ar);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0;
}

.footer-col-title {
  font-family: var(--font-ar);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 20px;
}

/* نص توصيف الشركة */
.footer-attribution {
  font-family: var(--font-ar);
  font-size: 11.5px;
  color: var(--text-4);
  text-align: center;
  line-height: 1.8;
  width: 100%;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--line-1);
}
.footer-attribution a {
  color: var(--text-3);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3px;
}
.footer-attribution a:hover { color: var(--accent); }
.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-list li { font-size: 14px; color: var(--text-2); cursor: pointer; transition: color var(--t-fast); }
.footer-col-list li a { color: inherit; text-decoration: none; }
.footer-col-list li:hover { color: var(--text-0); }

/* ── الشريط السفلي ── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--container-px) 0;
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}
.footer-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color var(--t-fast);
  background: none;
  font-family: var(--font-ar);
}
.footer-region:hover { border-color: var(--line-3); }





/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer-slogan { font-size: 72px; }
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding-inline: 20px; }
  .footer-slogan { font-size: 48px; letter-spacing: -2px; }
  .footer-hero-logo img { height: 64px; }
  .footer-hero-logo { padding: 24px 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; padding-inline: 20px; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-slogan { font-size: 36px; letter-spacing: -1.5px; }
}

/* ══════════════════════════════════════════════════
   الفوتر الموحد للصفحات الفرعية — .footer-inner
   يُستخدم في about, faq, privacy, terms, SSR pages
   ══════════════════════════════════════════════════ */

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 36px var(--container-px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* السلوقن الصغير في الفوتر الموحد — override للنسخة الكبيرة */
.footer-inner .footer-slogan {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
  line-height: 1.5;
  font-family: var(--font-ar);
}
.footer-inner .footer-slogan em {
  font-family: var(--font-ar);
  font-style: normal;
  color: var(--accent);
}
.footer-inner .footer-slogan-dot { display: none; }

/* روابط الفوتر الموحد */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--t-fast);
  font-family: var(--font-ar);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--text-1); }

/* حق النشر في الفوتر الموحد */
.footer-inner .footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-1);
  margin-top: 4px;
}

/* زر اللغة في الفوتر */
.footer-lang-toggle {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
  min-width: 38px;
  text-align: center;
}
.footer-lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* زر مشاركة الموقع في الفوتر */
.footer-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  width: 30px;
  height: 26px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
  position: relative;
}
.footer-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}
.footer-share-btn svg { display: block; }

/* tooltip "تم النسخ" */
.footer-share-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(.85);
  background: var(--text-0);
  color: var(--bg-0);
  font-family: var(--font-ar);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.footer-share-btn.copied::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 20px;
  }
  .footer-links { gap: 4px 12px; }
}

/* ══════════════════════════════════════════════════
   UNIFIED FOOTER (zhf-*) — معيار زيّنها الموحَّد (5 مناطق + Gift CTA + سطر قانوني 3 أسطر)
   ══════════════════════════════════════════════════ */
.zhf-gift {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  background: var(--logo-bg); color: #e8eef6;
  padding: 16px var(--container-px); text-align: center; font-size: 14px; font-family: var(--font-ar);
}
.zhf-gift-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #04121f;
  text-decoration: none; font-weight: 800; font-size: 13px; padding: 8px 18px; border-radius: 99px;
}
.zhf-gift-btn:hover { filter: brightness(1.08); }

.zhf { background: var(--bg-0); border-top: 1px solid var(--line-2); padding: 0 0 28px; }
.zhf-grid {
  max-width: var(--container-max); margin: 0 auto; padding: 48px var(--container-px) 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px;
  border-bottom: 1px solid var(--line-1);
}
.zhf-zone { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zhf-h { font-family: var(--font-ar); font-size: 13px; font-weight: 700; color: var(--text-2); margin: 0 0 6px; }
.zhf-zone a { font-size: 13.5px; color: var(--text-3); text-decoration: none; transition: color var(--t-fast); font-family: var(--font-ar); }
.zhf-zone a:hover { color: var(--accent); }
.zhf-brand .logo-block--sm { background: var(--logo-bg); border-radius: 12px; padding: 6px 10px; display: inline-flex; }
.zhf-desc { font-size: 13px; color: var(--text-3); line-height: 1.7; margin: 14px 0 0; max-width: 320px; font-family: var(--font-ar); }
.zhf-slogan { font-size: 13px; color: var(--text-4); font-family: var(--font-ar); margin: 6px 0 0; }

/* newsletter — بمحاذاة المنتصف (إلزامي) */
.zhf-news { align-items: center; text-align: center; }
.zhf-news-h { text-align: center; }
.zhf-news-d { font-size: 12.5px; color: var(--text-4); line-height: 1.6; margin: 0 0 6px; font-family: var(--font-ar); text-align: center; }
.zhf-news-form { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; }
.zhf-news-form input, .zhf-news-form select {
  background: var(--bg-raised); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; color: var(--text-1); font-family: inherit; width: 100%;
}
.zhf-news-row { display: flex; gap: 8px; }
.zhf-news-row select { flex: 0 0 auto; width: auto; max-width: 124px; }
.zhf-news-row input { flex: 1 1 auto; }
.zhf-news-form button {
  background: var(--accent); color: #04121f; border: none; border-radius: 10px; padding: 10px;
  font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; transition: filter var(--t-fast);
}
.zhf-news-form button:hover { filter: brightness(1.08); }
.zhf-news-form button:disabled { opacity: .6; cursor: default; }
.zhf-news-msg { font-size: 12px; min-height: 16px; font-family: var(--font-ar); }
.zhf-news-msg.ok { color: #22c55e; }
.zhf-news-msg.err { color: #ef4444; }

.zhf-actions {
  max-width: var(--container-max); margin: 0 auto; padding: 20px var(--container-px) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
}
.zhf-act {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text-2);
  border: 1px solid var(--line-2); padding: 9px 18px; border-radius: 99px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all var(--t-fast); position: relative;
}
.zhf-act:hover { border-color: var(--accent); color: var(--accent); }
.zhf-share-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--text-0); color: var(--bg-0); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; display: none; }

/* السطر القانوني — 3 أسطر مستقلّة */
.zhf-legal { max-width: 760px; margin: 0 auto; padding: 22px var(--container-px) 0; text-align: center; font-family: var(--font-ar); }
.zhf-legal p { margin: 0 0 6px; line-height: 1.7; }
.zhf-legal-1 { font-size: 13px; color: var(--text-2); font-weight: 600; }
.zhf-legal-2 { font-size: 11.5px; color: var(--text-4); }
.zhf-legal-3 { font-size: 11px; color: var(--text-4); }

@media (max-width: 1024px) { .zhf-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } .zhf-news { grid-column: 1 / -1; } }
@media (max-width: 680px)  { .zhf-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 20px 28px; } .zhf-brand { grid-column: 1 / -1; } .zhf-news { grid-column: 1 / -1; } }
@media (max-width: 420px)  { .zhf-grid { grid-template-columns: 1fr; } }
