/* PackMOQ Header Manager — front-end
   All colours/sizes come from CSS custom properties printed by the plugin. */

.pmqhm, .pmqhm * , .pmqhm *::before, .pmqhm *::after { box-sizing: border-box; }

.pmqhm {
	font-family: var(--pmqhm-font);
	position: relative;
	z-index: 9000;
	line-height: 1.4;
}
.pmqhm.is-sticky { position: sticky; top: 0; }
.admin-bar .pmqhm.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .pmqhm.is-sticky { top: 46px; } }

.pmqhm .pmqhm-wrap {
	max-width: var(--pmqhm-max);
	margin: 0 auto;
	padding: 0 var(--pmqhm-pad);
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
}
.pmqhm img { max-width: 100%; height: auto; }
.pmqhm a { text-decoration: none; }
/* Themes commonly restyle every <button>; these win it back. */
.pmqhm button,
.pmqhm .pmqhm-icon-btn,
.pmqhm .pmqhm-burger,
.pmqhm .pmqhm-drawer-close,
.pmqhm-drawer button {
	font: inherit; cursor: pointer; background: none; border: 0; color: inherit;
	margin: 0; padding: 0; min-width: 0; min-height: 0; box-shadow: none;
	text-transform: none; letter-spacing: normal; line-height: 1;
	-webkit-appearance: none; appearance: none;
}
.pmqhm svg, .pmqhm-drawer svg { flex: 0 0 auto; display: block; max-width: none; }
.pmqhm .pmqhm-ico-custom, .pmqhm-drawer .pmqhm-ico-custom { object-fit: contain; display: block; }
.pmqhm .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- Utility bar ---------------- */

