/* Reserves the header's in-flow space so content never jumps when the header becomes fixed */
.site-header-shell {
	min-height: var(--header-height-mobile);
}

/* Home: header sits on the hero so the hero can start at the top of the viewport */
.home .site-header-shell {
	min-height: 0;
}

.home .site-header:not(.is-fixed) {
	position: absolute;
	top: var(--header-top, 0px);
	right: 0;
	left: 0;
	background-color: transparent;
}

.site-header {
	--header-top: var(--wp-admin--admin-bar--height, 0px);
	position: relative;
	z-index: var(--z-sticky);
	width: 100%;
	background-color: var(--color-bg);
	border-bottom: 1px solid transparent;
}

/* Fixed state, hidden above the viewport by default */
.site-header.is-fixed {
	position: fixed;
	top: var(--header-top);
	right: 0;
	left: 0;
	background-color: var(--color-bg);
	box-shadow: var(--shadow-sm);
	transform: translateY(calc(-100% - var(--header-top)));
	transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header.is-fixed.is-revealed {
	transform: none;
}

/* Fading out before returning to its in-flow position */
.site-header.is-fixed.is-leaving {
	opacity: 0;
	pointer-events: none;
}

/* State swaps that must never animate */
.site-header.is-instant {
	transition: none;
}

/* Zero height marker placed after the hero by main.js */
.site-header-boundary {
	display: block;
	height: 0;
	margin: 0;
	pointer-events: none;
	overflow-anchor: none;
}

/* WordPress makes the admin bar scroll away below 600px */
@media (max-width: 600px) {
	.admin-bar .site-header {
		--header-top: 0px;
	}
}

@media (min-width: 1024px) {
	.site-header-shell {
		min-height: var(--header-height);
	}

}

.site-footer {
	border-top: 1px solid var(--color-border);
	padding: var(--section-py) 0;
	background: var(--color-bg);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--stack-lg);
	text-align: center;
}

.site-footer__logo {
	display: block;
	width: 100px;
	height: 44px;
	flex-shrink: 0;
	overflow: hidden;
	margin-inline: auto;
}

.site-footer__logo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.site-footer__nav {
	width: 100%;
}

.site-footer__nav .footer-nav__menu,
.site-footer__nav .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4) var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text);
	text-decoration: none;
}

.site-footer__nav a:hover {
	color: var(--color-accent);
}

.site-footer__shop {
	width: auto;
	flex-shrink: 0;
	white-space: nowrap;
	padding: var(--space-3) var(--space-5);
	font-size: var(--text-sm);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer__legal {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	text-align: center;
}

.site-main {
	min-height: 50vh;
}

@media (min-width: 1024px) {
	.site-footer__inner {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-6);
		text-align: left;
	}

	.site-footer__logo {
		margin-inline: 0;
	}

	.site-footer__logo-img {
		object-position: left center;
	}

	.site-footer__nav {
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-footer__nav .footer-nav__menu,
	.site-footer__nav .menu {
		justify-content: flex-start;
		flex-wrap: nowrap;
		gap: var(--space-4) var(--space-5);
	}

	.site-footer__shop {
		padding: var(--space-3) var(--space-5);
		font-size: var(--text-sm);
	}

	.site-footer__legal {
		flex-shrink: 0;
		text-align: left;
		max-width: 14rem;
	}
}

@media (min-width: 1440px) {
	.site-footer__inner {
		gap: var(--stack-lg);
	}

	.site-footer__nav .footer-nav__menu,
	.site-footer__nav .menu {
		gap: var(--space-4) var(--space-8);
	}

	.site-footer__legal {
		max-width: none;
	}
}
