/**
 * Luxe ADA Accessibility — front-end styles.
 *
 * Scoped defensively: everything is prefixed .lada- or targets :focus-visible,
 * so nothing here can change the site's normal appearance.
 */

/* -------------------------------------------------------------------------
 * Screen-reader-only helper
 * ---------------------------------------------------------------------- */

.lada-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;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* -------------------------------------------------------------------------
 * Skip link (visible only on keyboard focus)
 * ---------------------------------------------------------------------- */

a.lada-skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 100000;
	display: inline-block;
	padding: 12px 20px;
	background: #111111;
	color: #ffffff !important;
	font: 600 15px/1.2 "Open Sans", system-ui, sans-serif;
	text-decoration: none;
	border-radius: 0 0 6px 6px;
	border: 2px solid #e6b93e;
	transition: top .15s ease-in-out;
}

a.lada-skip-link:focus,
a.lada-skip-link:focus-visible {
	top: 0;
	outline: 3px solid #e6b93e;
	outline-offset: 2px;
}

body.admin-bar a.lada-skip-link:focus {
	top: 32px;
}

/* -------------------------------------------------------------------------
 * Strong focus outline (visitor preference from the widget)
 * ---------------------------------------------------------------------- */

/* Never let a stored preference remove focus again. */
html[data-lada-focus="strong"] :focus {
	outline: 4px solid #ff6a00 !important;
	outline-offset: 3px !important;
}

/* -------------------------------------------------------------------------
 * Background video pause control (WCAG 2.2.2)
 * ---------------------------------------------------------------------- */

.lada-media-toggle {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 30;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}

.lada-media-toggle:hover {
	background: rgba(0, 0, 0, .85);
}

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */

html.lada-reduced-motion *,
html[data-lada-motion="off"] * {
	animation-duration: .001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: .001ms !important;
	scroll-behavior: auto !important;
}

html[data-lada-motion="off"] .elementor-invisible {
	visibility: visible !important;
}

/* =========================================================================
 * Accessibility widget
 * ====================================================================== */

/* The theme styles bare `button:hover` / `button:focus`, which would otherwise
 * beat a single class selector — hence the doubled class and !important here. */