.pmqhm-utility {
	background: var(--pmqhm-utility-bg);
	color: var(--pmqhm-utility-text);
	font-size: 13px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.pmqhm-utility .pmqhm-wrap { min-height: 40px; justify-content: space-between; gap: 16px; }
.pmqhm-u-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pmqhm-u-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 0 18px; position: relative; }
.pmqhm-u-item:first-child { padding-left: 0; }
.pmqhm-u-item + .pmqhm-u-item::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 1px; height: 14px; background: currentColor; opacity: .25;
}
.pmqhm-u-item a, .pmqhm-u-item > span { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.pmqhm-u-item a:hover { color: #fff; }
.pmqhm-u-item a:hover .pmqhm-u-ico { color: var(--pmqhm-utility-icon); }
.pmqhm-u-item > .pmqhm-u-ico,
.pmqhm-u-item a .pmqhm-u-ico,
.pmqhm-u-right .pmqhm-u-ico { color: var(--pmqhm-utility-icon); display: inline-flex; flex: 0 0 auto; }
.pmqhm-u-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.pmqhm-u-contact { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 600; }
.pmqhm-u-contact:hover { color: #fff; }
.pmqhm-u-contact svg { color: var(--pmqhm-utility-icon); }
.pmqhm-socials { display: inline-flex; align-items: center; gap: 6px; }
.pmqhm-socials a {
	width: 28px; height: 28px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: inherit; background: rgba(255,255,255,.10); transition: background .18s ease, color .18s ease;
}
.pmqhm-socials a:hover { background: var(--pmqhm-utility-icon); color: #fff; }

/* ---------------- Main bar ---------------- */

.pmqhm-bar {
	background: var(--pmqhm-bar-bg);
	border-bottom: 1px solid var(--pmqhm-bar-border);
	position: relative;
}
.pmqhm-bar .pmqhm-wrap { min-height: var(--pmqhm-bar-h); transition: min-height .22s ease; }
.pmqhm.is-shrunk .pmqhm-bar .pmqhm-wrap { min-height: calc(var(--pmqhm-bar-h) - 14px); }
.pmqhm.is-shrunk .pmqhm-bar { box-shadow: 0 10px 28px -18px rgba(20,19,49,.45); }

.pmqhm-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.pmqhm-logo-img { width: var(--pmqhm-logo-w); height: auto; display: block; }
.pmqhm-logo-text { font-size: 22px; font-weight: 800; color: var(--pmqhm-nav); letter-spacing: -.02em; }

/* ---------------- Desktop nav ---------------- */

.pmqhm-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.pmqhm-item { position: relative; }
.pmqhm-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 11px 13px; border-radius: 10px;
	color: var(--pmqhm-nav);
	font-size: var(--pmqhm-nav-fs); font-weight: var(--pmqhm-nav-fw);
	letter-spacing: -.1px; white-space: nowrap;
	transition: color .16s ease, background .16s ease;
}
.pmqhm-link:hover, .pmqhm-item.is-open > .pmqhm-link, .pmqhm-item.is-current > .pmqhm-link { color: var(--pmqhm-nav-hover); }
.pmqhm-chev { transition: transform .2s ease; opacity: .7; }
.pmqhm-item.is-open .pmqhm-chev { transform: rotate(180deg); }
.pmqhm-link-ico { display: inline-flex; color: var(--pmqhm-nav-hover); }
.pmqhm-link-ico .pmqhm-ico-custom { width: 17px; height: 17px; }
.pmqhm-pill {
	font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: var(--pmqhm-badge-bg); color: var(--pmqhm-badge-text);
	padding: 3px 7px; border-radius: 999px; line-height: 1;
}

/* Dropdown panels */
.pmqhm-panel {
	position: absolute; top: calc(100% + 10px); left: 0;
	background: var(--pmqhm-panel-bg);
	border: 1px solid var(--pmqhm-bar-border);
	border-radius: var(--pmqhm-panel-radius);
	box-shadow: 0 18px 48px -12px rgba(28,27,60,.22), 0 2px 8px rgba(28,27,60,.06);
	padding: 14px;
	min-width: 306px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	max-height: calc(100vh - var(--pmqhm-bar-h) - 80px);
	overflow-y: auto;
}
.pmqhm-item.is-open > .pmqhm-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.pmqhm-panel.is-flip-right { left: auto; right: 0; }
.pmqhm-panel-inner { display: grid; gap: 14px; }
.pmqhm-panel.is-multi { min-width: 520px; }
.pmqhm-panel.is-multi .pmqhm-panel-inner { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.pmqhm-group-label {
	margin: 2px 0 7px; padding: 0 10px;
	font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--pmqhm-panel-label);
}
.pmqhm-panel-link {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 9px 10px; border-radius: 9px;
	color: var(--pmqhm-panel-text); font-size: 14px; font-weight: 500;
	transition: background .14s ease, color .14s ease;
}
.pmqhm-panel-link:hover { background: var(--pmqhm-panel-hover); color: var(--pmqhm-nav-hover); }
.pmqhm-panel-ico { flex: 0 0 auto; margin-top: 1px; color: var(--pmqhm-nav-hover); }
.pmqhm-panel-ico .pmqhm-ico-custom { width: 17px; height: 17px; }
.pmqhm-panel-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmqhm-panel-desc { font-size: 12.5px; color: var(--pmqhm-panel-label); font-weight: 400; }
.pmqhm-panel-all {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: 12px; padding: 11px 12px; border-radius: 9px;
	background: var(--pmqhm-panel-hover);
	color: var(--pmqhm-nav-hover); font-size: 13.5px; font-weight: 700;
	transition: background .16s ease;
}
.pmqhm-panel-all:hover { background: var(--pmqhm-bar-border); }

/* ---------------- Actions ---------------- */

.pmqhm-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.pmqhm .pmqhm-icon-btn {
	width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--pmqhm-nav); border: 1px solid var(--pmqhm-bar-border);
	padding: 0; position: relative;
	transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.pmqhm .pmqhm-icon-btn svg { width: 19px; height: 19px; }
.pmqhm .pmqhm-icon-btn:hover { color: var(--pmqhm-nav-hover); border-color: var(--pmqhm-nav-hover); }
.pmqhm-badge {
	position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; background: var(--pmqhm-badge-bg); color: var(--pmqhm-badge-text);
	font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.pmqhm-cta {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--pmqhm-cta-bg); color: var(--pmqhm-cta-text);
	padding: 13px 20px; border-radius: var(--pmqhm-radius);
	font-size: var(--pmqhm-nav-fs); font-weight: 700; letter-spacing: -.1px; white-space: nowrap;
	transition: background .16s ease, transform .16s ease;
}
.pmqhm-cta:hover { background: var(--pmqhm-cta-bg-hover); color: var(--pmqhm-cta-text); transform: translateY(-1px); }
.pmqhm-cta-block { width: 100%; }

.pmqhm .pmqhm-burger {
	width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; padding: 0;
	display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
	border: 1px solid var(--pmqhm-bar-border);
}
.pmqhm .pmqhm-burger span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--pmqhm-nav); transition: transform .22s ease, opacity .22s ease; }
.pmqhm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pmqhm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pmqhm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Search ---------------- */

.pmqhm-search {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--pmqhm-bar-bg);
	border-bottom: 1px solid var(--pmqhm-bar-border);
	box-shadow: 0 18px 40px -22px rgba(28,27,60,.4);
	padding: 16px 0;
}
.pmqhm-search[hidden] { display: none; }
.pmqhm-search form {
	display: flex; align-items: center; gap: 10px; width: 100%;
	border: 1px solid var(--pmqhm-bar-border); border-radius: var(--pmqhm-radius);
	padding: 6px 6px 6px 18px; background: var(--pmqhm-panel-hover);
}
.pmqhm-search form > svg { color: var(--pmqhm-panel-label); flex: 0 0 auto; }
.pmqhm-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
	font: inherit; font-size: 15px; color: var(--pmqhm-nav); padding: 10px 0;
}
.pmqhm .pmqhm-search button[type="submit"] {
	background: var(--pmqhm-cta-bg); color: var(--pmqhm-cta-text);
	padding: 11px 22px; border-radius: var(--pmqhm-radius); font-weight: 700; font-size: 14px;
	flex: 0 0 auto;
}
.pmqhm .pmqhm-search button[type="submit"]:hover { background: var(--pmqhm-cta-bg-hover); }
.pmqhm .pmqhm-search-close { font-size: 26px; line-height: 1; color: var(--pmqhm-panel-label); padding: 0 10px; flex: 0 0 auto; }

