/* סאנרייז ספא - גלריה - קובץ CSS */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Heebo", sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  background: transparent;
}

/* רקע קבוע שמכסה את כל המסך */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("WallpaperGallery.jpg") center/cover no-repeat;
  z-index: -1;
}

/* הסתרת רקע במצב כהה */
body.dark-mode-active::before {
  display: none !important;
}


/* כוכבים מרחפים */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.5);
  }
}

/* Header */
header {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffdde1 100%);
  color: white;
  padding: 15px 20px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  flex-shrink: 0;
}

header .title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header .title-container img {
  height: 70px;
  width: 70px;
  border-radius: 15px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header .title-container img:hover {
  transform: scale(1.1) rotate(2deg);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

header .title-container h1 {
  margin: 8px 0 0 0;
  font-family: "Heebo", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

header .title-container h1:hover {
  transform: scale(1.05);
}

.contact-details {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  animation: fadeIn 1s ease 0.3s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.contact-details p {
  margin: 3px 0;
  display: inline-block;
  margin: 3px 8px;
}

.contact-details i {
  margin-left: 6px;
}

.contact-badge {
  color: #333;
  background-color: rgba(255, 255, 255, 0.95);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.contact-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

nav {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  gap: 12px;
  animation: fadeIn 1s ease 0.5s both;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

nav a:hover {
  color: white;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 117, 140, 0.4);
}

/* כותרת הגלריה */
.gallery-header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
  margin-top: 140px;
}

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

.gallery-header h2 {
  font-size: 52px;
  font-family: "Heebo", sans-serif;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  margin-bottom: 15px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1));
  }
}

.gallery-header p {
  color: #000;
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 25px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* גלריה */
.image-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  padding: 40px 40px 80px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInScale 0.8s ease both;
  animation-delay: calc(var(--item-index) * 0.1s);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.3),
    rgba(255, 20, 147, 0.3)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(255, 105, 180, 0.6);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 105, 180, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .video-indicator {
  transform: translate(-50%, -50%) scale(1.2);
  background: rgba(255, 20, 147, 1);
}

.video-indicator i {
  color: white;
  font-size: 32px;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

#lightbox.show {
  opacity: 1;
}

#lightbox img,
#lightbox video {
  max-width: 95%;
  max-height: 85%;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(255, 105, 180, 0.8);
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#lightbox-caption {
  color: #fff;
  margin-top: 20px;
  font-size: 20px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

#lightbox-controls {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#lightbox-controls button {
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  border: none;
  color: #fff;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
}

#lightbox-controls button:hover {
  background: linear-gradient(135deg, #ff1493, #c71585);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
}

#lightbox-controls button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 18px;
  margin-top: auto;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* קישורי רשתות חברתיות */
.social-title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: white;
  font-size: 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:nth-child(1) {
  background: #1877f2;
}

.social-links a:nth-child(2) {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-links a:nth-child(3) {
  background: #25d366;
}

.social-links a:nth-child(4) {
  background: #000000;
}

.social-links a:nth-child(5) {
  background: #ff0000;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== נגישות - תקן ישראלי 5568 ===== */

/* Screen Reader Only - לקוראי מסך */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100000;
}

.skip-link:focus {
  top: 0;
}

#skipLinks {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
}

/* כפתור נגישות ראשי */
.accessibility-trigger {
  position: fixed;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
  z-index: 100001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.accessibility-trigger:hover,
.accessibility-trigger:focus {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
  outline: none;
}

.accessibility-trigger:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 3px;
}

/* פאנל נגישות */
.accessibility-panel {
  position: fixed;
  top: 50%;
  left: 70px;
  transform: translateY(-50%) scale(0.95);
  width: 350px;
  max-height: 90vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.accessibility-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.accessibility-header {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accessibility-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-panel {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-panel:hover,
.close-panel:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.close-panel:focus-visible {
  outline: 2px solid #ffc107;
}

.accessibility-content {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
}

.accessibility-content::-webkit-scrollbar {
  width: 6px;
}

.accessibility-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.accessibility-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accessibility-section:last-child {
  border-bottom: none;
}

.accessibility-section h3 {
  color: #1976d2;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e3f2fd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accessibility-section h3 i {
  font-size: 16px;
}

.accessibility-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin: 8px 0;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-family: "Heebo", sans-serif;
  text-align: right;
  transition: all 0.3s ease;
  color: #333;
  white-space: nowrap;
}

/* כפתורים בזוגות - תפריט נגישות */
.accessibility-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.accessibility-buttons .accessibility-btn {
  width: calc(50% - 5px) !important;
  flex: 0 0 calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.accessibility-btn i {
  width: 24px;
  text-align: center;
  color: #2196f3;
  font-size: 18px;
}

.accessibility-btn:hover {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: translateX(-3px);
}

.accessibility-btn:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

.accessibility-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border-color: #388e3c;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.accessibility-btn[aria-pressed="true"] i {
  color: white;
}

.accessibility-btn[aria-pressed="true"]:hover {
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  }
  50% {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
  }
}

/* כפתורים קטנים */
.accessibility-btn-small {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
  width: 48%;
}

.accessibility-btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.accessibility-btn-small i {
  font-size: 14px;
}

.accessibility-btn-small[aria-pressed="true"] {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.accessibility-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-close:hover,
.accessibility-close:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.accessibility-close:focus-visible {
  outline: 2px solid #ffc107;
}

.accessibility-reset-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, #ff5722, #f44336);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Heebo", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.accessibility-reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accessibility-reset-btn:focus-visible {
  outline: 3px solid #ffc107;
}

.accessibility-statement-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Heebo", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.accessibility-statement-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accessibility-statement-btn:focus-visible {
  outline: 3px solid #ffc107;
}

