/**
 * BruderPro accessibility remediation styles (WCAG 2.2 AA).
 */

/* ---- Visible, high-contrast focus indicators (1.4.11 / 2.4.7) ---- */
.bruder-a11y :focus {
	outline: none;
}

.bruder-a11y :focus-visible,
.bruder-a11y a:focus-visible,
.bruder-a11y button:focus-visible,
.bruder-a11y input:focus-visible,
.bruder-a11y select:focus-visible,
.bruder-a11y textarea:focus-visible,
.bruder-a11y summary:focus-visible,
.bruder-a11y [tabindex]:focus-visible,
.bruder-a11y .elementor-button:focus-visible,
.bruder-a11y .elementor-item:focus-visible,
.bruder-a11y .n2-ss-arrow:focus-visible,
.bruder-a11y .n2-ss-bullet:focus-visible,
.bruder-a11y .n2-ss-bullet-dot:focus-visible,
.bruder-a11y .elementor-menu-toggle:focus-visible,
.bruder-a11y .elementor-search-form__toggle:focus-visible,
.bruder-a11y .mob-menu-header-holder button:focus-visible,
.bruder-a11y .mobmenu-trigger:focus-visible,
.bruder-a11y .mob-cancel-button:focus-visible,
.bruder-a11y .bruder-a11y-carousel-toggle:focus-visible {
	outline: 3px solid #ffd100 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #163a79 !important;
}

/* Dark-header controls: ensure focus ring remains visible on blue */
.elementor-3888 a:focus-visible,
.elementor-3888 button:focus-visible,
.elementor-3888 .elementor-item:focus-visible,
.elementor-3888 .elementor-button:focus-visible {
	outline: 3px solid #ffd100 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #0b1f44 !important;
}

/* ---- Green CTA contrast: white on darker green (>=4.5:1) ---- */
.elementor-3888 .elementor-element-ae20bd1 .elementor-button,
.elementor-button[style*="388E3C"],
a.elementor-button[href*="order.bruder"],
.elementor-3888 .elementor-button.elementor-size-sm,
button.elementor-button,
.elementor-button {
	/* Applied selectively below for known green buttons */
}

.elementor-3888 .elementor-element.elementor-element-ae20bd1 .elementor-button,
.elementor-6123 .elementor-button[style*="background"],
a.elementor-button.elementor-size-sm {
	/* fallback handled by specific selectors */
}

/* Known green CTAs across header/home */
.elementor-3888 .elementor-element-ae20bd1 .elementor-button,
.elementor-6123 a.elementor-button,
.n2-ss-button,
.elementor-button.elementor-animation-grow {
	/* keep existing layout */
}

.elementor-3888 .elementor-element.elementor-element-ae20bd1 .elementor-button,
.elementor-6123 .elementor-element .elementor-button[href],
body.bruder-a11y .elementor-button {
	/* Do not blanket-override all buttons; target greens via attribute/class patterns */
}

body.bruder-a11y .elementor-3888 .elementor-element-ae20bd1 .elementor-button,
body.bruder-a11y a.elementor-button[style*="388E3C"],
body.bruder-a11y .elementor-button.elementor-size-sm[style*="388"],
body.bruder-a11y .bruder-green-cta,
body.bruder-a11y .elementor-3888 .elementor-button.elementor-button-link[href*="order.bruder"] {
	background-color: #1b5e20 !important;
	border-color: #1b5e20 !important;
	color: #ffffff !important;
}

body.bruder-a11y .elementor-3888 .elementor-element-ae20bd1 .elementor-button:hover,
body.bruder-a11y .elementor-3888 .elementor-element-ae20bd1 .elementor-button:focus {
	background-color: #145218 !important;
	border-color: #145218 !important;
	color: #ffffff !important;
}

/* Broader green CTA family used sitewide (#388E3C / similar) */
body.bruder-a11y .elementor-button[style*="388E3C"],
body.bruder-a11y .elementor-button[style*="388e3c"],
body.bruder-a11y .elementor-button[style*="7CB83D"],
body.bruder-a11y .elementor-button[style*="7cb83d"] {
	background-color: #1b5e20 !important;
	color: #ffffff !important;
}

