/* Main Navigation - Pixel Perfect from Figma */
.main-nav {
  background: var(--white);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  z-index: 10000;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.logo {
  min-width: 200px;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.logo img {
  height: auto;
  width: auto;
  max-height: 60px;
  display: block;
}

.nav-menu {
  flex: 1 1 auto;
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  color: var(--tundora);
  text-decoration: none;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4285714285714286em;
  letter-spacing: -3.57%;
  text-transform: capitalize;
  text-align: right;
  transition: all 0.3s;
  position: relative;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link.active {
  color: var(--white);
  background: var(--tussock);
  padding: 12px 16px;
  border-radius: 4px;
}

.nav-link.home-link {
  color: var(--tussock);
  background: transparent;
}

.nav-link:hover:not(.active):not(.home-link) {
  color: var(--tundora);
  background: transparent;
}

.nav-link i {
  font-size: 12px;
  margin-right: 4px;
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 200px;
  display: none;
  list-style: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.has-dropdown .nav-link {
  cursor: pointer;
}

.has-dropdown .nav-link i {
  transition: transform 0.3s ease;
}

.has-dropdown.active .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu li {
  border-bottom: 1px solid var(--mercury);
}

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

.dropdown-menu a {
  display: block;
  padding: 12px 15px;
  color: var(--boulder);
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12.8px;
  line-height: 1.7187499743886296em;
  letter-spacing: -3.125%;
  text-transform: capitalize;
  text-align: right;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.dropdown-menu a:hover {
  background: var(--mercury);
  color: var(--tundora);
}

.dropdown-menu a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--tussock);
  transition: height 0.3s ease;
}

.dropdown-menu a:hover::before {
  height: 60%;
}
