:root {
	--vof-header-paper: #fbf6ed;
	--vof-header-ink: #183f42;
	--vof-header-muted: #5f6f6d;
	--vof-header-coral: #d96b4d;
	--vof-header-coral-dark: #b84f35;
	--vof-header-line: rgba(24, 63, 66, 0.14);
}

body.vof-global-header-enabled .elementor-location-header {
	display: none !important;
}

/*
 * The legacy Elementor homepage (page 30) contains a second header section
 * inside its saved page content, separate from Theme Builder template 8056.
 * Hide only that known duplicate while the reversible native header is active.
 */
body.vof-global-header-enabled.home .elementor-30 > .elementor-element-5792346 {
	display: none !important;
}

.vof-site-header,
.vof-site-header * {
	box-sizing: border-box;
}

.vof-site-header {
	position: sticky;
	top: 0;
	z-index: 1200;
	isolation: isolate;
	width: 100%;
	background: var(--vof-header-paper);
	border-bottom: 1px solid var(--vof-header-line);
	box-shadow: 0 8px 24px rgba(28, 55, 54, 0.04);
	color: var(--vof-header-ink);
}

/*
 * WordPress fixes the admin bar only above its mobile breakpoint. On smaller
 * screens the bar is absolute and scrolls away, so retaining its 46px custom
 * property would leave a phantom gap above the sticky header.
 */
@media (min-width: 783px) {
	body.admin-bar .vof-site-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.vof-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 3.5vw, 3.75rem);
	width: min(100% - 48px, 1240px);
	min-height: 86px;
	margin: 0 auto;
}

.vof-site-header__brand {
	flex: 0 1 285px;
	min-width: 220px;
}

.vof-site-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 315px;
}

.vof-site-header__brand .custom-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 58px;
	object-fit: contain;
}

.vof-site-header__site-name {
	color: var(--vof-header-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.vof-site-header__nav {
	margin-left: auto;
}

.vof-site-header__search { position:relative; flex:0 0 auto; }
.vof-site-header__search-toggle { display:grid; width:44px; height:44px; padding:0; place-items:center; border:1px solid var(--vof-header-line); border-radius:50%; background:#fffdf8; color:var(--vof-header-ink); cursor:pointer; }
.vof-site-header__search-toggle svg { width:21px; height:21px; }
body.vof-global-header-enabled button.vof-site-header__search-toggle { width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; padding:0 !important; border:1px solid var(--vof-header-line) !important; border-radius:50% !important; background:#fffdf8 !important; box-shadow:none !important; color:var(--vof-header-ink) !important; }
body.vof-global-header-enabled button.vof-site-header__search-toggle:hover,
body.vof-global-header-enabled button.vof-site-header__search-toggle:focus-visible,
body.vof-global-header-enabled button.vof-site-header__search-toggle[aria-expanded="true"] { border-color:var(--vof-header-coral) !important; background:rgba(217,107,77,.08) !important; color:var(--vof-header-coral-dark) !important; }
.vof-site-header__search-panel { position:absolute; top:calc(100% + 16px); right:0; width:min(420px,calc(100vw - 32px)); padding:1rem; border:1px solid var(--vof-header-line); border-top:3px solid var(--vof-header-coral); border-radius:0 0 16px 16px; background:#fffdf8; box-shadow:0 18px 42px rgba(24,63,66,.14); }
.vof-site-header__search-panel[hidden] { display:none; }
.vof-site-header__search-panel label { display:block; margin-bottom:.5rem; color:var(--vof-header-ink); font-size:.78rem; font-weight:750; }
.vof-site-header__search-panel form > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.5rem; }
.vof-site-header__search-panel input { min-width:0; min-height:46px; padding:.65rem .8rem; border:1px solid var(--vof-header-line); border-radius:10px; background:#fff; color:var(--vof-header-ink); font:inherit; }
.vof-site-header__search-panel button[type="submit"] { min-height:46px; padding:.65rem .9rem; border:1px solid var(--vof-header-coral); border-radius:10px; background:var(--vof-header-coral); color:#fff; font:inherit; font-size:.78rem; font-weight:800; cursor:pointer; }

.vof-site-header__menu,
.vof-site-header__submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vof-site-header__menu {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 1.7vw, 1.65rem);
}

.vof-site-header__item {
	position: relative;
	margin: 0;
}

.vof-site-header__item--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 0.38rem;
}

.vof-site-header__dropdown-toggle--icon {
	min-width: 28px;
	justify-content: center;
}

.vof-site-header__link,
.vof-site-header__dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.45rem 0;
	border: 0;
	background: transparent;
	color: var(--vof-header-ink);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}

/*
 * Gutenberg/editorial button rules load after Astra on some article types.
 * Keep dropdown triggers typographic and neutral instead of inheriting CTA
 * borders, backgrounds and wide padding from the article content.
 */
body.vof-global-header-enabled button.vof-site-header__dropdown-toggle {
	padding: 0.45rem 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--vof-header-ink) !important;
}

body.vof-global-header-enabled button.vof-site-header__dropdown-toggle:hover,
body.vof-global-header-enabled button.vof-site-header__dropdown-toggle:focus-visible,
body.vof-global-header-enabled button.vof-site-header__dropdown-toggle[aria-expanded="true"] {
	background: transparent !important;
	color: var(--vof-header-coral-dark) !important;
}

.vof-site-header__preview-link {
	cursor: default;
}

.vof-site-header__item--preview > .vof-site-header__preview-link {
	color: var(--vof-header-ink);
}

.vof-site-header__submenu--inspiration {
	grid-template-columns: minmax(220px, 1fr);
	width: min(300px, calc(100vw - 48px));
}

.vof-site-header__submenu .vof-site-header__preview-link {
	position: relative;
	padding-right: 2.4rem;
}

.vof-site-header__submenu .vof-site-header__preview-link::after {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--vof-header-coral);
	content: "";
	transform: translateY(-50%);
	opacity: 0.55;
}

.vof-site-header__link::after,
.vof-site-header__dropdown-toggle::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--vof-header-coral);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
}