/* Elementor kit / generated green fills */
body.bruder-a11y .elementor-element[data-settings*="388E3C"] .elementor-button,
body.bruder-a11y .elementor-widget-button .elementor-button {
	/* Prefer specific: buttons with green backgrounds via CSS vars from Elementor posts */
}

/* Force Order Now / common greens from Elementor CSS classes */
body.bruder-a11y .elementor-3888 .elementor-element.elementor-element-ae20bd1 .elementor-button {
	background-color: #1b5e20 !important;
	color: #fff !important;
}

/* Any Elementor-generated #388E3C green buttons */
body.bruder-a11y .elementor-button {
	/* JS adds .bruder-a11y-green-fix for computed greens */
}

/* Force contrast for Order Now specifically */
body.bruder-a11y .elementor-3888 .elementor-element-ae20bd1 .elementor-button,
body.bruder-a11y .elementor-3888 .elementor-element-ae20bd1 .elementor-button:visited {
	background-color: #1b5e20 !important;
	border-color: #1b5e20 !important;
	color: #ffffff !important;
}

/* Light-blue link text on dark blue slider backgrounds */
body.bruder-a11y #n2-ss-4 a:not(.n2-ss-button):not(.elementor-button),
body.bruder-a11y .n2-ss-slider a.n2-ow:not(.n2-ss-button) {
	color: #ffffff !important;
	text-decoration: underline !important;
	text-underline-offset: 0.12em;
}

body.bruder-a11y #n2-ss-4 a:not(.n2-ss-button):hover {
	color: #ffd100 !important;
}

/* Keyboard support styling for FAQ toggle */
body.bruder-a11y .ewd-ufaq-faq-toggle {
	cursor: pointer;
}
body.bruder-a11y .ewd-ufaq-faq-toggle:focus-visible {
	outline: 3px solid #ffd100 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #163a79 !important;
}

/* Preserve heading look without heading element inside toggle */
body.bruder-a11y .ewd-ufaq-faq-title-heading {
	font-weight: 700;
	font-size: 1.15em;
	margin: 0;
}

/* Slider CTA greens */
body.bruder-a11y #n2-ss-4 .n2-ss-button,
body.bruder-a11y #n2-ss-4 a.n2-ow[style*="background"] {
	/* JS adds .bruder-a11y-green-fix when detected */
}

body.bruder-a11y .bruder-a11y-green-fix {
	background-color: #1b5e20 !important;
	border-color: #1b5e20 !important;
	color: #ffffff !important;
}

/* ---- Footer / light-grey text contrast ---- */
body.bruder-a11y .elementor-3785,
body.bruder-a11y .elementor-location-footer {
	/* ensure readable greys */
}

body.bruder-a11y .elementor-3785 .elementor-widget-text-editor,
body.bruder-a11y .elementor-3785 .elementor-heading-title,
body.bruder-a11y .elementor-3785 p,
body.bruder-a11y .elementor-3785 .elementor-icon-list-text,
body.bruder-a11y .elementor-3785 a {
	/* only light greys get forced */
}

body.bruder-a11y .elementor-3785 [style*="color:#999"],
body.bruder-a11y .elementor-3785 [style*="color: #999"],
body.bruder-a11y .elementor-3785 [style*="color:#aaa"],
body.bruder-a11y .elementor-3785 [style*="color:#bbb"],
body.bruder-a11y .elementor-3785 [style*="color:#ccc"],
body.bruder-a11y .elementor-3785 [style*="color:#767676"],
body.bruder-a11y .elementor-3785 [style*="color:#888"] {
	color: #595959 !important;
}

body.bruder-a11y .elementor-3785 .elementor-widget-text-editor,
body.bruder-a11y footer .elementor-widget-text-editor,
body.bruder-a11y .elementor-location-footer .elementor-widget-text-editor p {
	color: #595959 !important;
}

