/* גלילה חלקה לכל האתר (מייתר הרבה קוד JS!) */
html {
  scroll-behavior: smooth;
}

/* הגדרות בסיס לעמוד (Reset & Base) */
body {
  margin: 0;
  padding: 0;
  direction: rtl; /* התאמה לעברית */
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* טיפוגרפיה - כותרות */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-top: 0;
}

h1 {
  font-weight: 800;
  font-size: 3rem;
}

h2 {
  font-weight: 700;
  font-size: 2.2rem;
}

/* עיצוב כפתור ההמבורגר */
.mobile-menu-toggle {
  display: none; /* נסתר במסכים גדולים */
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
}

.desktop-only {
  display: inline-block;
}

/* שינוי ה-Header בעת גלילה (מופעל ע"י JS) */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); /* אפקט זכוכית יוקרתי */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* עיצוב כפתור גלובלי (Call to Action) */
.btn-primary {
  background-color: var(--primary-light);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 8px; /* פינות מעוגלות עדינות למראה חדשני */
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--primary-dark); /* אפקט מעבר מקצועי */
}

/* --- הגדרות רוחב וישור (Layout) --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header (תפריט עליון) --- */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* צל עדין מאוד להפרדה מהרקע */
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  /* הסרנו את הגדרות הפונט כי כעת יש תמונה */
  display: flex;
  align-items: center;
}

/* הגדרות לתמונת הלוגו ב-Header */
.logo-image {
  height: auto; /* שומר על פרופורציות התמונה */
  max-height: 60px; /* מגביל את גובה הלוגו כדי שיתאים לגובה ה-Header */
  display: block;
}

.text-light-blue {
  color: var(--primary-light);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px; /* רווח בין פריטי התפריט */
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary-light);
}

/* גרסה מוקטנת של הכפתור הראשי עבור התפריט */
.btn-small {
  padding: 8px 16px;
  font-size: 0.95rem;
}

/* --- Hero Section (אזור פתיחה) --- */
.hero-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1; /* תופס חצי מהמקום */
}

.hero-content h1 {
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #4a5568; /* אפור קצת יותר בהיר לקריאות נעימה */
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
}

/* עיצוב כפתור משני (שקוף עם מסגרת) */
.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 24px;
  border: 2px solid var(--primary-dark);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

/* קוביית פלייסבולדר לתמונה (עד שתעלי תמונה אמיתית) */
.hero-visual {
  flex: 1;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-weight: bold;
  border: 2px dashed #cbd5e0;
}

/* --- אזור השירותים --- */
.services-section {
  padding: 80px 0;
  background-color: var(
    --bg-white
  ); /* רקע לבן כדי לייצר הפרדה מהאפור של ה-Hero */
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 1.1rem;
  color: #4a5568;
}

/* הגדרת הגריד לכרטיסיות (רספונסיבי אוטומטית!) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* --- עיצוב הכרטיסייה עצמה --- */
.service-card {
  background-color: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  position: relative; /* חובה עבור ה-Badge (תגית פופולרי) */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* אפקט הריחוף המרשים (Hover) */
.service-card:hover {
  transform: translateY(-10px); /* מרים את הכרטיסייה למעלה */
  box-shadow: 0 15px 30px rgba(17, 42, 70, 0.08); /* צל עדין בצבע כחול כהה */
  border-color: var(--primary-light); /* מסגרת תכלת במעבר עכבר */
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-card p {
  color: #4a5568;
  font-size: 1rem;
  flex-grow: 1; /* דוחף את המחיר והכפתור תמיד לתחתית הכרטיסייה */
  margin-bottom: 20px;
}

.price {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 25px;
}

/* כפתור ברוחב מלא בתוך הכרטיסייה */
.btn-full {
  width: 100%;
  box-sizing: border-box; /* מבטיח שהפאדינג לא יפרוץ את רוחב הכרטיסייה */
  text-align: center;
}

/* עיצוב מיוחד לכרטיסייה מרכזית (סוכן ה-AI) */
.featured-card {
  border: 2px solid var(--primary-light);
  background-color: var(--bg-white);
  box-shadow: 0 10px 20px rgba(0, 168, 232, 0.05);
}

.card-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-light);
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 5px 15px;
  border-radius: 20px;
}

