
:root {
	--hlc-accent: #87985d;
	--hlc-accent-soft: #eef1e7;
	--hlc-ink: #2f342c;
	--hlc-border: #e7eadf;
}

.hlc-hide-astra #masthead,
.hlc-hide-astra .site-header,
.hlc-hide-astra .ast-mobile-header-wrap {
	display: none !important;
}

.hlc-header {
	position: sticky;
	top: 0;
	z-index: 99990;
	width: 100%;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--hlc-border);
	backdrop-filter: blur(10px);
}

body.admin-bar .hlc-header {
	top: 32px;
}

.hlc-header-inner {
	width: min(1480px, calc(100% - 34px));
	min-height: 82px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 92px 1fr 92px;
	align-items: center;
	gap: 22px;
}

.hlc-brand {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	text-decoration: none;
}

.hlc-logo-image,
.hlc-logo-fallback {
	width: 66px;
	height: 66px;
	border-radius: 14px;
	object-fit: contain;
}

.hlc-logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--hlc-accent);
	color: var(--hlc-ink);
	font: 700 18px/1 system-ui, sans-serif;
}

.hlc-navigation {
	justify-self: center;
	min-width: 0;
}

.hlc-menu,
.hlc-navigation ul {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(18px, 2vw, 38px);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.hlc-menu li,
.hlc-navigation li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.hlc-menu li::marker,
.hlc-navigation li::marker {
	content: "";
}

.hlc-menu a,
.hlc-navigation a {
	display: inline-block;
	padding: 10px 2px;
	color: var(--hlc-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.hlc-menu a:hover,
.hlc-menu a:focus-visible,
.hlc-navigation a:hover,
.hlc-navigation a:focus-visible,
.hlc-menu .current-menu-item > a,
.hlc-navigation .current-menu-item > a {
	color: var(--hlc-accent);
	border-color: var(--hlc-accent);
	outline: none;
}

.hlc-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.hlc-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--hlc-border);
	border-radius: 999px;
	background: #fff;
	color: var(--hlc-ink);
	box-shadow: 0 4px 14px rgba(47, 52, 44, .06);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.hlc-search-toggle:hover,
.hlc-search-toggle:focus-visible {
	background: var(--hlc-accent-soft);
	color: var(--hlc-accent);
	transform: translateY(-1px);
	outline: none;
}

.hlc-search-toggle svg,
.hlc-search-form button svg {
	width: 23px;
	height: 23px;
	fill: currentColor;
	pointer-events: none;
}

.hlc-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.hlc-menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px auto;
	background: var(--hlc-ink);
	border-radius: 2px;
}

.hlc-search-overlay[hidden] {
	display: none !important;
}

.hlc-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: start center;
	padding: clamp(96px, 14vh, 150px) 20px 30px;
}

.hlc-search-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(34, 38, 30, .52);
	backdrop-filter: blur(4px);
	cursor: default;
}

.hlc-search-dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	padding: clamp(30px, 5vw, 50px);
	border: 1px solid rgba(135, 152, 93, .35);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 26px 80px rgba(31, 36, 26, .24);
	text-align: center;
}

.hlc-search-dialog h2 {
	margin: 0 48px 26px;
	color: var(--hlc-ink);
	font-size: clamp(27px, 4vw, 40px);
	line-height: 1.15;
}

.hlc-search-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f3f5ef;
	color: var(--hlc-ink);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.hlc-search-form {
	display: flex;
	width: 100%;
}

.hlc-search-form input[type="search"] {
	min-width: 0;
	flex: 1;
	height: 58px;
	padding: 0 18px;
	border: 1px solid #dfe4d7;
	border-right: 0;
	border-radius: 13px 0 0 13px;
	background: #fff;
	color: var(--hlc-ink);
	font-size: 17px;
	box-shadow: none;
	outline: none;
}

.hlc-search-form input[type="search"]:focus {
	border-color: var(--hlc-accent);
	box-shadow: inset 0 0 0 1px var(--hlc-accent);
}

.hlc-search-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 136px;
	height: 58px;
	padding: 0 20px;
	border: 1px solid var(--hlc-accent);
	border-radius: 0 13px 13px 0;
	background: var(--hlc-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

body.hlc-search-open {
	overflow: hidden;
}

@media (max-width: 921px) {
	body.admin-bar .hlc-header {
		top: 46px;
	}

	.hlc-header-inner {
		grid-template-columns: 76px 1fr 76px;
		width: min(100% - 22px, 1480px);
		min-height: 72px;
		gap: 8px;
	}

	.hlc-logo-image,
	.hlc-logo-fallback {
		width: 56px;
		height: 56px;
	}

	.hlc-menu-toggle {
		display: inline-block;
		justify-self: center;
	}

	.hlc-navigation {
		position: absolute;
		top: 100%;
		left: 12px;
		right: 12px;
		display: none;
		padding: 14px 18px;
		border: 1px solid var(--hlc-border);
		border-radius: 0 0 16px 16px;
		background: #fff;
		box-shadow: 0 18px 36px rgba(47, 52, 44, .12);
	}

	.hlc-navigation.is-open {
		display: block;
	}

	.hlc-menu,
	.hlc-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.hlc-menu a,
	.hlc-navigation a {
		display: block;
		padding: 13px 8px;
		white-space: normal;
		border-bottom: 1px solid var(--hlc-border);
	}
}

@media (max-width: 600px) {
	.hlc-search-overlay {
		padding-top: 76px;
	}

	.hlc-search-dialog {
		padding: 26px 18px 22px;
		border-radius: 18px;
	}

	.hlc-search-dialog h2 {
		margin-left: 0;
		margin-right: 0;
	}

	.hlc-search-form {
		display: grid;
		gap: 10px;
	}

	.hlc-search-form input[type="search"] {
		height: 52px;
		border-right: 1px solid #dfe4d7;
		border-radius: 10px;
	}

	.hlc-search-form button[type="submit"] {
		width: 100%;
		height: 52px;
		border-radius: 10px;
	}
}
