/* ============================================================
   wcag-s0086-dakota.css
   WCAG 2.1 Level AA override for the S0086-Dakota Kentico template.

   Selectors verified against the live base CSS pulled from
   https://elevatedaniabeach.com on 2026-05-07.

   Audit findings:
   - Base CSS (~47KB / 509 rules). No outline-suppression in
     template CSS itself; Bootstrap still removes outlines.
   - Form controls: body .form-control { border-bottom: 1px solid #fff }
     — white border, suggests forms sit on a dark background.
     Verify the form's actual background on the live page; if
     it's on white, this fails 3:1 and we'd need to override.
   - Footer text uses #fff (likely on dark bg, passes).
   - footer-2 social link color #064b65 on white passes (~9:1).

   Specificity strategy:
   Every selector is prefixed with `body #form` to lift above
   widget CSS load order.
   ============================================================ */


/* ------------------------------------------------------------
   WCAG 2.4.7 Focus Visible
   Bootstrap suppressors plus general fallback.
   ------------------------------------------------------------ */
body #form .navbar-toggle:focus-visible,
body #form .dropdown-toggle:focus-visible,
body #form .btn:focus-visible,
body #form .form-control:focus-visible,
body #form a:focus-visible,
body #form button:focus-visible,
body #form input:focus-visible,
body #form select:focus-visible,
body #form textarea:focus-visible,
body #form [tabindex]:focus-visible,
body #form [role="button"]:focus-visible,
body #form .footer-widget footer a:focus-visible {
  /* Webkit-style two-ring halo: blue inner ring + white outer ring
     gives focus visibility on both light AND dark backgrounds.
     The `outline` declaration is intentionally omitted — outline
     paints on top of box-shadow and would cover the white ring. */
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #005fcc, 0 0 0 3px #fff;
}


/* ------------------------------------------------------------
   WCAG 2.4.11 Focus Not Obscured
   Default 80px scroll-padding. Measure on the live site.
   ------------------------------------------------------------ */
html {
  scroll-padding-top: 80px;
}

body #form :focus-visible {
  scroll-margin-top: 80px;
}


/* ------------------------------------------------------------
   WCAG 1.4.11 Non-text Contrast (form controls)
   Base: body .form-control { border-bottom: 1px solid #fff }
   Designed for dark form backgrounds. If Silktide flags forms
   on a white/light background, uncomment the override below or
   target the specific form container with a darker color.
   ------------------------------------------------------------ */
/* Uncomment if forms render on light bg and #fff border fails 3:1
body #form .form-control {
  border-bottom-color: #595959;
}
*/

body #form input::placeholder,
body #form textarea::placeholder {
  color: #595959;
  opacity: 1;
}


/* ------------------------------------------------------------
   WCAG 1.4.3 Contrast Minimum (footer disclosure)
   Shared footer.min.css opacity:.6 → 0.85.
   ------------------------------------------------------------ */
body #form .footer-widget footer .footer-disclosure {
  opacity: 0.85;
}


/* ------------------------------------------------------------
   WCAG 1.4.1 Use of Color (inline links)
   Defensive underline rule on common Kentico content patterns.
   ------------------------------------------------------------ */
body #form .main-content-text a,
body #form .inner-page-main-content a,
body #form .mainContent a,
body #form main p a,
body #form article p a,
body #form .content p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body #form .btn,
body #form .button,
body #form header a,
body #form nav a,
body #form .navbar a,
body #form footer a,
body #form .footer-widget footer a,
body #form .footer-CTA-Button,
body #form .header-CTA-button,
body #form a.more-link,
body #form a.less-link {
  text-decoration: none;
}


/* ------------------------------------------------------------
   WCAG 2.2 AA 2.5.8 Target Size (Pointer)
   ------------------------------------------------------------ */
body .header-widget header .header-button.header-phone {
    width: 26px;
    line-height: 24px;
    margin-left: 24px;
}
/* ------------------------------------------------------------
   TFS 2870264 — WCAG 1.4.1 (homepage inline links)
   Dakota's homepage uses `<section class="welcomeSection">` and
   `<section class="locationSection">`. Inside each, content is
   split across `.staggered`, `.imgSide`, `.staggeredTwo`,
   `.staggeredSix` zones, each with a `.copy` text container
   (and sometimes `.expandable`). CTAs use `<a class="button">`
   — opted out below.
   ------------------------------------------------------------ */
body #form .welcomeSection .copy a,
body #form .welcomeSection .expandable a,
body #form .locationSection .copy a,
body #form .locationSection .expandable a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body #form .welcomeSection a.button,
body #form .welcomeSection .copy a.button,
body #form .locationSection a.button,
body #form .locationSection .copy a.button {
  text-decoration: none;
}
