/* Reset and base */
/* איפוס מרווחים ופדינג לכל האלמנטים, כדי למנוע הבדלים בדפדפנים */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* רקע גוף האתר */
/* יוצרת שכבת רקע קבועה עם תמונה, שמתפרסת על כל המסך */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("images/Bg2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
  opacity: 0.8; /* שקיפות קצת להפחתת בהירות */
  filter: brightness(1.0); /* שיפור בהירות התמונה */
}

/* סגנון קישורים רגילים */
a {
  color: #bd8b53;
  text-decoration: none;
}

/* סגנון קישורים כשמרחפים או מקבלים פוקוס */
a:hover,
a:focus {
  text-decoration: underline;
}

/* Header */
/* הגדרת סגנון ל"הירו" (הכותרת העליונה) - קבוע בראש העמוד, עם צבע לבן ומרכזי */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  color: white;
  text-align: center;
  padding: 20px 0;
  z-index: 3000;
}
header {
  position: fixed; /* כדי שישאר למעלה תמיד */
  top: 0;
  left: 0;
  right: 0;
  height: 50px;       /* הגובה המדויק של ראש העמוד */
  background: transparent; /* רקע לבן עם שקיפות קלה */
  display: flex;
  align-items: center;
  justify-content: flex-end; /* למקם את הכפתורים בצד ימין */
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 9999 !important; /* שיישאר מעל תוכן אחר */
  font-family: Arial, sans-serif;
}

/* ריווח פנימי לגוף, כדי שהתוכן לא יתחבר לכותרת הקבועה */
body {
  padding-top: 150px; /* מתאים לגובה ה-Hero */
}

/* סגנון לתוכן הכותרת המרכזית בתוך ההירו */
.hero-content.center-logo {
  position: fixed; /* או absolute, תלוי אם בתוך container */
  top: 50px; /* מיקום רצוי */
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  z-index: 3000; /* מעל כל */
}

/* גודל וטיפוגרפיה לכותרת ראשית */
.hero-content.center-logo h1 {
  font-size: 3.5rem;
  font-weight: bold;
}

/* סגנון לפסקת משנה בכותרת */
.hero-content.center-logo p {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* כפתור בחירת שפה */
/* מיקום קבוע עם עיצוב בסיסי וכפתור עם גודל קטן וצבע שחור */
#lang-toggle {
  font-size: 0.7rem;
  font-weight: 700;
  color: black;
  background-color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 3000;
}
body.scrolled #lang-toggle {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
/* אפקט מעבר ועיגול לכפתור השפה */
#lang-toggle:hover {
  background-color: #a0703f;
  transform: scale(1.05);
  color: white; /* שינוי צבע הטקסט */
}
#lang-toggle:focus {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* כפתור תפריט (הצגת/הסתרת התפריט) */
#menu-toggle {
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem;
  position: absolute;
  z-index: 10001; /* מוודא שהכפתור יופיע מעל התפריט */
}

/* אפקט מעבר לכפתור התפריט */
#menu-toggle:hover,
#menu-toggle:focus {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* תפריט ניווט אנכי */
/* מיקום התפריט מתחת לכפתור, עם רקע שקוף, צל, ועיצוב לתצוגה נעולה */
#menu {
  position: absolute;
  top: 100%;
  margin-top: 50px; /* רווח מתחת לכפתור */
  min-width: 180px;
  background-color: transparent;
  color: white;
  padding: 0 10px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-height: 0; /* סגירת התפריט */
  overflow: hidden;
  transition: max-height 2s ease; /* אנימציה חלקה לפתיחה וסגירה */
  z-index: 10001;
}

/* פתיחת התפריט - הגדלת הגובה כדי לחשוף תוכן */
#menu.open {
  max-height: 500px; /* גובה שמאפשר להציג את כל התפריט */
  padding: 10px;
} 

/* רשימה בתוך התפריט - הסרת נקודות וסידור */
#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* עיצוב הקישורים בתפריט */
#menu li a {
  display: block;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 20px;
}

/* אפקט מעבר על קישורים בתפריט */
#menu li a:hover,
#menu li a:focus {
  background-color: #bd8b53;
  outline: none;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* עיצוב תוכן ראשי */
main {
  flex: 1 0 auto;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 50px !important;/* ריווח עליון בין התוכן לכותרת */
}

