/* Navbar container */
.custom-navbar {
  background-color: #bfcee4 !important;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Navbar brand/logo */
.navbar-brand img {
  height: 40px;
  object-fit: contain;
}

/* Navbar toggler (hamburger menu) */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Navbar links container */
.navbar-nav {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
}

/* Individual nav items */
.nav-item {
  margin: 0 0.75rem !important; /* Using !important to override Bootstrap */
}

/* Nav links */
.nav-link {
  font-size: 1.15rem;
  color: #2c3e50;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #0d6efd;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #e9ecef;
}

/* Services dropdown specific styles */
#servicesDropdown + .dropdown-menu {
  min-width: 420px;
}

#servicesDropdown + .dropdown-menu .row {
  margin: 0;
}

#servicesDropdown + .dropdown-menu .col-12 {
  padding: 0;
}

/* Utility class for navbar elements */
.d-flex {
  white-space: nowrap;
}

/* Schedule Call Button */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 0;
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0.25rem 0 !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .dropdown-menu {
    margin-left: 1rem;
    width: calc(100% - 2rem);
    min-width: unset !important;
  }
  
  #servicesDropdown + .dropdown-menu {
    min-width: unset;
    width: calc(100% - 2rem);
  }
  
  #servicesDropdown + .dropdown-menu .row {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    height: 35px;
  }
}