/* --- בסיס --- */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: 70px;
}
html {
  scroll-behavior: smooth;
}

/* --- ניווט --- */
.navbar {
  background-color: #111;
  color: white;
  height: 70px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  direction: rtl;
  display: flex;
  align-items: center;
}
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #d4af37;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #d4af37;
}

/* --- כפתור המבורגר ושפה --- */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
#langToggle {
  background-color: #111;         /* שחור כהה כמו הרקע של הניווט */
  color: #d4af37;                /* זהב */
  border: 2px solid #d4af37;    /* מסגרת זהב */
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 700;              /* אפשר קצת הדגשה */
  font-family: inherit;          /* לשמור על פונט אחיד */
}

#langToggle:hover {
  background-color: #d4af37;    /* רקע זהב בהארה */
  color: #111;                  /* טקסט שחור */
  border-color: #d4af37;
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

/* --- דרופדאון דסקטופ --- */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.3s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 15px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}
.dropbtn:hover {
  color: #d4af37;
  border-bottom: 1px solid #d4af37;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #111;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-align: right;
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #333;
}
.dropdown-content a:hover {
  background-color: #333;
  color: #d4af37;
}
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* --- ווטסאפ --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #ffd700;
  color: #0a0a0a;
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.1);
}

/* --- מובייל --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #langToggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 999;
    padding: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
  }

  .dropbtn::after {
    content: " ▼";
    font-size: 10px;
    margin-right: 5px;
  }

  .dropdown-content {
    display: none;
    background-color: #111;
    box-shadow: none;
    position: static;
    padding: 0;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 12px 20px;
    border-top: 1px solid #333;
  }
}
