.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-weight: 700; letter-spacing: .2px; }

.main-nav { justify-self: start; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;

  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}
.nav-link:hover,
.nav-link.active {
  background: var(--bg-elev);
  border-color: var(--border);
}
.nav-item { position: relative; }

.dropdown-toggle {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
}
.dropdown-toggle:hover { background: var(--bg-elev); border-color: var(--border); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);

  list-style: none;
  margin: 0;
  padding: 8px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 110;
}
.dropdown-menu li { margin: 0; padding: 0; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: rgba(22, 163, 74, 0.12); 
}

.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.controls { display: inline-flex; align-items: center; gap: 10px; }


.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px; 
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
}
.theme-toggle img { width: 18px; height: 18px; }

.menu-toggle {
  display: none; 
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 10px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle img { width: 20px; height: 20px; display: block; }

.mobile-menu {
  display: none; 
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 12px;
}
.mobile-menu a,
.mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.mobile-sub {
  display: none;
  margin-top: 6px;
  margin-left: 12px;
}
.mobile-sub.show { display: block; }
.mobile-sub a {
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mobile-sub.show { display: block; }
.arrow-icon {
  width: 24px;
  height: 24px;
  margin-left: 6px;
  opacity: 0.7;
}

.dropdown-toggle,
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 6px;
  width: 100%;
}



  