/* Reading Guide */
#readingGuide {
  position: fixed;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 193, 7, 0.8);
  pointer-events: none;
  z-index: 99998;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

/* מדריך קריאה - Reading Guide */
.reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(255, 215, 0, 0.3);
  border-top: 3px solid #ffd700;
  border-bottom: 3px solid #ffd700;
  pointer-events: none;
  z-index: 9999;
  display: none;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.reading-guide-active .reading-guide {
  display: block;
}

/* Scrollbar styling for accessibility panel */
.accessibility-panel::-webkit-scrollbar {
  width: 8px;
}

.accessibility-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.accessibility-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.accessibility-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ===============================================
   מצבי נגישות
   =============================================== */

/* קורא מסך - Screen Reader */
.screen-reader-active * {
  cursor: help !important;
}

.screen-reader-active a:hover,
.screen-reader-active button:hover,
.screen-reader-active h1:hover,
.screen-reader-active h2:hover,
.screen-reader-active h3:hover,
.screen-reader-active p:hover {
  outline: 3px solid #4caf50;
  outline-offset: 2px;
}

/* CSS Variables for accessibility */
:root {
  --line-height: 1.5;
  --letter-spacing: 0px;
}

/* מרווח שורות - Line Height */
.line-height-active * {
  line-height: 2 !important;
}

/* מרווח אותיות - Letter Spacing */
.letter-spacing-active * {
  letter-spacing: 0.12em !important;
}

/* גופן דיסלקציה - Dyslexia Font */
.dyslexia-font-active * {
  font-family: "Comic Sans MS", "OpenDyslexic", Arial, sans-serif !important;
}

/* סמן גדול - Big Cursor */
.big-cursor-active,
.big-cursor-active * {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M5 5 L5 35 L15 25 L20 35 L25 32 L20 22 L32 22 Z" fill="black" stroke="white" stroke-width="2"/></svg>')
      10 10,
    auto !important;
}

/* סמן צבעוני - Colored Cursor */
.cursor-color-active,
.cursor-color-active * {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M2 2 L2 28 L12 20 L16 28 L20 26 L16 18 L26 18 Z" fill="red" stroke="yellow" stroke-width="2"/></svg>'),
    auto !important;
}

/* צבעים הפוכים - Inverted Colors */
/* החלת filter רק על התוכן, לא על פאנל הנגישות */
.invert-colors-active header,
.invert-colors-active .gallery-header,
.invert-colors-active .image-container,
.invert-colors-active footer,
.invert-colors-active .chatbot-container,
.invert-colors-active .chatbot-btn,
.invert-colors-active .whatsapp-float,
.invert-colors-active .back-to-top,
.invert-colors-active #lightbox {
  filter: invert(1) hue-rotate(180deg);
}

.invert-colors-active img,
.invert-colors-active video {
  filter: invert(1) hue-rotate(180deg);
}

/* עצירת אנימציות - Stop Animations */
.stop-animations-active *,
.stop-animations-active *::before,
.stop-animations-active *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* מצב קריאה - Reading Mode */
.reading-mode-active header,
.reading-mode-active footer,
.reading-mode-active .side-slider,
.reading-mode-active .whatsapp-float,
.reading-mode-active .back-to-top,
.reading-mode-active .chatbot-btn,
.reading-mode-active .accessibility-trigger,
.reading-mode-active nav {
  opacity: 0.3 !important;
  pointer-events: none !important;
}

.reading-mode-active .page-wrapper,
.reading-mode-active main,
.reading-mode-active .gallery-header,
.reading-mode-active .image-container {
  background: #fff9e6 !important;
  max-width: 800px !important;
  margin: 200px auto 50px !important;
  padding: 40px !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
}

