/* Avitan Accessibility – display modes. Each mode is a class on <html>, set by the toolbar
   (or always, for .avl-contrastfix when the "always" setting is chosen). */

/* ---------- Adjusted contrast (accessible gold #7E6948) ----------
   Known gold-text selectors are set here so there is no flash; core.js handles the rest. */
html.avl-contrastfix .av-acc__q,
html.avl-contrastfix .av-acc__title,
html.avl-contrastfix .av-svc__row,
html.avl-contrastfix .av-svc__title,
html.avl-contrastfix .av-phone,
html.avl-contrastfix .av-contact__social .elementor-icon-list-item,
html.avl-contrastfix .av-contact__social .elementor-icon-list-item > a,
html.avl-contrastfix .av-contact__social .elementor-icon-list-text,
html.avl-contrastfix .elementor-field-type-acceptance label a,
html.avl-contrastfix .avl-gold-text {
	color: #7E6948 !important;
}
html.avl-contrastfix .elementor-field-type-acceptance label {
	color: #5F6061 !important;
}
/* Header menu hover / active on the light header */
html.avl-contrastfix .av-header .elementor-nav-menu--main > .elementor-nav-menu > li > a.elementor-item:hover,
html.avl-contrastfix .av-header .elementor-nav-menu--main > .elementor-nav-menu > li > a.elementor-item:focus,
html.avl-contrastfix .av-header .elementor-nav-menu--main > .elementor-nav-menu > li > a.elementor-item-active,
html.avl-contrastfix .av-header .av-has-svmenu:hover > a.elementor-item {
	color: #7E6948 !important;
}
/* With the darker gold, links in running text are underlined so they stay distinguishable (1.4.1) */
html.avl-contrastfix .avl-ul,
html.avl-contrastfix :is(p, li, label, td, dd) a:not(.elementor-button):not(.elementor-item):not(nav a):not(.av-svmenu a):not(.av-mm a):not(.av-header a):not(#avl-root a) {
	text-decoration: underline !important;
	text-underline-offset: 0.18em;
}
/* Gold buttons with light text */
html.avl-contrastfix .avl-gold-bg {
	background-color: #7E6948 !important;
	border-color: #7E6948 !important;
}
/* Dark text on gold blocks */
html.avl-contrastfix .avl-dark-on-gold {
	color: #1F2024 !important;
}

/* ---------- High contrast (black / white / yellow) ---------- */
html.avl-hc body *:not(#avl-root):not(#avl-root *):not(img):not(video):not(svg):not(svg *):not(iframe) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.avl-hc body {
	background: #000 !important;
}
html.avl-hc body a:not(#avl-root *),
html.avl-hc body a:not(#avl-root *) * {
	color: #ffeb3b !important;
	text-decoration: underline !important;
}
html.avl-hc body svg:not(#avl-root svg) {
	color: #fff !important;
	fill: currentColor;
}
html.avl-hc .av-cursor { display: none !important; }

/* ---------- Grayscale ---------- */
html.avl-gray body > *:not(#avl-root) {
	filter: grayscale(100%) !important;
}

/* ---------- Highlight links ---------- */
html.avl-links body a:not(#avl-root *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	outline: 2px dashed currentColor !important;
	outline-offset: 2px !important;
}

/* ---------- Highlight headings ---------- */
html.avl-headings body :is(h1, h2, h3, h4, h5, h6):not(#avl-root *) {
	outline: 2px solid #7E6948 !important;
	outline-offset: 4px !important;
}

/* ---------- Readable font ---------- */
html.avl-font body *:not(#avl-root *):not(i):not(svg):not(svg *):not([class*="icon"]):not([class*="eicon"]):not([class*="fa-"]) {
	font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
	font-style: normal !important;
}

/* ---------- Text spacing (WCAG 1.4.12 values) ---------- */
html.avl-spacing body *:not(#avl-root *) {
	line-height: 1.8 !important;
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}
html.avl-spacing body p:not(#avl-root *) {
	margin-bottom: 2em !important;
}

/* ---------- Stop animations ---------- */
html.avl-still *,
html.avl-still *::before,
html.avl-still *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}
html.avl-still .elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
}
html.avl-still .av-cursor { display: none !important; }

/* ---------- Big cursor ---------- */
html.avl-cursor,
html.avl-cursor body * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M4 2 L4 36 L13 28 L19 42 L25 39 L19 26 L31 26 Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.avl-cursor .av-cursor { display: none !important; }
html.avl-cursor body { cursor: auto; }
