/* Main navbar */
.navbar {
  width: 100%;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 0;
  padding-bottom: 0;
  transform: translateY(0);
  opacity: 1;
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  transition: padding 0.3s ease;
}

.navbar-main {
  padding: 4px 0;
  transition: padding 0.3s ease;
}

.navbar-main .navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: gap 0.3s ease;
}

/* Logo */
.navbar-logo {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s;
  position: relative;
  top: -6px;
  padding-top: 10px;
}

.logo:hover {
  opacity: 0.85;
}

.logo-image {
  height: 80px;
  width: auto;
  transition: height 0.3s ease;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-gold, #d4af37);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Main Navigation Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  transition: gap 0.3s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--neutral-medium);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s;
  position: relative;
  border: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-indigo);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary-blue);
  font-weight: 600;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  background: none;
  border: none;
}

.dropdown-arrow {
  transition: transform 0.3s;
  margin-left: 4px;
}

.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--secondary-mist);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
  margin-top: 8px;
}

.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--neutral-medium);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  color: var(--primary-indigo);
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(4px);
}

/* Search - REMOVED */

/* Right actions - REMOVED */

/* Mobile/Tablet Navbar Search - REMOVED */

/* Mobile Menu Toggle */


/* Mobile Search Overlay - Removed as search bar was moved from mobile menu */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--primary-slate);
  color: var(--primary-slate);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s;
  z-index: 10000;
  position: relative;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-indigo);
  border-color: var(--primary-indigo);
}

.mobile-menu-toggle.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-indigo);
  border-color: var(--primary-indigo);
}

.mobile-menu-toggle.active .hamburger-icon {
  display: none;
}

.mobile-menu-toggle.active .close-icon {
  display: block !important;
}

.mobile-menu-toggle svg {
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Start off-screen on the right */
  width: 66.67%; /* One-third of the screen */
  max-width: 320px; /* Maximum width for larger screens */
  height: auto; /* Dynamic height based on content */
  max-height: 100vh; /* Prevent menu from exceeding viewport height */
  background: white;
  z-index: 9999;
  overflow-y: auto; /* Enable scrolling when content exceeds max-height */
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1); /* Shadow on the left side */
}

.mobile-menu.show {
  right: 0; /* Slide in from right */
}

/* Mobile Menu Overlay - for clicking outside to close */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 0;
}

.mobile-nav-section,
.mobile-categories,
.mobile-actions {
  margin-bottom: 30px;
  padding: 0 24px;
}

.mobile-nav-section {
  padding-top: 30px; /* Add top padding since we removed the header */
}

.mobile-nav-section h3,
.mobile-categories h3,
.mobile-actions h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-slate);
  margin-bottom: 15px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6); /* Match navbar's professional border */
}

.mobile-nav-link,
.mobile-category-link {
  display: block;
  padding: 15px;
  margin-bottom: 8px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.mobile-nav-link:hover,
.mobile-category-link:hover {
  background: #e9ecef;
}

.mobile-action-link {
  display: block;
  padding: 15px;
  margin-bottom: 10px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}

.mobile-action-link.whatsapp {
  background: #25D366;
}

.mobile-action-link.call {
  background: #007BFF;
}

/* Professional Responsive Design - Fixed */

/* Large Desktop - Full navbar */
@media (min-width: 1441px) {
  .navbar-container {
    padding: 0 60px;
  }
  
  .navbar-main .navbar-container {
    gap: 40px;
  }
}

/* Standard Desktop - Slightly compressed */
@media (max-width: 1440px) and (min-width: 1200px) {
  .navbar-container {
    padding: 0 32px;
  }
  
  .navbar-main .navbar-container {
    gap: 24px;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Small Desktop - More compressed */
@media (max-width: 1199px) and (min-width: 1025px) {
  .navbar-container {
    padding: 0 24px;
  }
  
  .navbar-main .navbar-container {
    gap: 16px;
  }
  
  .logo-image {
    height: 75px;
  }
  
  .logo-text {
    font-size: 26px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }
  
  .nav-link svg {
    width: 16px;
    height: 16px;
  }
}

/* Tablet - Show full navigation menu (NO mobile menu) */
@media (max-width: 1024px) and (min-width: 768px) {
  .navbar-container {
    padding: 0 20px;
  }

  .navbar-main {
    padding: 8px 0;
  }

  .navbar-main .navbar-container {
    gap: 12px;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-logo {
    flex-shrink: 0;
  }

  .navbar-nav {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .nav-link svg {
    width: 14px;
    height: 14px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .logo-image {
    height: 65px;
  }
  
  .logo-text {
    font-size: 24px;
  }
}

/* Specific fix for 768px-820px range - Smaller logo to prevent Contact Us overflow */
@media (max-width: 820px) and (min-width: 769px) {
  .logo-image {
    height: 55px; /* Reduced from 65px to 55px */
  }
  
  .logo-text {
    font-size: 22px; /* Reduced from 24px to 22px */
  }
}

/* Extra fix for exactly 768px - Even smaller logo */
@media (max-width: 768px) and (min-width: 768px) {
  .logo-image {
    height: 45px; /* Further reduced to 45px for 768px */
  }
  
  .logo-text {
    font-size: 18px; /* Further reduced to 18px for 768px */
  }
}

/* Mobile - Show mobile menu for phones only */
@media (max-width: 767px) {
  .navbar-container {
    padding: 0 16px;
  }

  .navbar-main {
    padding: 12px 0;
  }

  .navbar-main .navbar-container {
    gap: 12px;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-logo {
    order: 1;
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    order: 2;
    display: flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .navbar-nav {
    display: none;
  }

  .logo-image {
    height: 60px;
  }
  
  .logo-text {
    font-size: 20px;
  }

  /* Mobile menu adjustments */
  .mobile-menu {
    width: 75%;
    max-width: 280px;
    height: auto;
    max-height: 100vh;
  }
}

/* Small Mobile - Further optimization */
@media (max-width: 480px) {
  .navbar-container {
    padding: 0 12px;
  }

  .navbar-main {
    padding: 10px 0;
  }

  .navbar-main .navbar-container {
    gap: 8px;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .logo-image {
    height: 55px;
  }
  
  .logo-text {
    font-size: 18px;
  }

  .mobile-menu {
    width: 80%;
    max-width: 260px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .navbar-container {
    padding: 0 8px;
  }

  .navbar-main {
    padding: 8px 0;
  }

  .logo-image {
    height: 50px;
  }
  
  .logo-text {
    font-size: 16px;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }
}