/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --col-bg: #0f1923;
  --col-surface: #162030;
  --col-blue: #18a4e0;
  --col-blue-dim: #0e6a93;
  --col-steel: #2d5f8a;
  --col-text: #f0ede6;
  --col-muted: #8a9aaa;
  --col-rule: rgba(24, 164, 224, 0.2);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-logo: "Rajdhani", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--col-bg);
  color: var(--col-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}
ul {
  list-style: none;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 25, 35, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--col-rule);
  transition: background 0.3s;
}
.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.navbar__logo {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.navbar__logo-text {
  font-family: var(--font-logo);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--col-text);
  line-height: 1;
  margin-left: -1px;
}
.navbar__logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  display: block;
  margin-top: -3px;
}
.navbar__tabs {
  display: flex;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
/* tablet band: not enough room to absolutely center without
   overlapping the logo — fall back to in-flow position */
@media (min-width: 701px) and (max-width: 940px) {
  .navbar__tabs {
    position: static;
    transform: none;
  }
}
.tab {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-muted);
  border-radius: 3px;
  transition:
    color 0.2s,
    background 0.2s;
}
.tab:hover {
  color: var(--col-text);
  background: rgba(255, 255, 255, 0.05);
}
.tab--active {
  color: var(--col-blue);
}

/* ── language switcher ── */
.lang-switch {
  position: relative;
  margin-left: 0.75rem;
}
.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--col-rule);
  border-radius: 4px;
  color: var(--col-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.lang-switch__btn:hover {
  color: var(--col-text);
  border-color: var(--col-blue);
}
.lang-switch__caret {
  font-size: 0.6rem;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--col-surface);
  border: 1px solid var(--col-rule);
  border-radius: 6px;
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  z-index: 300;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.lang-switch__menu.open {
  display: flex;
}
.lang-switch__menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  color: var(--col-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
/* small flag rectangles (3:2, no squish) in the language selector */
.lang-flag {
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: block;
}
.lang-switch__btn .lang-flag,
.lang-switch__mobile .lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 2.5px;
}
.lang-switch__menu button:hover {
  color: var(--col-text);
  background: rgba(255, 255, 255, 0.05);
}
.lang-switch__menu button.active {
  color: var(--col-blue);
  background: rgba(24, 164, 224, 0.08);
}
/* mobile language row */
.lang-switch__mobile {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--col-rule);
  margin-top: 0.4rem;
}
.lang-switch__mobile button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--col-rule);
  border-radius: 4px;
  color: var(--col-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.lang-switch__mobile button.active {
  color: var(--col-blue);
  border-color: var(--col-blue);
}

/* burger — hidden on desktop */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--col-text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
  transform-origin: center;
}
/* Animated X when active */
.navbar__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--col-blue);
}
.navbar__burger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--col-blue);
}
.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--col-surface);
  border-top: 1px solid var(--col-rule);
  padding: 0.75rem var(--gap);
  gap: 0.25rem;
}
.navbar__mobile.open {
  display: flex;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .navbar__tabs {
    display: none;
  }
  .navbar__burger {
    display: flex;
  }
  .lang-switch {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--col-rule);
  padding: 2rem 0;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__brand {
  font-family: var(--font-logo);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--col-blue);
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--col-muted);
  letter-spacing: 0.05em;
}
