/* LTHI Accessibility Enhancements v1.2.0 */

:root {
	--lthi-gold-text: #8A5A00;   /* 5.9:1 on white, 5.3:1 on light grey */
	--lthi-on-gold: #1A1A1A;     /* 9.9:1 on #FFB533 */
	--lthi-focus: #111111;
	--lthi-focus-halo: #FFFFFF;
}

/* ---------- Skip link ---------- */
.lthi-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100000;
	padding: 12px 20px;
	background: #111;
	color: #fff !important;
	font-size: 18px;
	font-weight: 700;
	border-radius: 6px;
	text-decoration: underline;
	transition: top .15s ease;
}
.lthi-skip-link:focus {
	top: 16px;
	outline: 3px solid var(--lthi-focus-halo);
	outline-offset: 2px;
}
body.admin-bar .lthi-skip-link:focus { top: 48px; }

#lthi-main:focus { outline: none; }

/* ---------- Visually hidden text (still read by screen readers) ---------- */
.lthi-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;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- Visible keyboard focus ----------
   Two-tone ring (dark outline + white halo) so it shows on light, dark and photo backgrounds.
   Only for keyboard users (:focus-visible), so mouse clicks look unchanged. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
	outline: 3px solid var(--lthi-focus) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px var(--lthi-focus-halo) !important;
	border-radius: 4px;
}

/* ---------- Colour contrast fixes (classes added by a11y.js) ---------- */
/* Gold text on a light background -> darker gold */
.lthi-gold-text,
.lthi-gold-text * {
	color: var(--lthi-gold-text) !important;
}
/* White text on a gold button -> near-black text (not while hovered, when the theme changes the background) */
.lthi-on-gold:not(:hover),
.lthi-on-gold:not(:hover) * {
	color: var(--lthi-on-gold) !important;
	fill: var(--lthi-on-gold) !important;
}

/* ---------- Page banner breadcrumb ----------
   White breadcrumb text sits on the orange brush shape (about 3.4:1).
   Making it large and bold brings it within the 3:1 large-text threshold. */
.banner_title_inner .breadcrumb,
.banner_title_inner .breadcrumb a,
.banner_title_inner .breadcrumb li {
	font-size: 19px !important;
	font-weight: 700 !important;
}

/* ---------- Contact Form 7 forms (Contact + Volunteer) ---------- */
.lthi-form .lthi-field { margin-bottom: 20px; }
.lthi-form label {
	display: block;
	margin-bottom: 8px;
	color: #232323;
	font-size: 18px;
	font-weight: 600;
}
.lthi-form .lthi-req,
.lthi-form .lthi-opt { font-weight: 400; color: #4A4A4A; }
.lthi-form-note { color: #4A4A4A !important; font-size: 16px; margin-bottom: 24px; }
.lthi-form-note a { color: #9A3412 !important; text-decoration: underline; }

/* Field edges must be visible (3:1 against the cream panel and white field). */
.lthi-form input[type="text"],
.lthi-form input[type="email"],
.lthi-form input[type="tel"],
.lthi-form select,
.lthi-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: #FFFFFF !important;
	border: 1.5px solid #767676 !important;
	border-radius: 8px;
	color: #131313;
	font-size: 17px;
}
.lthi-form textarea { min-height: 120px; }
.lthi-form .select2-container { display: none !important; }
.lthi-form select {
	position: static !important;
	clip: auto !important;
	clip-path: none !important;
	height: auto !important;
	overflow: visible !important;
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23131313' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	cursor: pointer;
}
.lthi-form ::placeholder { color: #6B6B6B; opacity: 1; }

/* Submit: white text on the brand orange is 3.3:1, so the button uses a deeper orange (5.2:1). */
.lthi-form .wpcf7-submit {
	background: #C2410C !important;
	border-color: #C2410C !important;
	color: #FFFFFF !important;
	font-weight: 700;
	min-height: 52px;
	cursor: pointer;
}
.lthi-form .wpcf7-submit:hover { background: #9A3412 !important; border-color: #9A3412 !important; }

/* Errors and status messages: readable, not colour-only. */
.lthi-form .wpcf7-not-valid { border-color: #B91C1C !important; border-width: 2px !important; }
.lthi-form .wpcf7-not-valid-tip { color: #B91C1C !important; font-size: 16px; font-weight: 600; margin-top: 6px; }
.lthi-form .wpcf7-not-valid-tip::before { content: "Error: "; }
.wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 14px 16px !important;
	border-width: 2px !important;
	border-radius: 8px;
	color: #131313;
	font-size: 17px;
	background: #FFFFFF;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #B91C1C !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #15803D !important; }

/* ---------- Carousel pause / play control ---------- */
.lthi-carousel-wrap { position: relative; }
.lthi-carousel-toggle {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: rgba(17, 17, 17, .85);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.lthi-carousel-toggle:hover { background: #111; }
.lthi-carousel-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Mobile menu close button ---------- */
.mobile_menu_box .close-btn[role="button"] { cursor: pointer; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.elementor-invisible { visibility: visible !important; }
}