/* ניגודיות גבוהה - High Contrast */
/* החלת filter רק על התוכן, לא על פאנל הנגישות */
.high-contrast-active header,
.high-contrast-active main,
.high-contrast-active footer,
.high-contrast-active .chatbot-container,
.high-contrast-active .chatbot-btn,
.high-contrast-active .whatsapp-float,
.high-contrast-active .back-to-top,
.high-contrast-active .side-slider,
.high-contrast-active #lightbox,
.high-contrast-active .content-box,
.high-contrast-active .service-card,
.high-contrast-active .treatment-card,
.high-contrast-active .price-card,
.high-contrast-active .faq-item,
.high-contrast-active .blog-card {
  filter: contrast(1.5);
}
.high-contrast-active *:not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-trigger):not(.accessibility-header):not(.accessibility-content):not(.accessibility-section):not(.accessibility-btn):not(.accessibility-reset-btn):not(.accessibility-statement-btn):not(.close-panel) {
  background: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

.high-contrast-active a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

.high-contrast-active button,
.high-contrast-active .accessibility-btn {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

.high-contrast-active footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #000 !important;
  color: #ffff00 !important;
  filter: none !important;
  position: relative !important;
  z-index: 10 !important;
}

.high-contrast-active footer * {
  visibility: visible !important;
  opacity: 1 !important;
}

.high-contrast-active footer a,
.high-contrast-active footer .footer-link {
  color: #00ffff !important;
}

.high-contrast-active footer .social-links a {
  background: #ffff00 !important;
  color: #000 !important;
}

/* שמירת מיקום וסגנון פאנל נגישות בכל המצבים - כלל עליון */
body.high-contrast-active .accessibility-panel,
body.invert-colors-active .accessibility-panel,
body.dark-mode-active .accessibility-panel,
html body.high-contrast-active .accessibility-panel,
html body.invert-colors-active .accessibility-panel,
html body.dark-mode-active .accessibility-panel {
  position: fixed !important;
  top: 50% !important;
  left: 70px !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) scale(0.95) !important;
  filter: none !important;
  background: white !important;
  z-index: 100001 !important;
  margin: 0 !important;
  max-height: 90vh !important;
  color: #333 !important;
}

body.high-contrast-active .accessibility-panel.active,
body.invert-colors-active .accessibility-panel.active,
body.dark-mode-active .accessibility-panel.active,
html body.high-contrast-active .accessibility-panel.active,
html body.invert-colors-active .accessibility-panel.active,
html body.dark-mode-active .accessibility-panel.active {
  position: fixed !important;
  top: 50% !important;
  left: 70px !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) scale(1) !important;
  filter: none !important;
  background: white !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 !important;
  z-index: 100001 !important;
  color: #333 !important;
}

/* שמירת סגנון תוכן פאנל נגישות במצב ניגודיות גבוהה והפוך צבעים */
.high-contrast-active .accessibility-panel *,
.invert-colors-active .accessibility-panel * {
  background: inherit !important;
  color: inherit !important;
  filter: none !important;
}

.high-contrast-active .accessibility-header,
.invert-colors-active .accessibility-header {
  background: linear-gradient(135deg, #2196f3, #1976d2) !important;
  color: white !important;
}

.high-contrast-active .accessibility-content,
.invert-colors-active .accessibility-content {
  background: white !important;
  color: #333 !important;
}

.high-contrast-active .accessibility-section h3,
.invert-colors-active .accessibility-section h3 {
  color: #1976d2 !important;
}

.high-contrast-active .accessibility-panel .accessibility-btn,
.invert-colors-active .accessibility-panel .accessibility-btn {
  background: #f5f5f5 !important;
  color: #333 !important;
  border-color: transparent !important;
}

.high-contrast-active
  .accessibility-panel
  .accessibility-btn[aria-pressed="true"],
.invert-colors-active
  .accessibility-panel
  .accessibility-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: white !important;
}

.high-contrast-active .accessibility-panel .accessibility-btn i,
.invert-colors-active .accessibility-panel .accessibility-btn i {
  color: #2196f3 !important;
}

.high-contrast-active
  .accessibility-panel
  .accessibility-btn[aria-pressed="true"]
  i,
.invert-colors-active
  .accessibility-panel
  .accessibility-btn[aria-pressed="true"]
  i {
  color: white !important;
}