/* ---- Inline / body links: not color alone ---- */
body.bruder-a11y .elementor-widget-text-editor a,
body.bruder-a11y .entry-content a:not(.elementor-button):not(.btn):not(.button),
body.bruder-a11y .elementor-widget-theme-post-content a:not(.elementor-button),
body.bruder-a11y .ewd-ufaq-faq-body a,
body.bruder-a11y article a:not(.elementor-button):not(.btn) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

body.bruder-a11y .elementor-nav-menu a,
body.bruder-a11y .elementor-button,
body.bruder-a11y a.elementor-button,
body.bruder-a11y .elementor-icon-list-item a {
	text-decoration: none;
}

body.bruder-a11y .elementor-widget-text-editor a:hover,
body.bruder-a11y .entry-content a:not(.elementor-button):hover {
	text-decoration-thickness: 2px;
	color: #0b3d91 !important;
}

/* ---- Nav dropdown visual affordance ---- */
body.bruder-a11y .elementor-nav-menu--main .menu-item-has-children > a.elementor-item::after,
body.bruder-a11y .elementor-nav-menu--dropdown .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.4em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-0.1em);
	vertical-align: middle;
	opacity: 0.95;
}

/* ---- Mobile menu contrast (close + chevrons) ---- */
body.bruder-a11y .mobmenu-content,
body.bruder-a11y .mob-menu-slideout,
body.bruder-a11y #mobmenuleft,
body.bruder-a11y .mobmenul-container {
	/* ensure white icons */
}

body.bruder-a11y .mob-cancel-button,
body.bruder-a11y .mob-cancel-button:before,
body.bruder-a11y .mob-cancel-button:after,
body.bruder-a11y .mob-expand-submenu,
body.bruder-a11y .mob-expand-submenu i,
body.bruder-a11y .mob-expand-submenu:before,
body.bruder-a11y .mobmenu .mob-expand-submenu,
body.bruder-a11y .mobmenu-content .mob-expand-submenu,
body.bruder-a11y #mobmenuleft .mob-expand-submenu,
body.bruder-a11y .mobmenu-content a .mob-icon-down-open,
body.bruder-a11y .mobmenu-content .mob-icon-cancel {
	color: #ffffff !important;
	fill: #ffffff !important;
	border-color: #ffffff !important;
	opacity: 1 !important;
}

body.bruder-a11y .mobmenu-content .sub-menu a,
body.bruder-a11y #mobmenuleft .sub-menu a,
body.bruder-a11y .mobmenu-content .sub-menu li a {
	color: #ffffff !important;
}

/* Elementor mobile hamburger / close icons */
body.bruder-a11y .elementor-menu-toggle,
body.bruder-a11y .elementor-menu-toggle i,
body.bruder-a11y .elementor-menu-toggle svg {
	color: #ffffff !important;
	fill: #ffffff !important;
}

/* ---- Carousel controls ---- */
body.bruder-a11y .bruder-a11y-carousel-controls {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 0.5rem 0 1rem;
	position: relative;
	z-index: 5;
}

body.bruder-a11y .bruder-a11y-carousel-toggle {
	appearance: none;
	border: 2px solid #163a79;
	background: #ffffff;
	color: #163a79;
	font-weight: 700;
	padding: 0.4rem 0.9rem;
	border-radius: 4px;
	cursor: pointer;
	min-height: 44px;
	min-width: 44px;
}

body.bruder-a11y .n2-ss-arrow,
body.bruder-a11y .n2-ss-bullet,
body.bruder-a11y .n2-ss-bullet-dot {
	min-width: 44px;
	min-height: 44px;
}

/* ---- Text spacing / truncation resilience ---- */
body.bruder-a11y .elementor-heading-title,
body.bruder-a11y .elementor-widget-text-editor,
body.bruder-a11y .elementor-button-text,
body.bruder-a11y .elementor-nav-menu .elementor-item {
	overflow: visible !important;
	text-overflow: unset !important;
	white-space: normal !important;
	line-height: 1.5 !important;
}

