/* Header and booking behaviour synchronized with AHT CarGate. */

#nav3 {
  overflow: hidden;
  /* margin-top: 0em; */
}

#nav3 a {

  color: #f2f2f2;
  text-align: center;
  padding: 6px 6px;
  text-decoration: none;

}






.sticky {
  position: fixed;
  top: 0;
	left: 0;
  width: 100%;
	z-index: 9000 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav3-sticky-placeholder {
	height: 0;
	width: 100%;
	pointer-events: none;
}

#nav3 > ul,
#nav3 > ul > li > a,
#nav3 .infonav,
#nav3 .inside {
	transition: padding 0.24s ease, font-size 0.24s ease, line-height 0.24s ease, gap 0.24s ease;
}

@media screen and (min-width: 841px) {
	#nav3.sticky.is-compact > ul {
		gap: 0.4em;
		padding-top: 0.2em;
		padding-bottom: 0.2em;
	}

	#nav3.sticky.is-compact > ul > li > a {
		padding-top: 0.2em;
		padding-bottom: 0.2em;
		font-size: 0.9em;
		line-height: 1.2;
	}

	#nav3.sticky.is-compact .infonav {
		font-size: 0.86em;
		line-height: 1.2;
	}

	#nav3.sticky.is-compact .inside {
		padding-top: 3px;
		padding-bottom: 3px;
	}
}

.infonav{
  text-align: center;
  width:100%;
  display: -webkit-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: #000000;
}

.inside {

background-color: #111; margin: auto; padding :5px 20px 5px 20px; border-bottom-left-radius: 10px;border-bottom-right-radius: 10px; color: #777;

    }

.inside a {

color: #111;

    }

/* Workshop appointment booking */
@media screen and (min-width: 841px) {
	#nav3 > ul {
		display: flex;
		align-items: stretch;
		gap: 0.5em;
		width: 100%;
		padding: 0.35em 0.75em;
		box-sizing: border-box;
	}

	#nav3 > ul > li,
	#nav3 > ul > li:first-child {
		display: block;
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		margin: 0;
		box-sizing: border-box;
	}

	#nav3 > ul > li.booking-nav-item {
		flex: 2 1 0;
		margin: 0;
	}

	#nav3 > ul > li > a,
	#nav3 > ul > li.booking-nav-item > a.booking-nav-button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		min-width: 0;
		padding: 0.35em 0.4em;
		box-sizing: border-box;
		background: #640001;
		border-radius: 0;
		box-shadow: none;
		color: #f2f2f2 !important;
		letter-spacing: normal;
		white-space: nowrap;
		transition: background-color 0.15s ease;
	}

	#nav3 > ul > li.booking-nav-item > a.booking-nav-button {
		font-weight: 700;
	}

	#nav3 > ul > li:hover > a,
	#nav3 > ul > li > a:focus,
	#nav3 > ul > li.booking-nav-item:hover > a.booking-nav-button,
	#nav3 > ul > li.booking-nav-item > a.booking-nav-button:focus {
		background: #520001;
		box-shadow: none;
		transform: none;
	}

	#nav3 > ul > li.active > a {
		background: #3c0304;
	}
}

html.booking-modal-open,
html.booking-modal-open body {
	overflow: hidden !important;
}

.booking-modal[hidden] {
	display: none !important;
}

.booking-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 100000;
	padding: 2vh 1.5em;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.booking-modal.is-open {
	opacity: 1;
}

.booking-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 12, 0.84);
	backdrop-filter: blur(5px);
}

.booking-modal__dialog {
	display: flex;
	flex-direction: column;
	position: relative;
	width: min(1180px, 100%);
	max-height: 96vh;
	overflow: auto;
	background: #f5f5f5;
	border-top: 5px solid #bd171d;
	border-radius: 6px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
	transform: translateY(14px) scale(0.99);
	transition: transform 0.2s ease;
	-webkit-overflow-scrolling: touch;
}

.booking-modal.is-open .booking-modal__dialog {
	transform: translateY(0) scale(1);
}

.booking-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5em;
	padding: 1.25em 1.6em 0.9em;
	background: #fff;
	border-bottom: 1px solid #dedede;
}

.booking-modal__heading h2 {
	margin: 0.1em 0 0.12em;
	color: #202024;
	font-size: 1.65em;
	line-height: 1.15;
}

.booking-modal__heading p {
	margin: 0;
	color: #65656b;
}

.booking-modal__eyebrow {
	color: #bd171d;
	font-size: 0.72em;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.booking-modal__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5em;
	height: 2.5em;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #bd171d;
	color: #fff;
	font: 700 1.6em/1 Arial, sans-serif;
	cursor: pointer;
}

.booking-modal__close:hover,
.booking-modal__close:focus {
	background: #941016;
}

.booking-modal__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: 0;
	padding: 0.85em 1.6em;
	background: #242427;
	color: #fff;
	list-style: none;
	counter-reset: none;
}

.booking-modal__steps li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	position: relative;
	font-size: 0.86em;
}

.booking-modal__steps li:not(:last-child):after {
	content: '';
	position: absolute;
	right: 0;
	width: 1px;
	height: 1.65em;
	background: rgba(255,255,255,0.2);
}

.booking-modal__steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	background: #bd171d;
	font-weight: 800;
}

.booking-modal__steps b {
	font-weight: 600;
}

.booking-modal__frame {
	flex: 1 0 auto;
	min-height: 680px;
	background: #fff;
}

.booking-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	border: 0;
	background: #fff;
}

.booking-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 0.75em 1.6em;
	background: #fff;
	border-top: 1px solid #dedede;
	color: #737379;
	font-size: 0.8em;
}

.booking-modal__footer a {
	color: #9f1116;
	font-weight: 700;
}

