/* אינדיגו - תוסף נגישות תקני לפי ת״י 5568 / WCAG 2.1 AA */
button.indigo-a11y-trigger,
.indigo-a11y-trigger {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  top: auto !important;
  z-index: 2147483647 !important; /* מעל כל אלמנט אפשרי */
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #0b3b63 !important;
  color: #f6d14f !important;
  border: 2.5px solid #f6d14f !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.4) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.2s, background 0.2s !important;
  opacity: 1 !important;
  visibility: visible !important;
}
button.indigo-a11y-trigger:hover,
button.indigo-a11y-trigger:focus,
.indigo-a11y-trigger:hover,
.indigo-a11y-trigger:focus {
  transform: scale(1.08) !important;
  background: #062a4d !important;
  outline: 3px solid #f6d14f !important;
}

.indigo-a11y-panel {
  position: fixed;
  bottom: 88px;
  left: 24px;
  right: auto;
  z-index: 999991;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  display: none;
  font-family: 'Assistant', system-ui, sans-serif;
  direction: rtl;
  text-align: right;
}
.indigo-a11y-panel.is-open {
  display: block;
  animation: a11yFadeIn 0.2s ease-out;
}
@keyframes a11yFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.indigo-a11y-header {
  background: #0b3b63;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.indigo-a11y-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.indigo-a11y-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.indigo-a11y-body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
}
.indigo-a11y-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}
.indigo-a11y-btn:hover, .indigo-a11y-btn:focus {
  background: #f1f5f9;
  border-color: #0b3b63;
  outline: 2px solid #0b3b63;
}
.indigo-a11y-btn.is-active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 700;
}
.indigo-a11y-btn .a11y-icon {
  font-size: 20px;
}

.indigo-a11y-footer {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.indigo-a11y-reset {
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 8px;
}
.indigo-a11y-statement-link {
  color: #0b3b63;
  text-decoration: underline;
  font-weight: 600;
}

/* Accessible Modes applied to body */

#indigoA11yFilterOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 2147483640 !important;
  display: none;
}
body.a11y-high-contrast #indigoA11yFilterOverlay {
  display: block;
  backdrop-filter: contrast(140%) !important;
  -webkit-backdrop-filter: contrast(140%) !important;
}
body.a11y-invert #indigoA11yFilterOverlay {
  display: block;
  backdrop-filter: invert(100%) hue-rotate(180deg) !important;
  -webkit-backdrop-filter: invert(100%) hue-rotate(180deg) !important;
}
body.a11y-high-contrast.a11y-invert #indigoA11yFilterOverlay {
  display: block;
  backdrop-filter: contrast(140%) invert(100%) hue-rotate(180deg) !important;
  -webkit-backdrop-filter: contrast(140%) invert(100%) hue-rotate(180deg) !important;
}

body.a11y-high-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}
body.a11y-underline-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}
body.a11y-stop-anim * {
  animation: none !important;
  transition: none !important;
}

/* WCAG 2.1 AA Keyboard Focus Visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f6d14f !important;
  outline-offset: 2px !important;
}



/* ===== דילוג לתוכן (WCAG 2.4.1) ===== */
.indigo-skip-link {
  position: absolute; right: -9999px; top: 0; z-index: 2147483647;
  padding: 12px 20px; background: #0b3b63; color: #fff;
  font-weight: 800; font-size: 16px; text-decoration: none;
  border: 3px solid #f6d14f; border-radius: 0 0 8px 8px;
}
.indigo-skip-link:focus, .indigo-skip-link:focus-visible { right: 8px; top: 8px; }

/* ===== מחוון מיקוד דו-צבעי, נראה על כל רקע (2.4.7) ===== */
a:focus, button:focus, summary:focus, input:focus, select:focus, textarea:focus,
[role="button"]:focus, [tabindex]:not([tabindex="-1"]):focus,
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #0b3b63 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px #f6d14f !important;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
  outline: none !important; box-shadow: none !important;
}