/* ---------------- Mobile drawer ---------------- */

.pmqhm-overlay {
	position: fixed; inset: 0; background: rgba(20,19,49,.55);
	opacity: 0; transition: opacity .25s ease; z-index: 9998;
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.pmqhm-overlay[hidden] { display: none; }
.pmqhm-overlay.is-visible { opacity: 1; }

.pmqhm-drawer {
	position: fixed; top: 0; bottom: 0;
	width: min(var(--pmqhm-drawer-w), 88vw);
	background: var(--pmqhm-drawer-bg); color: var(--pmqhm-drawer-text);
	z-index: 9999; display: flex; flex-direction: column;
	transition: transform .28s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 0 60px rgba(20,19,49,.28);
}
.pmqhm-drawer[hidden] { display: none; }
.pmqhm-drawer--right { right: 0; transform: translateX(100%); }
.pmqhm-drawer--left  { left: 0;  transform: translateX(-100%); }
.pmqhm-drawer.is-open { transform: translateX(0); }

.pmqhm-drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--pmqhm-bar-border); flex: 0 0 auto;
}
.pmqhm-drawer-title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pmqhm-panel-label); }
.pmqhm-drawer .pmqhm-drawer-close {
	width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(214, 40, 40, .10);
	border: 1.5px solid var(--pmqhm-cta-bg);
	color: var(--pmqhm-cta-bg);
	transition: background .16s ease, color .16s ease, transform .16s ease;
}
.pmqhm-drawer .pmqhm-drawer-close svg { width: 18px; height: 18px; }
.pmqhm-drawer .pmqhm-drawer-close:hover { background: var(--pmqhm-cta-bg); color: #fff; transform: rotate(90deg); }

.pmqhm-drawer-body {
	flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
	padding: 8px 12px calc(20px + env(safe-area-inset-bottom));
}
.pmqhm-drawer-nav { display: block; }

/* Search + quote + contact sit directly after the last menu item. */
.pmqhm-drawer-extras {
	margin: 14px 0 0; padding: 16px 10px 4px;
	border-top: 1px solid var(--pmqhm-bar-border);
	display: grid; gap: 12px;
}
.pmqhm-drawer-search {
	display: flex; align-items: center; gap: 9px;
	background: var(--pmqhm-panel-hover);
	border: 1px solid var(--pmqhm-bar-border);
	border-radius: var(--pmqhm-radius);
	padding: 5px 5px 5px 15px;
}
.pmqhm-drawer-search > svg { color: var(--pmqhm-panel-label); }
.pmqhm-drawer-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
	font: inherit; font-size: 15px; color: var(--pmqhm-drawer-text); padding: 9px 0;
	-webkit-appearance: none; appearance: none;
}
.pmqhm-drawer .pmqhm-drawer-search button[type="submit"] {
	width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--pmqhm-cta-bg); color: var(--pmqhm-cta-text);
	transition: background .16s ease;
}
.pmqhm-drawer .pmqhm-drawer-search button[type="submit"]:hover { background: var(--pmqhm-cta-bg-hover); }
.pmqhm-drawer .pmqhm-acc-trigger, .pmqhm-drawer .pmqhm-acc-single {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	width: 100%; text-align: left; padding: 14px 10px; border-radius: 10px;
	color: var(--pmqhm-drawer-text); font-size: 15.5px; font-weight: 600;
	background: none; border: 0;
}
.pmqhm-acc-label-wrap { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pmqhm-acc-ico { display: inline-flex; color: var(--pmqhm-nav-hover); }
.pmqhm-acc-ico .pmqhm-ico-custom { width: 18px; height: 18px; }
.pmqhm-drawer .pmqhm-acc-trigger:hover, .pmqhm-drawer .pmqhm-acc-single:hover { background: var(--pmqhm-panel-hover); }
.pmqhm-drawer .pmqhm-acc-trigger[aria-expanded="true"] { color: var(--pmqhm-nav-hover); }
.pmqhm-drawer .pmqhm-acc-trigger[aria-expanded="true"] .pmqhm-chev { transform: rotate(180deg); }
.pmqhm-acc-body { padding: 2px 0 10px 10px; border-left: 2px solid var(--pmqhm-bar-border); margin: 0 0 6px 12px; }
.pmqhm-acc-body[hidden] { display: none; }
.pmqhm-acc-label {
	margin: 10px 0 4px; padding: 0 10px;
	font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pmqhm-panel-label);
}
.pmqhm-acc-body a {
	display: block; padding: 10px; border-radius: 8px;
	color: var(--pmqhm-drawer-text); font-size: 14.5px; font-weight: 500;
}
.pmqhm-acc-body a:hover { background: var(--pmqhm-panel-hover); color: var(--pmqhm-nav-hover); }
.pmqhm-acc-all { color: var(--pmqhm-nav-hover) !important; font-weight: 700 !important; }

