.site-header {
	background: #ffffff;
	border-bottom: 1px solid #f0f0f0;
	position: sticky;
	top: 0;
	z-index: 50;
	transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
	border-bottom-color: transparent;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

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

.header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 24px;
	min-height: 76px;
	padding: 6px 0;
	margin-top: 0;
	margin-bottom: 0;
	transition: min-height 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled .header-inner {
	min-height: 64px;
}

.site-branding {
	justify-self: start;
}

.site-nav {
	justify-self: center;
	text-align: center;
}

.brand-link {
	display: inline-block;
	transition: transform 0.25s ease;
}

.brand-link:hover {
	transform: scale(1.03);
}

.custom-logo {
	max-height: 52px;
	width: auto;
	transition: max-height 0.3s ease;
}

.site-header.is-scrolled .custom-logo {
	max-height: 44px;
}

.brand-fallback {
	display: inline-block;
	font-family: var(--font-logo);
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
	color: #f08c1f;
	-webkit-text-stroke: 1.2px #111;
	paint-order: stroke fill;
	letter-spacing: -0.02em;
}

.brand-tagline {
	margin: 2px 0 0;
	font-size: 12px;
	font-weight: 400;
	color: #000;
	line-height: 1.3;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}

.primary-menu a {
	position: relative;
	font-size: 16px;
	font-weight: 700;
	color: #111;
	transition: color 0.2s ease;
}

.primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: #db0a15;
	transition: width 0.25s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	color: #db0a15;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after {
	width: 100%;
}

.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #db0a15;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 10px 16px;
	border-radius: 8px;
	white-space: nowrap;
	justify-self: end;
	transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.header-cta:hover {
	background: #b00811;
	color: #fff;
}

.header-cta-icon {
	flex-shrink: 0;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid #ddd;
	background: #fff;
	padding: 8px 12px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	border-radius: 8px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.menu-toggle:hover {
	border-color: #db0a15;
}

.menu-toggle-bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 18px;
	height: 14px;
}

.menu-toggle-bars span {
	display: block;
	height: 2px;
	background: #111;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle-bars span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bars span:nth-child(2) {
	opacity: 0;
}

.site-header.is-open .menu-toggle-bars span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle-text {
	font-size: 14px;
}

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

	.header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 12px;
		min-height: 64px;
	}

	.custom-logo { max-height: 42px; }
	.brand-tagline { font-size: 11px; max-width: 200px; }

	.menu-toggle {
		display: inline-flex;
		justify-self: end;
		grid-column: 2;
		grid-row: 1;
	}

	.site-nav,
	.header-cta {
		display: flex;
		grid-column: 1 / -1;
		justify-self: stretch;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
		transform: translateY(-8px);
		margin: 0;
		transition: max-height 0.35s ease, opacity 0.28s ease, transform 0.28s ease;
	}

	.site-header.is-open .site-nav,
	.site-header.is-open .header-cta {
		max-height: 420px;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.site-header.is-open .header-inner {
		row-gap: 14px;
		padding-bottom: 14px;
	}

	.primary-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		width: 100%;
		padding: 8px 0 4px;
	}

	.primary-menu a::after {
		bottom: -4px;
	}

	.site-header.is-open .header-cta {
		justify-content: center;
		width: 100%;
		margin-top: 4px;
		margin-bottom: 8px;
	}
}
