:root { 
    --primary-color: #6366f1; 
    --secondary-color: #1f2937; 
    --font-family:'Assistant (ברירת מחדל)', sans-serif; 
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-family);line-height:1.6}
h1,h2,h3,h4{color:var(--secondary-color)}
.site-header{background-color:var(--secondary-color);color:white;padding:1rem 0;border-radius: 0 0 25px 25px; position: fixed;top: 0; left: 0;right: 0;z-index: 100;transition: top 0.1s}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.site-header .container{display:flex;justify-content:space-between;align-items:center}
.business-name{font-size:1.5rem;font-weight:bold}
.business-logo{max-height:70px;max-width:200px;object-fit:contain}
nav ul{list-style:none;display:flex}
nav a{color:white;text-decoration:none;margin-right:20px}
.hero-section{position:relative;color:white;background-size:cover;background-position:center}
.hero-section.layout-title-image{height:80vh;display:flex;justify-content:center;align-items:center;text-align:center;background-image:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),url(https://placehold.co/1920x1080/1f2937/white?text=רקע)}
.hero-content{position:relative;z-index:2}
.hero-content h1{color:white;font-size:3rem}
.hero-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,50vh);width:100%;height:100vh;overflow:hidden;padding-top: 80px}
.hero-grid-item{overflow:hidden;position:relative;transition:transform .3s ease,box-shadow .3s ease}
.hero-grid-item:hover{transform:scale(1.05);box-shadow:0 10px 20px rgba(0,0,0,.25);z-index:10}
.hero-grid-item img{width:100%;height:100%;object-fit:fill}
.hero-grid-item.vertical-center img {
  object-position: top; /* This will show the image from the top down */
}
.cta-button{display:inline-block;background:var(--primary-color);color:white;padding:12px 25px;border-radius:5px;text-decoration:none;margin-top:1rem;border:none;cursor:pointer}
.content-section{padding:60px 0}
.bg-light{background-color:#f3f4f6}
h2{font-size:2.5rem;text-align:center;margin-bottom:1rem}
.section-subtitle{text-align:center;margin-bottom:2rem;color:#6b7280}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr); grid-auto-rows:250px;gap:20px}
.gallery-item{border-radius:8px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.gallery-item:hover{transform:scale(1.05);box-shadow:0 10px 20px rgba(0,0,0,.25);z-index:10}
.gallery-item img{width:100%;display:block;height: 100%; object-fit: cover;}
.gallery-item.vertical-center img {object-position: center 25% ; /* This will show the image from the top down */}
.cards-container{display:grid;grid-template-columns:repeat(2,1fr);gap:30px}
.card{background:white;border-radius:8px;box-shadow:0 4px 8px rgba(0,0,0,.1);overflow:hidden}
.card img{width:100%;height:300px;object-fit:cover;display: block;margin: 0 auto}
.card-content{padding:1.5rem}
.chatbot-inline-container{max-width:800px;margin:auto;border:1px solid #e5e7eb;border-radius:1rem;overflow:hidden;display:flex;flex-direction:column;height:60vh;background:var(--secondary-color)}
.chat-messages-inline{flex-grow:1;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:1rem}
.chat-message{max-width:80%;padding:.75rem 1.25rem;border-radius:1.25rem}
.user-message{background-color:var(--primary-color);color:white;align-self:flex-start}
.ai-message{background-color:#e5e7eb;color:#374151;align-self:flex-end}
.chat-form-inline{display:flex;padding:1rem;border-top:1px solid #e5e7eb}
.chat-input-inline{flex-grow:1;border:1px solid #d1d5db;padding:.75rem 1rem;border-radius:9999px}
.chat-submit-inline{background:var(--primary-color);color:white;border:none;border-radius:50%;width:48px;height:48px;margin-right:1rem;cursor:pointer}
.contact-form{max-width:600px;margin:auto;display:flex;flex-direction:column;gap:1rem}
.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:5px}
.site-footer{background-color:var(--secondary-color);color:white;text-align:center;padding:2rem 0} 

#chat-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

#chat-popup {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 350px;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Add this to prevent interaction when hidden */
}

#chat-popup.visible {
  opacity: 1;
  pointer-events: auto; /* Allow interaction when visible */
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close-lightbox {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.contact-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* הוספת מסגרת בולטת לניווט מקלדת */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* --- כללי עיצוב למסכים קטנים (Mobile) --- */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  nav a {
    margin: 0;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 25vh);
    padding-top: 150px; /* מוסיף ריווח עליון גדול יותר רק לסמארטפונים */
    height: auto;
  }
  h2 {
    font-size: 2rem;
  }
  .gallery-grid,
  .cards-container {
    grid-template-columns: 1fr;
  }
  .content-section {
    padding: 40px 0;
  }

  /* --- תיקון סופי לצ'אט הקופץ --- */
  #chat-popup {
    width: auto; /* מאפשר רוחב גמיש */
    left: 15px; /* מרווח קבוע משמאל */
    right: 15px; /* מרווח קבוע מימין */
    bottom: 85px; /* הרמה קלה מעל הכפתור */
    height: auto; /* מאפשר גובה גמיש */
    max-height: 70vh; /* מגביל את הגובה המירבי */
  }
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* --- Social Icons in Footer --- */
.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* הרווח בין האייקונים */
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 28px; /* גודל האייקון */
    height: 28px;
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: scale(1.1); /* הגדלה קטנה במעבר עכבר */
}

/* התאמה לאייקון הפייסבוק כדי שיהיה לבן ויתאים לרקע הכהה */
.social-icons a[href*="facebook"] img ,
.social-icons a[href*="tel"] img {
    filter: invert(1);
}