/* Site header — markup in includes/site-header.php, behaviour in assets/js/site-header.js. */

.wsh {
	--wsh-navy: #1B264F;
	--wsh-slate: #474F68;
	--wsh-badge: #E2401C;
	--wsh-orange: #FC5F1A;
	--wsh-orange-hover: #FF9567;
	--wsh-text: #ffffff;
	--wsh-muted: rgba(255, 255, 255, 0.72);
	--wsh-line: rgba(255, 255, 255, 0.14);
	--wsh-bar-h: 90px;

	/* Fixed, like the Elementor header it replaces: every page and template
	   already has ~130px of top spacing built in to clear a header that
	   takes no room in the layout. Sticky (in-flow) would double that gap. */
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--wsh-navy);
	color: var(--wsh-text);
	font-family: 'DM Sans', 'Noto Sans', system-ui, sans-serif;
	transition: box-shadow .2s ease;
}
.wsh.is-scrolled { box-shadow: 0 6px 20px rgba(10, 16, 36, 0.28); }
.wsh *, .wsh *::before, .wsh *::after { box-sizing: border-box; }
.wsh a { text-decoration: none; }
.wsh .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wsh-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ── Utility bar (search · account · cart) ─────────────── */
.wsh-top {
	background: var(--wsh-slate);
	max-height: 80px;
	transition: max-height .25s ease, opacity .2s ease;
}
/* Scrolling down: the utility bar folds away (site-header.js); scrolling up brings it back. */
.wsh.top-hidden .wsh-top { max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.wsh-top__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	min-height: 50px;
	padding-top: 3px;
	padding-bottom: 3px;
}
.wsh-search { width: 230px; max-width: 100%; margin-right: 14px; }

/* ── Main bar (logo · navigation · Contact Us) ─────────── */
.wsh-main { background: var(--wsh-navy); }
.wsh-main__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--wsh-bar-h);
}

.wsh-logo { display: inline-flex; align-items: center; flex: 0 0 auto; margin-right: auto; }
.wsh-logo img { display: block; width: 169px; height: auto; }
.wsh-logo__text { color: #fff; font-weight: 800; font-size: 20px; }
.wsh-logo:focus-visible { outline: 2px solid var(--wsh-orange); outline-offset: 4px; }

.wsh-icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	transition: background .15s ease;
}
.wsh-icon-btn:hover { background: rgba(255, 255, 255, 0.1) !important; }
.wsh-icon-btn:focus-visible { outline: 2px solid var(--wsh-orange); outline-offset: 2px; }

.wsh-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--wsh-badge);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.wsh-cart-count[hidden] { display: none; }

/* Account dropdown (account-nav-icon.php) docked here */
.wsh-account-slot { display: inline-flex; align-items: center; }
.wsh-account-slot .westate-nav-account__toggle { color: #fff !important; }

.wsh-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 15px;
	background: var(--wsh-orange);
	border: 2px solid var(--wsh-orange);
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .32px;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .3s ease, border-color .3s ease;
}
.wsh-cta:hover { background: var(--wsh-orange-hover); border-color: var(--wsh-orange-hover); }
.wsh-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Product search: transparent on the navy bar ────────── */
.wsh .wsfl-search-form { margin: 0; }
.wsh .wsfl-search-form .wsfl-search-wrap {
	height: 40px;
	padding: 0 12px !important;
	background: transparent !important;
	border: 1px solid #ffffff !important;
	border-radius: 4px !important;
	color: #fff;
	transition: border-color .15s ease, background .15s ease;
}
.wsh .wsfl-search-form .wsfl-search-wrap:hover { border-color: rgba(255, 255, 255, 0.85) !important; }
.wsh .wsfl-search-form .wsfl-search-wrap:focus-within {
	border-color: var(--wsh-orange) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}