.pmqhm-drawer-contact { display: inline-flex; align-items: center; gap: 9px; color: var(--pmqhm-drawer-text); font-size: 14px; font-weight: 600; }
.pmqhm-drawer-contact svg { color: var(--pmqhm-nav-hover); }
.pmqhm-drawer-socials { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.pmqhm-drawer-socials a {
	width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--pmqhm-bar-border); color: var(--pmqhm-drawer-text);
}
.pmqhm-drawer-socials a:hover { background: var(--pmqhm-cta-bg); color: #fff; border-color: var(--pmqhm-cta-bg); }
.pmqhm-drawer-socials .pmqhm-ico-custom { width: 18px; height: 18px; }

body.pmqhm-locked { overflow: hidden; }

/* ---------------- Responsive refinements ---------------- */

@media (max-width: 1180px) {
	.pmqhm-bar .pmqhm-wrap { min-height: var(--pmqhm-bar-h-m); gap: 12px; }
	.pmqhm-logo-img { width: var(--pmqhm-logo-w-m); }
}
@media (max-width: 1024px) {
	.pmqhm-u-mail { display: none; }
}
@media (max-width: 880px) {
	.pmqhm-utility { font-size: 12.5px; }
	.pmqhm-utility .pmqhm-wrap { gap: 12px; }
	/* The selling points scroll on their own so they can never run under the contact block. */
	.pmqhm-u-list { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.pmqhm-u-list::-webkit-scrollbar { display: none; }
	/* Fade the cut edge so a clipped item reads as scrollable, not broken. */
	.pmqhm-u-list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
		mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%); }
	.pmqhm-socials { display: none; }
	.pmqhm-u-right { flex: 0 0 auto; margin-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
	.pmqhm .pmqhm-wrap { padding: 0 16px; }
	.pmqhm-icon-btn { width: 40px; height: 40px; }
	.pmqhm-actions { gap: 6px; }
	.pmqhm-search form { padding-left: 14px; flex-wrap: wrap; }
	.pmqhm-search button[type="submit"] { padding: 10px 16px; }
	.pmqhm-u-item { padding: 0 12px; }
}
@media (max-width: 480px) {
	.pmqhm-utility .pmqhm-u-right .pmqhm-u-contact span { display: none; }
	.pmqhm-utility .pmqhm-u-right .pmqhm-u-contact { padding: 4px; }
	.pmqhm-drawer { width: 100vw; }
	.pmqhm-search button[type="submit"] { flex: 1 1 auto; }
}
@media (max-width: 360px) {
	.pmqhm-logo-img { width: 112px; }
}

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

/* Focus visibility for keyboard users */
.pmqhm a:focus-visible, .pmqhm button:focus-visible, .pmqhm input:focus-visible,
.pmqhm-drawer a:focus-visible, .pmqhm-drawer button:focus-visible {
	outline: 2px solid var(--pmqhm-nav-hover); outline-offset: 2px; border-radius: 6px;
}