/* שמירת מיקום כפתור נגישות בכל המצבים */
.high-contrast-active .accessibility-trigger,
.dark-mode-active .accessibility-trigger,
.invert-colors-active .accessibility-trigger {
  position: fixed !important;
  top: 50% !important;
  left: 15px !important;
  transform: translateY(-50%) !important;
  filter: none !important;
  background: linear-gradient(135deg, #2196f3, #1976d2) !important;
  color: white !important;
  z-index: 100000 !important;
}

.high-contrast-active .accessibility-trigger:hover,
.high-contrast-active .accessibility-trigger:focus,
.dark-mode-active .accessibility-trigger:hover,
.dark-mode-active .accessibility-trigger:focus,
.invert-colors-active .accessibility-trigger:hover,
.invert-colors-active .accessibility-trigger:focus {
  transform: translateY(-50%) scale(1.1) !important;
}

/* מובייל - שמירת מיקום פאנל נגישות */
@media (max-width: 768px) {
  body.high-contrast-active .accessibility-panel,
  body.invert-colors-active .accessibility-panel,
  body.dark-mode-active .accessibility-panel {
    position: fixed !important;
    left: 15px !important;
    right: 15px !important;
    width: auto !important;
    top: 50% !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) scale(0.95) !important;
    z-index: 100001 !important;
  }

  body.high-contrast-active .accessibility-panel.active,
  body.invert-colors-active .accessibility-panel.active,
  body.dark-mode-active .accessibility-panel.active {
    position: fixed !important;
    left: 15px !important;
    right: 15px !important;
    width: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) scale(1) !important;
    margin: 0 !important;
    z-index: 100001 !important;
  }

  body.high-contrast-active .accessibility-trigger,
  body.dark-mode-active .accessibility-trigger,
  body.invert-colors-active .accessibility-trigger {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* מצב כהה - Dark Mode */
.dark-mode-active,
.dark-mode-active body {
  background: #1a1a2e !important;
  background-image: none !important;
  color: #eaeaea !important;
}

/* הסתרת האוברליי במצב כהה */
.dark-mode-active html::before {
  display: none !important;
}

.dark-mode-active header {
  background: linear-gradient(
    135deg,
    #0f0f1a 0%,
    #1a1a2e 50%,
    #0f0f1a 100%
  ) !important;
  color: #ffffff !important;
}

.dark-mode-active nav a {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.dark-mode-active nav a:hover,
.dark-mode-active nav a.active {
  background: linear-gradient(135deg, #ff758c, #ff7eb3) !important;
  color: #ffffff !important;
}

.dark-mode-active .gallery-header,
.dark-mode-active .image-container {
  background: transparent !important;
}

.dark-mode-active .gallery-item {
  background: #252542 !important;
  border-color: #3a3a5c !important;
}

.dark-mode-active h1,
.dark-mode-active h2,
.dark-mode-active h3,
.dark-mode-active h4 {
  color: #ffffff !important;
}

.dark-mode-active p,
.dark-mode-active span {
  color: #e0e0e0 !important;
}

.dark-mode-active a {
  color: #ff9eb5 !important;
}

.dark-mode-active footer {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%) !important;
  color: #ffffff !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dark-mode-active .contact-badge {
  background-color: #252542 !important;
  color: #eaeaea !important;
}

.dark-mode-active .contact-badge strong {
  color: #ffffff !important;
}

.dark-mode-active .social-title {
  color: #ffffff !important;
}

.dark-mode-active .social-links a {
  color: #ffffff !important;
}

.dark-mode-active .footer-link {
  color: #ff9eb5 !important;
}

.dark-mode-active .footer-link:hover {
  color: #ffffff !important;
}

.dark-mode-active .lightbox {
  background: rgba(10, 10, 20, 0.95) !important;
}

.dark-mode-active .chatbot-container {
  background: #252542 !important;
}

.dark-mode-active .chatbot-messages {
  background: #1a1a2e !important;
}

.dark-mode-active .bot-message .message-content {
  background: #2d2d4a !important;
  color: #eaeaea !important;
}

/* מצב כהה - עיצוב פאנל נגישות (ללא שינוי מיקום) */
body.dark-mode-active .accessibility-panel {
  background: #252542 !important;
  color: #eaeaea !important;
  /* המיקום מוגדר בכללים העליונים - לא לדרוס */
}

.dark-mode-active .accessibility-btn {
  background: #3a3a5c !important;
  color: #ffffff !important;
}

/* כלל כללי - כל אלמנט יקבל רקע כהה (למעט footer) */
.dark-mode-active .container,
.dark-mode-active .wrapper,
.dark-mode-active .box,
.dark-mode-active .card,
.dark-mode-active .panel {
  background-color: #252542 !important;
  color: #eaeaea !important;
}

/* וידוא שה-footer וכל מה שבתוכו נשאר תקין */
.dark-mode-active footer,
.dark-mode-active footer div,
.dark-mode-active footer .social-links,
.dark-mode-active footer .social-links a {
  background-color: transparent !important;
}

.dark-mode-active footer {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%) !important;
}

/* קופסאות תוכן עם רקע לבן */
.dark-mode-active [style*="background: white"],
.dark-mode-active [style*="background: #fff"],
.dark-mode-active [style*="background: #ffffff"],
.dark-mode-active [style*="background-color: white"],
.dark-mode-active [style*="background-color: #fff"],
.dark-mode-active [style*="background-color: #ffffff"] {
  background-color: #252542 !important;
  color: #eaeaea !important;
}

/* וידוא שכל הטקסטים קריאים */
.dark-mode-active strong,
.dark-mode-active b,
.dark-mode-active em,
.dark-mode-active i:not(.fa-solid):not(.fa-brands):not(.fa-regular),
.dark-mode-active label,
.dark-mode-active figcaption,
.dark-mode-active caption {
  color: #eaeaea !important;
}

/* אלמנטים ספציפיים של הגלריה */
.dark-mode-active .gallery-header {
  background: transparent !important;
}

.dark-mode-active .gallery-header h2 {
  color: #ffffff !important;
}

.dark-mode-active .gallery-header p {
  color: #e0e0e0 !important;
  background: rgba(37, 37, 66, 0.95) !important;
}

.dark-mode-active .gallery-title {
  color: #ffffff !important;
}

.dark-mode-active .gallery-subtitle {
  color: #e0e0e0 !important;
}

.dark-mode-active .gallery-text,
.dark-mode-active .image-caption {
  color: #e0e0e0 !important;
}

/* Lightbox controls */
.dark-mode-active #lightbox-controls {
  background: rgba(30, 30, 50, 0.9) !important;
}

