/* =========================
   Shared Header Style
   Orange Theme مثل الصفحة الرئيسية
========================= */

:root {
  --header-primary: #071a2f;
  --header-secondary: #0d2b4e;
  --header-accent: #ff8a00;
  --header-accent-2: #ffb357;
  --header-light: #ffffff;
  --header-text: #071a2f;
  --header-muted: #667085;
  --header-border: #e7edf5;
  --header-shadow: 0 18px 45px rgba(7, 26, 47, 0.12);
}

/* الشريط العلوي */
.top-strip {
  background: linear-gradient(135deg, #071a2f, #0d2b4e);
  color: #ffffff;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 3px solid #ff8a00;
}

.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.top-strip strong {
  color: #ffb357;
}

/* الهيدر */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 35px rgba(7, 26, 47, 0.08);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--header-text);
  flex-shrink: 0;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071a2f, #ff8a00);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(255, 138, 0, 0.22);
}

.logo-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.logo > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
}

.logo small {
  font-size: 13px;
  color: var(--header-muted);
  font-weight: 700;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  gap: 7px;
}

.navbar > a,
.dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--header-text);
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.25s ease;
}

.navbar > a:hover,
.navbar > a.active,
.dropdown:hover .dropdown-toggle,
.dropdown.active .dropdown-toggle,
.dropdown-toggle:hover {
  background: rgba(255, 138, 0, 0.12);
  color: #ff8a00;
}

/* Services Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: ">";
  font-size: 13px;
  margin-right: 7px;
  color: #ff8a00;
}

/* القائمة الأولى */
.service-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 310px;
  background: #0d2b4e;
  padding: 10px;
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 45px rgba(7, 26, 47, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 1500;
}

/* يمنع اختفاء المنيو وأنت نازل بالماوس */
.service-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  width: 100%;
  height: 14px;
}

.dropdown:hover .service-menu,
.dropdown:focus-within .service-menu,
.dropdown.active .service-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-group {
  position: relative;
}

.service-main {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  padding: 14px 16px;
  border-radius: 13px;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: 0.25s ease;
}

.service-main b {
  font-size: 22px;
  line-height: 1;
  color: #ffb357;
}

.service-main:hover,
.service-group:hover > .service-main,
.service-group:focus-within > .service-main,
.service-group.active > .service-main {
  background: rgba(255, 138, 0, 0.16);
  color: #ffb357;
}

/* القائمة الجانبية */
.service-submenu {
  position: absolute;
  top: 0;
  right: 100%;
  width: 285px;
  background: #071a2f;
  padding: 10px;
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 45px rgba(7, 26, 47, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: 0.25s ease;
  z-index: 1600;
}

/* يمنع اختفاء القائمة الجانبية */
.service-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
}

.service-group:hover > .service-submenu,
.service-group:focus-within > .service-submenu,
.service-group.active > .service-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.service-submenu a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 11px;
  transition: 0.25s ease;
}

.service-submenu a:hover,
.service-submenu a.active {
  background: #ff8a00;
  color: #ffffff;
  transform: translateX(-4px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn.primary {
  background: #ff8a00;
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(255, 138, 0, 0.28);
  transition: 0.25s ease;
}

.btn.primary:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--header-border);
  border-radius: 14px;
  background: #ffffff;
  color: #071a2f;
  font-size: 24px;
  cursor: pointer;
}

/* =========================
   Mobile Header
========================= */

@media (max-width: 992px) {
  .top-strip .container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .nav-wrap {
    min-height: 78px;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 15px;
    left: 15px;
    background: #ffffff;
    border: 1px solid var(--header-border);
    border-radius: 18px;
    box-shadow: var(--header-shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .navbar.active,
  .navbar.open {
    display: flex;
  }

  .navbar > a,
  .dropdown-toggle {
    width: 100%;
    text-align: right;
    border-radius: 12px;
    padding: 13px 14px;
  }

  .dropdown {
    width: 100%;
  }

  .service-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 14px;
    background: #0d2b4e;
  }

  .dropdown.active .service-menu,
  .dropdown.open .service-menu {
    display: block;
  }

  .service-submenu {
    position: static;
    width: 100%;
    margin-top: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 13px;
    background: #071a2f;
  }

  .service-group.active > .service-submenu,
  .service-group.open > .service-submenu {
    display: block;
  }

  .service-submenu::before,
  .service-menu::before {
    display: none;
  }

  .header-actions .btn.primary {
    display: none;
  }
}

@media (max-width: 600px) {
  .logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .logo > span:last-child {
    font-size: 18px;
  }

  .logo small {
    font-size: 12px;
  }

  .top-strip {
    font-size: 13px;
  }
}