/* ==========================================================================
   Nav bar — identical markup/styles reused on every page.
   ========================================================================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(14,14,16,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,140,0,0.15);
}

nav .logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--accent);
}

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  nav { padding: 12px 18px; }

  .nav-toggle { display: flex; }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(72vw, 280px);
    background: var(--bg);
    border-left: 1px solid rgba(255,140,0,0.15);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 250;
  }

  nav ul.open { transform: translateX(0); }

  nav ul a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 240;
  }

  .nav-overlay.open { display: block; }
}

/* ── Logo image + social icons (v2 update) ── */
.logo-img { height:36px; width:36px; border-radius:50%; vertical-align:middle; margin-right:8px; }
.social-icons { display:flex; gap:12px; align-items:center; }
.social-icons a { color:var(--grey); display:flex; }
.social-icons a:hover { color:var(--accent); }
.social-icons svg { width:20px; height:20px; }