.dark-mode-active #lightbox-controls button {
  background: #3a3a5c !important;
  color: #ffffff !important;
}

.dark-mode-active #lightbox-controls button:hover {
  background: linear-gradient(135deg, #ff758c, #ff7eb3) !important;
}

.dark-mode-active #lightbox-caption {
  color: #ffffff !important;
  background: rgba(30, 30, 50, 0.8) !important;
}

/* Video indicator */
.dark-mode-active .video-indicator {
  background: rgba(30, 30, 50, 0.8) !important;
  color: #ffffff !important;
}

/* Quick buttons in chatbot */
.dark-mode-active .quick-btn {
  background: #3a3a5c !important;
  color: #ffffff !important;
  border-color: #4a4a6c !important;
}

.dark-mode-active .quick-btn:hover {
  background: #4a4a6c !important;
}

/* Chatbot input */
.dark-mode-active .chatbot-input-area {
  background: #2d2d4a !important;
}

.dark-mode-active #chatbotInput {
  background: #1a1a2e !important;
  color: #eaeaea !important;
  border-color: #3a3a5c !important;
}

.dark-mode-active #chatbotSend {
  background: linear-gradient(135deg, #ff758c, #ff7eb3) !important;
  color: #ffffff !important;
}

/* User message */
.dark-mode-active .user-message .message-content {
  background: linear-gradient(135deg, #ff758c, #ff7eb3) !important;
  color: #ffffff !important;
}

/* Accessibility sections and buttons */
.dark-mode-active .accessibility-section {
  background: transparent !important;
}

.dark-mode-active .accessibility-section h3 {
  color: #ffffff !important;
}

.dark-mode-active .accessibility-header {
  background: linear-gradient(135deg, #ff758c, #ff7eb3) !important;
}

.dark-mode-active .accessibility-content {
  background: #252542 !important;
}

.dark-mode-active .accessibility-statement-btn {
  background: #3a3a5c !important;
  color: #ffffff !important;
}

.dark-mode-active .accessibility-reset-btn {
  background: #dc3545 !important;
  color: #ffffff !important;
}

/* Stars background */
.dark-mode-active .stars {
  background: transparent !important;
}

/* Image container - transparent */
.dark-mode-active .image-container {
  background: transparent !important;
}

/* Title container in header */
.dark-mode-active .title-container {
  background: transparent !important;
}

/* Contact details */
.dark-mode-active .contact-details {
  background: transparent !important;
}

/* כלל לכל אלמנט עם רקע rgba לבן */
.dark-mode-active [style*="rgba(255, 255, 255"],
.dark-mode-active [style*="rgba(255,255,255"] {
  background-color: #252542 !important;
  color: #eaeaea !important;
}

/* וידוא שכל הטקסטים נראים */
.dark-mode-active [style*="color: #2c3e50"],
.dark-mode-active [style*="color:#2c3e50"],
.dark-mode-active [style*="color: #34495e"],
.dark-mode-active [style*="color:#34495e"],
.dark-mode-active [style*="color: #333"],
.dark-mode-active [style*="color:#333"] {
  color: #eaeaea !important;
}

/* תמונות נשארות רגילות במצב כהה */
.dark-mode-active img,
.dark-mode-active video,
.dark-mode-active .logo {
  filter: none !important;
}

/* גופן קריא - Readable Font */
.readable-font-active * {
  font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
}

/* שינוי גודל טקסט - Text Size */
.text-size-80 * {
  font-size: 80% !important;
}
.text-size-90 * {
  font-size: 90% !important;
}
.text-size-110 * {
  font-size: 110% !important;
}
.text-size-120 * {
  font-size: 120% !important;
}
.text-size-130 * {
  font-size: 130% !important;
}
.text-size-140 * {
  font-size: 140% !important;
}
.text-size-150 * {
  font-size: 150% !important;
}

/* הדגשת קישורים - Highlight Links */
.highlight-links-active a {
  background: yellow !important;
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: bold !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
}

/* הסתרת תמונות וסרטונים - Hide Media */
.hide-media-active img,
.hide-media-active video,
.hide-media-active iframe,
.hide-media-active svg,
.hide-media-active picture,
.hide-media-active .gallery-item,
.hide-media-active .slider-track {
  display: none !important;
}

/* הסתרת תמונת רקע */
body.hide-media-active {
  background-image: none !important;
  background-color: #000 !important;
}

.hide-media-active .gallery-item::before {
  content: "[תמונה הוסתרה]";
  display: block;
  padding: 20px;
  background: #f0f0f0;
  border: 2px dashed #999;
  text-align: center;
  color: #666;
}

/* ניווט מקלדת מלא - Keyboard Navigation */
/* רק הדגשת פוקוס - בלי שינויים במיקום או בעיצוב */
.keyboard-nav-active *:focus {
  outline: 3px solid #ff5722 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.5) !important;
}

/* הדגשת פוקוס לפריטי גלריה - ברור יותר */
.gallery-item:focus {
  outline: 4px solid #ff5722 !important;
  outline-offset: 4px !important;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 87, 34, 0.6) !important;
}

.gallery-item:focus::after {
  content: "לחץ Enter לצפייה";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
  white-space: nowrap;
}

.keyboard-nav-active .gallery-item:focus {
  outline: 5px solid #ff5722 !important;
  outline-offset: 5px !important;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(255, 87, 34, 0.7) !important;
}

/* הסתרת כפתורי דילוג */
.keyboard-nav-active #skipLinks {
  display: none !important;
}

