/**
 * BGA accessibility overrides by Robin (https://thoughtbulb.dev)
 * Loaded after style.css — do not edit style.css for these rules.
 */

/* -------------------------------------------------------------------------
   Skip link — visually hidden until keyboard focus
   ------------------------------------------------------------------------- */

.skip-link {
	position: fixed;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background-color: #322f31 !important;
	color: #fff !important;
	font: normal 14px/1.4 Arial, sans-serif;
	text-decoration: none !important;
	border-radius: 0 0 4px 4px;
	white-space: nowrap;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	overflow: hidden;
	height: 1px;
	width: 1px;
	margin: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	clip: auto;
	clip-path: none;
	overflow: visible;
	height: auto;
	width: auto;
	padding: 0.75rem 1.25rem;
	outline: 3px solid #dbbd81 !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 3px #fff !important;
	text-decoration: none !important;
	color: #fff !important;
	background-color: #322f31 !important;
}

/* -------------------------------------------------------------------------
   Keyboard focus — visible for Tab navigation only, not mouse clicks
   ------------------------------------------------------------------------- */

/* Suppress focus ring when activated by mouse/touch */
a:not(.skip-link):focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
}

#nav a:focus:not(:focus-visible) {
	background-color: transparent;
}

.shiftnav ul.shiftnav-menu li.menu-item a:focus:not(:focus-visible) {
	background-color: transparent;
	box-shadow: none !important;
}

/* Keyboard navigation focus ring */
a:not(.skip-link):focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #dbbd81 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #322f31 !important;
}

.gr-cont a:focus-visible,
.main-cont a:focus-visible,
.readmore:focus-visible {
	outline: 3px solid #884825 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px rgba(136, 72, 37, 0.25) !important;
}

#nav a:focus-visible {
	outline: 3px solid #dbbd81 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff !important;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff !important;
	text-decoration: none;
}

#top a:focus-visible {
	outline: 3px solid #dbbd81 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff !important;
}

#fnav a:focus-visible,
#topinfo a:focus-visible,
#finfo #cont a:focus-visible,
#social a:focus-visible {
	outline: 3px solid #884825 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px rgba(136, 72, 37, 0.3) !important;
}

#shiftnav-toggle-main .shiftnav-toggle-burger:focus-visible,
#shiftnav-toggle-main.shiftnav-toggle-edge-right .shiftnav-toggle-burger:focus-visible {
	outline: 3px solid #dbbd81 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #322f31 !important;
}

.shiftnav ul.shiftnav-menu li.menu-item a:focus-visible {
	outline: 3px solid #dbbd81 !important;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 2px #322f31 !important;
	background-color: rgba(50, 47, 49, 0.08);
}

.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible,
.centered-btns_nav:focus-visible,
.flex-direction-nav a:focus-visible {
	outline: 3px solid #dbbd81 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #322f31 !important;
}

#fnav button:focus-visible {
	outline: 3px solid #884825 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px rgba(136, 72, 37, 0.3) !important;
}

/* Form fields — show focus for both click and keyboard */
input:focus,
select:focus,
textarea:focus {
	outline: 3px solid #884825 !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 3px rgba(136, 72, 37, 0.2) !important;
}

/* -------------------------------------------------------------------------
   Link contrast improvements (WCAG 1.4.3)
   ------------------------------------------------------------------------- */

.gr-cont a,
.main-cont a,
.readmore {
	color: #884825 !important;
}

.gr-cont a:hover,
.main-cont a:hover,
.readmore:hover {
	color: #5c3018 !important;
}

a:not(.skip-link) {
	color: #884825;
}

a:not(.skip-link):hover {
	color: #5c3018;
}

#finfo #cont li,
#finfo #cont li a {
	color: #6b5520;
}

/* Homepage h1 matches existing h2 section heading style */
.main-cont h1 {
	font: normal 35px/26px "HelveticaLT", Arial, sans-serif;
	color: #322f31;
	border-left: 4px solid #322f31;
	padding-left: 10px;
	margin-bottom: 15px;
	clear: left;
}

.main-cont h1 span {
	display: block;
	font-size: 20px;
	margin-top: 4px;
}
body .carousel-item a {
	color: #fff !important;
}

@media (max-width: 802px) {
	.main-cont h1 {
		font: normal 28px/23px "HelveticaLT", Arial, sans-serif;
	}
}

/* Read-more toggle buttons styled like links */
button.readmore {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

button.readmore:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Logo slider — fix conflict between style.css :first-child rule and ResponsiveSlides
   ------------------------------------------------------------------------- */

#slider1.rslides li,
#slider1.rslides li:first-child {
	position: absolute !important;
	display: block !important;
	float: none !important;
	width: 100% !important;
	height: 100% !important;
	left: 0 !important;
	top: 0 !important;
}

#slider1.rslides li img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

#slider1.rslides li[class*="_on"] {
	z-index: 2 !important;
}

#slider-wrap .centered-btns_nav {
	z-index: 5;
}

/* -------------------------------------------------------------------------
   Decorative icons — keep screen readers on link text / labels
   ------------------------------------------------------------------------- */

#topinfo .fas,
#finfo #cont .fas,
#social .fab,
#social svg {
	pointer-events: none;
}

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

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

	.rslides li {
		transition: none !important;
	}
}
