/* Accessibility Variables */
:root {
  --base-font-size: 16px;
  --line-height: 1.6;
  --letter-spacing: normal;
}

/* Apply base settings with !important to override inline styles */
html {
  font-size: var(--base-font-size) !important;
}

body {
  font-size: 1rem !important;
  line-height: var(--line-height) !important;
  letter-spacing: var(--letter-spacing) !important;
}

/* Force all text elements to inherit and scale */
/* p, span, div, a, li, td, th, label, button, input, textarea, select {
  font-size: inherit !important;
} */

/* Scale headings proportionally with !important */
h1 { font-size: 2em !important; }
h2 { font-size: 1.5em !important; }
h3 { font-size: 1em !important; }
h4 { font-size: 0.95em !important; }
h5 { font-size: 0.9em !important; }
h6 { font-size: 0.85em !important; }

/* Override specific classes that might have fixed sizes */
.business-name {
  font-size: 0.9em !important;
}

.section-title {
  font-size: 1.1em !important;
}

.section-content {
  font-size: 1em !important;
}

.header-title {
  font-size: 1.2em !important;
}

.action-button {
  font-size: 0.95em !important;
}

.tag-chip {
  font-size: 0.85em !important;
}

.review-text {
  font-size: 1em !important;
}

.contact-button {
  font-size: 1em !important;
}

.hour-day, .hour-time {
  font-size: 1em !important;
}

.reviews-count {
  font-size: 0.9em !important;
}

/* Accessibility Trigger Button */
.accessibility-trigger {
  position: fixed;
  left: -6px;
  bottom: 140px;
  z-index: 9999;
  background: #ad0007;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(173, 0, 7, 0.3);
  transition: all 0.3s ease;
  font-family: 'Noto Sans Hebrew', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.accessibility-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(173, 0, 7, 0.4);
}

.accessibility-trigger .icon {
  font-size: 20px;
}

/* Accessibility Menu */
.accessibility-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
}

.accessibility-menu.active {
  display: block;
}

.accessibility-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.accessibility-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: 'Noto Sans Hebrew', sans-serif;
}

.accessibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px 16px 0 0;
}

.accessibility-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.accessibility-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.accessibility-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #ad0007;
}

.accessibility-content {
  padding: 24px;
}

.accessibility-section {
  margin-bottom: 24px;
}

.accessibility-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.accessibility-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.accessibility-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Noto Sans Hebrew', sans-serif;
}

.accessibility-btn:hover {
  border-color: #ad0007;
  background: #fff5f5;
}

.accessibility-btn.active {
  border-color: #ad0007;
  background: #ad0007;
  color: white;
}

.accessibility-btn .icon {
  font-size: 24px;
  font-weight: bold;
}

.accessibility-btn .label {
  font-size: 13px;
  font-weight: 500;
}

/* Toggle Switches */
.accessibility-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accessibility-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.accessibility-toggle:hover {
  background: #f8f9fa;
}

.accessibility-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  right: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.accessibility-toggle input:checked + .toggle-slider {
  background: #ad0007;
}

.accessibility-toggle input:checked + .toggle-slider::before {
  transform: translateX(-24px);
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* Reset Button */
.accessibility-reset {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Noto Sans Hebrew', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: all 0.2s ease;
}

.accessibility-reset:hover {
  border-color: #ad0007;
  background: #fff5f5;
  color: #ad0007;
}

.accessibility-reset .icon {
  font-size: 20px;
}

/* Footer */
.accessibility-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  text-align: center;
  border-radius: 0 0 16px 16px;
}

.accessibility-footer p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.accessibility-footer a {
  color: #ad0007;
  text-decoration: none;
  font-weight: 600;
}

.accessibility-footer a:hover {
  text-decoration: underline;
}

/* Reading Guide */
.reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  background: #ad0007;
  pointer-events: none;
  z-index: 9998;
  display: none;
  box-shadow: 0 0 10px rgba(173, 0, 7, 0.5);
}

.reading-guide::before,
.reading-guide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50vh;
  background: rgba(0, 0, 0, 0.3);
}

.reading-guide::before {
  bottom: 100%;
}

.reading-guide::after {
  top: 100%;
}

/* Accessibility Features */
.large-cursor,
.large-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="16" cy="16" r="10" fill="black"/><circle cx="16" cy="16" r="8" fill="white"/></svg>') 16 16, auto !important;
}

.hide-images img {
  opacity: 0 !important;
  pointer-events: none !important;
}

.highlight-links a {
  background: yellow !important;
  color: #000 !important;
  padding: 2px 4px !important;
  border-radius: 2px !important;
  text-decoration: underline !important;
}

.high-contrast {
  filter: contrast(1.8) !important;
}

.high-contrast img,
.high-contrast video {
  filter: contrast(1.2) !important;
}

.inverted-colors {
  filter: invert(1) hue-rotate(180deg) !important;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .accessibility-trigger {
        left: -5px;
        bottom: 168px;
            padding: 7px 8px;
  }

  .accessibility-trigger .label {
    display: none;
  }

  .accessibility-panel {
    width: 95%;
    max-height: 95vh;
  }

  .accessibility-buttons {
    gap: 8px;
  }

  .accessibility-btn {
    min-width: 80px;
    padding: 10px 12px;
  }
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ad0007;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
  top: 0;
}