/*
  סגנון מותאם עבור דף נחיתה של המרכז הרפואי פ. עוז
  הדגש הוא על עיצוב מובייל‑פירסט עם כרטיס מידע אחד שמכיל את כל התוכן.
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Heebo', sans-serif;
  background: linear-gradient(180deg, #01245c 0%, #006bb3 100%);
  color: #ffffff;
  min-height: 100vh;
  direction: rtl;
}

/* אזור עליון בעיצוב פס לבן עם שלושה אלמנטים: בס"ד, לוגו וכפתור טלפון */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #ffffff;
  padding: 8px 12px;
  margin: 0 0 20px;
  /* צל עדין כדי להפריד מהגיבור */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  direction: rtl;
}
/* סימן בס"ד בצד ימין של ההאדר */
/* סימן בס"ד קבוע בפינה העליונה של הדף */
.bsd-mark {
  position: fixed;
  top: 6px;
  right: 10px;
  z-index: 1002;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 0.8rem;
  color: #006bb3;
  letter-spacing: 0.5px;
}
/* לוגו במרכז ההאדר */
.header .header-logo img {
  max-width: 140px;
  height: auto;
}

/* מרכז את הלוגו בהאדר ומאפשר לו לתפוס את הרוחב הפנוי */
.header .header-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* כפתור טלפון בצד שמאל של ההאדר */
/* כפתור הטלפון מורכב מאייקון ומקבץ טקסט (שתי שורות) */
.cta-phone {
  display: flex;
  align-items: center;
  border: 2px solid #25d366;
  border-radius: 30px;
  padding: 6px 10px;
  background-color: #ffffff;
  color: #006bb3;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  direction: rtl;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  max-width: 50%;
  flex-shrink: 0;
}
.cta-phone:hover {
  background-color: #f5fdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* האייקון בתוך הכפתור */
.cta-phone .cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-image: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border-radius: 6px;
  margin-left: 8px;
}
.cta-phone .cta-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
/* מקבץ הטקסט בכפתור מחולק לשתי שורות */
.cta-phone .cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
  line-height: 1.1;
}
.cta-phone .cta-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta-phone .cta-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: #00a268;
}

/* ספרות טלפון מוצגות משמאל לימין ומודגשות יותר */
.phone-digits {
  direction: ltr;
  unicode-bidi: plaintext;
  font-weight: 800;
  color: inherit;
}

/* אזור הגיבור */
.hero-section {
  width: 90%;
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* השאר מקום בתחתית לסרגל הוואטסאפ והפוטר הקטן */
  margin-bottom: 90px;
}
.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-align: center;
}
.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
}
/* רשימת יתרונות */
.advantages {
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #e0f2ff;
}
.advantages li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
}
.advantages li::before {
  content: '✔';
  position: absolute;
  right: 0;
  top: 0;
  color: #48e0a6;
  font-size: 1rem;
}

/* טופס יצירת קשר */
.contact-form {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 16px;
  /* תוספת מרווח לאחר הטופס כדי שלא יהיה צמוד לסוף הדף */
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}
.form-field {
  margin-bottom: 15px;
  text-align: right;
}
.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #d0e6ff;
}
.form-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  color: #003a70;
  background-color: #f7fafc;
  /* כיוון טקסט והתאמה ל־RTL */
  direction: rtl;
  text-align: right;
}
.form-field input:focus {
  border-color: #006bb3;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 107, 179, 0.3);
}

/* placeholder style for RTL inputs */
.form-field input::placeholder {
  text-align: right;
  direction: rtl;
}

