/* ═══════════════════════════════════════
   nav.css — منوی اصلی و موبایل
   ═══════════════════════════════════════ */

/* ── همبرگر ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .15s;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: all .25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── منوی موبایل کشویی ── */
.mob-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; left: 0;
  background: #0f1f16;
  border-top: 1px solid rgba(78,203,149,.15);
  z-index: 200;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.mob-nav.open {
  max-height: 500px;
}
.mob-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
}
.mob-nav-item {
  padding: 11px 20px;
  color: #bbb;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  border-right: 3px solid transparent;
  transition: all .15s;
}
.mob-nav-item:hover,
.mob-nav-item.mob-active {
  color: #fff;
  background: rgba(78,203,149,.08);
  border-right-color: #4ecb95;
}

/* ── فوتر nav ── */
.ft-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 10px 0 14px;
}
.ft-nav a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .72rem;
  transition: color .15s;
}
.ft-nav a:hover { color: rgba(255,255,255,.8); }

/* ── ریسپانسیو ── */
@media (max-width: 768px) {
  .hnav { display: none !important; }
  .nav-toggle { display: flex; }
  .mob-nav { display: block; }
  #hdr { position: relative; }
}

/* ── breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid var(--border, #e5e7eb);
  font-size: .75rem;
  color: var(--t2, #666);
}
.breadcrumb a { color: var(--g, #0a3d2b); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .4; }