body.grayscale-active {
  filter: grayscale(100%) !important;
}

body.highlight-headings-active h1,
body.highlight-headings-active h2,
body.highlight-headings-active h3 {
  background: #81c784 !important;
  color: #000 !important;
  padding: 8px !important;
  border-radius: 5px !important;
}

body.focus-highlight-active *:focus {
  outline: 4px solid #ff9800 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255, 152, 0, 0.3) !important;
}

/* כפתור WhatsApp צף */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25d366;
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 9000;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

/* כפתור חזרה למעלה */
.back-to-top {
  position: fixed;
  bottom: 110px;
  left: 30px;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.5);
  z-index: 9000;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 117, 140, 0.7);
}

/* צ'אטבוט */
.chatbot-btn {
  position: fixed;
  bottom: 200px;
  left: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  z-index: 10000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

.chatbot-btn:active {
  transform: scale(1.05);
}

.chatbot-container {
  position: fixed;
  bottom: 110px;
  left: 30px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.chatbot-container.active {
  display: flex;
}

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

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid white;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chatbot-status {
  margin: 3px 0 0 0;
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.bot-message,
.user-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeInMessage 0.3s ease-out;
}

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

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 75%;
  line-height: 1.5;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #333;
}

.message-content a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.message-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.user-message .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-btn {
  background: white;
  border: 2px solid #667eea;
  color: #667eea;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Heebo", sans-serif;
}

.quick-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.quick-btn:active {
  transform: translateY(0);
}

.chatbot-input-area {
  display: flex;
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  gap: 10px;
  background: white;
}

#chatbotInput {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 15px;
  font-family: "Heebo", sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

#chatbotInput:focus {
  border-color: #667eea;
}

#chatbotSend {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#chatbotSend:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#chatbotSend:active {
  transform: scale(0.95);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 10px 15px;
  }

  header .title-container img {
    height: 50px;
    width: 50px;
  }

  header .title-container h1 {
    font-size: 22px;
    margin: 5px 0;
  }

  .contact-details {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .contact-badge {
    padding: 4px 8px;
    font-size: 11px;
    margin: 2px 4px;
  }

  nav {
    margin-top: 5px;
    gap: 5px;
  }

  nav a {
    font-size: 11px;
    padding: 5px 8px;
    min-height: 28px;
  }

  .gallery-header {
    margin-top: 160px;
  }
}

