/* Accessibility layer — Rachel Hyman Wigs
   Loaded last in <head> on every page so it overrides the inline page styles.
   Targets IS 5568 (= WCAG 2.0 AA), as required by Israeli accessibility regulations. */

/* ── Contrast (1.4.3): brand coral #D9534F was 3.96:1 on white — darkened to ≥4.8:1 on all page backgrounds ── */
:root {
  --coral: #B83B37;
  --coral-light: #A3322E;
}
.hero-tagline,
.section-header p,
.feature-item p,
.contact-item h3,
.contact-item h4 { color: #6B6B6B !important; }

/* WhatsApp green #25D366 with white text was 1.98:1 */
.whatsapp-btn { background: #0B7A55 !important; }
.whatsapp-btn:hover { background: #09684A !important; }

/* Links on the dark footer */
footer a { color: #F19C99 !important; text-decoration: underline !important; }
footer a:hover, footer a:focus { color: #fff !important; }

/* Body-text links must be distinguishable by more than colour */
.content p a, .content li a, .faq-item a { text-decoration: underline; }

/* ── Visible keyboard focus (2.4.7) ── */
:focus-visible {
  outline: 3px solid #1A5FB4 !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
footer :focus-visible { outline-color: #FFD34D !important; }

/* ── Skip link (2.4.1) ── */
.skip-link {
  position: fixed; top: -100px; right: 16px; z-index: 10001;
  background: #1A1A1A; color: #fff; padding: 12px 20px; border-radius: 0 0 10px 10px;
  font: 600 1rem 'Heebo', sans-serif; text-decoration: none;
}
html[dir="ltr"] .skip-link { right: auto; left: 16px; }
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Motion (2.2.2): honour the OS "reduce motion" setting ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ── Carousel pause control ── */
.carousel-pause {
  display: block; margin: 16px auto 0; padding: 8px 18px; border-radius: 24px;
  border: 2px solid var(--coral); background: #fff; color: var(--coral);
  font: 600 .9rem 'Heebo', sans-serif; cursor: pointer;
}
.carousel-pause:hover { background: var(--coral); color: #fff; }

/* ── Accessibility toolbar ── */
.a11y-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 10000;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff;
  background: #1A5FB4; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
html[dir="ltr"] .a11y-toggle { right: auto; left: 28px; }
html[dir="ltr"] .float-wa { left: auto; right: 28px; }
.a11y-toggle svg { width: 30px; height: 30px; fill: currentColor; }

.a11y-panel {
  position: fixed; bottom: 92px; right: 28px; z-index: 10000;
  width: 280px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); overflow-y: auto;
  background: #fff; color: #1A1A1A; border-radius: 14px; padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); font-family: 'Heebo', sans-serif;
}
html[dir="ltr"] .a11y-panel { right: auto; left: 28px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.1rem; margin: 0 0 12px; color: #1A1A1A; font-family: 'Heebo', sans-serif; }
.a11y-panel button {
  display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; text-align: start;
  border: 1.5px solid #CCC; border-radius: 8px; background: #F7F7F7; color: #1A1A1A;
  font: 500 .95rem 'Heebo', sans-serif; cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { background: #1A5FB4; border-color: #1A5FB4; color: #fff; }
.a11y-panel .a11y-row { display: flex; gap: 8px; }
.a11y-panel .a11y-row button { text-align: center; }
.a11y-panel a { display: block; margin-top: 6px; color: #1A5FB4; font-weight: 600; text-decoration: underline; }

@media (max-width: 640px) {
  .a11y-toggle { bottom: 20px; right: 16px; width: 46px; height: 46px; }
  html[dir="ltr"] .a11y-toggle { left: 16px; }
  .a11y-panel { bottom: 76px; right: 16px; }
  html[dir="ltr"] .a11y-panel { left: 16px; }
}

/* Toolbar modes (classes on <html>) */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 140%; }

html.a11y-contrast body,
html.a11y-contrast body :where(*:not(.a11y-toggle, .a11y-toggle *, svg, svg *, img, video)) {
  background: #000 !important; color: #FFF !important; border-color: #FFF !important;
  box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #FFEB3B !important; }
html.a11y-contrast a[class*="btn"], html.a11y-contrast button { border: 2px solid #FFEB3B !important; }
html.a11y-contrast .a11y-panel button[aria-pressed="true"] { background: #FFEB3B !important; color: #000 !important; }

html.a11y-links a { text-decoration: underline !important; outline: 2px dashed currentColor; outline-offset: 2px; }

html.a11y-readable body, html.a11y-readable body * {
  font-family: Arial, 'Heebo', sans-serif !important; letter-spacing: .02em !important; line-height: 1.8 !important;
}

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
