/* Navigation */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  height: 60px;
  position: relative;
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand .logo {
  height: 45px;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: right;
  max-width: calc(100vw - 400px);
  gap: 2vw;
  flex-wrap: nowrap;
}

@media (max-width: 1200px) {
  .nav-menu {
    max-width: 100%;
  }
}

.nav-item {
  margin-right: var(--spacing-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.nav-content {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  z-index: 1001;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(25, 47, 96, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Navigation */
@media (max-width: 1200px) {
  .navigation {
    padding: 0 10px;
    height: 60px;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
  }
  
  .nav-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .nav-brand .logo {
    height: 40px;
    max-width: 70vw;
    width: auto;
    display: block;
  }
  
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .nav-content {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .nav-content.active {
    display: flex !important;
  }
  
  .nav-menu {
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    text-align: center;
    width: 100%;
    min-height: 44px;
    line-height: 1.2;
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(25, 47, 96, 0.05);
  }
  
  .nav-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .nav-actions .btn {
    width: 100%;
    min-width: auto;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navigation {
    padding: 0 8px;
    height: 50px;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
  }
  
  .nav-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .nav-brand .logo {
    height: 35px;
    max-width: 80vw;
    width: auto;
    display: block;
  }
  
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
}