.vof-site-header__link:hover,
.vof-site-header__dropdown-toggle:hover,
.vof-site-header__link:focus-visible,
.vof-site-header__dropdown-toggle:focus-visible {
	color: var(--vof-header-coral-dark);
}

.vof-site-header__link:hover::after,
.vof-site-header__dropdown-toggle:hover::after,
.vof-site-header__link:focus-visible::after,
.vof-site-header__dropdown-toggle:focus-visible::after,
.vof-site-header__dropdown-toggle[aria-expanded="true"]::after {
	transform: scaleX(1);
}

.vof-site-header__dropdown-toggle svg {
	width: 12px;
	height: 8px;
	transition: transform 180ms ease;
}

.vof-site-header__dropdown-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.vof-site-header__submenu {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 0.25rem;
	width: min(390px, calc(100vw - 48px));
	padding: 1rem;
	border: 1px solid var(--vof-header-line);
	border-top: 3px solid var(--vof-header-coral);
	border-radius: 0 0 16px 16px;
	background: #fffdf8;
	box-shadow: 0 18px 42px rgba(24, 63, 66, 0.14);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.vof-site-header__dropdown-toggle[aria-expanded="true"] + .vof-site-header__submenu,
.vof-site-header__item--dropdown:focus-within .vof-site-header__submenu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.vof-site-header__submenu-link {
	display: block;
	padding: 0.72rem 0.8rem;
	border-radius: 9px;
	color: var(--vof-header-ink);
	font-size: 0.96rem;
	font-weight: 650;
	line-height: 1.35;
	text-decoration: none;
}

.vof-site-header__submenu-link:hover,
.vof-site-header__submenu-link:focus-visible {
	background: rgba(217, 107, 77, 0.1);
	color: var(--vof-header-coral-dark);
}

.vof-site-header__toggle {
	display: none;
	align-items: center;
	gap: 0.65rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--vof-header-line);
	border-radius: 999px;
	background: transparent;
	color: var(--vof-header-ink);
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Prevent later global/article button rules from turning the nav control into
 * a large filled CTA. This remains scoped to the native global header. */
body.vof-global-header-enabled button.vof-site-header__toggle {
	min-width: 46px !important;
	min-height: 46px !important;
	padding: 0.62rem 0.78rem !important;
	border: 1px solid rgba(24, 63, 66, 0.24) !important;
	border-radius: 14px !important;
	background: #fffdf8 !important;
	box-shadow: 0 5px 16px rgba(24, 63, 66, 0.07) !important;
	color: var(--vof-header-ink) !important;
}

body.vof-global-header-enabled button.vof-site-header__toggle:hover,
body.vof-global-header-enabled button.vof-site-header__toggle:focus-visible,
body.vof-global-header-enabled button.vof-site-header__toggle[aria-expanded="true"] {
	border-color: var(--vof-header-coral) !important;
	background: rgba(217, 107, 77, 0.08) !important;
	box-shadow: 0 7px 20px rgba(24, 63, 66, 0.1) !important;
	color: var(--vof-header-coral-dark) !important;
}

.vof-site-header__toggle-lines {
	display: grid;
	gap: 4px;
	width: 18px;
}

.vof-site-header__toggle-lines span {
	display: block;
	height: 2px;
	border-radius: 99px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.vof-site-header__toggle[aria-expanded="true"] .vof-site-header__toggle-lines span:first-child {
	transform: translateY(6px) rotate(45deg);
}

.vof-site-header__toggle[aria-expanded="true"] .vof-site-header__toggle-lines span:nth-child(2) {
	opacity: 0;
}

.vof-site-header__toggle[aria-expanded="true"] .vof-site-header__toggle-lines span:last-child {
	transform: translateY(-6px) rotate(-45deg);
}

.vof-site-header :focus-visible {
	outline: 3px solid rgba(217, 107, 77, 0.38);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.vof-site-header__inner {
		position: relative;
		width: min(100% - 36px, 960px);
		min-height: 74px;
	}

	.vof-site-header__brand {
		flex-basis: 250px;
		min-width: 0;
	}

	.vof-site-header__brand .custom-logo {
		height: 44px;
	}

	.vof-site-header__toggle {
		display: inline-flex;
		order: 3;
	}

	.vof-site-header__brand { order: 1; margin-right: auto; }
	.vof-site-header__search { order: 2; }
	.vof-site-header__nav { order: 4; }
	.vof-site-header__search-panel { right: -56px; }

	.vof-site-header__nav {
		position: absolute;
		top: calc(100% + 1px);
		right: -18px;
		left: -18px;
		display: none;
		max-height: calc(100vh - 96px);
		padding: 1rem 18px 1.25rem;
		overflow: auto;
		border-bottom: 1px solid var(--vof-header-line);
		background: #fffdf8;
		box-shadow: 0 18px 32px rgba(24, 63, 66, 0.13);
	}

	.vof-site-header[data-menu-open="true"] .vof-site-header__nav {
		display: block;
	}

	.vof-site-header__menu {
		display: grid;
		gap: 0.3rem;
	}

	.vof-site-header__link,
	.vof-site-header__dropdown-toggle {
		justify-content: space-between;
		width: 100%;
		min-height: 48px;
		padding: 0.75rem 0.25rem;
		font-size: 0.82rem;
	}

	.vof-site-header__item--split > .vof-site-header__link {
		width: auto;
	}

	.vof-site-header__dropdown-toggle--icon {
		width: 48px;
		min-width: 48px;
	}

	.vof-site-header__item--split > .vof-site-header__submenu {
		grid-column: 1 / -1;
	}

	body.vof-global-header-enabled button.vof-site-header__dropdown-toggle {
		padding: 0.75rem 0.25rem !important;
	}

	.vof-site-header__link::after,
	.vof-site-header__dropdown-toggle::after {
		display: none;
	}

	.vof-site-header__submenu {
		position: static;
		display: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		padding: 0.4rem 0 0.65rem;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.vof-site-header__dropdown-toggle[aria-expanded="true"] + .vof-site-header__submenu {
		display: grid;
	}

	.vof-site-header__submenu-link {
		padding: 0.72rem;
		background: rgba(24, 63, 66, 0.045);
	}

	.vof-site-header__submenu--inspiration {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}
}

@media (max-width: 520px) {
	.vof-site-header__inner { gap: .55rem; }
	.vof-site-header__brand { flex-basis: auto; max-width: calc(100% - 58px); }
	.vof-site-header__toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
	.vof-site-header__search-panel { right: -50px; }
}

@media (max-width: 430px) {
	.vof-site-header__inner {
		width: calc(100% - 28px);
		min-height: 68px;
	}

	.vof-site-header__brand {
		max-width: min(65vw, 215px);
	}

	.vof-site-header__brand .custom-logo {
		height: 38px;
	}

	.vof-site-header__toggle {
		width: 46px;
		padding: 0.55rem !important;
	}

	.vof-site-header__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.vof-site-header__nav {
		right: -14px;
		left: -14px;
		padding-right: 14px;
		padding-left: 14px;
	}
}

@media (max-width: 360px) {
	.vof-site-header__submenu {
		grid-template-columns: 1fr;
	}
}

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