/* סגנון לטקסטאריאה בשדה ההודעה */
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  color: #003a70;
  background-color: #f7fafc;
  resize: vertical;
  /* כיוון טקסט והתאמה ל־RTL */
  direction: rtl;
  text-align: right;
}
.form-field textarea:focus {
  border-color: #006bb3;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 107, 179, 0.3);
}
.form-field textarea::placeholder {
  text-align: right;
  direction: rtl;
}
/* כפתור */
.btn-primary {
  width: 100%;
  padding: 14px;
  background-image: linear-gradient(90deg, #29d883 0%, #00b4d8 100%);
  color: #003a70;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* כפתור משני לקריאה לפעולה (לפרטים חייגו עכשיו) */
.btn-secondary {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px;
  margin-bottom: 20px;
  background-image: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  color: #003a70;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* באנר סטיקי לוואטסאפ בתחתית המסך */
.whatsapp-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  z-index: 1000;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  /* הפוך את השפה ל־RTL מבלי לשנות את סדר האייקון */
  direction: rtl;
}

/* כפתור סטיקי לשיחת ייעוץ עם נציג קשרי לקוחות */
.call-banner {
  position: fixed;
  right: 0;
  bottom: 72px; /* ממוקם מעל באנר הוואטסאפ */
  display: flex;
  align-items: center;
  direction: rtl;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 14px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  font-weight: 700;
  z-index: 1001;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  max-width: 90%;
}
.call-banner:hover {
  opacity: 0.95;
}
/* מבנה הטקסט והמספר בתוך הכפתור הסטיקי */
.call-banner-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.2;
}
.call-banner-line1 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.call-banner-line2 {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}
.call-banner-action {
  margin-left: 4px;
}
.call-banner-number {
  font-size: 1rem;
  font-weight: 800;
}
.call-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #25d366;
  margin-left: 12px;
  flex-shrink: 0;
}
.call-banner-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ------------------------------------------------------------ */
/*                      Google Reviews Widget                  */
/* ------------------------------------------------------------ */
/* סקשן להצגת דירוג וביקורות מגוגל עם כוכבים וכפתור קישור */
.reviews-widget {
  /* רקע לבן המדמה וידג'ט רשמי של Google */
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 24px 20px;
  border-radius: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #003a70;
  position: relative; /* לצורך הצבת כפתור הסגירה */
}
.reviews-widget .reviews-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  direction: ltr;
}
.google-logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #4285F4;
}
.google-logo .google-icon {
  width: 28px;
  height: 28px;
  margin-left: 8px;
}
.google-logo .google-text {
  color: #4285F4;
}
.reviews-widget .reviews-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: inherit;
}
.reviews-widget .reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  direction: ltr;
}
.reviews-widget .stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-left: 8px;
}
.reviews-widget .rating-number {
  font-size: 1.4rem;
  font-weight: 700;
  margin-left: 5px;
  color: #003a70;
}
.reviews-widget .reviews-count {
  font-size: 0.9rem;
  color: #003a70;
}
.reviews-widget .reviews-description {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: inherit;
}
.reviews-widget .btn-google-reviews {
  display: inline-block;
  background-image: linear-gradient(90deg, #4285f4 0%, #0b65c2 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reviews-widget .btn-google-reviews:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* כפתור סגירה של הווידג'ט */
.reviews-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reviews-close:hover {
  color: #333;
}

/* מבנה שורת הדירוג והקריאה לפעולה בתחתית הווידג'ט */
.reviews-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  text-align: right;
  direction: rtl;
  gap: 8px;
}
.reviews-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.footer-google-icon {
  width: 20px;
  height: 20px;
  margin-left: 6px;
}
.footer-stars {
  color: #ffc107;
  font-size: 1.1rem;
  margin-left: 4px;
}
.footer-text,
.footer-date {
  margin-left: 4px;
  color: #003a70;
  font-size: 0.9rem;
}
.reviews-call .footer-call-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-call-number {
  background-color: #444;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-left: 6px;
}
.footer-call-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f9a825;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.footer-call-icon svg {
  width: 18px;
  height: 18px;
}

/* מניעת גלילה אופקית בכל האתר */
html, body {
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .reviews-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .reviews-call {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
  .footer-call-number {
    margin-left: 0;
    margin-right: 6px;
  }
}

/* כותרת הווידג'ט: לוגו וסיכום דירוג */
.reviews-widget .reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  direction: ltr;
}
.reviews-widget .reviews-summary {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #003a70;
}
.reviews-summary .stars {
  color: #ffc107;
  font-size: 1.4rem;
  margin-left: 4px;
}
.reviews-summary .rating-number {
  font-weight: 700;
  margin-left: 4px;
}
.reviews-summary .reviews-count {
  font-size: 0.8rem;
  color: #003a70;
}

/* קרוסלת ביקורות בתוך הווידג'ט */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.reviews-carousel .review-slide {
  display: none;
  flex-direction: row;
  align-items: flex-start;
  text-align: right;
  padding: 10px;
  direction: rtl;
}
.reviews-carousel .review-slide.active {
  display: flex;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #eaeaea;
  color: #4285F4;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}
.review-content {
  flex: 1;
}
.review-author {
  display: block;
  font-weight: 700;
  color: #003a70;
  margin-bottom: 4px;
}
.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 4px;
  display: block;
}
.review-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #003a70;
}
.reviews-prev,
.reviews-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #4285F4;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}
.reviews-prev { left: 4px; }
.reviews-next { right: 4px; }
.reviews-prev:hover,
.reviews-next:hover {
  color: #0b65c2;
}
.whatsapp-banner:hover {
  opacity: 0.95;
}
/* אייקון בתוך הבאנר */
.wa-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  align-items: center;
  justify-content: center;
}
.wa-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* פוטר קטן ודיסקרטי בסוף הדף */
.mini-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #cddff5;
  padding: 10px 0 20px;
  /* השאר מקום בין הפוטר לבאנר הוואטסאפ כך שלא יסתיר אותו */
  margin-bottom: 60px;
}

