/* ==========================================================================
   Global header + mega menus + mobile navigation
   Scoped under .btk-header / .btk-mobile with explicit resets so Vintech's
   global list/link/button styles cannot leak in.
   ========================================================================== */

.btk-header {
	position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 9990;
	background: var(--bt-teal-950); color: #fff; border-bottom: 1px solid transparent;
	transition: background-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow), backdrop-filter var(--dur-slow);
}
/* At the top of every page the header is transparent and sits on dark hero colour:
   overlay pages → the page's own hero runs underneath; band pages → a dark top band (below). */
.btk-header:not(.is-scrolled) { background: transparent; }
body.btk-header-band #pxl-wapper {
	--btk-band-h: calc(var(--btk-header-h) + clamp(150px, 9rem + 6vw, 280px));
	padding-top: calc(var(--btk-header-h) + var(--btk-band-gap, clamp(1rem, .5rem + 1.5vw, 2rem)));
	background:
		repeating-linear-gradient(0deg, rgba(169,195,188,.07) 0 1px, transparent 1px 64px) 0 0 / 100% var(--btk-band-h) no-repeat,
		repeating-linear-gradient(90deg, rgba(169,195,188,.07) 0 1px, transparent 1px 64px) 0 0 / 100% var(--btk-band-h) no-repeat,
		radial-gradient(45% 100% at 85% 0%, rgba(8,126,105,.38), transparent 70%) 0 0 / 100% var(--btk-band-h) no-repeat,
		linear-gradient(180deg, var(--bt-teal-950), var(--bt-teal-900)) 0 0 / 100% var(--btk-band-h) no-repeat,
		#fff;
}
/* Scrolled (both): translucent glass so the page shows through */
.btk-header.is-scrolled {
	background: rgba(11,34,39,.74); border-bottom-color: rgba(255,255,255,.08);
	box-shadow: 0 12px 34px -18px rgba(0,0,0,.55);
	-webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .btk-header.is-scrolled { background: rgba(11,34,39,.94); } }
html { scroll-padding-top: calc(var(--btk-header-h) + 16px); }
.btk-header :is(ul, li) { margin: 0; padding: 0; list-style: none; }
.btk-header :is(a, button) { color: inherit; text-decoration: none; }
.btk-header button { background: none; border: 0; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; }

.btk-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--btk-header-h); }
.btk-header__logo { display: inline-flex; align-items: center; flex: none; }
.btk-logo { display: block; height: 40px; width: auto; }
.btk-header .btk-logo, .btk-mobile .btk-logo { height: 30px; }
.btk-logo--invert { filter: brightness(0) invert(1); }
.btk-logo-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.5rem; }

/* ---------- Top-level ---------- */
.btk-nav { margin-left: auto; }
.btk-nav__list { display: flex; align-items: center; gap: .125rem; }
.btk-nav__item { position: relative; }
.btk-nav__link {
	display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem !important; border-radius: 999px;
	font-family: var(--font-heading) !important; font-weight: 500; font-size: .96875rem; line-height: 1.2; color: #fff !important; cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out);
}
.btk-nav__link:hover, .btk-nav__item.is-open > .btk-nav__link { background: rgba(255,255,255,.1) !important; }
.btk-nav__item.is-current > .btk-nav__link { box-shadow: inset 0 -2px 0 var(--bt-mint-400); }
.btk-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bt-mint-400); }
.btk-nav__chev { width: 12px; height: 12px; transition: transform var(--dur-base) var(--ease-out); }
.btk-nav__item.is-open .btk-nav__chev { transform: rotate(180deg); }
.btk-header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

/* ---------- Panels ---------- */
.btk-panel {
	position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; width: max-content; max-width: min(1120px, calc(100vw - 2 * var(--gutter)));
	padding: 1.25rem; border-radius: var(--radius-lg); background: #fff; color: var(--bt-teal-900);
	box-shadow: 0 40px 80px -30px rgba(11,34,39,.55), 0 0 0 1px rgba(16,47,53,.06);
	opacity: 0; visibility: hidden; transform: translateY(8px) scale(.985); transform-origin: top center;
	transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.btk-panel::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; } /* hover bridge */
