:root {
  --background-color: #000000;
  --text-color: #999999;
  --accent-color: #333333;
  --highlight-color: #ffffff;
}
/*סימן התקדמות*/
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #ffffff; /* צבע שיכול להתאים למיתוג */
  z-index: 9999;
  transition: width 0.25s ease-out;
}

/*תמונות מתחלפות*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

#nav {
  /* אפקט החלקה */
  -webkit-transition: top 0.3s ease-in-out; /* iOS Prefix */
  transition: top 0.3s ease-in-out;
}

nav ul {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  padding: 1rem 0;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  -webkit-transition: color 0.3s ease; /* iOS Prefix */
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--highlight-color);
}

#nav.hidden {
  top: -100px; /* מסתיר את ה-NAV מחוץ למסך */
}

main {
  padding-top: 60px;
}

section {
  padding: 2rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  text-align: center;
}

h3{
  color: var(--highlight-color);
  margin-bottom: 1rem;
  text-align: center;
}

.main-title {
  color: var(--highlight-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-title img.title-logo {
  margin-left: 12px;       /* רווח משמאל למילה "Bar" */
  height: auto;            /* שומר על פרופורציות מקוריות */
  vertical-align:text-bottom; /* מיישר את התמונה למרכז השורה */
  width: 160px;                /* גודל גדול וברור */
}

.slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slider img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  -webkit-transition: opacity 0.5s ease-in-out; /* iOS Prefix */
  transition: opacity 0.5s ease-in-out;
}

.slider img.active {
  opacity: 1;
}

.slider-controls button {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%); /* iOS Prefix */
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--highlight-color);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

.slider-controls .prev {
  left: 10px;
}

.slider-controls .next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: var(--highlight-color);
}
/*סרטון*/
.about-video {
  width: 55%;
  max-height: 1300px;
  overflow: hidden;
}

.background-video {
  width: 100%;
  height: 850px;
}
/*חלק עלינו*/
.about-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-content img {
  width: 50%;
  border-radius: 10px;
}

.about-text {
  flex: 1;
}
/*הזמנה*/
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

form label {
  font-size: 14px;
  color: #fff;
  margin-bottom: 5px;
}

form input,
form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background: #2c2c2c;
  color: #fff;
  width: 100%; /* מוודא שכל האלמנטים יתפסו את רוחב הטופס */
  box-sizing: border-box; /* מחשב את הרוחב כולל שוליים ופדינג */
  -webkit-appearance: none; /* מניעת עיוותים ב-iOS */
  -moz-appearance: none;
  appearance: none;
  line-height: 1.4; /* שומר על גובה שורות אחיד */
}

form input:focus,
form select:focus {
  outline: none;
  border-color: #4caf50;
}

