/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.35s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 1080px) {
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
  }
  .nav-actions { display: none !important; }
  .lang-switcher {
    justify-self: center;
  }
  .mobile-toggle {
    justify-self: end;
  }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-800);
}
.navbar.scrolled .nav-logo { color: var(--blue-800); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
/* Desktop: center nav-links with flex, show nav-actions on right */
@media (min-width: 1081px) {
  .nav-inner { display: flex; align-items: center; }
  .nav-links {
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 24px;
    white-space: nowrap;
  }
  .nav-links .nav-login,
  .nav-links .nav-cta { display: none; }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
}
@media (max-width: 1080px) {
  .nav-actions { display: none; }
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover {
  color: var(--blue-500);
  border-bottom-color: var(--blue-400);
}
.navbar.scrolled .nav-links a:hover { color: var(--blue-500); }
.nav-links a.nav-active {
  color: var(--blue-600);
  font-weight: 600;
  border-bottom-color: var(--blue-500);
}
.navbar.scrolled .nav-links a.nav-active { color: var(--blue-600); }
.nav-cta {
  padding: 10px 24px;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  border: none;
}
.navbar.scrolled .nav-cta { background: var(--blue-500); color: var(--white); }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-login {
  padding: 10px 20px;
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
  cursor: pointer;
}
.nav-login:hover {
  border-color: var(--gray-400);
  color: var(--gray-900);
  background: var(--gray-50);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  z-index: 101;
  padding: 10px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-800);
  transition: all 0.3s;
  border-radius: 2px;
}
.navbar.scrolled .mobile-toggle span { background: var(--gray-800); }

/* Hamburger open state */
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
@media (max-width: 1080px) {
  .nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }
  .nav-links.mobile-open {
    display: flex !important;
  }
  .nav-links a {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
  }
  .nav-links .nav-login,
  .nav-links .nav-cta {
    font-size: 16px;
    padding: 14px 32px;
    width: 280px;
    text-align: center;
    justify-content: center;
  }
  .mobile-toggle {
    z-index: 1000;
  }
}
