/* =====================
   NAV SPACER
===================== */
.nav-spacer {
  height: 0;
}

/* מופעל רק כשה-nav נראה בפועל */
.nav-spacer.is-visible {
  height: 64px;
}

/* =====================
   Navigation
===================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #376553;
  color: #fff;
  z-index: 100;

  opacity: 1;
  pointer-events: auto;

  transition:
    opacity 0.3s ease,
    box-shadow 0.25s ease;
}

/* מוסתר לפני scroll ראשון */
.top-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.top-nav.scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* =====================
   INNER
===================== */
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand a{
  color: white;
  text-decoration: none;
}

/* =====================
   LINKS
===================== */
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =====================
   HAMBURGER
===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   Mobile
===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #376553;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.35s ease;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
  }

  .nav-links a {
    padding: 16px 20px;
    display: block;
  }
}