/* --- אזור הזדהות וכאב (Pain Points) --- */
.pain-points-section {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.pain-points-inner h2 {
  color: #ffffff; /* דורס את הצבע הכהה הגלובלי של הכותרות */
}

.pain-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap; /* שבירת שורות במסכים קטנים */
}

.pain-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.pain-item .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.solution-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
}

/* --- אזור האקדמיה (סדנאות) --- */
.academy-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

/* מערכת הסינון (Tabs) */
.workshop-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-dark);
  color: #ffffff;
}

/* גריד הכרטיסיות */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.workshop-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 35px 25px;
  border: 1px solid #e2e8f0;
  text-align: right;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease; /* אנימציה לסינון */
  display: flex;
  flex-direction: column;
}

.workshop-card.hide {
  display: none;
}

/* מחלקת עזר להסתרת אלמנטים זמנית מבלי למחוק אותם מהקוד */
.hidden-temp {
  display: none !important;
}

/* אנימציית הופעה פנימה בעת סינון */
.workshop-card.show {
  animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.workshop-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.workshop-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.workshop-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.workshop-card p {
  color: #4a5568;
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.workshop-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.workshop-price span {
  font-size: 0.9rem;
  color: #a0aec0;
  text-decoration: line-through;
  font-weight: 400;
}

/* הדגשת חבילת הפרימיום */
.premium-bundle {
  background: linear-gradient(145deg, #112a46 0%, #1a3c63 100%);
  color: #ffffff;
  border: none;
  position: relative;
}

.premium-bundle h3,
.premium-bundle p,
.premium-bundle .workshop-price {
  color: #ffffff;
}

.premium-bundle .btn-primary {
  background-color: var(--primary-light);
}

/* הסתרת התגית בכרטיסיות רגילות, הצגה רק בפרימיום */
.premium-bundle .card-badge {
  background-color: var(--primary-light);
  color: #fff;
}

/* --- אזור קצת עליי (About Me) --- */
.about-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
}

.profile-placeholder {
  height: 450px;
  border-radius: 20px;
  background-color: #cbd5e0;
}

.about-content {
  flex: 1;
}

.mt-20 {
  margin-top: 20px;
}

.profile-image {
  width: 100%;
  max-width: 400px; /* שומר שהתמונה לא תהיה ענקית במסכים גדולים */
  border-radius: 20px; /* פינות מעוגלות כמו בכרטיסיות */
  box-shadow: 0 15px 30px rgba(17, 42, 70, 0.1); /* צל עדין שמרים את התמונה */
  display: block;
  margin: 0 auto;
  object-fit: cover; /* מוודא שהתמונה לא נמתחת */
}

/* --- אזור שאלות ותשובות (FAQ) --- */
.faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-inner h2,
.faq-inner .subtitle {
  text-align: center;
}

.faq-accordion {
  margin-top: 40px;
}

/* עיצוב תגית details הטבעית של HTML */
.faq-item {
  background-color: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none; /* מסתיר את החץ הרגיל */
  position: relative;
}

/* יצירת חץ מעוצב מותאם אישית */
.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-light);
}

.faq-item[open] summary::after {
  content: "-";
}

/* הסתרת החץ הדיפולטיבי בדפדפנים מסוימים */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-content {
  padding: 0 20px 20px 20px;
  color: #4a5568;
  border-top: 1px solid #e2e8f0;
  margin-top: 10px;
  padding-top: 15px;
}

/* --- אזור ארגונים ועמותות (B2B) --- */
.b2b-section {
  background-color: var(--primary-dark); /* רקע כחול כהה וסמכותי */
  color: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* אפקט גל/צורה עדינה ברקע למראה הייטקיסטי */
.b2b-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 168, 232, 0.1) 0%,
    transparent 70%
  );
  z-index: 1;
}

