.navbar {
  background: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  padding: 1rem 0;
  z-index: 100;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy);
}

.navbar__logo .logo-icon {
  color: var(--color-gold);
  font-size: 1.5rem;
}

.navbar__logo img {
  width: 170px;
  height: auto;
}

.navbar__links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: var(--color-navy);
  padding: 0.3rem 0.8rem;
  font-size: var(--font-body);
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

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

.nav-link--active {
  color: var(--color-gold);
  font-weight: 700;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0.8rem;
  left: 0.8rem;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* ---------- HAMBURGER TOGGLE ---------- */
.navbar__toggle {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  color: var(--color-navy);
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.navbar__toggle:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* ---------- MOBILE NAV (< 1024px) ---------- */
@media (max-width: 1023px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    z-index: 200;
  }

  .navbar__links--open {
    display: flex;
  }

  .navbar__links li {
    width: 100%;
  }

  .navbar__links .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }

  .navbar__links li:last-child .nav-link {
    border-bottom: none;
  }

  .navbar__links .nav-link--active::after {
    display: none;
  }

  .btn-login {
    display: none;
  }
}

/* ---------- MOBILE LOGO (< 768px) ---------- */
@media (max-width: 767px) {
  .navbar__logo img {
    max-width: 120px;
    width: auto;
  }
}

/* Floating profile avatar */
.profile-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--color-shadow);
  z-index: 10;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
