.site-header,
.site-footer {
	--mint: #bfe7c9;
	--midnight: #1e2a44;
	--moon: #f6e7a8;
	--soft-white: #f0ede8;
}

html { scroll-padding-top: 86px; }

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 14px 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-family: 'DM Sans', sans-serif;
	background: rgba(26, 40, 68, .9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(191, 231, 201, .08);
	transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
	background: rgba(20, 32, 56, .97);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--soft-white);
	text-decoration: none;
}

.site-brand-logo {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	object-fit: cover;
	flex: 0 0 auto;
}

.site-brand-name {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.1rem;
	letter-spacing: .04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-brand-name span { color: var(--mint); }

.desktop-navigation {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.desktop-navigation a {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	font-family: 'DM Sans', sans-serif;
	color: rgba(240, 237, 232, .72);
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .25s ease;
}

.desktop-navigation a:hover,
.desktop-navigation a:focus-visible,
.desktop-navigation a.active { color: var(--moon); }

.site-header-cta {
	background: var(--moon);
	color: var(--midnight);
	font-family: 'DM Sans', sans-serif;
	padding: 8px 20px;
	border-radius: 30px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .03em;
	white-space: nowrap;
	text-decoration: none;
	transition: opacity .2s ease, transform .2s ease;
}

.site-header-cta:hover,
.site-header-cta:focus-visible { opacity: .88; transform: translateY(-1px); }

.mobile-menu-shell { display: none; }

.menu-toggle {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px;
	background: rgba(255, 255, 255, .06);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	list-style: none;
}

.menu-toggle span {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 99px;
	background: var(--soft-white);
	transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-shell.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-shell.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.mobile-menu-shell.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-navigation { display: none; }

.site-footer {
	background: #162038;
	border-top: 1px solid rgba(255, 255, 255, .05);
	padding: 36px 48px max(36px, calc(36px + env(safe-area-inset-bottom)));
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.footer-brand span { font-family: 'Cormorant Garamond', serif; font-size: .9rem; color: rgba(240, 237, 232, .72); }
.site-footer p { margin: 0 !important; font-size: .72rem; color: rgba(240, 237, 232, .72); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: .72rem; color: rgba(240, 237, 232, .68); text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--moon); }

@media (max-width: 900px) {
	html { scroll-padding-top: 78px; }
	.site-header { padding: 12px 20px; gap: 12px; }
	.desktop-navigation,
	.site-header-cta { display: none; }
	.site-brand-name { font-size: .9rem; max-width: 210px; }
	.mobile-menu-shell { display: block; margin-left: auto; }
	.menu-toggle { display: inline-flex; }
	.mobile-navigation {
		position: fixed;
		top: 66px;
		left: 16px;
		right: 16px;
		z-index: 1002;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 12px;
		border-radius: 20px;
		background: rgba(22, 32, 56, .98);
		border: 1px solid rgba(255, 255, 255, .12);
		box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
	}
	.mobile-menu-shell.is-open .mobile-navigation {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}
	.mobile-navigation a {
		display: block;
		padding: 15px 16px;
		border-radius: 14px;
		color: var(--soft-white);
		background: rgba(255, 255, 255, .03);
		font-family: 'DM Sans', sans-serif;
		font-size: .96rem;
		letter-spacing: .03em;
		line-height: 1.3;
		text-decoration: none;
		touch-action: manipulation;
	}
	.mobile-navigation a:active,
	.mobile-navigation a:hover,
	.mobile-navigation a:focus-visible,
	.mobile-navigation a.active { background: rgba(246, 231, 168, .12); color: var(--moon); }
	.site-footer { flex-direction: column; align-items: center; text-align: center; padding: 26px 20px; gap: 12px; }
	.footer-links { justify-content: center; }
}

@media (max-width: 480px) {
	html { scroll-padding-top: 74px; }
	.site-header { padding: 11px 16px; }
	.site-brand-name { max-width: 150px; font-size: .86rem; }
	.mobile-navigation { top: 62px; left: 12px; right: 12px; }
	.site-footer { padding-bottom: max(42px, calc(42px + env(safe-area-inset-bottom))); }
}

@media (max-width: 340px) { .site-brand-name { max-width: 118px; } }

/* WordPress Admin Bar compensation */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .mobile-navigation { top: calc(66px + 46px); }
}
@media screen and (max-width: 480px) {
	body.admin-bar .mobile-navigation { top: calc(62px + 46px); }
}