.b2b-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.b2b-content {
  flex: 1.2;
}

.badge-light {
  display: inline-block;
  background-color: rgba(0, 168, 232, 0.2);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.b2b-content h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.b2b-content p {
  color: #a0aec0;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 90%;
}

.b2b-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.b2b-benefits li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.check-icon {
  background-color: var(--primary-light);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.b2b-benefits strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.b2b-benefits span {
  color: #a0aec0;
  font-size: 0.95rem;
}

/* קוביית הנתונים בצד שמאל */
.b2b-visual {
  flex: 0.8;
}

.b2b-stats-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-item {
  padding: 20px 0;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-text {
  color: #e2e8f0;
  font-size: 1.1rem;
}

.b2b-stats-card .divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 20px 0;
}

/* --- עיצוב אזור הטופס --- */
.onboarding-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.form-wrapper {
  background-color: var(--bg-white);
  max-width: 700px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(17, 42, 70, 0.08);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

/* --- בר התקדמות --- */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 15px;
}

.progress-bar .step {
  font-weight: 700;
  color: #a0aec0;
  flex: 1;
  text-align: center;
  transition: color 0.3s;
}

.progress-bar .step.active {
  color: var(--primary-light);
  border-bottom: 3px solid var(--primary-light);
  margin-bottom: -17px; /* יושב בדיוק על הקו התחתון */
}

/* --- עיצוב השדות --- */
.form-step {
  display: none; /* מסתיר את כל השלבים כברירת מחדל */
  animation: fadeIn 0.5s;
}

.form-step.active {
  display: block; /* מציג רק את השלב הפעיל */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  margin-bottom: 25px;
  text-align: right;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.smart-form input[type="text"],
.smart-form input[type="tel"],
.smart-form input[type="email"],
.smart-form textarea,
.smart-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.smart-form input:focus,
.smart-form textarea:focus,
.smart-form select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin-bottom: 10px;
  cursor: pointer;
}

.form-actions {
  margin-top: 30px;
  text-align: left; /* כפתור "הבא" בצד שמאל */
}

.form-actions.split {
  display: flex;
  justify-content: space-between;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--primary-dark);
}

/* --- פוטר (Footer) --- */
.site-footer {
  background-color: #0a1929; /* כחול עוד יותר כהה לפוטר */
  color: #a0aec0;
  padding: 60px 0 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 40px;
}

/* התאמת גובה הלוגו בפוטר - לרוב נרצה אותו מעט קטן יותר מה-Header */
.footer-logo-image {
  max-height: 85px;
  margin-bottom: 0;
  filter: brightness(0) invert(1);
}
.footer-brand {
  max-width: 300px;
}

.footer-contact h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* --- עיצוב מודאל ארגונים (B2B) --- */
.modal-overlay {
  display: none; /* נסתר כברירת מחדל */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 42, 70, 0.8); /* רקע כחול כהה חצי שקוף */
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px; /* מותאם ל-RTL, אם זה לא יושב טוב אפשר לשנות ל-left */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary-dark);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.modal-header p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* --- רספונסיביות בסיסית (Mobile) --- */
@media (max-width: 768px) {
  .hero-inner,
  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* התאמות למובייל */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .main-nav {
    display: none; /* מוסתר כברירת מחדל במובייל */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }

  .main-nav.active {
    display: block; /* מוצג כשה-JS מוסיף את המחלקה active */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* התאמות למובייל */
@media (max-width: 600px) {
  .form-wrapper {
    padding: 30px 20px;
  }
  .progress-bar {
    font-size: 0.9rem;
  }
}

/* התאמה למסכים קטנים */
@media (max-width: 992px) {
  .b2b-inner {
    flex-direction: column;
  }

  .b2b-content h2 {
    font-size: 2rem;
  }
}
