#siteHeader {
  --h-bg: rgba(255, 255, 255, 0.97);
  --h-navy: #1d2d50;
  --h-text: #3a4760;
  --h-orange: #f7941d;
  --h-phone-bg: #f3e8da;
  --h-border: rgba(0, 0, 0, 0.06);

  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  margin-inline: auto;
  width: calc(100% - 80px);
  max-width: 1360px;
  z-index: 1000;
  background: var(--h-bg);
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(15, 30, 60, 0.35);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--h-text);
}
#siteHeader *, #siteHeader *::before, #siteHeader *::after { box-sizing: border-box; }
#siteHeader a { text-decoration: none; color: inherit; }
#siteHeader ul { list-style: none; margin: 0; padding: 0; }
#siteHeader svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

html { scroll-padding-top: 100px; }

#siteHeader .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 22px;
  margin: 0;
  max-width: none;
  width: 100%;
}

/* الشعار */
#siteHeader .brand a { display: flex; align-items: center; gap: 8px; }
#siteHeader .brand img { display: block; height: 44px; width: auto; }
#siteHeader .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
#siteHeader .brand-text b { font-size: 1.05rem; color: var(--h-navy); }
#siteHeader .brand-text span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px; color: var(--h-orange); }

/* القائمة */
#siteHeader nav ul { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 28px); }
#siteHeader nav a {
  font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  padding: 6px 2px; transition: color 0.2s;
}
#siteHeader nav a:hover { color: var(--h-orange); }

/* الأزرار */
#siteHeader .header-actions { display: flex; align-items: center; gap: 10px; }
#siteHeader .header-phone,
#siteHeader .header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; white-space: nowrap;
}
#siteHeader .header-phone { background: var(--h-phone-bg); color: var(--h-navy); }
#siteHeader .header-phone svg { color: var(--h-orange); }
#siteHeader .header-cta { background: var(--h-orange); color: #fff; transition: filter 0.2s; }
#siteHeader .header-cta:hover { filter: brightness(1.07); }

#siteHeader .menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--h-navy); padding: 4px 8px;
}
#siteHeader .mobile-nav { display: none; }

/* شاشات متوسطة: خفف الزحمة */
@media (max-width: 1280px) {
  #siteHeader .header-phone { padding: 9px 12px; }
  #siteHeader nav a { font-size: 0.82rem; }
}

/* تابلت وموبايل: قائمة منسدلة */
@media (max-width: 1100px) {
  #siteHeader { width: calc(100% - 24px); border-radius: 28px; top: calc(10px + env(safe-area-inset-top, 0px)); }
  #siteHeader nav, #siteHeader .header-phone { display: none; }
  #siteHeader .menu-toggle { display: block; }
  #siteHeader .nav-wrap { padding: 8px 14px; }
  #siteHeader .mobile-nav.open {
    display: flex; flex-direction: column;
    padding: 4px 18px 14px; border-top: 1px solid var(--h-border);
  }
  #siteHeader .mobile-nav a {
    padding: 12px 0; font-weight: 600; color: var(--h-navy);
    border-bottom: 1px solid var(--h-border);
  }
  #siteHeader .mobile-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  #siteHeader .brand-text span { display: none; }
  #siteHeader .header-cta { padding: 8px 12px; }
}/* ===== القائمة الجانبية (موبايل وتابلت) ===== */
#siteHeader .nav-overlay {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(15, 25, 50, 0.55);
}
#siteHeader .nav-overlay[hidden] { display: none; }

#siteHeader .mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002;
  width: min(82vw, 320px);
  display: flex; flex-direction: column;
  padding: 0 20px 24px;
  background: #fff;
  overflow-y: auto;
  border-radius: 24px 0 0 24px;
  box-shadow: -12px 0 40px -10px rgba(15, 30, 60, 0.4);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
#siteHeader .mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease;
}

#siteHeader .drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--h-border);
  color: var(--h-navy); font-size: 1.05rem;
}
#siteHeader .drawer-close {
  background: none; border: 0; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--h-navy); padding: 6px 8px;
}
#siteHeader .mobile-nav > a {
  padding: 14px 0; font-weight: 600; color: var(--h-navy);
  border-bottom: 1px solid var(--h-border);
}
#siteHeader .mobile-nav > a:hover { color: var(--h-orange); }
#siteHeader .mobile-nav > a.drawer-phone {
  margin-top: 16px; text-align: center; border: 0; border-radius: 999px;
  background: var(--h-phone-bg);
}

/* على الديسكتوب: لا قائمة جانبية */
@media (min-width: 1101px) {
  #siteHeader .mobile-nav, #siteHeader .nav-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #siteHeader .mobile-nav { transition: none; }
}