@media (max-width: 768px) {
  .gallery-header h2 {
    font-size: 36px;
  }
  .gallery-header p {
    font-size: 16px;
  }

  .image-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 30px 15px;
  }

  .gallery-item img,
  .gallery-item video {
    height: 250px;
  }

  .video-indicator {
    width: 60px;
    height: 60px;
  }

  .video-indicator i {
    font-size: 24px;
  }

  nav a {
    font-size: 15px;
    padding: 8px 14px;
  }

  .contact-details {
    font-size: 16px;
  }

  #lightbox-controls button {
    padding: 12px 20px;
    font-size: 16px;
  }

  footer {
    padding: 20px 15px;
    font-size: 14px;
  }

  /* הנגשה במובייל */
  .accessibility-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
    left: 15px;
    top: auto;
    bottom: 180px;
    transform: none;
  }

  .accessibility-btn:hover {
    transform: scale(1.1);
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 20px;
    left: 20px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    font-size: 20px;
    bottom: 90px;
    left: 20px;
  }

  .accessibility-menu {
    left: 15px;
    right: 15px;
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    max-height: 80vh;
  }

  .accessibility-menu.active {
    transform: translateY(-50%);
  }

  /* נגישות חדשה במובייל */
  .accessibility-trigger {
    width: 55px;
    height: 55px;
    font-size: 24px;
    left: 15px;
    top: 40%;
    transform: translateY(-50%);
  }

  .accessibility-trigger:hover,
  .accessibility-trigger:focus {
    transform: translateY(-50%) scale(1.1);
  }

  .accessibility-panel {
    left: 15px;
    right: 15px;
    width: auto;
    max-height: 85vh;
    top: 45%;
  }

  .accessibility-panel.active {
    transform: translateY(-50%);
  }

  /* צ'אטבוט במובייל */
  .chatbot-btn {
    bottom: 260px;
    left: 20px;
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .chatbot-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    height: 450px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 8px 10px;
  }

  header .title-container img {
    height: 45px;
    width: 45px;
  }

  header .title-container h1 {
    font-size: 20px;
    margin: 4px 0;
  }

  .contact-details {
    font-size: 11px;
  }

  .contact-badge {
    padding: 3px 6px;
    font-size: 10px;
  }

  nav a {
    font-size: 10px;
    padding: 4px 7px;
    min-height: 26px;
  }

  nav a i {
    font-size: 10px;
    margin-left: 3px;
  }

  .gallery-header h2 {
    font-size: 28px;
  }

  .gallery-header p {
    font-size: 14px;
    padding: 10px 18px;
  }

  .image-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-item img,
  .gallery-item video {
    height: 300px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 20px;
    left: 15px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 85px;
    left: 15px;
  }

  /* נגישות - מובייל קטן */
  .accessibility-trigger {
    width: 50px;
    height: 50px;
    font-size: 22px;
    top: 40%;
    left: 15px;
    transform: translateY(-50%);
  }

  .accessibility-trigger:hover,
  .accessibility-trigger:focus {
    transform: translateY(-50%) scale(1.1);
  }

  .accessibility-panel {
    max-height: 75vh;
    top: 45%;
    padding: 15px;
  }

  .accessibility-header h2 {
    font-size: 18px;
  }

  .accessibility-btn {
    font-size: 13px;
    padding: 10px 12px;
  }

  .accessibility-section h3 {
    font-size: 13px;
  }

  /* צ'אטבוט מובייל קטן */
  .chatbot-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
    bottom: 240px;
    left: 15px;
  }

  .chatbot-container {
    bottom: 15px;
    right: 15px;
    left: 15px;
    height: 400px;
    max-height: 70vh;
  }

  .chatbot-header {
    padding: 15px;
  }

  .chatbot-logo {
    width: 40px;
    height: 40px;
  }

  .chatbot-header h3 {
    font-size: 16px;
  }

  .chatbot-messages {
    padding: 15px;
  }

  .message-content {
    font-size: 14px;
    max-width: 80%;
  }

  .quick-btn {
    font-size: 12px;
    padding: 7px 12px;
  }
}
/* קישורי Footer */
.footer-link {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #ffd1dc;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-link:hover::after {
  width: 100%;
  right: 0;
}

/* הדגשת קישורי footer במובייל */
@media (max-width: 600px) {
  .footer-link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    padding: 8px 12px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin: 5px;
  }
}

/* תיקון קפיצת חלון נגישות בגלריה */
body.high-contrast-active, 
body.grayscale-active {
    filter: none !important; /* מסיר את הפילטר מה-body שגורם לקפיצה */
}

/* החלת הניגודיות רק על התוכן ולא על המעטפת הכללית */
body.high-contrast-active .gallery-header,
body.high-contrast-active .image-container,
body.high-contrast-active footer {
    filter: contrast(150%) brightness(1.1) !important;
}

body.grayscale-active .gallery-header,
body.grayscale-active .image-container,
body.grayscale-active footer {
    filter: grayscale(100%) !important;
}

/* וידוא שחלון הנגישות נשאר יציב */
#accessibilityPanel, .accessibility-trigger {
    position: fixed !important;
}

/* ===============================================
   ניגודיות גבוהה צהוב-שחור (High Contrast Yellow-Black)
   =============================================== */

/* מצב ניגודיות גבוהה צהוב-שחור */
body.high-contrast-yellow-active {
  background: #000000 !important;
  background-image: none !important;
  color: #ffff00 !important;
}

body.high-contrast-yellow-active * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* כותרות */
body.high-contrast-yellow-active h1,
body.high-contrast-yellow-active h2,
body.high-contrast-yellow-active h3,
body.high-contrast-yellow-active h4,
body.high-contrast-yellow-active h5,
body.high-contrast-yellow-active h6 {
  color: #ffff00 !important;
  text-shadow: none !important;
}

/* קישורים */
body.high-contrast-yellow-active a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

