/* Native capsule header. The global Customizer can render it on every route. */

.zeo-capsule-header-template {
	--zeo-capsule-bg: #E6E8D5;
	--zeo-capsule-text: #2f2a28;
	--zeo-capsule-muted: #55564d;
	--zeo-capsule-line: #8b7963;
	--zeo-capsule-cta: #34463d;
	--zeo-capsule-cta-text: #fff9d6;
	position: fixed;
	top: calc(24px + var(--zeo-admin-bar-height, 0px));
	left: 0;
	right: 0;
	z-index: 1010;
	display: flex;
	justify-content: center;
	padding: 0 16px;
	margin: 0 !important;
	color: var(--zeo-capsule-text);
	pointer-events: none;
}

.zeo-capsule-header,
.zeo-capsule-header * {
	box-sizing: border-box;
}

.zeo-capsule-header {
	position: relative;
	width: max-content;
	max-width: 100%;
	font-family: 'Cormorant Garamond', 'Songti SC', STSong, 'Noto Serif CJK SC', Georgia, serif;
	font-size: 14px;
	line-height: 1.35;
}

.zeo-capsule-header__shell {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: clamp(18px, 3.4vw, 64px);
	width: max-content;
	max-width: min(100%, 1240px);
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid color-mix(in srgb, var(--zeo-capsule-line) 25%, transparent);
	border-radius: 999px;
	background: var(--zeo-capsule-bg);
	box-shadow: 0 10px 35px rgba(47, 42, 40, .08);
	backdrop-filter: blur(15px);
	pointer-events: auto;
}

.zeo-capsule-header__brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 9px;
	min-height: 28px;
	color: var(--zeo-capsule-text);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: .015em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.zeo-capsule-header__brand:hover,
.zeo-capsule-header__brand:focus-visible {
	color: var(--zeo-capsule-text);
}

.zeo-capsule-header__mark {
	display: block;
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.zeo-capsule-header__logo {
	display: block;
	width: auto;
	max-width: 128px;
	height: 27px;
	object-fit: contain;
}

.zeo-capsule-header__links {
	flex: 0 1 auto;
}

.zeo-capsule-header__links ul {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.zeo-capsule-header__links li {
	margin: 0;
	padding: 0;
}

.zeo-capsule-header__links a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	color: color-mix(in srgb, var(--zeo-capsule-text) 72%, transparent);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	transition: color .25s ease;
}

.zeo-capsule-header__links a::after {
	position: absolute;
	right: 0;
	bottom: 1px;
	left: 0;
	height: 1px;
	content: '';
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .25s ease;
}

.zeo-capsule-header__links a:hover,
.zeo-capsule-header__links a:focus-visible,
.zeo-capsule-header__links li.is-current a {
	color: var(--zeo-capsule-text);
}

.zeo-capsule-header__links a:hover::after,
.zeo-capsule-header__links a:focus-visible::after,
.zeo-capsule-header__links li.is-current a::after {
	transform: scaleX(1);
}

.zeo-capsule-header__tools {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

.zeo-capsule-header__utilities {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
}

.zeo-capsule-header__utilities .zeo-header-195__utility-link,
.zeo-capsule-header__utilities .zeo-store-tools__bag {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 30px;
	color: inherit;
	text-decoration: none;
}

.zeo-capsule-header__utilities svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.35;
}

.zeo-capsule-header__utilities .zeo-store-tools__bag span {
	position: absolute;
	top: -2px;
	right: -4px;
	display: grid;
	min-width: 14px;
	height: 14px;
	padding: 0 3px;
	border-radius: 999px;
	background: var(--zeo-capsule-cta);
	color: var(--zeo-capsule-cta-text);
	font-size: 9px;
	line-height: 14px;
	text-align: center;
}

.zeo-capsule-header__utilities .zeo-header-195__language,
.zeo-capsule-header__utilities .zeo-header-195__language-static {
	position: relative;
	margin-left: 3px;
	font-family: 'Cormorant Garamond', 'Songti SC', STSong, 'Noto Serif CJK SC', Georgia, serif;
	font-size: 11px;
	letter-spacing: .1em;
}

.zeo-capsule-header__utilities .zeo-header-195__language > summary,
.zeo-capsule-header__utilities .zeo-header-195__language-static {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 30px;
	list-style: none;
	cursor: pointer;
}

.zeo-capsule-header__utilities .zeo-header-195__language > summary::-webkit-details-marker {
	display: none;
}

.zeo-capsule-header__utilities .zeo-header-195__chevron {
	width: 8px;
	height: 6px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
}

.zeo-capsule-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 9px 22px;
	border: 1px solid color-mix(in srgb, var(--zeo-capsule-cta) 85%, transparent);
	border-radius: 999px;
	background: linear-gradient(180deg, transparent 30%, rgba(255, 249, 214, .05) 76%), radial-gradient(ellipse at 50% 100%, rgba(255, 249, 214, .18), transparent), var(--zeo-capsule-cta);
	color: var(--zeo-capsule-cta-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .25s ease, filter .25s ease;
}

.zeo-capsule-header__cta:hover,
.zeo-capsule-header__cta:focus-visible {
	color: var(--zeo-capsule-cta-text);
	filter: brightness(1.08);
	transform: scale(1.04);
}

.zeo-capsule-header__mobile-actions,
.zeo-capsule-header__mobile-panel {
	display: none;
}

.zeo-capsule-header-template a:focus-visible,
.zeo-capsule-header-template button:focus-visible,
.zeo-capsule-header-template summary:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

.zeo-capsule-header__utilities details {
	position: relative;
}

.zeo-capsule-header__utilities .zeo-header-195__search-panel,
.zeo-capsule-header__utilities .zeo-header-195__language-provider {
	position: absolute;
	top: calc(100% + 13px);
	right: 0;
	z-index: 5;
	width: 300px;
	padding: 20px;
	border: 1px solid color-mix(in srgb, var(--zeo-capsule-line) 35%, transparent);
	background: var(--zeo-capsule-bg);
	box-shadow: 0 18px 35px rgba(47, 42, 40, .12);
}

.zeo-capsule-header__utilities .zeo-header-195__language-provider {
	width: 180px;
	padding: 12px;
}

.zeo-capsule-header__utilities .zeo-header-195__search-panel label {
	display: block;
	margin-bottom: 12px;
	font-family: 'Cormorant Garamond', 'Songti SC', STSong, 'Noto Serif CJK SC', Georgia, serif;
	font-size: 22px;
}

.zeo-capsule-header__utilities .zeo-header-195__search-panel form > div {
	display: flex;
	gap: 10px;
}

.zeo-capsule-header__utilities .zeo-header-195__search-panel input[type='search'] {
	width: 100%;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--zeo-capsule-line);
	border-radius: 0;
	background: transparent;
	color: var(--zeo-capsule-text);
	font: inherit;
}

