/* header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 0px 10px 20px;
    box-sizing: border-box;
    z-index: 1000;
    background-color: rgb(255, 247, 219);
}
#header.scrolled {
    background-color: white;
    backdrop-filter: blur(10px); /* אפקט זכוכית מט */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

#logoHeader {
    width: clamp(160px, 8vw, 220px);
}

#menuIcon {
    width: clamp(40px, 3vw, 60px);
    cursor: pointer;
}

/* -------------------------------------------------------------- */
/* menu */
#menu {
  position: fixed;
  top: 0;
  left: -360px;
  width: 250px;
  height: 100%;
  background: rgb(255, 238, 183);
  box-shadow: 5px 0 20px rgba(0,0,0,0.2);
  font-family: 'assistant', sans-serif;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.4s ease , opacity 0.4s ease;
  opacity: 0;
  z-index: 2000;
}

@media (max-width: 768px) {
    #menu {
        width: 50%;
     }
   }

#menu.open {
  left: 0; /* נכנס פנימה */
  opacity: 1;
}

/* כפתור התפריט והלינקים בפנים */
#menu .menu-button {
  display: block;
  background: rgb(255, 238, 183);
  color: black;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 25px;
  text-align: center;
  font-size: clamp(16px, 3vw, 18px);
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

#menu .menu-button:hover {
  background: rgb(176, 164, 123);
  color: white;
  transform: scale(1.05);
}

/* כפתור הסגירה */
#menu #closeBtn {
  background: transparent;
  color: black;
  font-size: 20px;
  font-weight: bold;
  align-self: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}