/* ==========================================================================
   Header section
   Phone: cream bar with the dropdown menu.
   Desktop (1024px and up): dark top bar, then a cream nav bar.
   Colors and fonts are from the brand system. Desktop sizes are provisional.
   ========================================================================== */

:root {
	--wyh-cream: #efe9dd;
	--wyh-paper: #faf9f8;
	--wyh-header-bg: #f1eee9;   /* header bar, sampled from screenshot */
	--wyh-menu-bg: #f1eee9;     /* menu panel, same as header per your direction */
	--wyh-ink: #1a1814;
	--wyh-gold: #c4a882;
	--wyh-topbar-bg: #7f776e;   /* dark top bar on computers */
	--wyh-header-height: 74px;
	--wyh-font-display: 'Playfair Display', Georgia, serif;
	--wyh-font-ui: 'Jost', Helvetica, Arial, sans-serif;
}

.wyh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wyh-header-bg);
	color: var(--wyh-ink);
}

/* Phone: the top bar is the whole header bar */
.wyh-header__top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--wyh-header-height);
	padding: 0 16px;
	box-sizing: border-box;
}

/* Desktop nav bar: hidden on phones */
.wyh-header__nav {
	display: none;
}

/* Icon buttons (menu and search) */
.wyh-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.wyh-header__icon:focus-visible,
.wyh-header a:focus-visible,
.wyh-header button:focus-visible {
	outline: 1px solid var(--wyh-gold);
	outline-offset: 2px;
}

/* Hamburger: three stacked bars, about 16px wide */
.wyh-header__bars {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: 16px;
}

.wyh-header__bars span {
	display: block;
	height: 2px;
	background: currentColor;
}

/* Wordmark: centered, all caps, wide tracking */
.wyh-header__wordmark {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--wyh-font-display);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

/* Dropdown panels (menu and search, phone and tablet) */
.wyh-header__dropdown {
	background: var(--wyh-menu-bg);
	border-top: 1px solid rgba(26, 24, 20, 0.08);
	padding: 24px 24px 32px;
	max-height: calc(100vh - var(--wyh-header-height));
	overflow-y: auto;
}

.wyh-header__dropdown[hidden] {
	display: none;
}

/* Phone menu list: wide-tracked caps, one item per row */
.wyh-menu__list,
.wyh-menu__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wyh-menu__list > li {
	position: relative;
}

.wyh-menu__list > li + li {
	margin-top: 26px;
}

.wyh-menu__list a {
	font-family: var(--wyh-font-ui);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wyh-ink);
	text-decoration: none;
}

.wyh-menu__list > li > a:hover,
.wyh-menu__list > li > a:focus-visible {
	color: var(--wyh-gold);
}

/* Row with a chevron: link on the left, toggle on the right */
.wyh-menu__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wyh-menu__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--wyh-ink);
	cursor: pointer;
}

.wyh-menu__chevron svg {
	transition: transform 0.2s ease;
}