body.bruder-a11y .elementor-widget-heading .elementor-widget-container,
body.bruder-a11y .elementor-widget-text-editor .elementor-widget-container {
	overflow: visible !important;
	max-height: none !important;
}

/* ---- Reflow / 400% zoom helpers ---- */
@media (max-width: 1280px) {
	body.bruder-a11y .elementor-nav-menu--main.elementor-nav-menu__container {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	body.bruder-a11y .n2-ss-slider,
	body.bruder-a11y #n2-ss-4 {
		min-height: auto !important;
	}

	body.bruder-a11y .n2-ss-layer {
		max-width: 100% !important;
	}

	body.bruder-a11y .elementor-3888 .elementor-nav-menu--main {
		display: none !important;
	}
}

/* ---- Filter tags selected state (not color alone) ---- */
body.bruder-a11y .post-filter button.tax_tag.active,
body.bruder-a11y .post-filter button.tax_category.active,
body.bruder-a11y .pf-field button.active {
	outline: 2px solid #163a79;
	outline-offset: 2px;
	text-decoration: underline;
	font-weight: 700;
}

/* ---- FAQ accordion ---- */
body.bruder-a11y .ewd-ufaq-faq-toggle > button.ewd-ufaq-post-margin,
body.bruder-a11y button.ewd-ufaq-post-margin {
	display: block;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

body.bruder-a11y .ewd-ufaq-post-margin-symbol {
	aria-hidden: true;
}

body.bruder-a11y .faq-toggler,
body.bruder-a11y button.faq-toggler {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* ---- Decorative SVGs / icons ---- */
body.bruder-a11y .elementor-icon svg[aria-hidden="true"],
body.bruder-a11y i[aria-hidden="true"] {
	pointer-events: none;
}

/* ---- Search results heading visibility ---- */
body.bruder-a11y .search-results .page-title,
body.bruder-a11y .search .ast-archive-description,
body.bruder-a11y h1.page-title {
	color: #163a79 !important;
	opacity: 1 !important;
	clip: auto !important;
	position: static !important;
	height: auto !important;
	width: auto !important;
	overflow: visible !important;
}

/* ---- Tabs selected contrast ---- */
body.bruder-a11y [role="tab"][aria-selected="true"],
body.bruder-a11y .elementor-tab-title[aria-selected="true"],
body.bruder-a11y .e-n-tab-title[aria-selected="true"] {
	color: #ffffff !important;
	background-color: #163a79 !important;
	border-color: #163a79 !important;
	text-decoration: underline;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	body.bruder-a11y *,
	body.bruder-a11y *::before,
	body.bruder-a11y *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Skip link ---- */
body.bruder-a11y .bruder-a11y-skip:focus,
body.bruder-a11y .skip-link:focus {
	position: fixed !important;
	top: 10px !important;
	left: 10px !important;
	z-index: 100000 !important;
	padding: 0.75rem 1rem !important;
	background: #163a79 !important;
	color: #ffffff !important;
	clip: auto !important;
	width: auto !important;
	height: auto !important;
	outline: 3px solid #ffd100 !important;
}

/* ---- Landmark helpers ---- */
body.bruder-a11y .elementor-location-header > .elementor-section:first-child {
	/* header already uses <header> */
}

body.bruder-a11y .elementor-location-footer {
	/* JS sets role=contentinfo if needed */
}

/* ---- Hide decorative focus targets ---- */
body.bruder-a11y a[tabindex="-1"] img[alt=""],
body.bruder-a11y img[alt=""][tabindex] {
	/* JS removes bad tabindex */
}

/* ---- Pagination current page ---- */
body.bruder-a11y .page-numbers.current,
body.bruder-a11y .premium-blog-pagination-container .current,
body.bruder-a11y nav[aria-label="Pagination"] .current {
	font-weight: 700;
	text-decoration: underline;
}

/* ---- Catalog / tag filters ---- */
body.bruder-a11y [aria-pressed="true"] {
	outline: 2px solid #163a79;
	outline-offset: 2px;
	font-weight: 700;
}
