/* ==========================================================================
   Accessibility remediation styles (WCAG 2.2 AA)
   Added by CaliNetworks, November 2026. Loaded after all template styles.
   ========================================================================== */

/* Visually hidden text that remains available to screen readers */
.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;
}

/* 2.4.1 Bypass Blocks: skip link, visible when focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background: #0b3d44;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #ffffff;
}
main:focus {
  outline: none;
}

/* 2.4.7 Focus Visible: two-tone ring (white inner, dark outer) that is
   visible on both light and dark backgrounds */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
iframe:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 6px #0b3d44 !important;
  position: relative;
  z-index: 5;
}
.mailform input:focus,
.mailform textarea:focus {
  outline: 3px solid #ffffff !important;
  box-shadow: 0 0 0 6px #0b3d44 !important;
}

/* 2.1.1 / 2.4.7: show desktop dropdown menus when a link inside receives keyboard focus */
.sf-menu li:focus-within > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep the closed mobile menu out of the keyboard tab order */
.rd-mobilemenu:not(.active) .rd-mobilemenu_ul {
  visibility: hidden;
}

/* Top-level menu items: inset white ring so it is not clipped by the dark menu bar */
.sf-menu > li > a:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: -5px !important;
  box-shadow: none !important;
}

/* H1 elements that replace former H2 elements keep the original look */
.brand h1,
.brand .logo-wrap {
  font-size: 34px;
  line-height: 38px;
  margin: 0;
}
h1.page-title {
  font-size: 34px;
  line-height: 38px;
}

/* Lists that replace invalid <dl> markup on Services and FAQ */
ul.service-links,
ul.service-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 2.2.2 Pause, Stop, Hide: slideshow pause control */
.camera_container {
  position: relative;
}
.slider-toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 8px 14px;
  background: #0b3d44;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}
.slider-toggle:hover {
  background: #107280;
}

/* Testimonial carousel dots: larger target and visible state */
.owl-dot {
  cursor: pointer;
}

/* 2.3.3 / 2.2.2: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .wow {
    visibility: visible !important;
    -webkit-animation: none !important;
    animation: none !important;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* Accessibility and privacy policy pages */
.policy-content {
  max-width: 900px;
}
.policy-content h2 {
  font-size: 26px;
  line-height: 32px;
  margin-top: 30px;
}
.policy-content p,
.policy-content li {
  font-size: 16px;
  line-height: 28px;
  color: #434547;
}
.policy-content p {
  margin-top: 12px;
}
.policy-content ul {
  margin-top: 10px;
  padding-left: 22px;
}
.policy-content ul li {
  list-style: disc;
  margin-top: 6px;
}
.policy-content a {
  text-decoration: underline;
}

/* 2.5.8 Target Size (Minimum): testimonial dots get a 24px touch target
   while keeping the original 12px visual dot */
.owl-dots .owl-dot {
  width: 24px;
  height: 24px;
  padding: 6px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-clip: content-box;
  vertical-align: middle;
}
.owl-dots .owl-dot + .owl-dot {
  margin-left: 2px;
}

/* 1.4.1 Use of Color: links inside paragraphs are underlined so they are
   not identified by color alone */
main a:not(.btn):not(.btn2),
.policy-content a {
  text-decoration: underline !important;
}
/* Link lists, headings and card overlays are already identifiable as links */
main ul.service-links a,
main ul.marked-list a,
main h1 a, main h2 a, main h3 a,
main .banner a {
  text-decoration: none !important;
}

/* 1.4.4 Resize Text: allow mobile browsers to scale text */
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Keep the floating form label visible above a focused field (3.3.2) */
.mailform input:focus,
.mailform input:focus-visible,
.mailform textarea:focus,
.mailform textarea:focus-visible {
  z-index: auto !important;
}

/* 2.4.11 Focus Not Obscured (Minimum): keep focused elements and in-page
   link targets clear of the sticky menu bar (about 60px tall) */
html {
  scroll-padding-top: 90px;
}
header:focus {
  outline: none;
}

/* 1.4.3: text typed into the contact form fields (was #878787, 3.29:1) */
.mailform label input,
.mailform label select,
.mailform label textarea {
  color: #434547;
}

/* Visually hidden text keeps a high-contrast color pair so contrast
   checkers that ignore clipping do not report it */
.sr-only {
  color: #000000 !important;
  background-color: #ffffff !important;
}
