:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --overlay: rgba(0, 0, 0, 0.94);
  --radius: 18px;
  --container: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Site Header ───────────────────────────────────────────────── */

.site-header {
  max-width: 1510px !important;    
  position: absolute !important;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 0px;
  background: transparent;
  pointer-events: none;
}

.header-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: auto;
  padding: 0px 10px;
}

.site-logo img {
  display: block;
  width: 152px;
  height: auto;
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Shared button / link styles ───────────────────────────────── */

.menu-toggle,
.header-btn,
.lang-btn,
.mobile-burger,
.mobile-close,
.overlay-close,
.submenu-back {
  border: 1px solid rgb(255 255 255);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.menu-toggle:hover,
.header-btn:hover,
.lang-btn:hover,
.mobile-burger:hover,
.mobile-close:hover,
.overlay-close:hover,
.submenu-back:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-dot {
  width: 10px;
  height: 10px;
  background: var(--text);
  display: inline-block;
}

.header-btn,
.lang-btn {
  padding-inline: 28px;
}

.lang-btn {
  opacity: 0.72;
}

.mobile-burger {
  display: none;
  padding: 12px 16px;
}

/* ── Desktop Overlay ───────────────────────────────────────────── */

.desktop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 65, 95, 0.26), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.96));
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.overlay-shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  height: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.overlay-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 68px;
}

.overlay-close {
  padding: 12px 16px;
}

.overlay-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  padding: 20px 0 28px;
}

/* ── Desktop L1 nav ─────────────────────────────────────────────── */

.overlay-nav--l1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 0;
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(2rem, 3vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  padding: 8px 0;
  opacity: 0.38;
  transition: opacity 0.2s ease, font-weight 0.2s ease;
  font-weight: 300 !important;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  font-weight: 600;
}

.nav-link__arrow {
  font-size: 1.1em;
  opacity: 0.72;
  flex: 0 0 auto;
}

.nav-link__text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ── Desktop submenu right panel (UPDATED: Hidden by default, no borders) ── */

.overlay-submenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 44px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.overlay-submenu.is-visible {
  opacity: 1;
  visibility: visible;
}

.submenu-head {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.submenu-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 12px 16px;
}

.submenu-back__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.submenu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  counter-reset: submenu-counter;
}

.submenu-item {
  display: block;
  color: var(--text);
  font-size: clamp(1.45rem, 2.1vw, 2.6rem);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 18px 0;
  text-decoration: none;
}

.submenu-item::before {
  content: counter(submenu-counter) ".";
  counter-increment: submenu-counter;
  font-size: 0.52em;
  opacity: 0.52;
  margin-right: 14px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.submenu-item:hover {
  opacity: 0.72;
}

/* ── Mobile Overlay ────────────────────────────────────────────── */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.32s ease, transform 0.38s ease, visibility 0.32s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.96));
}

.mobile-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-close {
  padding: 12px 16px;
}

.mobile-panels {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mobile-panel {
  position: absolute;
  inset: 0;
  padding: 22px 20px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

#mobile-l1 {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

#mobile-l1.is-hidden {
  transform: translateX(-10%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-l2 {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-l2.is-active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Mobile L1 links ────────────────────────────────────────────── */

.mobile-link {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link:hover {
  opacity: 0.72;
}

.mobile-link__arrow {
  margin-left: auto;
  font-size: 1.1em;
  opacity: 0.72;
}

/* ── Mobile L2 panel ────────────────────────────────────────────── */

.mobile-panel--l2 {
  background: rgba(0, 0, 0, 0.92);
}

.mobile-panel--l2 .submenu-head {
  margin-bottom: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-panel--l2 .submenu-list {
  padding-top: 8px;
}

.mobile-panel--l2 .submenu-item {
  display: block;
  width: 100%;
  color: var(--text);
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  text-decoration: none;
}

.mobile-panel--l2 .submenu-item:hover {
  opacity: 0.72;
}

/* Hide counter numbers on mobile */
.mobile-panel--l2 .submenu-item::before {
  display: none;
}

/* ── Keyframes (fallback only) ──────────────────────────────────── */

@keyframes navItemIn {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .desktop-actions {
    display: none;
  }

  .mobile-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Completely hide desktop overlay on mobile/tablet */
  .desktop-overlay {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-header {
      padding-top: 0px !important;
    padding: 0px !important;
    padding-block-end: 0rem !important; 
    padding-block-start: 0rem !important;
  }
  
  .mobile-burger{
      padding: 8px 12px !important;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-logo img {
    width: 120px !important;
  }

  .mobile-panel {
    padding: 18px 16px 24px;
  }

  .mobile-link {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .mobile-panel--l2 .submenu-item {
    font-size: clamp(1.3rem, 5.2vw, 1.85rem);
  }

  .overlay-shell {
    padding: 18px;
  }

  .overlay-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .overlay-submenu {
    display: none;
  }
}
/* ═══ SCROLL-AWARE HEADER ══════════════════════════════ */

.site-header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  max-width: 100% !important;
  will-change: transform;
  --h-text:   #ffffff;
  --h-border: rgba(255,255,255,0.75);
  --h-btn-bg: rgba(255,255,255,0.02);
}

/* Logo container — relative so dark logo stacks on top */
.site-logo {
  position: relative !important;
  display: inline-flex !important;
}

/* Both logos occupy same space */
.logo-white,
.logo-dark {
  display: block !important;
  width: 152px !important;
  height: auto !important;
  transition: opacity 0.35s ease !important;
}

/* Dark logo sits exactly on top of white logo */
.logo-dark {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
}

.logo-white {
  opacity: 1 !important;
}

/* On light theme: hide white, show dark */
.site-header.theme-light .logo-white { opacity: 0 !important; }
.site-header.theme-light .logo-dark  { opacity: 1 !important; }

/* Buttons use theme vars */
.menu-toggle,
.header-btn,
.lang-btn,
.mobile-burger {
  border:     1px solid var(--h-border) !important;
  color:      var(--h-text)             !important;
  background: var(--h-btn-bg)           !important;
  transition: border-color 0.35s ease, color 0.35s ease,
              background 0.35s ease, transform 0.22s ease !important;
}

.menu-dot {
  background: var(--h-text) !important;
  transition: background 0.35s ease !important;
}

/* Light theme vars */
.site-header.theme-light {
  --h-text:   #0c0c0c;
  --h-border: rgba(12,12,12,0.55);
  --h-btn-bg: rgba(0,0,0,0.02);
}