.btk-panel.has-feature { grid-template-columns: minmax(0, 1fr) 280px; }
.btk-nav__item.is-open > .btk-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Wide panels align to the viewport, not the trigger */
.btk-panel--mega, .btk-panel--products { position: fixed; top: calc(var(--btk-header-bottom, var(--btk-header-h)) + 10px); }
.btk-panel--dropdown { left: 0; translate: none; min-width: 300px; }

.btk-panel__title { margin: .25rem .5rem .5rem !important; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-green-600); }
.btk-panel__list { display: grid; gap: .125rem .25rem; }
.btk-panel__list.cols-2 { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
.btk-panel__list.cols-3 { grid-template-columns: repeat(3, minmax(230px, 1fr)); }
.btk-mlink { display: flex; gap: .8rem; padding: .7rem .75rem; border-radius: var(--radius-md); color: var(--bt-teal-900) !important; transition: background-color var(--dur-fast) var(--ease-out); }
a.btk-mlink:hover, a.btk-mlink:focus-visible { background: var(--bt-grey-50); }
.btk-mlink[aria-current="page"] { background: var(--bt-mint-100); }
.btk-mlink.is-draft { opacity: .6; cursor: default; }
.btk-mlink__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bt-mint-100); color: var(--bt-green-700); transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base), color var(--dur-base); }
.btk-mlink__icon .btk-i { width: 19px; height: 19px; }
a.btk-mlink:hover .btk-mlink__icon { transform: translateY(-2px) rotate(-4deg); background: var(--bt-green-600); color: #fff; }
.btk-mlink__text { display: grid; gap: .15rem; }
.btk-mlink__name { font-family: var(--font-heading); font-weight: 700; font-size: .9375rem; line-height: 1.3; letter-spacing: -0.01em; }
.btk-mlink__desc { font-size: .8125rem; line-height: 1.45; color: var(--bt-grey-600); }
.btk-panel__all { display: inline-flex; align-items: center; gap: .4rem; margin: .75rem .75rem .25rem; font-family: var(--font-heading); font-weight: 500; font-size: .875rem; color: var(--bt-green-700) !important; }
.btk-panel__all .btk-i { width: 13px; height: 13px; transition: transform var(--dur-base) var(--ease-out); }
.btk-panel__all:hover .btk-i { transform: translateX(4px); }

.btk-panel__feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; min-height: 260px; padding: 1.25rem; border-radius: var(--radius-md); background: var(--bt-teal-900); color: #fff !important; }
.btk-panel__feature-art { position: absolute; top: 0; right: 0; width: 72%; pointer-events: none; transition: transform 1.2s var(--ease-out); }
a.btk-panel__feature:hover .btk-panel__feature-art { transform: rotate(-8deg) scale(1.05); }
.btk-panel__feature .btk-eyebrow { color: var(--bt-mint-400); }
.btk-panel__feature-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.02em; }
.btk-panel__feature-desc { font-size: .875rem; line-height: 1.5; color: var(--bt-grey-300); }
.btk-panel__feature-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; font-family: var(--font-heading); font-weight: 500; font-size: .9375rem; color: var(--bt-mint-400); }
.btk-panel__feature-cta .btk-i { width: 13px; height: 13px; transition: transform var(--dur-base) var(--ease-out); }
a.btk-panel__feature:hover .btk-panel__feature-cta .btk-i { transform: translateX(4px); }
.btk-panel__feature.is-draft { opacity: .75; }

