/**
 * Accessibility / WCAG helpers
 * Loaded after the main stylesheet so contrast and focus styles win.
 */

/* Skip link: hidden until focused */
.skip-link {
	position: absolute;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: #212721;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0.25rem;
	transform: translateY(-200%);
	transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
	transform: translateY(0);
	color: #fff !important;
	outline: 3px solid #ffcc00;
	outline-offset: 3px;
}

/* Yellow secondary buttons: white-on-yellow fails WCAG 1.4.3 (1.51:1). */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.btn-check:checked + .btn-secondary,
.btn-check:active + .btn-secondary,
.show > .btn-secondary.dropdown-toggle {
	color: #212721;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
	color: #212721;
}

/* Visible keyboard focus (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.navbar-toggler:focus-visible {
	outline: 3px solid #212721;
	outline-offset: 3px;
}

.btn-secondary:focus-visible,
.btn-primary:focus-visible {
	outline-offset: 3px;
}

/* Swiper / custom slider controls must meet 24px target size (WCAG 2.5.8) */
.swiper-button-next,
.swiper-button-prev,
[class$="-next"][role="button"],
[class$="-prev"][role="button"] {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Keep scroll-reveal content in the accessibility tree */
.gs_reveal {
	visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
	.gs_reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}

.navbar-toggler {
	min-width: 44px;
	min-height: 44px;
}

.site-header .navbar-toggler {
	background: transparent;
	border: 0;
	padding: 0;
	line-height: 0;
}

.site-header .navbar-toggler svg {
	display: block;
}

/* Brand green #6abf4b fails WCAG 1.4.3 on white (2.29:1). */
.tagline {
	color: #2d6b24;
}

.bg-dark .tagline,
.text-light .tagline,
.navbar-dark .tagline {
	color: #9fe08a;
}

/* Location cover card: frosted white so the photo shows through without washing out text. */
.cover_8 .location-info-card.bg-white {
	background-color: rgba(255, 255, 255, 0.78) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/*
 * Later cover/hero slides are h2 so the page keeps a single h1.
 * Theme h2 color is brand red; these titles sat on photos as white h1s.
 */
.cover_4 .swiper-slide h2.heading,
[class*="hero_"] .swiper-slide h2.heading {
	color: #fff !important;
	font-size: calc(1.5368rem + 3.4416vw);
}

@media (min-width: 1200px) {
	.cover_4 .swiper-slide h2.heading,
	[class*="hero_"] .swiper-slide h2.heading {
		font-size: 4.118rem;
	}
}
