/* =============================================
   NAVBAR CSS - HighMix Company
   Primary Color: #FF0900
   Font: Cairo (Arabic), Inter (English)
   ============================================= */

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

:root {
  --primary: #FF0900;
  --primary-dark: #cc0700;
  --primary-light: rgba(255, 9, 0, 0.08);
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --text-light: #ffffff;
  --text-muted: #000000;
  --border-color: rgba(0, 0, 0, 0.1);
  --topbar-bg: rgba(16, 0, 73, 0.1);
  /* Equivalent to #1000491A approx or exactly as requested */
  --navbar-bg: #ffffff;
  --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.10);
  --transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
html {
  overflow-x: hidden;
}

/* ─── TOP BAR ───────────────────────────────── */
.top-bar {
  background: var(--topbar-bg);
  color: var(--text-muted);
  font-size: 0.80rem;
  font-weight: 400;
  min-height: 38px;
  height: auto;
  padding: 5px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  /* Reverse: Info on left, Socials on right in RTL */
  gap: 16px;
}

/* ── left-side info (RTL: right side visually) */
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.top-bar-info .info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
  cursor: default;
}

.top-bar-info .info-item:hover {
  color: var(--primary);
}

.top-bar-info .info-item i {
  color: var(--primary);
  font-size: 0.80rem;
}

/* ── right-side social icons (RTL: left side) */
.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #000;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--transition);
}

.top-bar-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 9, 0, 0.35);
}

/* ─── MAIN NAVBAR ───────────────────────────── */
.navbar-wrapper {
  background: var(--navbar-bg);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-wrapper.scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ─── LOGO ──────────────────────────────────── */
.navbar-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.10));
}

.navbar-logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(255, 9, 0, 0.25));
}

/* ─── NAV LINKS ─────────────────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  justify-content: flex-start;
  /* Align next to logo (right side in RTL) */
  margin-right: 20px;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-menu>li>a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 99px;
  transition: var(--transition);
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-menu>li>a:hover::after,
.nav-menu>li.active>a::after {
  width: calc(100% - 32px);
  right: 16px;
  transform: none;
}

.nav-menu>li.active>a {
  font-weight: 700;
}

/* ─── DROPDOWN ──────────────────────────────── */
.nav-menu>li.has-dropdown>a>.dropdown-caret {
  font-size: 0.65rem;
  transition: var(--transition);
}

.nav-menu>li.has-dropdown:hover>a>.dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.nav-menu>li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  color: var(--primary);
  background: var(--primary-light);
  padding-right: 22px;
}

/* ─── CTA BUTTON ────────────────────────────── */
.nav-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 40px;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(255, 9, 0, 0.30);
  border: 2px solid transparent;
}

.nav-cta i {
  font-size: 0.85rem;
}

.nav-cta:hover {
  background: #fff;
  color: var(--primary) !important;
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(255, 9, 0, 0.20);
  transform: translateY(-2px);
}

/* ─── HAMBURGER ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  background: transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.hamburger.active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 99px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--primary);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--primary);
}

/* ─── MOBILE OVERLAY MENU ───────────────────── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: #fff;
  z-index: 1100;
  /* Above overlay and navbar */
  padding: 24px 20px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.mobile-nav-header img {
  height: 44px;
  object-fit: contain;
}

.mobile-close-btn {
  background: #fff;
  border: 2px solid #ff0900;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ff0900;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 9, 0, 0.15);
}

.mobile-close-btn:hover {
  background: var(--primary);
  color: #fff;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li.active a {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(255, 9, 0, 0.15);
}

.mobile-nav-links li.active a {
  font-weight: 700;
  background: rgba(255, 9, 0, 0.05);
  color: #ff0900;
  border-right: 4px solid #ff0900;
  border-radius: 4px;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 700;
  border-radius: 10px;
  margin-top: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(255, 9, 0, 0.30);
}

.mobile-nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ─── MOBILE SUBMENU ────────────────────────── */
.mobile-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-link-wrapper a {
  flex: 1;
}

.mobile-dropdown-toggle {
  background: transparent;
  border: none;
  color: #333;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.mobile-submenu {
  list-style: none;
  padding-right: 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease-out;
}

.mobile-submenu li a {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  opacity: 0.8;
  padding: 8px 16px !important;
}

.has-mobile-dropdown.open .mobile-dropdown-toggle {
  color: var(--primary);
}

.has-mobile-dropdown.open .mobile-link-wrapper a {
  color: var(--primary);
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 0;
  }

  .nav-menu>li>a {
    padding: 10px 11px;
    font-size: 0.85rem;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {

  .nav-menu,
  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .mobile-menu-overlay {
    display: block;
  }
}

@media (max-width: 640px) {
  .top-bar-inner {
    padding: 0 14px;
    flex-wrap: nowrap; /* Force single line */
  }

  /* Hide Working Hours on small screens to save space and look premium */
  .top-bar-info .info-item:nth-child(1) {
    display: none;
  }

  .top-bar-info {
    gap: 12px;
    justify-content: flex-start;
  }

  .top-bar-info .info-item {
    font-size: 0.73rem;
  }

  .navbar-inner {
    height: 62px;
    padding: 0 16px;
  }

  .navbar-logo img {
    height: 44px;
  }
}

@media (max-width: 450px) {
  .top-bar-inner {
    justify-content: space-between;
  }

  /* Hide Address on very tiny screens, keep Phone only */
  .top-bar-info .info-item:nth-child(3) {
    display: none;
  }

  .top-bar-info .info-item {
    font-size: 0.8rem;
  }

  .top-bar-socials a {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .top-bar-socials {
    gap: 6px;
  }
}