body.high-contrast-yellow-active a:hover,
body.high-contrast-yellow-active a:focus {
  color: #ffffff !important;
  background-color: #333333 !important;
}

/* כפתורים */
body.high-contrast-yellow-active button:not(.accessibility-panel button),
body.high-contrast-yellow-active .btn,
body.high-contrast-yellow-active nav a,
body.high-contrast-yellow-active .quick-btn {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffff00 !important;
}

body.high-contrast-yellow-active button:not(.accessibility-panel button):hover,
body.high-contrast-yellow-active .btn:hover,
body.high-contrast-yellow-active nav a:hover,
body.high-contrast-yellow-active .quick-btn:hover {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

/* Header */
body.high-contrast-yellow-active header {
  background: #000000 !important;
  border-bottom: 3px solid #ffff00 !important;
}

/* Footer */
body.high-contrast-yellow-active footer {
  background: #000000 !important;
  border-top: 3px solid #ffff00 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}

body.high-contrast-yellow-active footer * {
  visibility: visible !important;
  opacity: 1 !important;
}

body.high-contrast-yellow-active footer a,
body.high-contrast-yellow-active footer .footer-link {
  color: #00ffff !important;
}

body.high-contrast-yellow-active footer .social-links a {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* Gallery items */
body.high-contrast-yellow-active .gallery-item {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
}

/* Contact badge */
body.high-contrast-yellow-active .contact-badge {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

/* Chatbot */
body.high-contrast-yellow-active .chatbot-container {
  background: #000000 !important;
  border: 3px solid #ffff00 !important;
}

body.high-contrast-yellow-active .chatbot-header {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast-yellow-active .chatbot-header h3,
body.high-contrast-yellow-active .chatbot-header p,
body.high-contrast-yellow-active .chatbot-status {
  color: #000000 !important;
}

body.high-contrast-yellow-active .chatbot-messages {
  background: #000000 !important;
}

body.high-contrast-yellow-active .bot-message .message-content {
  background: #222222 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}

body.high-contrast-yellow-active .user-message .message-content {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast-yellow-active .chatbot-input-area {
  background: #000000 !important;
  border-top: 2px solid #ffff00 !important;
}

body.high-contrast-yellow-active #chatbotInput {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

body.high-contrast-yellow-active #chatbotSend {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast-yellow-active .chatbot-btn {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* WhatsApp button */
body.high-contrast-yellow-active .whatsapp-float {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffff00 !important;
}

/* Back to top */
body.high-contrast-yellow-active .back-to-top {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* Social links */
body.high-contrast-yellow-active .social-links a {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* Lightbox */
body.high-contrast-yellow-active .lightbox {
  background: rgba(0, 0, 0, 0.98) !important;
}

body.high-contrast-yellow-active #lightbox-controls button {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast-yellow-active #lightbox-caption {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}

/* Images - keep them visible but with border */
body.high-contrast-yellow-active img {
  border: 2px solid #ffff00 !important;
}

body.high-contrast-yellow-active .logo {
  border: none !important;
  filter: brightness(1.2) contrast(1.2) !important;
}

/* שמירת פאנל הנגישות בצבעים רגילים */
body.high-contrast-yellow-active .accessibility-panel,
body.high-contrast-yellow-active .accessibility-panel * {
  background-color: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}

body.high-contrast-yellow-active .accessibility-panel {
  background: white !important;
  border: none !important;
}

body.high-contrast-yellow-active .accessibility-header {
  background: linear-gradient(135deg, #2196f3, #1976d2) !important;
  color: white !important;
}

body.high-contrast-yellow-active .accessibility-content {
  background: white !important;
  color: #333 !important;
}

body.high-contrast-yellow-active .accessibility-section h3 {
  color: #1976d2 !important;
}

body.high-contrast-yellow-active .accessibility-panel .accessibility-btn {
  background: #f5f5f5 !important;
  color: #333 !important;
  border-color: transparent !important;
}

body.high-contrast-yellow-active .accessibility-panel .accessibility-btn:hover {
  background: #e3f2fd !important;
  border-color: #2196f3 !important;
}

body.high-contrast-yellow-active
  .accessibility-panel
  .accessibility-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: white !important;
}

body.high-contrast-yellow-active .accessibility-panel .accessibility-btn i {
  color: #2196f3 !important;
}

body.high-contrast-yellow-active
  .accessibility-panel
  .accessibility-btn[aria-pressed="true"]
  i {
  color: white !important;
}

/* שמירת כפתור הנגישות */
body.high-contrast-yellow-active .accessibility-trigger {
  background: linear-gradient(135deg, #2196f3, #1976d2) !important;
  color: white !important;
  filter: none !important;
}

/* מובייל - שמירת מיקום פאנל נגישות */
@media (max-width: 768px) {
  body.high-contrast-yellow-active .accessibility-panel {
    left: 15px !important;
    right: 15px !important;
    width: auto !important;
  }
}