/* ריווח בין סקשנים */
section {
  margin-bottom: 2rem;
}

/* ריווח תחתון לכותרות */
h1, h2 {
  margin-bottom: 0.3rem;
}

/* Footer */
/* עיצוב הפוטר עם טקסט לבן ומרכז */
footer {
  background: none;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 1rem;
  flex-shrink: 0;
}

/* סגנון לטקסט בתוך הפוטר */
.footer-content p {
  font-size: 0.9rem;
}

/* סגנון לאייקוני רשת חברתית */
/* מיקום קבוע במרכז עליון עם ריווח בין האייקונים */
.social-icons-top {
   position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  border-radius: 50px;
  padding: 15px 20px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
/* גודל ואפקט הנעה לאייקונים */
.social-icons-top a img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

/* הגדלת האייקונים כשמרחפים או מקבלים פוקוס */
.social-icons-top a:hover img,
.social-icons-top a:focus img {
  transform: scale(1.7);
}

/* סגנון כללי לכפתורי רשת חברתית */
.social-btn {
  background: #0077cc;
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 4px 0 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

/* אפקט מעבר לכפתורי רשת חברתית */
.social-btn:hover,
.social-btn:focus {
  background-color: #005999;
  outline: none;
}

/* צבעים ספציפיים לכפתורי וואטסאפ */
.social-btn.whatsapp {
  background-color: #25D366;
}

.social-btn.whatsapp:hover,
.social-btn.whatsapp:focus {
  background-color: #1DA851;
}

/* סגנונות לטופס יצירת קשר */
/* סידור הטופס כעמודה עם ריווח בין השדות */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin-top: 1rem;
}

/* עיצוב תוויות בטופס */
label {
  font-weight: 600;
}

/* עיצוב שדות הטקסט והטקסט אריה */
input[type="text"],
input[type="email"],
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  background-color: transparent;
}

/* סגנון כפתור שליחה */
button[type="submit"] {
  background-color:#bd8b53;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* אפקט מעבר לכפתור השליחה */
button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color:#b67118;
  outline: none;
}

/* RTL styles for Hebrew */
/* הכוונת הטקסט מימין לשמאל במקרה של עברית */
body.rtl {
  direction: rtl;
}

/* מיקום התפריט במקרה של RTL */
body.rtl nav#menu {
  right: auto;
  left: 0;
}

/* רשימת התפריט ב-RTL */
body.rtl nav#menu ul {
  flex-direction: column;
}

/* מיקום כפתור השפה במקרה של RTL */
body.rtl #lang-toggle {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* Responsive */
/* עיצוב מותאם למכשירים קטנים (מובייל) */
@media (max-width: 600px) {
  body.scrolled .hero-content.center-logo {
    left: 20px !important;
    right: auto !important;
    top: 10px !important;
    transform: none !important;
    text-align: left !important;
  }

  #lang-toggle {
    position: fixed;
    top: 10px;
    left:0px;
    transform: translateX(80px);
    font-size: 0.5rem;       /* קטן יותר */
    font-weight: 700;
    color: black;
    background-color: transparent;
    padding: 0.3rem 0.6rem;  /* פחות פדינג */
    border-radius: 4px;
    cursor: pointer;
    z-index: 3000;
  }

  #lang-toggle:hover {
    background-color: #a0703f;
    color: white;
    transform: translateX(80px) scale(1.05);
  }

  #lang-toggle:focus {
    transform: translateX(80px) scale(1.2);
  }
  body::before {
    background-image: url("images/Bgm.webp"); /* תמונת הרקע למובייל */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

.hero-content.center-logo h1 {
    font-size: 2rem;
  }
  .hero-content.center-logo p {
    font-size: 1rem;
  }
  body.rtl nav#menu,
  body.ltr nav#menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
  }
  html[dir="rtl"] #menu-toggle {
    right: 10px;
    left: auto;
    transform: none;
  }

  html[dir="ltr"] #menu-toggle {
    left: 10px;
    right: auto;
    transform: none;
  }
  nav#menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 250px;
    max-width: 80%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    padding: 2rem 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
  }
 html[dir="rtl"] nav#menu {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  html[dir="ltr"] nav#menu {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }
 
  nav#menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

   nav#menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  nav#menu li a {
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
  }
  
  nav#menu li a:hover {
    background-color: #f0f0f0;
  }

  nav#menu li:last-child a {
    border-bottom: none;
  }

  nav#menu li a:hover,
  nav#menu li a:focus {
    background-color: #eee;
    transform: scale(1.05);
    transition: transform 0.2s ease;
  }
  #play-music-btn {
    top: 10px !important;
    bottom: auto !important;
    right: 10px !important;
    left: auto !important;
    padding: 8px 12px;
    font-size: 16px;
    z-index: 3000;
  }
  .hero {
    justify-content: space-between;
  }
    .privacy-policy {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Contact section */
/* עיצוב אזור יצירת קשר עם אפקט שקיפות וזכוכית */
#contact {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: transparent;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* כותרת אזור יצירת קשר */
#contact h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* תוויות בשדות יצירת קשר */
#contact label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

/* שדות הטקסט עם אפקט זכוכית וטקסט לבן */
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  resize: vertical;
  
  /* אפקט זכוכית */
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* תמיכה בספארי */
  color: #fff !important; /* טקסט לבן */
}

