/* Header Styles */

header {
  position: relative;
  z-index: 999;
  width: 100%;
}

/* Top Bar */
.top-bar {
  background-color: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
}

.top-bar-contact a {
  color: var(--grey);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-contact a i {
  color: var(--primary);
}

.top-bar-social {
  display: flex;
}

.top-bar-social a {
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.top-bar-social a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-social a:hover {
  background-color: var(--primary);
}

/* Main Navigation */
.main-header {
  background-color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Services Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border: 1px solid var(--grey);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  color: var(--dark);
}

.dropdown-item i {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--primary);
}

.dropdown-item:hover {
  color: var(--primary);
  background-color: var(--grey);
}

.dropdown-item:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Header Sticky */
.main-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.3s ease-out;
  z-index: 999;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: var(--white);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Mobile Sidebar Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 2rem;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

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

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  font-size: 0.95rem;
  color: var(--secondary);
}

.mobile-nav-social {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--grey);
  padding-top: 1.5rem;
}

.mobile-nav-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--grey);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-social a:hover {
  background-color: var(--primary);
  color: var(--white);
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header Responsive Overrides */
@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}
@media (max-width: 767px) {
  .top-bar {
    display: none;
  }
}