button.submit-btn {
  background: linear-gradient(#333333, #333333, #333333);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: background 0.3s ease; /* iOS Prefix */
  transition: background 0.3s ease;
}

button.submit-btn:hover {
  background: linear-gradient(#25d366, #25d366, #25d366);
}

button.submit-btn i {
  margin-left: 10px;
}

/*גלריה*/
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: transform 0.3s ease; /* iOS Prefix */
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  -webkit-transition: transform 0.3s ease; /* iOS Prefix */
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  -webkit-transform: scale(1.1); /* iOS Prefix */
  transform: scale(1.1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-transition: opacity 0.3s ease; /* iOS Prefix */
  transition: opacity 0.3s ease;
  opacity: 0;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* אפקט אנימציה לתמונות שנטענות */
.gallery-item-hidden {
  display: none;
}

.gallery-item.show-animation {
  opacity: 0;
  -webkit-transform: translateY(30px); /* iOS Prefix */
  transform: translateY(30px);
  will-change: transform, opacity;
  -webkit-animation: slideUpFadeIn 0.4s ease forwards; /* iOS Prefix */
  animation: slideUpFadeIn 0.4s ease forwards;
}

@-webkit-keyframes slideUpFadeIn {
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* כפתור "הצג עוד" */
.show-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 12px 30px;
  background: linear-gradient(#333333, #333333, #333333);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: all 0.3s ease; /* iOS Prefix */
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background: linear-gradient(#555555, #555555, #555555);
  -webkit-transform: translateY(-2px); /* iOS Prefix */
  transform: translateY(-2px);
  box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.show-more-btn.hidden {
  display: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  z-index: 2001;
  transition: color 0.2s ease;
}
.gallery-prev {
  left: 19%;
}

.gallery-next {
  right: 19%;
}

.gallery-arrow:hover {
  color: #ddd;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--highlight-color);
  font-size: 40px;
  font-weight: bold;
  -webkit-transition: 0.3s; /* iOS Prefix */
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
}
/*לינקים וחוזים*/
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  -webkit-transition: color 0.3s ease; /* iOS Prefix */
  transition: color 0.3s ease;
}

.social-links a i {
  margin-left: 0.5rem;
}

.social-links a:hover {
  color: var(--highlight-color);
}

.legal-links {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.legal-links a {
  color: #bbb;
  text-decoration: none;
  margin: 0 5px;
  -webkit-transition: color 0.3s ease; /* iOS Prefix */
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--highlight-color);
}

footer {
  text-align: center;
  padding: 0.5rem;
  background-color: var(--accent-color);
  color: var(--text-color);
}

/* עיצוב לינק Element Design בפוטר */
.element-design-link {
  color: var(--highlight-color);
  text-decoration: none;
  font-weight: bold;
  -webkit-transition: color 0.3s ease, text-shadow 0.3s ease; /* iOS Prefix */
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.element-design-link:hover {
  color: #999999;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.fade-in {
  opacity: 0;
  -webkit-transition: opacity 0.5s ease-in-out; /* iOS Prefix */
  transition: opacity 0.5s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.about-video {
  flex: 1;
  position: relative;
}

.youtube-video {
  width: 100%;
  height: 300px; /* ניתן לשנות גובה בהתאם לצורך */
  border-radius: 10px;
  border: none;
}

.about-text {
  flex: 1;
  text-align: right;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text h3 {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Fade In */
.fade-in {
  opacity: 0;
  -webkit-transform: translateY(20px); /* iOS Prefix */
  transform: translateY(20px);
  -webkit-transition: opacity 0.6s ease-out, -webkit-transform 0.6s ease-out; /* iOS */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  -webkit-transform: translateY(0); /* iOS Prefix */
  transform: translateY(0);
}

/* Fade Out */
.fade-out {
  opacity: 1;
  -webkit-transition: opacity 0.6s ease-out; /* iOS Prefix */
  transition: opacity 0.6s ease-out;
}

.fade-out.hidden {
  opacity: 0;
}

/* התאמה אישית של Flatpickr */
.flatpickr-calendar {
  background: #25d366; /* ירוק בסגנון WhatsApp */
  color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* עיצוב הימים */
.flatpickr-day {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 2px;
  padding: 0;
  border-radius: 50%;
  -webkit-transition: background-color 0.3s ease, color 0.3s ease; /* iOS */
  transition: background-color 0.3s ease, color 0.3s ease;
  background: transparent;
  color: white;
  font-size: 1rem;
}

/* אפקט Hover */
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: white;
  color: #25d366;
}

/* יום נוכחי */
.flatpickr-day.today {
  background: white;
  color: #25d366;
  font-weight: bold;
}

/* יום שנבחר */
.flatpickr-day.selected {
  background: #128c7e;
  color: white;
}

/* יישור התאריכים במרכז */
.flatpickr-innerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* עיצוב החלק העליון של לוח השנה */
.flatpickr-months {
  background: #128c7e;
  color: white;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

/* עיצוב Dropdown של חודש ושנה */
.flatpickr-monthDropdown-months,
.flatpickr-year {
  background: #25d366;
  color: white;
  direction: rtl;
  text-align: right;
  padding: 5px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  -webkit-appearance: none; /* iOS */
  -moz-appearance: none;
  appearance: none;
}

/* עיצוב לחצן שנה בעת פוקוס */
.flatpickr-year:focus,
.flatpickr-monthDropdown-months:focus {
  outline: none;
  border: 1px solid #75e8a8;
}

/* כפתורי ניווט לחודשים */
.flatpickr-prev-month,
.flatpickr-next-month {
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  -webkit-transition: color 0.3s ease; /* iOS */
  transition: color 0.3s ease;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: #75e8a8;
}

/* עיצוב של החלק העליון (שנה וחודש) */
.flatpickr-months .flatpickr-current-month {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  width: 100%;
}

/* הסרת החצים ב-Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* 1) ודאו שהחיצים מוצגים */
.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown {
  display: inline-block !important;
}

/* 2) מחייבים את הקונטיינר של החיצים להיות LTR */
.numInputWrapper {
  position: relative;
  direction: ltr !important;
}

/* 3) מרחיקים את המספר מהשוליים כדי לפנות מקום לחיצים */
.numInputWrapper input.flatpickr-year {
  padding-left: 2rem;
  text-align: right;
}

/* 4) מיקום החיצים פיזית משמאל */
.numInputWrapper span.arrowUp {
  position: absolute;
  left: 5px;
  top: 15%;
  z-index: 2;
  color: white;
  cursor: pointer;
}
.numInputWrapper span.arrowDown {
  position: absolute;
  left: 5px;
  top: 55%;
  z-index: 2;
  color: white;
  cursor: pointer;
}
/* כפתור חזרה למעלה */
#back-to-top {
  position: fixed;
  bottom: 80px; /* במקום 20px – מעלה את הכפתור מעל השורה האפורה */
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: none; /* מוסתר כברירת מחדל */
  align-items: center;
  justify-content: center;
  z-index: 9999; /* מעל תוכן אחר */
  transition: opacity 0.3s ease;
}

#back-to-top i {
  pointer-events: none; /* שהעכבר לא יתפוס על האייקון */
}

/* נראה אותו רק כשנגלל מספיק */
#back-to-top.show {
  display: flex; /* מציג את הכפתור */
  opacity: 0.8;
}

#back-to-top:hover {
  opacity: 1;
}

/*תאימות לניידים*/
@media screen and (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .about-video,
  .about-content img {
    width: 100%;
  }

  .main-title {
    font-size: 2rem;
    flex-direction: column;
  }

  /* הסתרת הלוגו השמאלי במובייל */
  .main-title img.title-logo-left {
    display: none;
  }

  .slider {
    height: 60vh;
  }

  .slider img {
    height: auto;
    object-fit: contain;
  }

  .slider-controls button {
    padding: 0.5rem;
    font-size: 1rem;
  }
  .slider-dots {
    bottom: 250px;
  }

  form {
    padding: 10px;
  }

  form input,
  form select,
  form button {
    font-size: 0.9rem;
    padding: 10px;
  }

  h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  header {
    padding: 10px;
  }
  .flatpickr-calendar {
    font-size: 0.9rem;
  }
  .modal-content {
    max-width: 80%;      /* במקום להימתח לכל הרוחב, נסתפק ב-80% */
    margin: 0 auto;      /* מרכז אופקית את התמונה */
    display: block;      /* מוודא שהתמונה תהיה בקו נפרד */
  }
  
  /* מכוונן את החיצים (gallery-arrow) לצדי המודל, לא על התמונה */
  .gallery-arrow.gallery-prev {
    left: 0;             /* נשאר בשמאל המודל */
    margin-left: 10px;   /* רווח פנימי כדי לא להדבק לקצה */
  }
  .gallery-arrow.gallery-next {
    right: 0;            /* נשאר בימין המודל */
    margin-right: 10px;
  }
}
input[type="date"],
input[type="time"] {
  /* כל הגדרותיך הקיימות (border, background וכו') */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* הוספת גובה מינימלי */
  min-height: 44px; /* או 45px, 48px – מה שמתאים לך לפרופורציה */
  line-height: normal; /* מסייע שלא יהיה line-height מוגזם */

  /* אופציונלי: מניעת הגדלה אוטומטית של טקסט ב-iOS */
  -webkit-text-size-adjust: 100%;
}


/* =============================
     עיצוב למודלים של תנאים/פרטיות/נגישות
     ==============================*/
.modal-legal {
  display: none;
  position: fixed;
  z-index: 2000; /* גבוה משל הגלריה */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  overflow: auto; /* כדי לאפשר גלילה אם הטקסט ארוך */
}

.modal-legal h1 {
  text-align : center ;
}

.modal-content-legal {
  background-color: #1f1f1f;
  border-radius: 10px;
  position: relative;
  margin: 20px;
  max-width: 800px;
  padding: 20px;
  color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.modal-content-legal h1,
.modal-content-legal h2 {
  margin-top: 0;
  color: #fff;
}

.modal-content-legal p,
.modal-content-legal ul,
.modal-content-legal li {
  color: #ccc;
  line-height: 1.6;
}

.modal-content-legal ul {
  list-style: inside disc;
}

.close-legal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.close-legal:hover {
  color: #bbb;
}

/* =============================
     CSS לנייד (עד רוחב 768px)
     ==============================*/
@media screen and (max-width: 768px) {
  .modal-content-legal {
    background-color: #1f1f1f;
    border-radius: 10px;
    position: relative;
    width: 300px; /* גודל הריבוע */
    height: 300px; /* גובה שווה לרוחב */
    margin: 20px auto; /* מיקום במרכז המסך */
    padding: 20px;
    color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    text-align: center;
    overflow: auto; /* לטיפול בגלילה במידה ויש יותר מדי טקסט */
  }

  .modal-content-legal h1,
  .modal-content-legal h2 {
    font-size: 1.1rem;
  }

  .modal-content-legal p,
  .modal-content-legal ul,
  .modal-content-legal li {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .close-legal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .close-legal:hover {
    color: #ff4b4b;
  }
  #back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 80px; /* עדיין 80px, או לפי הצורך */
  }


/* מגדיר את האזור "about-video" כך שיהיה צר יותר */
/* עיצוב כללי לאזור התוכן */
.about-content {
  display: flex;          /* מיישר את הווידאו והטקסט זה לצד זה */
  align-items: center;
  justify-content: space-between;
  gap: 2rem;              /* רווח בין הווידאו לטקסט */
}

/* חלק הווידאו */
.about-video {
  flex: 0 0 35%;          /* תופס כ-35% מרוחב השורה */
  max-width: 400px;       /* מגביל את הרוחב המרבי ל-400px */
  margin: 0 auto;         /* מרכז אופקית אם יש עוד מקום */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* עיצוב ה־iframe עצמו (אם תרצה להוריד מסגרת וכו') */
.about-video iframe {
  border: none;
}

/* חלק הטקסט */
.about-text {
  flex: 1 1 60%;          /* תופס את שאר המקום */
}

/* התאמה למסכים צרים */
@media screen and (max-width: 768px) {
  .about-content {
    flex-direction: column;  /* מעביר את הווידאו והטקסט אחד מתחת לשני */
    align-items: flex-start;  /* מיישר לשמאל */
  }
  .about-video {
    width: 100%;          /* תופס את כל הרוחב במסך צר */
    max-width: none;      /* מסיר מגבלת רוחב */
    margin-bottom: 1rem;  /* מוסיף רווח מתחת לווידאו לפני הטקסט */
  }
  .about-text {
    width: 100%;          /* גם הטקסט יתפוס את מלוא הרוחב */
  }
  /* === הוספה: ריווח בין השורה האחרונה ב-about-text ל"הזמינו את הבר שלנו" === */
.about-text h3:last-of-type {
  margin-bottom: 5.5rem; /* אפשר לשנות ל-1rem / 2rem לפי הצורך */
}
}
}