/* Product cards */
.btk-products { display: grid; grid-template-columns: repeat(3, 280px); gap: .75rem; }
.btk-product { display: flex; gap: 1rem; height: 100%; padding: 1.1rem; border-radius: var(--radius-md); color: #fff !important; background: radial-gradient(120% 100% at 100% 0%, var(--bt-teal-800) 0%, var(--bt-teal-900) 60%); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
a.btk-product:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(11,34,39,.7); }
.btk-product.is-draft { background: var(--bt-grey-50); color: var(--bt-teal-900) !important; border: 1px dashed var(--bt-grey-600); }
.btk-product__logo { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: #fff; color: var(--bt-teal-900); font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; }
.btk-product__logo img { width: 100%; height: 100%; object-fit: contain; }
.btk-product__body { display: grid; gap: .25rem; align-content: start; }
.btk-product__cat { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-mint-400); }
.btk-product.is-draft .btk-product__cat { color: var(--bt-grey-600); }
.btk-product__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; }
.btk-product__desc { font-size: .8125rem; line-height: 1.45; color: var(--bt-grey-300); }
.btk-product.is-draft .btk-product__desc { color: var(--bt-grey-600); }
.btk-product__cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-family: var(--font-heading); font-weight: 500; font-size: .875rem; color: var(--bt-mint-400); }
.btk-product__cta .btk-i { width: 12px; height: 12px; }
.btk-product.is-draft .btk-product__cta { display: none; }

/* ---------- Mobile toggle + off-canvas ---------- */
.btk-menu-toggle, .btk-menu-close { display: none; place-items: center; width: 48px; height: 48px; padding: 0 !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.28) !important; color: #fff !important; cursor: pointer; }
.btk-menu-toggle .btk-i, .btk-menu-close .btk-i { width: 22px; height: 22px; }
.btk-mobile {
	position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; overscroll-behavior: contain;
	padding: 1rem var(--gutter) 2rem; background: var(--bt-teal-950); color: #fff;
	animation: btk-mobile-in var(--dur-base) var(--ease-out);
}
.btk-mobile[hidden] { display: none; }
@keyframes btk-mobile-in { from { opacity: 0; transform: translateY(-12px); } }
.btk-mobile :is(ul, li) { margin: 0; padding: 0; list-style: none; }
.btk-mobile a { color: inherit; text-decoration: none; }
.btk-mobile__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.btk-mobile .btk-menu-close { display: grid; background: none; }
.btk-mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--color-border-dark); font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.btk-mnav__top::-webkit-details-marker { display: none; }
.btk-mnav__plus { position: relative; width: 16px; height: 16px; }
.btk-mnav__plus::before, .btk-mnav__plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: var(--bt-mint-400); transition: transform var(--dur-base) var(--ease-out); }
.btk-mnav__plus::after { transform: rotate(90deg); }
.btk-mnav__group[open] .btk-mnav__plus::after { transform: rotate(0deg); }
.btk-mnav__sub { padding: .5rem 0 1rem !important; }
.btk-mnav__link { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .35rem 0 .35rem .25rem; font-size: 1.0625rem; color: var(--bt-grey-300) !important; }
.btk-mnav__link .btk-i { width: 20px; height: 20px; color: var(--bt-mint-400); }
.btk-mnav__link[aria-current="page"] { color: #fff !important; font-weight: 600; }
.btk-mnav__link--all { color: var(--bt-mint-400) !important; font-weight: 600; }
.btk-mnav__link.is-draft { opacity: .6; }
.btk-mobile__contact { display: grid; gap: .75rem; margin: 0; color: var(--bt-grey-300); }
.btk-mobile__contact a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
.btk-mobile__contact .btk-i { width: 18px; height: 18px; color: var(--bt-mint-400); }
html.btk-menu-open { overflow: hidden; }

@media (max-width: 1199px) {
	.btk-nav, .btk-header__cta { display: none !important; }
	.btk-menu-toggle { display: grid; }
	.btk-header__actions { margin-left: auto; }
	:root { --btk-header-h: 68px; }
	.btk-header .btk-logo, .btk-mobile .btk-logo { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.btk-header, .btk-panel, .btk-mlink__icon, .btk-product, .btk-panel__feature-art { transition: none !important; }
	.btk-mobile { animation: none; }
}
.btk-header__logo { min-height: 44px; }