button.lada-launcher.lada-launcher,
button.lada-launcher.lada-launcher:hover,
button.lada-launcher.lada-launcher:focus,
button.lada-launcher.lada-launcher:active {
	position: fixed;
	z-index: 99990;
	width: var(--lada-size, 52px);
	height: var(--lada-size, 52px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	border: 2px solid var(--lada-accent, #e6b93e) !important;
	border-radius: 50% !important;
	background: var(--lada-bg, #111111) !important;
	background-color: var(--lada-bg, #111111) !important;
	background-image: none !important;
	color: var(--lada-accent, #e6b93e) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

button.lada-launcher.lada-launcher:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
}

.lada-launcher:focus-visible {
	outline: 3px solid #ffffff !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px rgba(17, 17, 17, .75) !important;
}

.lada-launcher__icon {
	display: inline-flex;
	pointer-events: none;
}

.lada-panel {
	position: fixed;
	bottom: calc(var(--lada-offset, 24px) + var(--lada-size, 52px) + 14px);
	z-index: 99991;
	width: 328px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - var(--lada-offset, 24px) - var(--lada-size, 52px) - 28px);
	overflow-y: auto;
	overscroll-behavior: contain;
	/* No visible scrollbar — the panel is sized to fit its own content. */
	scrollbar-width: none;
	-ms-overflow-style: none;
	background: #ffffff;
	color: #1a1a1a;
	border: 1px solid #e4e4e4;
	border-top: 4px solid var(--lada-accent, #e6b93e);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

.lada-panel::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

.lada-panel[hidden] {
	display: none;
}

.lada-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 14px;
	background: var(--lada-bg, #111111);
	color: #ffffff;
	border-radius: 6px 6px 0 0;
	position: sticky;
	top: 0;
	z-index: 2;
}

.lada-panel__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: "Open Sans", system-ui, sans-serif !important;
	font-size: 17px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: .02em;
	color: #ffffff !important;
}

.lada-panel .lada-panel__close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 6px;
	background: transparent;
	color: #ffffff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.lada-panel .lada-panel__close:hover {
	background: rgba(255, 255, 255, .14);
}

.lada-panel__body {
	padding: 11px 14px 14px;
}

.lada-group {
	margin-bottom: 10px;
}

.lada-group__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #5a5a5a;
}

.lada-steps {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lada-step {
	flex: 0 0 auto;
	min-width: 46px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #f7f7f7;
	color: #1a1a1a;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.lada-step:hover {
	background: #efefef;
	border-color: #9a9a9a;
}

.lada-steps__value {
	flex: 1 1 auto;
	text-align: center;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lada-options {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lada-options__item {
	margin: 0 0 4px !important;
	padding: 0 !important;
	list-style: none !important;
}

.lada-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 38px;
	padding: 6px 11px;
	border: 1px solid #e0e0e0;
	border-radius: 7px;
	background: #fafafa;
	color: #1a1a1a;
	font-size: 14px;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.lada-toggle:hover {
	background: #f1f1f1;
	border-color: #b9b9b9;
}

.lada-toggle__switch {
	flex: 0 0 auto;
	width: 34px;
	height: 20px;
	border-radius: 999px;
	background: #c8c8c8;
	position: relative;
	transition: background .15s ease;
}

.lada-toggle__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform .15s ease;
}

.lada-toggle[aria-pressed="true"] {
	background: #fff8e6;
	border-color: var(--lada-accent, #e6b93e);
}

.lada-toggle[aria-pressed="true"] .lada-toggle__switch {
	background: #7a5c0c;
}

.lada-toggle[aria-pressed="true"] .lada-toggle__switch::after {
	transform: translateX(14px);
}

.lada-panel__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ececec;
}

.lada-reset {
	min-height: 36px;
	padding: 7px 15px;
	border: 1px solid #111111;
	border-radius: 6px;
	background: #111111;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.lada-reset:hover {
	background: #000000;
}

.lada-statement {
	font-size: 13.5px;
	color: #6b5200 !important;
	text-decoration: underline;
}



/* Neutralise inherited theme button styling inside the widget panel. */
.lada-panel button,
.lada-panel button:hover,
.lada-panel button:focus {
	font-family: "Open Sans", system-ui, sans-serif !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	background-image: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	width: auto;
}

.lada-panel .lada-toggle {
	width: 100%;
	background-color: #fafafa !important;
	color: #1a1a1a !important;
}

.lada-panel .lada-toggle[aria-pressed="true"] {
	background-color: #fff8e6 !important;
}

.lada-panel .lada-step {
	background-color: #f7f7f7 !important;
	color: #1a1a1a !important;
}

.lada-panel .lada-reset {
	background-color: #111111 !important;
	color: #ffffff !important;
}

.lada-panel .lada-panel__close {
	background-color: transparent !important;
	color: #ffffff !important;
}


/* Short screens (small laptops): lay the options out in two columns so the
   panel never needs an inner scrollbar. */
@media (max-height: 760px) and (min-width: 420px) {
	.lada-panel {
		width: 420px;
	}

	.lada-options {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 6px;
	}

	.lada-options__item {
		margin: 0 !important;
	}

	.lada-toggle__text {
		padding-right: 2px;
	}
}

@media (max-height: 620px) {
	.lada-toggle {
		min-height: 34px;
		font-size: 13px;
	}
}

/* =========================================================================
 * User preference modes (applied to <html> by the widget)
 * ====================================================================== */

/* Highlight links */
html[data-lada-links="on"] a:not(.lada-skip-link):not(.lada-launcher) {
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
	outline: 1px dashed currentColor;
	outline-offset: 2px;
}

/* Readable font */
html[data-lada-font="on"] body,
html[data-lada-font="on"] body * :not(.lada-panel):not(.lada-panel *) {
	font-family: "Atkinson Hyperlegible", "Verdana", "Tahoma", system-ui, sans-serif !important;
	letter-spacing: .01em !important;
}

/* Text spacing (WCAG 1.4.12 values) */
html[data-lada-spacing="on"] body p,
html[data-lada-spacing="on"] body li,
html[data-lada-spacing="on"] body span,
html[data-lada-spacing="on"] body div,
html[data-lada-spacing="on"] body h1,
html[data-lada-spacing="on"] body h2,
html[data-lada-spacing="on"] body h3,
html[data-lada-spacing="on"] body h4,
html[data-lada-spacing="on"] body h5,
html[data-lada-spacing="on"] body h6 {
	line-height: 1.6 !important;
	letter-spacing: .12em !important;
	word-spacing: .16em !important;
}

html[data-lada-spacing="on"] body p {
	margin-bottom: 2em !important;
}

html[data-lada-spacing="on"] .lada-panel * {
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

/* High contrast */
html[data-lada-contrast="on"] body :not(.lada-panel):not(.lada-panel *):not(.lada-launcher):not(.lada-launcher *) {
	background-color: #ffffff !important;
	color: #000000 !important;
	text-shadow: none !important;
}

html[data-lada-contrast="on"] body a:not(.lada-skip-link) {
	color: #00368f !important;
	text-decoration: underline !important;
}

html[data-lada-contrast="on"] body button,
html[data-lada-contrast="on"] body .elementor-button,
html[data-lada-contrast="on"] body input[type="submit"] {
	background-color: #000000 !important;
	color: #ffffff !important;
	border: 2px solid #000000 !important;
}

html[data-lada-contrast="on"] body img,
html[data-lada-contrast="on"] body video {
	filter: grayscale(20%) contrast(1.15);
}

/* Inverted / dark */
html[data-lada-invert="on"] body :not(.lada-panel):not(.lada-panel *):not(.lada-launcher):not(.lada-launcher *) {
	background-color: #0d0d0d !important;
	color: #f2f2f2 !important;
	border-color: #4a4a4a !important;
	text-shadow: none !important;
}

html[data-lada-invert="on"] body a:not(.lada-skip-link) {
	color: #ffd873 !important;
}

html[data-lada-invert="on"] body img,
html[data-lada-invert="on"] body video {
	filter: brightness(.86);
}

/* Large cursor */
html[data-lada-cursor="on"],
html[data-lada-cursor="on"] * {
	cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNNiAyIEw2IDM4IEwxNiAyOCBMMjIgNDIgTDI4IDM5IEwyMiAyNiBMMzYgMjYgWiIgZmlsbD0iIzAwMCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4="), auto !important;
}

/* Reading guide */
.lada-guide {
	position: fixed;
	left: 0;
	right: 0;
	height: 44px;
	z-index: 99989;
	pointer-events: none;
	border-top: 2px solid rgba(230, 185, 62, .95);
	border-bottom: 2px solid rgba(230, 185, 62, .95);
	background: rgba(230, 185, 62, .12);
	display: none;
}

html[data-lada-guide="on"] .lada-guide {
	display: block;
}


/* Read-aloud highlight */
.lada-speaking {
	outline: 3px solid #e6b93e !important;
	outline-offset: 2px !important;
	background-color: rgba(230, 185, 62, .18) !important;
	border-radius: 3px;
}

/* Keep the panel's own interactions snappy — no inherited theme transitions. */
.lada-panel,
.lada-panel * {
	transition-property: background-color, border-color, color, transform !important;
	transition-duration: .12s !important;
}

.lada-panel .lada-toggle {
	will-change: background-color;
}

@media print {
	.lada-launcher,
	.lada-panel,
	.lada-guide,
	.lada-media-toggle {
		display: none !important;
	}
}
