.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:has(.wp-block-harris-site-header.harris-site-header) {
	position: sticky;
	top: 0;
	z-index: 1000;
	margin-block-start: 0;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part,
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.wp-block-harris-site-header.harris-site-header) {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.wp-block-harris-site-header.harris-site-header {
	--harris-header-width: 1280px;
	--harris-header-gutter: 2rem;
	--harris-header-red: var(--wp--preset--color--harris-red, #b62025);
	--harris-header-red-dark: var(--wp--preset--color--harris-red-dark, #8f171b);
	--harris-header-black: var(--wp--preset--color--harris-black, #212122);
	--harris-header-border: var(--wp--preset--color--harris-border, #d9dde2);

	position: relative;
	z-index: 1000;
	width: 100%;
	margin: 0;
	background: #ffffff;
	color: var(--harris-header-black);
}

.harris-site-header *,
.harris-site-header *::before,
.harris-site-header *::after {
	box-sizing: border-box;
}

.harris-site-header__utility {
	border-bottom: 1px solid rgb(255 255 255 / 12%);
	background: var(--harris-header-black);
	color: #ffffff;
}

.harris-site-header__utility-inner,
.harris-site-header__main-inner {
	width: min(calc(100% - (var(--harris-header-gutter) * 2)), var(--harris-header-width));
	margin-inline: auto;
}

.harris-site-header__utility-inner {
	display: flex;
	min-height: 2.5rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.harris-site-header__strapline {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.harris-site-header__contact {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.harris-site-header__contact a {
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.harris-site-header__contact a:hover {
	color: #ffd8da;
}

.harris-site-header__main {
	border-bottom: 4px solid var(--harris-header-red);
	background: #ffffff;
	box-shadow: 0 10px 24px rgb(33 33 34 / 9%);
}

.harris-site-header__main-inner {
	display: flex;
	min-height: 6.25rem;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.harris-site-header__brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	width: clamp(8rem, 22vw, 12rem);
	text-decoration: none;
}

.harris-site-header__logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 4.25rem;
	object-fit: contain;
	object-position: left center;
}

.harris-site-header__navigation {
	display: flex;
	flex: 1 1 auto;
	align-self: stretch;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(1rem, 2vw, 2rem);
}

.harris-site-header__menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.harris-site-header__menu li {
	margin: 0;
	padding: 0;
}

.harris-site-header__menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.75rem 0.85rem;
	border-radius: 4px;
	color: var(--harris-header-black);
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.015em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 130ms ease, color 130ms ease;
}

.harris-site-header__menu a::after {
	position: relative;
	display: inline-block;
	width: 0.42rem;
	height: 0.42rem;
	flex: 0 0 auto;
	margin-left: 0.55rem;
	border-top: 2px solid var(--harris-header-red);
	border-right: 2px solid var(--harris-header-red);
	content: "";
	opacity: 0;
	transform: translateX(-0.25rem) rotate(45deg);
	transition:
		opacity 130ms ease,
		transform 130ms ease;
}

.harris-site-header__menu a:hover,
.harris-site-header__menu a:focus-visible {
	background: #f7ecec;
}

.harris-site-header__menu a:hover::after,
.harris-site-header__menu a:focus-visible::after {
	opacity: 1;
	transform: translateX(0) rotate(45deg);
}

.harris-site-header__quote {
	--quote-chevron-space: 3.7rem;
	--quote-chevron-width: 2.2rem;
	--quote-bg: var(--harris-header-red);

	position: relative;
	display: inline-flex;
	min-height: 3.15rem;
	align-items: center;
	justify-content: center;
	padding:
		0.85rem
		1.8rem
		0.85rem
		1.55rem;
	margin-right: var(--quote-chevron-space);
	overflow: visible;
	border: 0;
	border-radius: 3px 0 0 3px;
	background: var(--quote-bg);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.035em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition:
		background-color 180ms ease,
		transform 180ms ease;
}

.harris-site-header__quote-label {
	position: relative;
	z-index: 2;
}

.harris-site-header__quote-chevron {
	position: absolute;
	top: 0;
	width: var(--quote-chevron-width);
	height: 100%;
	content: "";
	pointer-events: none;
	clip-path:
		polygon(
			0 0,
			56% 0,
			100% 50%,
			56% 100%,
			0 100%,
			44% 50%
		);
	transform: translateX(0);
	transform-origin: center;
	transition:
		transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/*
 * White separator shape behind the black chevron.
 * Because it uses the exact same polygon, the visible white strip follows
 * the left edge perfectly instead of relying on a shadow or gradient.
 */
.harris-site-header__quote-chevron--white {
	right: -1.18rem;
	background: #ffffff;
}

.harris-site-header__quote-chevron--black {
	right: -1.32rem;
	background: var(--harris-header-black);
}

.harris-site-header__quote-chevron--red {
	right: -2.72rem;
	background: var(--harris-header-red);
}

.harris-site-header__quote:hover,
.harris-site-header__quote:focus-visible {
	--quote-bg: var(--harris-header-red-dark);
	transform: translateX(2px);
}

.harris-site-header__quote:hover .harris-site-header__quote-chevron--white,
.harris-site-header__quote:focus-visible .harris-site-header__quote-chevron--white {
	transform: translateX(0.12rem);
}

.harris-site-header__quote:hover .harris-site-header__quote-chevron--black,
.harris-site-header__quote:focus-visible .harris-site-header__quote-chevron--black {
	transform: translateX(0.16rem);
}

.harris-site-header__quote:hover .harris-site-header__quote-chevron--red,
.harris-site-header__quote:focus-visible .harris-site-header__quote-chevron--red {
	transform: translateX(0.3rem);
}

.harris-site-header__quote:active {
	transform:
		translateX(2px)
		translateY(2px);
}

.harris-site-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--harris-header-border);
	border-radius: 6px;
	background: #ffffff;
	color: var(--harris-header-black);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 800;
	cursor: pointer;
}

.harris-site-header__toggle-lines {
	position: relative;
	display: block;
	width: 1.4rem;
	height: 1rem;
	flex: 0 0 1.4rem;
	overflow: visible;
}

.harris-site-header__toggle-lines span {
	position: absolute;
	left: 0;
	display: block;
	width: 1.4rem;
	height: 1.5px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: currentColor;
	transform-origin: center;
	transition:
		top 150ms ease,
		opacity 150ms ease,
		transform 150ms ease;
}

.harris-site-header__toggle-lines span:first-child {
	top: 1px;
}

.harris-site-header__toggle-lines span:nth-child(2) {
	top: calc(50%);
}

.harris-site-header__toggle-lines span:last-child {
	top: calc(100% - 1px);
}

.harris-site-header.is-menu-open .harris-site-header__toggle-lines span:first-child {
	top: calc(50% - 1px);
	transform: rotate(45deg);
}

.harris-site-header.is-menu-open .harris-site-header__toggle-lines span:nth-child(2) {
	opacity: 0;
}

.harris-site-header.is-menu-open .harris-site-header__toggle-lines span:last-child {
	top: calc(50% - 1px);
	transform: rotate(-45deg);
}

.harris-site-header a:focus-visible,
.harris-site-header button:focus-visible {
	outline: 3px solid var(--harris-header-red);
	outline-offset: 3px;
}

@media (max-width: 1040px) {
	.harris-site-header__main-inner {
		gap: 1rem;
	}

	.harris-site-header__menu a {
		padding-inline: 0.6rem;
		font-size: 0.8rem;
	}
}

@media (max-width: 900px) {
	body.harris-menu-open {
		overflow: hidden;
	}

	.harris-site-header__main-inner {
		position: relative;
		min-height: 5rem;
	}

	.harris-site-header__brand {
		width: min(15rem, 65vw);
	}

	.harris-site-header__toggle {
		display: inline-flex;
	}

	.harris-site-header__navigation[hidden] {
		display: none !important;
	}

	.harris-site-header__navigation {
		position: absolute;
		top: 100%;
		right: calc(0px - var(--harris-header-gutter));
		left: calc(0px - var(--harris-header-gutter));
		display: block;
		max-height: calc(100dvh - 5rem);
		padding: 1rem var(--harris-header-gutter) 1.5rem;
		overflow-y: auto;
		border-bottom: 4px solid var(--harris-header-red);
		background: #ffffff;
		box-shadow: 0 22px 45px rgb(33 33 34 / 18%);
	}

	.harris-site-header__menu {
		display: block;
	}

	.harris-site-header__menu li {
		border-bottom: 1px solid var(--harris-header-border);
	}

	.harris-site-header__menu a {
		width: 100%;
		min-height: 3.5rem;
		justify-content: space-between;
		padding-inline: 0;
		border-radius: 0;
		font-size: 0.9375rem;
	}

	.harris-site-header__menu a::after {
		display: none;
		margin-left: 0;
	}

	.harris-site-header__quote {
		width:
			calc(
				100%
				-
				var(--quote-chevron-space)
			);
		margin-top: 1.25rem;
		margin-right: var(--quote-chevron-space);
	}
}

@media (max-width: 640px) {
	.wp-block-harris-site-header.harris-site-header {
		--harris-header-gutter: 1.5rem;
	}

	.harris-site-header__utility-inner {
		justify-content: flex-end;
	}

	.harris-site-header__strapline {
		display: none;
	}

	.harris-site-header__contact {
		width: 100%;
		justify-content: space-between;
		gap: 0.75rem;
	}

	.harris-site-header__contact a {
		font-size: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.harris-site-header *,
	.harris-site-header *::before,
	.harris-site-header *::after {
		transition-duration: 0.01ms !important;
	}
}

.harris-site-header a.harris-site-header__quote,
.harris-site-header a.harris-site-header__quote:hover,
.harris-site-header a.harris-site-header__quote:focus,
.harris-site-header a.harris-site-header__quote:focus-visible,
.harris-site-header a.harris-site-header__quote:active {
	color: #ffffff !important;
}