.wyh-menu__chevron[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Phone submenus (Interiors, Lifestyle, The Site) */
.wyh-menu .sub-menu {
	padding: 14px 0 4px 0;
}

.wyh-menu .sub-menu li + li {
	margin-top: 14px;
}

.wyh-menu .sub-menu a {
	font-size: 12px;
	letter-spacing: 0.14em;
}

.wyh-menu .sub-menu[hidden] {
	display: none;
}

/* Search panel: cream, gold underline field, outlined gold button */
.wyh-search {
	background: var(--wyh-menu-bg);
}

.wyh-search__title {
	margin: 0 0 14px;
	font-family: var(--wyh-font-display);
	font-size: 20px;
	font-weight: 400;
	color: var(--wyh-ink);
}

.wyh-search .search-form {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.wyh-search .search-field {
	flex: 1;
	min-width: 0;
	font-family: var(--wyh-font-ui);
	font-size: 15px;
	padding: 10px 2px;
	border: 0;
	border-bottom: 1px solid var(--wyh-gold);
	border-radius: 0;
	background: transparent;
	color: var(--wyh-ink);
}

.wyh-search .search-field:focus {
	outline: none;
	border-bottom-color: var(--wyh-ink);
}

.wyh-search .search-submit {
	font-family: var(--wyh-font-ui);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 10px 14px;
	border: 1px solid var(--wyh-gold);
	background: var(--wyh-paper);
	color: var(--wyh-ink);
	cursor: pointer;
}

.wyh-search .search-submit:hover,
.wyh-search .search-submit:focus-visible {
	background: var(--wyh-ink);
	border-color: var(--wyh-ink);
	color: var(--wyh-paper);
}

/* ==========================================================================
   Desktop (1024px and up)
   ========================================================================== */
@media (min-width: 1024px) {
	/* The header itself has no background. Each bar sets its own. */
	.wyh-header {
		background: none;
	}

	/* Dark top bar with the wordmark and search */
	.wyh-header__top {
		height: 72px;
		padding: 0 40px;
		background: var(--wyh-topbar-bg);
		color: var(--wyh-cream);
	}

	.wyh-header__menu-toggle {
		display: none;
	}

	.wyh-header__wordmark {
		font-size: 20px;
	}

	/* Cream nav bar */
	.wyh-header__nav {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: relative;
		height: 56px;
		padding: 0 40px;
		box-sizing: border-box;
		background: var(--wyh-header-bg);
		border-bottom: 1px solid rgba(26, 24, 20, 0.08);
	}

	/* Left and right slots are the same width so the menu stays centered */
	.wyh-header__start,
	.wyh-header__end {
		display: flex;
		align-items: center;
		width: 200px;
		flex: 0 0 200px;
	}

	.wyh-header__end {
		justify-content: flex-end;
	}

	.wyh-header__start {
		gap: 20px;
	}

	.wyh-header__start a {
		font-family: var(--wyh-font-ui);
		font-size: 11px;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--wyh-ink);
		text-decoration: none;
	}

	.wyh-header__start a:hover,
	.wyh-header__start a:focus-visible {
		color: var(--wyh-gold);
	}

	/* Social icons */
	.wyh-header__start svg {
		display: block;
		width: 16px;
		height: 16px;
	}

	/* Shop button: solid near-black, cream text */
	.wyh-header__shop {
		display: inline-block;
		padding: 11px 18px;
		background: var(--wyh-ink);
		color: var(--wyh-cream);
		font-family: var(--wyh-font-ui);
		font-size: 11px;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
	}

	.wyh-header__shop:hover,
	.wyh-header__shop:focus-visible {
		background: #33281f;
	}

	/* Centered menu */
	.wyh-desktop-nav {
		display: block;
		flex: 1;
	}

	.wyh-desktop-nav__list {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 32px;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.wyh-desktop-nav__list > li {
		position: relative;
	}

	/* The Shop item is shown as the header button instead */
	.wyh-desktop-nav__list > li.wyh-shop {
		display: none;
	}

	.wyh-desktop-nav__list a {
		font-family: var(--wyh-font-ui);
		font-size: 12px;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: var(--wyh-ink);
		text-decoration: none;
		white-space: nowrap;
	}

	.wyh-desktop-nav__list > li > a:hover,
	.wyh-desktop-nav__list > li > a:focus-visible {
		color: var(--wyh-gold);
	}

	/* Submenus open on hover or keyboard focus, centered under their item */
	.wyh-desktop-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: calc(100% + 16px);
		left: 50%;
		transform: translateX(-50%);
		min-width: 200px;
		margin: 0;
		padding: 18px 24px;
		list-style: none;
		text-align: center;
		background: var(--wyh-menu-bg);
		border-top: 1px solid rgba(26, 24, 20, 0.08);
		box-shadow: 0 8px 20px rgba(26, 24, 20, 0.08);
		z-index: 110;
	}

	.wyh-desktop-nav__list li:hover > .sub-menu,
	.wyh-desktop-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	/* Invisible bridge over the gap, so the menu stays open while the mouse moves down into it */
	.wyh-desktop-nav__list .sub-menu::before {
		content: '';
		position: absolute;
		top: -16px;
		left: 0;
		right: 0;
		height: 16px;
	}

	.wyh-desktop-nav__list .sub-menu li + li {
		margin-top: 12px;
	}

	.wyh-desktop-nav__list .sub-menu a {
		font-size: 11px;
		letter-spacing: 0.14em;
	}

	/* The phone dropdown is not used on desktop */
	.wyh-menu {
		display: none !important;
	}
}
