.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  display: block;
  height: 42px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav__link:hover,
.nav__link.active {
  background: var(--purple-secondary);
  color: var(--purple-primary);
}

.nav__ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__mobile-bar {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language switcher slot (holds Webflow's native locale switcher element) */
.nav__lang-slot {
  display: inline-flex;
  align-items: center;
}

/* Wrapper is layout-neutral on desktop; hidden on mobile where the menu/bar take over */
.nav__ctas-account {
  display: contents;
}

/* Log in inside the mobile menu (desktop hides it) */
.nav__menu-account {
  display: none;
}

/* Signup role-choice dropdown */
.nav__signup-choice {
  position: relative;
}

.nav__signup-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

.nav__signup-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.nav__signup-panel a:hover {
  background: var(--purple-secondary);
  color: var(--purple-primary);
}

.nav__signup-choice--mobile .btn {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
}

.nav__signup-choice--mobile .nav__signup-panel {
  left: 0;
  right: auto;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

@media (max-width: 1180px) {
  .nav__inner {
    gap: 14px;
  }

  .nav__link {
    padding: 10px 8px;
    font-size: 14px;
  }

  .nav__ctas {
    gap: 6px;
  }
}

@media (max-width: 1100px) {
  .nav__inner {
    justify-content: space-between;
  }

  .nav__menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }

  .nav__menu--open {
    transform: translateX(0);
  }

  /* Keep the language switcher in the top bar; Log in / Create account move elsewhere */
  .nav__ctas {
    margin-left: auto;
  }

  .nav__ctas-account {
    display: none;
  }

  .nav__menu-account {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .nav__signup-choice--menu-signup {
    display: none;
  }

  .nav__menu-account .btn {
    width: 100%;
    justify-content: center;
  }

  .nav__signup-choice--menu .nav__signup-panel {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav__mobile-bar {
    display: flex;
  }

  .nav__burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav__inner {
    gap: 8px;
  }

  .nav__logo-img {
    height: 34px;
  }

  .nav__mobile-bar {
    gap: 4px;
  }

  .nav__signup-choice--mobile .btn {
    padding: 6px 10px;
  }
}

/* Very narrow phones: the top bar has no room for Create account, so it moves into the menu */
@media (max-width: 360px) {
  .nav__mobile-bar .nav__signup-choice {
    display: none;
  }

  .nav__signup-choice--menu-signup {
    display: block;
  }
}