@media screen and (max-width: 840px) {
	.booking-modal {
		padding: 0;
	}

	.booking-modal__dialog {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.booking-modal__header {
		padding: 0.9em 1em 0.75em;
	}

	.booking-modal__heading h2 {
		font-size: 1.3em;
	}

	.booking-modal__heading p {
		font-size: 0.86em;
	}

	.booking-modal__steps {
		padding: 0.65em 0.5em;
	}

	.booking-modal__steps li {
		gap: 0.35em;
		font-size: 0.7em;
	}

	.booking-modal__steps span {
		width: 1.65em;
		height: 1.65em;
	}

	.booking-modal__frame {
		min-height: 720px;
	}

	.booking-modal__footer {
		padding: 0.65em 1em;
		font-size: 0.72em;
	}
}

@media screen and (max-width: 480px) {
	.booking-modal__heading p,
	.booking-modal__steps b,
	.booking-modal__footer span {
		display: none;
	}

	.booking-modal__steps li:not(:last-child):after {
		right: -1px;
	}
}

/* Current primary-site navigation, including its local typeface. */
/* barlow-condensed-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/barlow-condensed-v13-latin-500.ttf') format('truetype');
}
/* barlow-condensed-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/barlow-condensed-v13-latin-600.ttf') format('truetype');
}
/* barlow-condensed-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/barlow-condensed-v13-latin-700.ttf') format('truetype');
}

/* Faceted desktop navigation */
@property --nav-edge-angle {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}

@media screen and (min-width: 841px) {
	#nav3 > ul {
		gap: 0.55em;
		padding: 0.45em 0.7em;
		background: #800001;
	}

	#nav3 > ul > li,
	#nav3 > ul > li:first-child,
	#nav3 > ul > li.booking-nav-item {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		margin: 0;
		border: 0;
		background: #640001;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
		clip-path: polygon(0 0, 91% 0, 100% 31%, 100% 100%, 9% 100%, 0 69%);
		transition: background-color 0.25s ease, box-shadow 0.25s ease;
	}

	#nav3 > ul > li.booking-nav-item {
		flex: 1.35 1 0;
	}

	#nav3 > ul > li::before {
		content: '';
		position: absolute;
		z-index: 3;
		inset: 0;
		padding: 1px;
		background: conic-gradient(
			from var(--nav-edge-angle),
			transparent 0 30%,
			rgba(255, 116, 116, 0.18) 37%,
			#c92025 44%,
			#f07a7e 48%,
			rgba(255, 255, 255, 0.86) 50%,
			#f07a7e 52%,
			#c92025 56%,
			transparent 64% 100%
		);
		-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
		-webkit-mask-composite: xor;
		mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
		mask-composite: exclude;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.22s ease;
	}

	#nav3 > ul > li::after {
		display: none;
	}

	#nav3 > ul > li > a,
	#nav3 > ul > li.booking-nav-item > a.booking-nav-button,
	#nav3 > ul > li:hover > a,
	#nav3 > ul > li > a:hover,
	#nav3 > ul > li > a:focus,
	#nav3 > ul > li.active > a,
	#nav3 > ul > li.booking-nav-item:hover > a.booking-nav-button,
	#nav3 > ul > li.booking-nav-item > a.booking-nav-button:focus {
		position: relative;
		z-index: 1;
		min-width: 0;
		padding: 0.62em 0.5em;
		border: 0;
		background: transparent !important;
		box-shadow: none;
		color: #f2f2f2 !important;
		font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
		font-size: clamp(1em, 1.35vw, 1.16em);
		font-weight: 600;
		line-height: 1;
		letter-spacing: 0.075em;
		text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
		text-transform: uppercase;
		transform: none !important;
		transition: color 0.2s ease, text-shadow 0.2s ease;
	}

	#nav3 > ul > li:hover,
	#nav3 > ul > li:focus-within {
		background: #6d0304;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
	}

	#nav3 > ul > li:hover::before,
	#nav3 > ul > li:focus-within::before {
		animation: nav-edge-half-turn 0.95s cubic-bezier(0.35, 0, 0.2, 1) 1 both;
	}

	#nav3 > ul > li.active {
		background: #3c0304;
		box-shadow: inset 0 -2px 0 rgba(238, 73, 78, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	}

	#nav3 > ul > li.active:hover,
	#nav3 > ul > li.active:focus-within {
		background: #470405;
		box-shadow: inset 0 -2px 0 rgba(238, 73, 78, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	}

	#nav3 > ul > li.active::before {
		opacity: 0;
	}

	#nav3 > ul > li:hover > a,
	#nav3 > ul > li:focus-within > a {
		color: #fff !important;
		text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
	}

	#nav3.sticky.is-compact > ul > li.booking-nav-item > a.booking-nav-button {
		padding-top: 0.2em;
		padding-bottom: 0.2em;
		font-size: 0.9em;
		line-height: 1.2;
	}
}

@keyframes nav-edge-half-turn {
	0% {
		--nav-edge-angle: 0deg;
		opacity: 0;
	}
	14% {
		opacity: 1;
	}
	72% {
		opacity: 1;
	}
	100% {
		--nav-edge-angle: 180deg;
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#nav3 > ul > li,
	#nav3 > ul > li::before,
	#nav3 > ul > li::after,
	#nav3 > ul > li > a {
		animation: none !important;
		transition: none !important;
	}
}


/* Same compact mobile bar and content offset as the primary website. */
@media screen and (max-width: 880px) {
    body { margin-top: 0; width: auto; }
    #page-wrapper {
        margin-top: 50px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    #titleBar {
        height: 50px;
        background-color: #313131;
        width: 100vw;
    }
    #titleBar .toggle {
        height: 50px;
        width: 100vw;
        background-size: auto 32px;
    }
}