.zeo-capsule-header__utilities .zeo-header-195__search-panel button {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--zeo-capsule-line);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

body.zeo-capsule-menu-open {
	overflow: hidden;
}

body.zeo-capsule-menu-open.zeo-sticky-header .wp-site-blocks > header.wp-block-template-part {
	transform: none;
}

body.zeo-sticky-header:has(.zeo-capsule-header.is-open) .zeo-capsule-header-template {
	top: calc(24px + var(--zeo-admin-bar-height, 0px));
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

@media (max-width: 1120px) {
	.zeo-capsule-header__shell {
		gap: 24px;
	}

	.zeo-capsule-header__links ul {
		gap: 15px;
	}

	.zeo-capsule-header__utilities {
		gap: 5px;
	}
}

@media (max-width: 900px) {
	.zeo-capsule-header__shell {
		gap: 18px;
	}

	.zeo-capsule-header__utilities {
		display: none;
	}

	.zeo-capsule-header__mobile-actions {
		display: flex;
		align-items: center;
	}

	.zeo-capsule-header__toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
	}

	.zeo-capsule-header__toggle i {
		position: absolute;
		left: 5px;
		width: 22px;
		height: 1.5px;
		background: currentColor;
		transition: transform .3s ease, opacity .3s ease;
	}

	.zeo-capsule-header__toggle i:first-of-type {
		transform: translateY(-6px);
	}

	.zeo-capsule-header__toggle i:last-of-type {
		transform: translateY(6px);
	}

	.zeo-capsule-header.is-open .zeo-capsule-header__toggle i:first-of-type {
		transform: rotate(45deg);
	}

	.zeo-capsule-header.is-open .zeo-capsule-header__toggle i:nth-of-type(2) {
		opacity: 0;
	}

	.zeo-capsule-header.is-open .zeo-capsule-header__toggle i:last-of-type {
		transform: rotate(-45deg);
	}

	.zeo-capsule-header__mobile-panel {
		position: fixed;
		inset: 0;
		z-index: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 30px;
		padding: 100px 24px 36px;
		background: var(--zeo-capsule-bg);
		backdrop-filter: blur(20px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
		pointer-events: auto;
	}

	.zeo-capsule-header.is-open .zeo-capsule-header__mobile-panel {
		opacity: 1;
		visibility: visible;
	}

	.zeo-capsule-header__links--mobile ul {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 22px;
	}

	.zeo-capsule-header__links--mobile a {
		font-size: clamp(26px, 7vw, 36px);
		line-height: 1.15;
	}

	.zeo-capsule-header__cta--mobile {
		min-width: 180px;
		min-height: 44px;
		font-size: 15px;
	}

	.zeo-capsule-header__utilities--mobile {
		display: flex;
		gap: 18px;
		padding-top: 18px;
		border-top: 1px solid color-mix(in srgb, var(--zeo-capsule-line) 30%, transparent);
	}

	.zeo-capsule-header__utilities--mobile .zeo-header-195__search-panel,
	.zeo-capsule-header__utilities--mobile .zeo-header-195__language-provider {
		top: auto;
		bottom: calc(100% + 14px);
		right: 50%;
		transform: translateX(50%);
	}
}

@media (max-width: 600px) {
	.zeo-capsule-header-template {
		top: calc(16px + var(--zeo-admin-bar-height, 0px));
		padding: 0 12px;
	}

	.zeo-capsule-header {
		width: 100%;
	}

	.zeo-capsule-header__shell {
		width: 100%;
		justify-content: space-between;
		gap: 12px;
		padding: 11px 14px;
	}

	.zeo-capsule-header__brand {
		font-size: 16px;
	}

	.zeo-capsule-header__mark {
		width: 24px;
		height: 24px;
	}

	.zeo-capsule-header__logo {
		max-width: 100px;
		height: 24px;
	}

	.zeo-capsule-header__links {
		display: none;
	}

	.zeo-capsule-header__tools {
		gap: 9px;
		margin-left: auto;
	}

	.zeo-capsule-header__cta {
		min-height: 34px;
		padding: 8px 15px;
		font-size: 12px;
	}

	body.zeo-sticky-header:has(.zeo-capsule-header.is-open) .zeo-capsule-header-template {
		top: calc(16px + var(--zeo-admin-bar-height, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.zeo-capsule-header-template *,
	.zeo-capsule-header-template *::before,
	.zeo-capsule-header-template *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
