/* ═══════════════════════════════════════════════════════════════
   Accessibility Styles — Brickell Centner Wellness
   ═══════════════════════════════════════════════════════════════ */

/* 1. Skip Navigation Link */
.skip-to-content {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  z-index: 99999;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-to-content:focus,
.skip-to-content:active {
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* 2. Keyboard Focus Ring — only visible for keyboard users */
.keyboard-nav *:focus {
  outline: 3px solid #0066cc !important;
  outline-offset: 2px !important;
}
.keyboard-nav a:focus,
.keyboard-nav button:focus,
.keyboard-nav input:focus,
.keyboard-nav select:focus,
.keyboard-nav textarea:focus,
.keyboard-nav [tabindex]:focus {
  outline: 3px solid #0066cc !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.25) !important;
}

/* 3. Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Ensure Divi doesn't strip focus outlines completely */
body:not(.keyboard-nav) a:focus,
body:not(.keyboard-nav) button:focus {
  outline: none;
}

/* 5. Colour contrast fix — light text on thin Divi nav items */
#top-menu > li > a {
  text-rendering: optimizeLegibility;
}

/* 6. Dropdown visual caret for keyboard users */
.keyboard-nav #top-menu .menu-item-has-children > a[aria-expanded="true"]::after {
  content: ' ▲';
  font-size: 0.6em;
}
.keyboard-nav #top-menu .menu-item-has-children > a[aria-expanded="false"]::after {
  content: ' ▼';
  font-size: 0.6em;
}
