/* Accessibility fixes for estimar.us - loaded after the theme CSS */

/* Screen-reader-only text (Bootstrap 3 has this; repeated in case the theme overrides it) */
.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;
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  font-weight: bold;
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  color: #fff;
}

/* Visible keyboard focus (WCAG 2.4.7) - many templates remove outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #ffbf47 !important;
  outline-offset: 2px;
}

/* Slideshow pause/play control (WCAG 2.2.2) */
.cycle-pause-toggle {
  position: absolute;
  left: 15px;
  bottom: 45px; /* clear of the fixed copyright bar */
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.4;
}
.cycle-pause-toggle:hover,
.cycle-pause-toggle:focus {
  background: #000;
  color: #fff;
}
.cycle-prev[role="button"],
.cycle-next[role="button"] {
  cursor: pointer;
}

/* ---- Text contrast (WCAG 1.4.3) ----
   The theme sets links and .lead text to #818181 (3.9:1 on white, 3.0:1 on the grey service boxes).
   Same selectors as style.css / architect.css, loaded later, so hover and nav styles still win where they should. */
a, a:focus, span a { color: #595959; }                      /* 7.0:1 on white */
.lead { color: #595959; }
.architect-service h2,
.architect-service h3,
.architect-service p { color: #4d4d4d; }                      /* 6.5:1 on #e2e2e2 */

/* Links inside text were the same grey as the text with no underline (WCAG 1.4.1) */
p a, .lead a, .address a.reverse, .modal-body p a { text-decoration: underline; }

/* White text over the slideshow photos and header: soft dark glow + text shadow instead of a solid box.
   The glow is a background-image (radial fade), so there is no hard-edged block, but the text
   still has guaranteed contrast whatever photo is behind it. */
.home-cycle-slider .cycle-caption,
.header-details .home_address,
.header-details .call {
  background-color: transparent;
  background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0));
}
.home-cycle-slider .cycle-caption span,
.header-details .home_address,
.header-details .home_address a,
.header-details .call,
.header-details .call a {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
}

/* ---- Keep keyboard focus visible ----
   Slideshow arrows only appeared on mouse hover; header items fade in by animation. */
.cycle-prev:focus,
.cycle-next:focus,
.cycle-prev:focus-visible,
.cycle-next:focus-visible {
  opacity: 1 !important;
}
#main-menu .navbar:focus-within,
.home_address:focus-within,
.call:focus-within,
.spmenu-tags:focus-within .spmenu,
.accura-social-icons li:focus-within {
  opacity: 1 !important;
  transform: none !important;
}

/* Error state with enough contrast against white (3:1 non-text contrast) */
.error-field {
  border-color: #c9302c !important;
}

/* Respect the "reduce motion" system 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;
  }
}