/* ✅ כללי */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main#main-content {
  flex-grow: 1;
}

/* ✅ פוטר כללי */
.site-footer {
  background-color: #f8f8f8;
  padding: 2.5rem 2rem;
  min-height: 120px;
  font-size: 0.9rem;
  color: #777;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
  direction: rtl;
}

/* ✅ קונטיינר */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ✅ אזורים */
.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 5px 0;
}

/* ✅ קישורים */
.footer-center a {
  text-decoration: none;
  color: #000;
  margin: 0 5px;
  font-weight: 500;
}

.footer-center .divider {
  margin: 0 3px;
  color: #aaa;
}

/* ✅ דסקטופ בלבד */
.site-footer.desktop-only {
  background-color: #f8f8f8;
  padding: 1rem 0;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
}

/* ✅ מובייל בלבד */
.site-footer.mobile-only {
  background-color: #f5f5f5;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #ddd;
}

.footer-mobile a {
  color: #000;
  text-decoration: none;
  margin: 0 5px;
}

/* ✅ כפתור מובייל תחתון */
.mobile-fixed-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 9998;
  padding: 10px 12px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ ריווח למובייל כדי למנוע חסימה */
.footer-spacer {
  display: none;
  height: 0;
}

/* ✅ כפתור וואטסאפ */
.wa-strip-container {
  position: fixed;
  bottom: 70px;
  right: 12px;
  z-index: 9999;
}

.wa-strip {
  background-color: #25D366;
  padding: 10px 16px;
  color: #fff;
  border-radius: 25px;
  display: flex;
  align-items: center;
  font-weight: bold;
  text-decoration: none;
}

.wa-icon {
  margin-left: 8px;
  font-size: 20px;
}

/* ✅ כפתור CTA */
.cta-button.full-width {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 0 16px;
  height: 48px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.cta-button.full-width i,
.cta-button.full-width span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.whatsapp-button {
  background-color: #25D366;
}

/* ✅ רספונסיביות */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .intro-wrapper,
  main#main-content {
    padding-bottom: 180px !important; /* לריווח מהכפתורים הקבועים */
  }

  .footer-spacer {
    display: block;
    height: 180px;
  }
}

/* ✅ תצוגת ברירת מחדל */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .mobile-fixed-buttons,
  .wa-strip-container,
  .footer-spacer {
    display: none !important;
  }

  .intro-wrapper,
  main#main-content {
    padding-bottom: 0 !important;
  }

  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }
}