/* אזור עליון בתוך כרטיס הגיבור: לוגו וכפתור שיחה */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.hero-logo img {
  max-width: 120px;
  height: auto;
}
.hero-cta-phone {
  display: flex;
  align-items: center;
  border: 2px solid #25d366;
  border-radius: 30px;
  padding: 6px 10px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #006bb3;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  direction: rtl;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  max-width: 50%;
}
.hero-cta-phone:hover {
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.hero-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-image: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  margin-left: 8px;
  flex-shrink: 0;
}
.hero-cta-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.hero-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.hero-cta-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.hero-cta-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: #00a268;
}

/* פס עליון חדש לכל רוחב הדף עם לוגו וכפתור שיחה */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #ffffff;
  padding: 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
/* עוטף את הלוגו והכפתור כדי למרכזם עם מרחק קבוע בינהם */
.top-wrapper {
  display: flex;
  align-items: center;
  direction: rtl;
  gap: 32px;
}
.top-logo img {
  max-width: 120px;
  height: auto;
}

/* אלמנט הלוגו בפס העליון לא גודל מעבר לתוכן */
.top-logo {
  flex: 0 0 auto;
}
.cta-phone-header {
  display: flex;
  align-items: center;
  border: 2px solid #25d366;
  border-radius: 30px;
  padding: 6px 10px;
  background-color: #ffffff;
  color: #006bb3;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  direction: rtl;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  flex-grow: 0;
}
.cta-phone-header:hover {
  background-color: #f5fdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.cta-phone-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-image: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  margin-left: 8px;
  flex-shrink: 0;
}
.cta-phone-header-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.cta-phone-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.cta-phone-header-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta-phone-header-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: #00a268;
}

/* סקשן לקוחות מספרים */
.testimonials-section {
  margin-top: 40px;
  text-align: center;
}
.testimonials-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #e0f2ff;
}
.testimonial-slider {
  position: relative;
  max-width: 350px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.testimonial-slider .slide {
  display: none;
}
.testimonial-slider .slide.active {
  display: block;
}
.testimonial-slider img {
  width: 100%;
  height: auto;
  display: block;
}
.testimonial-slider .prev-slide,
.testimonial-slider .next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}
.testimonial-slider .prev-slide:hover,
.testimonial-slider .next-slide:hover {
  background: rgba(0, 0, 0, 0.6);
}
.testimonial-slider .prev-slide {
  left: 10px;
}
.testimonial-slider .next-slide {
  right: 10px;
}

/* הודעת דיסקליימר */
.disclaimer {
  font-size: 0.8rem;
  color: #cddff5;
  margin-top: 10px;
  text-align: center;
}

/* התאמות למסכים קטנים יותר */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .advantages {
    font-size: 0.85rem;
  }
  .form-title {
    font-size: 1.1rem;
  }
  .btn-primary {
    font-size: 0.95rem;
  }
}

/* התאמות למסכים בינוניים וקטנים עבור הפס העליון */
@media (max-width: 768px) {
  .top-bar {
    justify-content: space-between;
    padding: 8px 16px;
  }
  .top-wrapper {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
}