/*
 * Compatibility with the WP Accessibility high-contrast toolbar.
 * The plugin keeps its own black/white palette; we only make sure the theme's
 * scroll animations and decorative layers cannot hide content in that mode.
 */
 
/* AOS leaves [data-aos] elements at opacity 0 until they are animated in.
   Contrast mode shifts the layout, so reveal everything unconditionally. */
html body.contrast [data-aos],
html body.contrast [data-aos].aos-init,
html body.contrast [data-aos].aos-animate {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    pointer-events: auto !important;
}

/* The plugin paints `background: black !important` on html, body, div, section,
   p, li, span, etc. Positioned theme layers (hero media, road items, cards) then
   stack their black boxes over the content. Keep the page itself black (html and
   body) and let everything inside the content and footer be transparent, so
   nothing can paint over anything else. Header and menu keep the plugin's black
   so dropdowns stay readable. */
html body.contrast .siteContent *:not(button):not(input):not(select):not(textarea):not(img),
html body.contrast .siteFooter,
html body.contrast .siteFooter *:not(button):not(input):not(select):not(textarea):not(img) {
    background-color: transparent !important;
    background-image: none !important;
}

/* The plugin gives ::before/::after of nearly every element an opaque black
   background. The theme uses many absolutely positioned pseudo-elements as
   decoration (hero gradient, blobs, road items), which then become solid black
   boxes covering the content. Make them transparent instead. */
html body.contrast *::before,
html body.contrast *::after {
    background: transparent !important;
    background-image: none !important;
}

html body.contrast .homeHero::before,
html body.contrast .hero::before {
    display: none !important;
}

/* Real glyph-like pseudo-elements and elements we still want to see. */
html body.contrast .homeBlock li::before {
    background: currentColor !important;
}

html body.contrast .btnMenu__hamburger span {
    background: #fff !important;
}

html body.contrast .siteNav__closeButton::before,
html body.contrast .siteNav__closeButton::after {
    background: #fff !important;
}

body.contrast [class*="parallax"],
body.contrast [class*="Parallax"] {
    background-attachment: scroll !important;
    background-image: none !important;
}

/* The plugin gives every element an opaque black background; an absolutely
   positioned SVG would then paint over the items it sits behind. */
body.contrast .road__road {
    background: transparent !important;
}

body.contrast * {
    mix-blend-mode: normal !important;
}