/* ===== כיבוד העדפת צמצום תנועה (2.2.2) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== יעדי מגע 44x44 (WCAG 2.5.5) ===== */
#footer-nav.footer-nav a { display: inline-block; padding: 8px 6px; min-height: 44px; line-height: 28px; }
.indigo-map-hotspot { min-height: 44px !important; min-width: 44px !important; }
.indigo-mobile-nav-links a { min-height: 44px !important; display: flex !important; align-items: center; }
.indigo-mobile-nav-close, #menu-icon-close { min-width: 44px !important; min-height: 44px !important; }
.indigo-social-video-sound { min-height: 44px !important; }
.indigo-a11y-close, #indigoA11yClose { min-width: 44px !important; min-height: 44px !important; }
.indigo-a11y-reset, #indigoA11yReset { min-height: 44px !important; }
.indigo-a11y-statement-link { display: inline-block; padding: 14px 8px; min-height: 44px; font-size: 14px !important; }
.indigo7-hero-dot { width: 44px !important; height: 44px !important; padding: 0 !important; background: none !important; border: 0 !important; display: inline-grid; place-items: center; }
.indigo7-hero-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.55); }
.indigo7-hero-dot.is-active::before { background: #f6d14f; }
.edu-foot-social a { width: 44px !important; height: 44px !important; }
.social-links .social-link-item a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.footer-text-inner .one a { display: inline-block; padding: 12px 4px; min-height: 44px; }

/* ===== טבלת המחירון: גלילה אופקית במקום איבוד עמודה (WCAG 1.4.10) ===== */
.indigo-price-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.indigo-price-table-scroll:focus-visible { outline: 3px solid #0b3b63; box-shadow: 0 0 0 6px #f6d14f; }
.indigo-price-table { overflow: visible !important; }
@media (max-width: 760px) {
  .indigo-price-table { min-width: 560px; }
  .indigo-price-table th, .indigo-price-table td { padding: 12px 10px !important; font-size: 15px !important; }
}

/* ===== אייקוני רשתות חברתיות: החלפת Font Awesome שלא נטען ===== */
.social-links .social-link-item a i.fa { display: none !important; }
.social-links .social-link-item a svg { width: 22px; height: 22px; display: block; }
.indigo7-hero-pause::before { width: 14px; height: 14px; border-radius: 2px; background: #fff; }
.indigo7-hero-pause[aria-pressed="true"]::before { background: #f6d14f; }
.indigo-form-error { background: #fdecea; border: 2px solid #b42318; color: #7a1c12; padding: 12px 16px; border-radius: 8px; font-weight: 700; margin: 0 0 14px; }
.indigo-availability-form [aria-invalid="true"] { border: 2px solid #b42318 !important; background: #fff6f5 !important; }
/* כפתור השהיית הסרטון: אותה שפה של כפתור הסאונד */
.indigo-social-video-pause { margin: 0; }
.indigo-social-video-pause .indigo-play-tri { display: none; }
.indigo-social-video-pause[aria-pressed="true"] .indigo-pause-bars { display: none; }
.indigo-social-video-pause[aria-pressed="true"] .indigo-play-tri { display: block; }

/* ===== פוטר: שורת רשתות צמודה במקום רשימה מרווחת ===== */
.social-widget .social-links,
ul.social-links.horizontal {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center;
}
.social-widget .social-links .social-link-item,
ul.social-links.horizontal .social-link-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  display: inline-flex !important;
}
.social-widget .social-links .social-link-item::before,
.social-widget .social-links .social-link-item::marker { content: none !important; }

/* ===== רשתות צפות, לצד בועת הוואטסאפ ===== */
.indigo-social-float {
  position: fixed;
  right: 94px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  gap: 10px;
  align-items: center;
}
.indigo-social-float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 31, 62, .32);
  transition: transform .18s ease;
}
.indigo-social-float-btn svg { width: 24px; height: 24px; }
.indigo-social-float-btn.is-facebook { background: #1461c4; }
.indigo-social-float-btn.is-youtube  { background: #c4302b; }
.indigo-social-float-btn.is-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.indigo-social-float-btn:hover { transform: translateY(-3px); }
@media (max-width: 560px) {
  .indigo-social-float { right: 84px; bottom: 20px; gap: 8px; }
  .indigo-social-float-btn { width: 44px; height: 44px; }
  .indigo-social-float-btn svg { width: 21px; height: 21px; }
}
