/* ==========================================================================
   Deansgate Haus - site header (ported from Nav.tsx)
   ========================================================================== */

.dh-nav {
	position: fixed;
	top: 12px;
	left: 0; right: 0;
	z-index: 400;
	padding-inline: 16px;
	pointer-events: none;
	font-family: var(--dh-body);
}
.dh-nav__stack {
	pointer-events: auto;
	max-width: 1600px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Utility bar - desktop only */
.dh-nav__utility {
	display: none;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	padding: 8px 20px;
	border-radius: 999px;
	border: 1px solid rgba(61,10,10,.1);
	background: color-mix(in oklab, #ffffff 62%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: .72rem;
	color: rgba(61,10,10,.7);
}
.dh-nav__utility a { color: inherit; text-decoration: none; transition: opacity .3s ease; }
.dh-nav__utility a:hover { opacity: .8; }
.dh-nav__login {
	background: var(--dh-champagne);
	color: var(--dh-burgundy) !important;
	padding: 6px 16px;
	border-radius: 999px;
	letter-spacing: var(--dh-luxe);
	text-transform: uppercase;
	font-size: .62rem;
	transition: background-color .3s ease;
}
.dh-nav__login:hover { background: var(--dh-linen); opacity: 1 !important; }
@media (min-width: 768px) { .dh-nav__utility { display: flex; } }

/* Main bar */
.dh-nav__bar {
	width: 100%;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px 10px 20px;
	background: color-mix(in oklab, #ffffff 62%, transparent);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	box-shadow:
		0 10px 40px -12px rgba(61,10,10,.25),
		inset 0 1px 0 0 rgba(255,255,255,.45),
		inset 0 -1px 0 0 rgba(255,255,255,.15);
}
@media (min-width: 768px) { .dh-nav__bar { padding: 12px 12px 12px 32px; } }

/* Uses the trimmed wordmark (2034x400, ~5.1:1). The supplied original is a
   4096x2160 canvas whose mark fills only 8% of it, so sizing against that made
   the logo render about a tenth of its intended height. */
.dh-nav__logo { display: flex; align-items: center; }
.dh-nav__logo img { height: 20px; width: auto; display: block; }
@media (min-width: 768px) { .dh-nav__logo img { height: 26px; } }
.dh-nav__logo--light { display: none; }
.dh-nav__logo--dark  { display: block; }

.dh-nav__menu { display: none; align-items: center; gap: 2px; font-size: .82rem; }
@media (min-width: 768px) { .dh-nav__menu { display: flex; } }

.dh-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--dh-burgundy);
	text-decoration: none;
	transition: background-color .3s ease;
	white-space: nowrap;
}
.dh-nav__link:hover { background: rgba(61,10,10,.05); }
.dh-nav__chev { width: 12px; height: 12px; transition: transform .3s ease; }

.dh-nav__group { position: relative; }
.dh-nav__dropdown {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	padding-top: 12px;
	min-width: 260px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.dh-nav__group:hover .dh-nav__dropdown,
.dh-nav__group:focus-within .dh-nav__dropdown { opacity: 1; visibility: visible; }
.dh-nav__group:hover .dh-nav__chev { transform: rotate(180deg); }
.dh-nav__dropdown-inner {
	background: var(--dh-linen);
	border: 1px solid rgba(61,10,10,.1);
	border-radius: 12px;
	box-shadow: 0 18px 44px -18px rgba(74,16,28,.35);
	padding: 8px 0;
	overflow: hidden;
}
.dh-nav__dropdown-inner a {
	display: block;
	padding: 10px 20px;
	font-size: .82rem;
	color: rgba(61,10,10,.85);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.dh-nav__dropdown-inner a:hover { background: var(--dh-burgundy); color: var(--dh-linen); }

.dh-nav__actions { display: flex; align-items: center; gap: 8px; }
.dh-nav__cart {
	display: none;
	align-items: center; justify-content: center;
	height: 40px; width: 40px;
	border-radius: 999px;
	border: 1px solid rgba(61,10,10,.2);
	background: rgba(61,10,10,.1);
	color: var(--dh-burgundy);
	transition: background-color .3s ease;
}
.dh-nav__cart svg { width: 16px; height: 16px; }
.dh-nav__cart:hover { background: rgba(61,10,10,.2); }
@media (min-width: 768px) { .dh-nav__cart { display: flex; } }

.dh-nav__burger {
	display: flex; align-items: center; justify-content: center;
	height: 44px; width: 44px;
	border: 0; background: transparent; cursor: pointer;
	color: var(--dh-burgundy);
}
.dh-nav__burger svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .dh-nav__burger { display: none; } }

/* Overlay state - transparent over the hero, solid once scrolled past it */
.dh-nav--overlay:not(.is-solid) .dh-nav__bar,
.dh-nav--overlay:not(.is-solid) .dh-nav__utility {
	background: color-mix(in oklab, #f5efe8 16%, transparent);
	border-color: rgba(255,255,255,.2);
}
.dh-nav--overlay:not(.is-solid) .dh-nav__link,
.dh-nav--overlay:not(.is-solid) .dh-nav__utility,
.dh-nav--overlay:not(.is-solid) .dh-nav__utility a:not(.dh-nav__login) {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.dh-nav--overlay:not(.is-solid) .dh-nav__link:hover { background: rgba(255,255,255,.12); }
.dh-nav--overlay:not(.is-solid) .dh-nav__cart {
	color: #fff;
	background: rgba(255,255,255,.2);
	border-color: rgba(255,255,255,.3);
}
.dh-nav--overlay:not(.is-solid) .dh-nav__cart:hover { background: rgba(255,255,255,.3); }
.dh-nav--overlay:not(.is-solid) .dh-nav__burger { color: var(--dh-champagne); }
.dh-nav--overlay:not(.is-solid) .dh-nav__logo--light { display: block; }
.dh-nav--overlay:not(.is-solid) .dh-nav__logo--dark  { display: none; }

/* Mobile overlay menu */
.dh-mobile {
	position: fixed;
	inset: 0;
	z-index: 500;
	background: var(--dh-burgundy);
	color: var(--dh-linen);
	overflow-y: auto;
	pointer-events: auto;
}
.dh-mobile[hidden] { display: none; }
@media (min-width: 768px) { .dh-mobile { display: none !important; } }

.dh-mobile__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.dh-mobile__top img { height: 24px; width: auto; display: block; }
.dh-mobile__close {
	height: 44px; width: 44px; border: 0; background: transparent;
	color: var(--dh-champagne); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.dh-mobile__close svg { width: 24px; height: 24px; }

.dh-mobile__nav {
	padding: 40px 24px 64px;
	display: flex; flex-direction: column; align-items: center;
	gap: 24px; text-align: center;
}
.dh-mobile__nav a { color: var(--dh-linen); text-decoration: none; }
.dh-mobile__link,
.dh-mobile__row a { font-size: 22px; line-height: 1.25; }
.dh-mobile__group { width: 100%; display: flex; flex-direction: column; align-items: center; }
.dh-mobile__row { display: inline-flex; align-items: center; gap: 8px; }
.dh-mobile__row button {
	border: 0; background: transparent; color: rgba(250,248,243,.6);
	cursor: pointer; display: inline-flex; padding: 4px;
}
.dh-mobile__row button svg { width: 18px; height: 18px; transition: transform .3s ease; }
.dh-mobile__row button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dh-mobile__sub { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dh-mobile__sub[hidden] { display: none; }
.dh-mobile__sub a { font-size: 14px; letter-spacing: .03em; color: rgba(250,248,243,.8); line-height: 1.8; }
.dh-mobile__rule { height: 1px; width: 64px; background: rgba(212,165,122,.4); margin: 16px 0; }

body.dh-menu-open { overflow: hidden; }

/* Non-overlay pages need the fixed header not to cover the content. */
body:not(.dh-home) .dh-nav ~ * .dh-sec:first-child,
body:not(.dh-home) .site-content { padding-top: 96px; }
