.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo__text {
  display: flex;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav__link {
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-base);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-md);
}

.nav__link--cta:hover {
  background-color: var(--color-primary-dark);
}

.nav__link--cta::after {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav__toggle-icon {
  width: 28px;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav__toggle.active .nav__toggle-icon:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav__toggle.active .nav__toggle-icon:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__toggle-icon:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