.wsh .wsfl-search-form .wsfl-search-wrap > svg { display: none; }
.wsh .wsfl-search-form .wsfl-search-input {
	background: transparent !important;
	color: #fff !important;
	font-size: 14px !important;
	height: 38px;
}
.wsh .wsfl-search-form .wsfl-search-input::placeholder { color: rgba(255, 255, 255, 0.7) !important; }
.wsh .wsfl-search-form .wsfl-search-clear { color: rgba(255, 255, 255, 0.8) !important; background: transparent !important; }
.wsh .wsfl-suggestions { color: #1B264F; }

/* ── Navigation (desktop, inside the main bar) ───────────── */
.wsh-menu { list-style: none; margin: 0; padding: 0; }
.wsh-nav .wsh-menu { display: flex; align-items: center; gap: 22px; }
.wsh-menu__item { position: relative; margin: 0; padding: 0; }
.wsh-menu__row { display: flex; align-items: center; height: 100%; }
.wsh-menu__link {
	display: inline-flex;
	align-items: center;
	height: 100%;
	min-height: 44px;
	padding: 0 4px 0 6px;
	color: #fff !important;
	font-size: 16px;
	font-weight: 400;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.wsh-menu__item:not(.has-sub) > .wsh-menu__row .wsh-menu__link { padding-right: 6px; }
.wsh-menu__link:hover,
.wsh-menu__link[aria-current="page"] { color: var(--wsh-orange-hover) !important; }
.wsh-nav .wsh-menu__link[aria-current="page"] { border-bottom-color: var(--wsh-orange); }
.wsh-menu__link:focus-visible { outline: 2px solid var(--wsh-orange); outline-offset: -2px; }

.wsh-menu__toggle {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 32px;
	margin-left: 6px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
}
.wsh-menu__toggle svg { transition: transform .2s ease; margin-top: 1px; }
.wsh-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.wsh-menu__toggle:hover { background: rgba(255, 255, 255, 0.1) !important; }
.wsh-menu__toggle:focus-visible { outline: 2px solid var(--wsh-orange); outline-offset: 0; }

/* Desktop dropdowns */
.wsh-nav .wsh-sub {
	position: absolute;
	top: calc(100% + 24px);
	left: 0;
	min-width: 240px;
	padding: 10px 0;
	background: #fff;
	border-top: 3px solid var(--wsh-orange);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 14px 34px rgba(10, 16, 36, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 20;
}
/* Invisible bridge over the gap between the link and its dropdown, so the
   pointer can travel down without the menu closing. */
.wsh-nav .wsh-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -27px; height: 27px; }
.wsh-nav .wsh-menu__item.is-open > .wsh-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .15s ease, visibility 0s; }
.wsh-nav .wsh-sub--products { min-width: 520px; padding: 14px 8px 8px; }
.wsh-nav .wsh-sub--products .wsh-sub__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wsh-sub__list { list-style: none; margin: 0; padding: 0; }
.wsh-sub__list li { margin: 0; padding: 0; }
.wsh-sub__link {
	display: block;
	padding: 10px 18px;
	color: #1B264F !important;
	font-size: 15px;
	line-height: 1.3;
	border-radius: 4px;
}
.wsh-sub__link:hover, .wsh-sub__link:focus-visible { background: #FFF1EA; color: #C9440F !important; outline: none; }
.wsh-sub__link[aria-current="page"] { color: var(--wsh-orange) !important; font-weight: 600; }
.wsh-sub__all {
	display: block;
	margin: 8px 10px 4px;
	padding: 10px 8px 4px;
	border-top: 1px solid #EEF0F4;
	color: var(--wsh-orange) !important;
	font-weight: 700;
	font-size: 14px;
}
.wsh-sub__all:hover { text-decoration: underline; }

/* ── Mobile panel ───────────────────────────────────────── */
.wsh .wsh-burger { display: none !important; }
.wsh-panel[hidden] { display: none; }
.wsh-panel { position: fixed; inset: 0; z-index: 1001; }
.wsh-panel__backdrop { position: absolute; inset: 0; background: rgba(10, 16, 36, 0.55); }
.wsh-panel__sheet {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(88vw, 360px);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 16px 20px;
	background: var(--wsh-navy);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-100%);
	transition: transform .25s ease;
}
.wsh-panel.is-open .wsh-panel__sheet { transform: none; }
.wsh-panel__head { display: flex; align-items: center; justify-content: space-between; }
.wsh-panel__title { font-size: 18px; font-weight: 700; color: #fff; }
.wsh-panel__nav .wsh-menu__item { border-bottom: 1px solid var(--wsh-line); }
.wsh-panel__nav .wsh-menu__row { justify-content: space-between; }
.wsh-panel__nav .wsh-menu__link { padding: 0 4px; font-size: 17px; min-height: 52px; border: 0; }
.wsh-panel__nav .wsh-menu__toggle { width: 44px; height: 44px; margin: 0; }
.wsh-panel__nav .wsh-sub { display: none; padding: 0 0 10px 10px; }
.wsh-panel__nav .wsh-menu__item.is-open > .wsh-sub { display: block; }
.wsh-panel__nav .wsh-sub__link { color: rgba(255, 255, 255, 0.86) !important; padding: 10px 8px; font-size: 15px; }
.wsh-panel__nav .wsh-sub__link:hover { background: rgba(255, 255, 255, 0.08); color: #fff !important; }
.wsh-panel__nav .wsh-sub__all { border-top-color: var(--wsh-line); margin: 6px 0 0; }
.wsh-cta--block { display: flex; width: 100%; margin: 8px 0 0; }
html.wsh-locked { overflow: hidden; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1180px) {
	.wsh-nav .wsh-menu { gap: 12px; }
	.wsh-menu__link { font-size: 15px; }
	.wsh-main__inner { gap: 16px; }
}

@media (max-width: 1024px) {
	.wsh { --wsh-bar-h: 70px; }
	.wsh-nav, .wsh-main .wsh-cta { display: none; }
	.wsh .wsh-burger { display: inline-grid !important; margin-right: -8px; }
	.wsh-logo img { width: 140px; }
	.wsh-top__inner { gap: 6px; }
	.wsh-search { flex: 1 1 auto; width: auto; margin-right: 4px; }
}

@media (max-width: 380px) {
	.wsh-logo img { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	.wsh, .wsh-top, .wsh-nav .wsh-sub, .wsh-panel__sheet, .wsh-menu__toggle svg { transition: none !important; }
}
