/* WCAG 2.2 AA fixes on top of the original WordPress theme. Loaded on every page (see scripts/a11y-fixes.mjs). */

/* 2.4.7 / 2.4.13: clear keyboard focus indicator on light and dark backgrounds.
   :focus-visible only shows for keyboard users, so mouse/touch look is unchanged. */
:focus-visible {
  outline: 3px solid #1a1a1a !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
#back-to-top:focus-visible,
.post-navigation-wrapper .post-navigation a:focus-visible {
  outline: 3px solid #1a1a1a !important;
}

/* 1.4.3: white on the theme gold (#c1b186) is 2.1:1. Use the theme's dark blue (#252e59, 12:1) for the 404 button. */
.error-404 .button,
.error-404 .button:hover {
  background: #252e59;
  color: #fff;
}

/* 2.4.11 (Focus Not Obscured): the fixed ESPA badge sits bottom-left over the page.
   Leave room at the end of the page so the footer can always scroll clear of it,
   and keep elements focused by keyboard/scrolled-to scrolled above it. */
html { scroll-padding-bottom: 110px; }
.site-footer { padding-bottom: 100px; }
@media (max-width: 600px) {
  .espa { max-width: 170px; }
  html { scroll-padding-bottom: 80px; }
  .site-footer { padding-bottom: 70px; }
}

/* 2.2.2: pause/play control for the auto-rotating home page slideshow (added by a11y.js) */
.luviana-front-page-header button.sv-slider-toggle {
  position: absolute; z-index: 2;
  width: 24px; height: 24px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35); border: 2px solid #fff; border-radius: 50%;
  color: #fff; cursor: pointer; line-height: 1; font-size: 0; box-shadow: none;
}
.sv-slider-toggle svg { width: 10px; height: 10px; fill: currentColor; display: block; }

/* 2.3.3: respect the visitor's reduced-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;
  }
  .getwid-animation { opacity: 1 !important; visibility: visible !important; }
}

/* Contact pages: phone call button that replaced the contact form */
.sv-call { margin-top: 1.75rem !important; }
.sv-call .wp-block-button__link { font-size: 1.1rem; letter-spacing: 0.05em; }
.sv-call .wp-block-button__link .fa-phone { margin-right: 0.5em; }
