/* =========================================================================
   WCAG 2.1 AA fixes shared by hakimfarlaw.com, pridelegal.com, herlawyer.com
   (all three run Divi 4.27.x). Where to paste:
   Divi > Theme Options > General > Custom CSS   (or Appearance > Customize > Additional CSS)
   Then add the site-specific file (hakimfarlaw.css / pridelegal.css / herlawyer.css) below it.
   Prepared 2026-11-23. Test on staging/InMotion copy first.
   ========================================================================= */

/* 2.4.7 Focus Visible — Divi ships `:focus{outline:0}`; restore a strong indicator */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible,
.mobile_menu_bar:focus-visible {
  outline: 3px solid #1a1a1a !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #ffffff !important; /* halo so it shows on dark backgrounds too */
}

/* 2.4.1 Bypass Blocks — skip link injected by wp-divi-common-a11y.js */
.a11y-skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100000;
  background: #000; color: #fff !important; padding: 12px 18px; font-size: 16px;
  font-weight: 700; text-decoration: underline; border-radius: 4px;
}
.a11y-skip-link:focus { top: 8px; }

/* Screen-reader-only utility used by the JS (e.g. "opens in a new tab") */
.a11y-sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* 1.4.1 Use of Color — links inside body copy must not rely on colour alone */
.et_pb_text_inner p a, .et_pb_post_content p a, .entry-content p a,
.et_pb_text_inner li a, .entry-content li a { text-decoration: underline !important; }

/* 2.5.8 Target Size (WCAG 2.2, recommended) — small icon links/buttons */
.et-social-icon a, #et-top-navigation .et-social-icons a, .et_pb_social_media_follow a,
#menu-item-29278 > a, #menu-item-29279 > a, #menu-item-29280 > a {
  min-width: 24px; min-height: 24px; display: inline-flex; align-items: center; justify-content: center;
}

/* Divi contact-form error highlighting gets a non-colour cue too (1.4.1/3.3.1) */
.et_pb_contact_form .et_contact_error { border: 2px solid #b00020 !important; }

/* 1.4.10 Reflow / 1.4.12 Text spacing safety */
.et_pb_text_inner, .entry-content { overflow-wrap: anywhere; }

/* 2.5.8 (WCAG 2.2) – Divi Blurb title links were flagged as overlapping/too small */
.et_pb_blurb .et_pb_module_header a { display: inline-block; min-height: 24px; padding: 2px 0; }

/* Generic "read more" links: CSS can't rename them – see JS §10 */

/* 3.3.2 Labels or Instructions / 2.5.3 — Divi contact form labels were display:none (placeholder only).
   Show them above each field. */
.et_pb_contact_form .et_pb_contact_form_label {
  display: block !important; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #333333; line-height: 1.4;
}

/* Promoted page titles (an existing H2 became the page's H1) keep their original H2 look –
   per-page sizes are in the site file. */
h1.a11y-h1-keep-h2 { text-shadow: none !important; }
