/* Accessibility (ADA / WCAG 2.1 AA) fixes - Nov 2026 */

/* Text for screen readers only */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* "Skip to main content" link: hidden until it gets keyboard focus */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: #000;
	color: #fff !important;
	padding: 12px 18px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus {
	left: 10px;
	top: 10px;
	outline: 3px solid #ffbf47;
}
#main-content:focus {
	outline: none;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #ffbf47 !important;
	outline-offset: 2px;
}

/* Logo is now a <div> instead of <h1>/<h2>: keep the old layout */
#header #logo {
	float: left;
	display: inline-block;
	line-height: 1;
	position: relative;
	margin: 0;
}
@media screen and (max-width: 865px) {
	#header #logo {
		float: none;
		text-align: center;
		width: 100%;
		max-width: 100%;
		padding: 0;
	}
}

/* Homepage hero: one caption shown over the rotating images */
.relax-hero {
	position: relative;
}
.relax-hero .relax-hero-caption {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 5;
	pointer-events: none;
	background: transparent;
}
.relax-hero .relax-hero-caption a,
.relax-hero .relax-hero-caption button {
	pointer-events: auto;
}

/* Service flip cards: show the back (with the link) on keyboard focus, not only on hover */
.flip-box:focus-within .flip-box-inner {
	transform: rotateX(180deg) translateZ(1px);
}

/* Desktop dropdown menus: open on keyboard focus, not only on hover */
@media (min-width: 881px) {
	#menu-main-menu li:focus-within > .sub-menu,
	.toggle-menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}
}

/* Contact page section headings (were bold text): keep the old look */
.relax-contact-heading {
	font-family: inherit;
	font-size: 1em;
	font-weight: 700;
	color: inherit;
	line-height: inherit;
	margin: 0 0 6px;
}

@media (prefers-reduced-motion: reduce) {
	.flip-box-inner {
		transition: none;
	}
}
