/* Accessibility — focus, contrast helpers, reduced motion */
.ugb-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ugb-skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  outline: 2px solid #111;
}
.ugobest-a11y :focus-visible {
  outline: 2px solid var(--ugb-color-accent, #c4a35a);
  outline-offset: 2px;
}
.ugb-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
@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;
  }
}

/*
 * Mobile viewport: never show Elementor Ally floating widget.
 * PHP also dequeues Ally assets on mobile UA (2.9.21).
 */
@media (max-width: 767.98px) {
  #ea11y-root,
  [id^="ea11y"],
  [class*="ea11y-widget"],
  .ea11y-widget-iframe-wrapper,
  iframe[src*="cdn.elementor.com/a11y"],
  iframe[title*="Accessibility"],
  body [class*="ea11y"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}
