/*---------------------------------------------------- */
/* ── NAVBAR ── */
/*---------------------------------------------------- */
.navbar {
  /* background: var(--bg-nav); */

  /* margin: 0; */
  /* padding: 0; */

  top: 0;
  position: sticky;
  z-index: 100;
  /* position: relative;   */
  /* z-index: 200; */
  background: #1e2b2b;
  border-bottom: 1px solid var(--nav-border);
  height: 62px;
}



.navbar-inner {
  /* top: 0; */
  margin: 0;
  padding: 0;
  /* max-width: var; */
  /* margin: 0 auto; */
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
}


/*---------------------------------------------------- */
/*---------------- NAV LIST -------------------------- */
/*---------------------------------------------------- */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  margin-left: auto;
}

.nav-list>li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-list>li>a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-item);
  color: #e8ecea;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-list>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  /* background: var(--accent); */
  transition: width 0.25s ease;
  border-radius: 2px 2px 0 0;
}

.nav-list>li:hover>a,
.nav-list>li>a:focus {
  color: var(--nav-hover);
}

.nav-list>li:hover>a::after {
  width: calc(100% - 20px);
}


/*---------------------------------------------------- */
/* ----------- Dropdown arrow -----------------------  */
/*---------------------------------------------------- */
.nav-list>li>a .arrow {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-list>li>a .arrow svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-list>li:hover>a .arrow {
  transform: rotate(180deg);
  opacity: 1;
}


/*---------------------------------------------------- */
/* ---- DROPDOWN --------------------------------------*/
/*---------------------------------------------------- */
.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 230px;
  background: var(--drop-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--drop-shadow);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

.nav-list>li:hover .dropdown,
.nav-list>li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  list-style: none;
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-item);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.dropdown li a:hover {
  background: var(--drop-hover);
  color: whitesmoke;
  /* background: green; */
  /* color: var(--nav-item); */
  /* color: var(--accent); */
  padding-left: 26px;
}

.dropdown li a .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  /* background: var(--accent); */
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.dropdown li a:hover .dot {
  opacity: 1;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 16px;
}


/*---------------------------------------------------- */
/* ── HAMBURGER BUTTON ── */
/*---------------------------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 8px;
}


/*---------------------------------------------------- */
/* Animated X state */
/*---------------------------------------------------- */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--text);
  background: var(--nav-item);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--text);
  background: var(--nav-item);
}



/*---------------------------------------------------- */
/* ── MOBILE MENU OVERLAY ── */
/*---------------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  bottom: 0;

  background: #222220;

  z-index: 99;
  padding: 24px 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav {
  list-style: none;
  padding: 0 24px;
}

.mobile-nav>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav>li>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* color: var(--text-dim); */
  color: var(--nav-item);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav>li>a:hover,
.mobile-nav>li>a.active {
  /* color: var(--text); */
  color: var(--nav-hover);
}

.mobile-nav>li>a .m-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.mobile-nav>li>a .m-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav>li>a.active .m-arrow {
  transform: rotate(90deg);
}

/*---------------------------------------------------- */
/* Mobile submenu */
/*---------------------------------------------------- */
.mobile-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 12px;
}

.mobile-submenu.open {
  max-height: 400px;
}

.mobile-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  font-size: 0.85rem;
  /* color: var(--text-dim); */
  color: var(--nav-item);
  text-decoration: none;
  border-left: 2px solid rgba(255, 255, 255, 0.07);
  transition: color 0.15s, border-color 0.15s, padding-left 0.15s;
}

.mobile-submenu li a:hover {
  /* color: var(--text); */
  color: var(--nav-hover);
  /* border-left-color: var(--accent); */
  border-left-color: var(--nav-hover);
  padding-left: 14px;
}

.mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  /* background: white; */
  margin: 4px 8px;
}


/*---------------------------------------------------- */
/*-------------- RESPONSIVE ---------------------------*/
/*---------------------------------------------------- */
@media (max-width: 768px) {
  .nav-list {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}