
/* Navbar */
.navbar {
  width: 100%;
  background: #ffffff;
  box-shadow: 0px 4px 6px -1px rgba(0,0,0,0.1),
              0px 2px 4px -2px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Container */
.nav-container {
  max-width: 1180px;
  height: 92px;
  margin: auto;
  padding: 0 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  width: 230px;
  height: 78px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.logo a:hover {
  opacity: 0.94;
  transform: scale(1.015);
  filter: brightness(1.02);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  color: #101828;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 220ms ease, color 220ms ease;
}

.mobile-menu-toggle:hover {
  background: #F3F4F6;
  color: #00A63E;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Links */
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #364153;
  transition: color 240ms ease, opacity 240ms ease;
}

.nav-links a:hover {
  color: #00A63E;
}

.nav-links > a:not(.btn)::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: #00A63E;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
}

.nav-links > a:not(.btn):hover::after,
.dropdown-toggle:hover::after {
  transform: scaleX(1);
}

/* Button */
.nav-links .btn {
  background: #00A63E;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 220ms ease, transform 220ms ease;
}

.nav-links .btn:hover {
  background: #008f34;
  transform: translateY(-1px);
}

/* Dropdown styling */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle, .subdropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-menu, .subdropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid #f1f5f9;
}

.subdropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 5px;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-subdropdown:hover > .subdropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  color: #364153;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: #f8fafc;
  color: #00A63E;
}

/* Responsive Navbar */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }

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

  .logo a {
    width: 188px;
    height: 64px;
  }
  
  .nav-links {
    position: absolute;
    top: 92px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease;
  }
  
  .nav-links.active {
    max-height: calc(100vh - 92px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .dropdown-menu, .subdropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    display: none;
    width: 100%;
  }
  
  .subdropdown-menu {
    margin-left: 15px;
  }

  .nav-dropdown.active > .dropdown-menu,
  .nav-subdropdown.active > .subdropdown-menu {
    display: block;
  }
}

@media (max-width: 420px) {
  .logo a {
    width: 164px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