/* צבע טקסט בשדות */
input, textarea {
  color: white !important;
}

/* עיצוב כפתור שליחה ביצירת קשר */
#contact button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #25D366; /* ירוק וואטסאפ */
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* אפקט מעבר לכפתור יצירת קשר */
#contact button:hover {
  background-color: #1ebe5a;
}

/* מיקום כפתור התפריט בהתאם לכיוון השפה */
body.ltr #menu-toggle {
  position: fixed;
  left: 1rem;
  top: 5rem;
}

body.rtl #menu-toggle {
  position: fixed;
  right: 1rem;
  top: 5rem;
}

/* מיקום התפריט בהתאם לכיוון השפה */
body.ltr nav#menu {
  left: 1rem;
  right: auto;
}

body.rtl nav#menu {
  right: 1rem;
  left: auto;
}

/* מיקום מיכל התפריט */
.menu-wrapper {
  position: fixed;
}

/* מיקום כפתור התפריט */
#menu-toggle {
  position: fixed;
  top: 0;
}

/* מיקום כפתור תפריט בהתאם לכיוון השפה באמצעות תכונת dir ב-html */
html[dir="ltr"] #menu-toggle {
  left: 0;
}

html[dir="rtl"] #menu-toggle {
  right: 0;
}

/* סגנון כללי לפסקאות בסקשנים */
/* גודל וגופן מודגש, צבע שחור עם טשטוש לבן, ריווח ונראות נוחה */
section {
  font-size: 1.6rem;
  font-weight: 800;
  color: #000000;
  text-shadow: 1px 1px 4px rgba(255,255,255,0.8);
  line-height: 1.6;
  padding: 1rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 1rem auto;
  z-index: 1; /* מספיק בהחלט */
  position: relative; /* אם דרוש */
}

/* כפתור הפעלת מוזיקה */
/* כפתור עגול עם צבע רקע ומיקום קבוע */
#play-music-btn {
  position: fixed;
  bottom: 550px; /* הזזה כלפי מעלה מהתחתית */
  right: 30px;
  background-color:transparent;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10002;
}

/* אפקט מעבר לכפתור המוזיקה */
#play-music-btn:hover {
  background-color: #a0703f;
  transform: scale(1.05);
  color: white; /* שינוי צבע הטקסט */
}
#play-music-btn:focus {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

#play-music-btn {
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* סגנון הפעלת המוזיקה */
.audio-player {
  display: none; /* מוסתר כברירת מחדל */
}
/* במצב גלילה - מיקום בפינה עליונה בהתאם לשפה */
body.scrolled.rtl .hero-content.center-logo {
  left: auto;
  right: 20px;
  top: 10px;
  transform: none;
  text-align: right;
}

body.scrolled.ltr .hero-content.center-logo {
  right: auto;
  left: 20px;
  top: 10px;
  transform: none;
  text-align: left;
}

/* שינוי גודל הלוגו והטקסט בעת גלילה */
body.scrolled .hero-content.center-logo h1 {
  font-size: 2rem;
}

body.scrolled .hero-content.center-logo p {
  font-size: 1rem;
}
html {
  scroll-behavior: smooth;
}
.modal {
  display: none; /* מוסתר ברירת מחדל */
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex; /* מציג את המודל */
}

.modal-content {
  background: rgba(255, 255, 255, 0.507);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
