/*
 * Hawk Estate header (pattern "Hawk Estate header"). Scoped to .hawk-header.
 * Thin strip + full-width navy bar: site name, menu on one line, gold Book now.
 * Shrinks on scroll (hawk-header.js adds .is-scrolled). Below 1100px the menu
 * folds behind the navigation block's own menu button.
 */

.hawk-header {
	--hh-ink: #0b1a2b;
	--hh-ink-deep: #07121f;
	--hh-on-ink: #eef2f6;
	--hh-muted: #a9b6c4;
	--hh-brass: #c5a059;
	--hh-brass-light: #d6b878;
	--hh-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--hh-sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
	font-family: var(--hh-sans);
	margin: 0 !important;
}
.hawk-header * {
	box-sizing: border-box;
}
.hawk-header > *,
.hawk-header .hawk-header__inner > * {
	margin-block: 0 !important;
}

/* Sticky: the header template part that holds this pattern stays on screen. */
.wp-site-blocks > .wp-block-template-part:has(.hawk-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	margin-block: 0 !important;
}

.hawk-header .hawk-header__inner {
	display: flex;
	align-items: center;
	max-width: 1320px;
	margin: 0 auto !important;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Top strip */
.hawk-header .hawk-header__strip {
	background: var(--hh-ink-deep);
	color: var(--hh-muted);
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	overflow: hidden;
	max-height: 40px;
	transition: max-height 0.25s ease, opacity 0.2s ease;
}
.hawk-header .hawk-header__strip .hawk-header__inner {
	justify-content: space-between;
	gap: 16px;
	height: 36px;
}
.hawk-header .hawk-header__strip p {
	margin: 0 !important;
	white-space: nowrap;
	font-size: inherit;
	line-height: 1;
	color: inherit;
}
.hawk-header .hawk-header__contact {
	display: flex;
	gap: 18px;
	align-items: center;
}
.hawk-header .hawk-header__strip a {
	color: var(--hh-on-ink);
	text-decoration: none;
}
.hawk-header .hawk-header__strip a:hover {
	color: var(--hh-brass-light);
}
.hawk-header .hawk-header__strip a.hawk-header__tour {
	color: var(--hh-brass-light);
	font-weight: 600;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Main bar */
.hawk-header .hawk-header__bar {
	background: var(--hh-ink);
	border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}
.hawk-header .hawk-header__bar .hawk-header__inner {
	gap: 28px;
	height: 84px;
	transition: height 0.25s ease;
}
.hawk-header .hawk-header__name {
	flex: none;
	margin: 0 !important;
	font: 500 2rem/1 var(--hh-display) !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	transition: font-size 0.25s ease;
}
.hawk-header .hawk-header__name a {
	color: var(--hh-on-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
}
.hawk-header .hawk-header__name a:hover {
	color: var(--hh-brass-light) !important;
}

/* Menu */
.hawk-header .hawk-header__nav {
	flex: 1;
	justify-content: center;
	min-width: 0;
}
.hawk-header .hawk-header__nav .wp-block-navigation__container {
	gap: clamp(14px, 1.6vw, 28px) !important;
}
.hawk-header .hawk-header__nav .wp-block-navigation-item {
	padding: 0 !important;
}
.hawk-header .hawk-header__nav .wp-block-navigation-item__content {
	display: block;
	padding: 10px 0 !important;
	font: 600 0.72rem/1.2 var(--hh-sans) !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	color: var(--hh-on-ink) !important;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
}
.hawk-header .hawk-header__nav .wp-block-navigation-item__content:hover {
	color: var(--hh-brass-light) !important;
}
.hawk-header .hawk-header__nav .current-menu-item > .wp-block-navigation-item__content,
.hawk-header .hawk-header__nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--hh-brass-light) !important;
	border-bottom-color: var(--hh-brass);
}
/* "Book" is the gold button, so it leaves the link list. */
.hawk-header .hawk-header__nav .wp-block-navigation-item:has(> a[href$="/book/"]) {
	display: none !important;
}

/* Menu button and the open menu (the navigation block's own overlay) */
.hawk-header .wp-block-navigation__responsive-container-open {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(238, 242, 246, 0.35) !important;
	color: var(--hh-on-ink) !important;
	background: transparent !important;
}
.hawk-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--hh-ink) !important;
	color: var(--hh-on-ink) !important;
	padding: 24px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)) !important;
}
.hawk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 56px;
}
.hawk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	align-items: stretch !important;
}
.hawk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 14px 0 !important;
	border-top: 1px solid rgba(238, 242, 246, 0.1);
	border-bottom: 0;
	font: 500 1.5rem/1.2 var(--hh-display) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.hawk-header .wp-block-navigation__responsive-container-close {
	color: var(--hh-on-ink) !important;
}

/* Book now */
.hawk-header .hawk-header__actions {
	flex: none;
	margin: 0 0 0 auto !important;
	gap: 10px;
}
.hawk-header .hawk-header__book .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px !important;
	border-radius: 999px !important;
	border: 1px solid var(--hh-brass) !important;
	background: var(--hh-brass) !important;
	color: var(--hh-ink) !important;
	font: 600 0.72rem/1 var(--hh-sans) !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none !important;
}
.hawk-header .hawk-header__book .wp-block-button__link:hover {
	background: var(--hh-brass-light) !important;
}
.hawk-header a:focus-visible,
.hawk-header button:focus-visible {
	outline: 2px solid var(--hh-brass);
	outline-offset: 3px;
}

/* Shrinks once the page scrolls */
.hawk-header.is-scrolled .hawk-header__strip {
	max-height: 0;
	opacity: 0;
}
.hawk-header.is-scrolled .hawk-header__bar .hawk-header__inner {
	height: 64px;
}
.hawk-header.is-scrolled .hawk-header__name {
	font-size: 1.65rem !important;
}

/* Below 1100px the links fold behind the menu button (the block's own default is 600px). */
@media (max-width: 1100px) {
	.hawk-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
	.hawk-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
	.hawk-header .hawk-header__nav {
		order: 3;
		flex: none;
	}
	.hawk-header .hawk-header__bar .hawk-header__inner {
		gap: 12px;
	}
}

@media (max-width: 640px) {
	.hawk-header .hawk-header__place,
	.hawk-header .hawk-header__email {
		display: none !important;
	}
	.hawk-header .hawk-header__strip .hawk-header__inner {
		justify-content: center;
	}
	.hawk-header .hawk-header__bar .hawk-header__inner {
		height: 68px;
	}
	.hawk-header .hawk-header__name {
		font-size: 1.6rem !important;
	}
	.hawk-header.is-scrolled .hawk-header__bar .hawk-header__inner {
		height: 60px;
	}
	.hawk-header.is-scrolled .hawk-header__name {
		font-size: 1.45rem !important;
	}
	.hawk-header .hawk-header__book .wp-block-button__link {
		padding: 0 16px !important;
	}
}
@media (max-width: 380px) {
	.hawk-header .hawk-header__name {
		font-size: 1.35rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hawk-header,
	.hawk-header * {
		transition: none !important;
	}
}
