/* Site chrome: fixed navigation, mobile menu and language selector. */
body { padding-top: 70px; }

.lang-switcher { position: relative; font-family: var(--font-heading); }
.lang-switcher .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 20, 35, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: border-color .15s, background .15s;
}
.lang-switcher .lang-current:hover { border-color: rgba(255, 255, 255, 0.35); }
.lang-switcher .lang-current svg { border-radius: 2px; display: block; }
.lang-switcher .lang-chev { font-size: 0.7rem; opacity: 0.7; }
.lang-switcher .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: rgba(15, 20, 35, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  min-width: 140px;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.lang-switcher.open .lang-menu { display: block; }
.lang-switcher .lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
}
.lang-switcher .lang-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.lang-switcher .lang-menu a.is-current { background: rgba(123, 97, 255, 0.18); }
.lang-switcher .lang-menu a svg { border-radius: 2px; flex-shrink: 0; }
@media (max-width: 640px) {
  .lang-switcher .lang-code { display: none; }
  .lang-switcher .lang-current { padding: 6px 8px; }
}


.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo { margin-right: auto; }
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-menu { display: flex; gap: 24px; list-style: none; align-items: center; }

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-link {
  font-family: var(--font-label);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.nav-cta {
  background: var(--green-dim);
  color: var(--green);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  margin-bottom: 5px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .hamburger { display: block; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-menu.active { right: 0; }
  .nav-link { font-size: 1.2rem; }
  .nav-menu .lang-switcher .lang-code { display: inline; }
  .nav-menu .lang-switcher .lang-current { padding: 10px 14px; font-size: 1rem; }
  .nav-menu .lang-switcher .lang-menu { right: 50%; transform: translateX(50%); }
  .nav-divider { width: 60%; height: 1px; }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
