/* ==========================================================================
   a11y.css — נגישות (WCAG 2.1 AA / ת"י 5568)
   ========================================================================== */

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: 50%; top: -100px; transform: translateX(50%);
  background: var(--gold-grad); color: #0A0F16; font-weight: 700;
  padding: .7rem 1.4rem; border-radius: 0 0 12px 12px; z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* Visible keyboard focus */
:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Don't show outline on mouse click for elements that handle their own state */
.btn:focus:not(:focus-visible),
.float-btn:focus:not(:focus-visible) { outline: none; }
.btn:focus-visible { outline-offset: 4px; }

/* Screen-reader only */
.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;
}

/* Larger hit targets for floating + nav controls (min 44px) */
.float-btn, .theme-toggle, .hamburger, .faq-q { min-height: 44px; }

/* High-contrast preference */
@media (prefers-contrast: more) {
  :root {
    --text-muted: #C9D4E2;
    --line: rgba(201,162,75,.4);
    --line-strong: rgba(201,162,75,.6);
  }
  .card, .stat, .faq-item, .contact-line { border-width: 1.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Forced colors (Windows high-contrast mode) */
@media (forced-colors: active) {
  .btn, .card, .faq-item, .float-btn { border: 1px solid currentColor; }
  .grad-text { -webkit-text-fill-color: currentColor; color: currentColor; }
}
