/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--text-heading);
  font-weight: 400;
}

.nav-logo svg .logo-circle { fill: #0d9488; }
.nav-logo svg text { fill: var(--text-heading); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-surface);
}

.nav-links a.active {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.15s ease;
  color: var(--text);
}
.theme-toggle:hover { background: var(--border); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
}
.nav-overlay.open { display: flex; }

.nav-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.nav-overlay-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-links {
  list-style: none;
  flex: 1;
}
.nav-overlay-links li { border-bottom: 1px solid var(--border); }
.nav-overlay-links a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-family: Georgia, serif;
  color: var(--text);
  text-decoration: none;
}
.nav-overlay-links a:hover { color: var(--teal); }

.nav-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions .theme-toggle { display: flex; }
  .nav-hamburger { display: flex; }
}
