/* Giant Truss — site header */

.gt-header {
	position: sticky;
	top: 0;
	z-index: 500;
	/* A 10% purple wash falling away from the top edge, over a mostly opaque
	   white. The white was 30% — too sheer for dark menu text to survive the
	   imagery passing underneath. */
	--gt-header-wash: linear-gradient(180deg, rgba(123, 79, 244, .10), rgba(123, 79, 244, 0));
	background: var(--gt-header-wash), rgba(255, 255, 255, .82);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid rgba(236, 236, 236, .35);
	font-family: "Inter Tight", Arial, Helvetica, sans-serif;
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Once the page scrolls, the bar goes solid white so the dark menu text stays
   readable over whatever passes underneath. The blur is dropped with it —
   there is nothing left to see through, and it is not free to composite. */
.gt-header.is-scrolled {
	background: var(--gt-header-wash), #fff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: #e8e8e8;
	box-shadow: 0 1px 18px rgba(0, 0, 0, .07);
}
.gt-header * { box-sizing: border-box; }

.gt-header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 40px);
	height: clamp(62px, 6vw, 78px);
	/* Three columns with equal-width outer tracks so the nav sits on the
	   header's true center line, regardless of the logo and actions blocks
	   being different widths — a flex row centered "in the leftover space"
	   drifts off-center whenever those two side blocks don't match. */
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
}

/* Logo */
.gt-logo { display: flex; align-items: center; justify-self: start; text-decoration: none; }
.gt-logo img { height: clamp(34px, 3.4vw, 44px); width: auto; display: block; }
.gt-logo-text {
	font-family: "Inter Tight", sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111;
}

/* Nav */
.gt-nav { justify-self: center; display: flex; justify-content: center; }
.gt-menu { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); list-style: none; margin: 0; padding: 0; }
.gt-menu li { position: relative; }
.gt-menu > li > a {
	display: block;
	padding: 8px 2px;
	font-size: clamp(13px, 1.05vw, 15px);
	font-weight: 500;
	color: #1c1c1c;
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s;
}
.gt-menu > li > a:hover,
.gt-menu > li.current-menu-item > a,
.gt-menu > li.current-menu-ancestor > a { color: var(--gt-purple, #7B4FF4); }

/* caret on parents */
.gt-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	transform: translateY(2px);
}

/* Dropdowns */
.gt-menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 234px;
	background: #fff;
	border: 1px solid #ececec;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease;
	z-index: 10;
}
.gt-menu li:hover > ul.sub-menu,
.gt-menu li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gt-menu ul.sub-menu ul.sub-menu { top: -8px; left: 100%; }
.gt-menu ul.sub-menu li a {
	display: block;
	padding: 8px 18px;
	font-size: 13.5px;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
}
.gt-menu ul.sub-menu li a:hover { color: var(--gt-purple, #7B4FF4); background: #faf8ff; }
.gt-menu ul.sub-menu li.menu-item-has-children > a::after {
	content: "›";
	float: right;
	opacity: .55;
}

/* Actions */
.gt-header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.gt-header .gt-quote {
	display: inline-block;
	background: var(--gt-purple, #7B4FF4);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 5px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .18s;
}
.gt-header .gt-quote:hover { background: var(--gt-purple-dark, #5F34D6); color: #fff; }
/* Scoped with .gt-header so it outranks WoodMart's
   :is(.btn, .button, button, …) { min-height: var(--btn-height, 42px) },
   which is the same (0,1,0) specificity and would otherwise win on order —
   holding the control at 42px, just under the 44px touch minimum. */
.gt-header .gt-search-toggle {
	/* Reads WoodMart's own button token rather than `none`: raising this rule's
	   specificity means it now wins the background too, and `none` would have
	   silently dropped the grey backdrop this control has always had. */
	background: var(--btn-bgcolor, #F3F3F3);
	border: 0;
	cursor: pointer;
	color: #1c1c1c;
	display: grid;
	place-items: center;
	padding: 6px;
	min-width: 44px;
	min-height: 44px;
}
.gt-search-toggle:hover { color: var(--gt-purple, #7B4FF4); }

/* Search bar */
.gt-searchbar { border-top: 1px solid #ececec; background: #fafafa; }
.gt-searchbar form {
	max-width: 1400px;
	margin: 0 auto;
	padding: 12px clamp(16px, 3vw, 40px);
	display: flex;
	gap: 10px;
}
.gt-searchbar input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
}
.gt-searchbar button {
	background: var(--gt-purple, #7B4FF4);
	color: #fff;
	border: 0;
	border-radius: 5px;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

/* Burger + drawer */
/* 44×44 is the minimum comfortable touch target; the bars stay 22px so the
   icon looks unchanged and only the tappable area grows. */
.gt-header .gt-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; }
.gt-burger span { display: block; width: 22px; margin: 5px auto; height: 2px; background: #1c1c1c; border-radius: 2px; }

.gt-drawer { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .45); }
.gt-drawer-panel {
	position: absolute;
	inset: 0 22% 0 0;
	max-width: 360px;
	background: #fff;
	overflow-y: auto;
	padding: 20px 18px 40px;
}
.gt-drawer-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #333; }
.gt-drawer-menu, .gt-drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.gt-drawer-menu > li > a { font-weight: 600; font-size: 15px; }
.gt-drawer-menu a { display: block; padding: 10px 4px; color: #1c1c1c; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.gt-drawer-menu ul { padding-left: 14px; }
.gt-drawer-menu ul a { font-size: 13.5px; color: #555; }
.gt-drawer-menu a:hover { color: var(--gt-purple, #7B4FF4); }
.gt-quote-mobile { margin-top: 18px; text-align: center; display: block; }

@media (max-width: 1100px) {
	/* Nav is gone (drawer handles it), leaving burger + logo + actions — back
	   to a simple flex row, since the 3-column grid was only there to keep
	   the desktop nav on the true center line. */
	.gt-header-inner { display: flex; }
	.gt-nav { display: none; }
	.gt-header .gt-burger { display: block; }
	.gt-logo { flex: 1 1 auto; }
	.gt-header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
	.gt-header .gt-quote { display: none; }
	.gt-quote-mobile { display: block; }
}

/* ── Mega menu ──────────────────────────────────────────────── */
.gt-menu > li.gt-has-mega { position: static; }   /* panel spans the header */

.gt-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid #ececec;
	box-shadow: 0 22px 44px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease;
	z-index: 20;
	max-height: calc(100vh - 90px);
	overflow-y: auto;
	/* Closed panel must not be hit-testable at all. */
	pointer-events: none;
}
.gt-menu > li.gt-has-mega.is-open > .gt-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Fallback: if the header script fails to run, hovering the menu item still
   opens the panel. `gt-js` is added by header.js, which disables this. */
body:not(.gt-js) .gt-menu > li.gt-has-mega:hover > .gt-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.gt-mega-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(22px, 2.6vw, 36px) clamp(16px, 3vw, 40px) clamp(16px, 2vw, 24px);
}

.gt-mega-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 34px) clamp(20px, 2.6vw, 44px);
}

.gt-mega-head {
	display: block;
	font-family: "Inter Tight", sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #111 !important;
	padding-bottom: 7px;
	margin-bottom: 9px;
	border-bottom: 2px solid var(--gt-purple, #7B4FF4);
}
.gt-mega-head:hover { color: var(--gt-purple, #7B4FF4) !important; }

.gt-mega-list { list-style: none; margin: 0; padding: 0; }
.gt-mega-list > li { margin-bottom: 8px; }
.gt-mega-list > li > a {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	color: #333;
	padding: 1px 0;
}
.gt-mega-list > li > a:hover { color: var(--gt-purple, #7B4FF4); }

.gt-mega-sub { display: block; font-size: 11.5px; line-height: 1.5; color: #999; margin-top: 1px; }
.gt-mega-sub a { color: #999; }
.gt-mega-sub a:hover { color: var(--gt-purple, #7B4FF4); }

.gt-mega-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: clamp(16px, 2vw, 26px);
	padding-top: 14px;
	border-top: 1px solid #eee;
}
.gt-mega-all { font-size: 13.5px; font-weight: 600; color: var(--gt-purple, #7B4FF4) !important; }
.gt-mega-note { font-size: 12.5px; color: #999; }

@media (max-width: 1280px) {
	.gt-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.gt-mega { display: none; }   /* drawer handles mobile */
}

/* Mega lists are ordinary flow content, never dropdowns */
.gt-menu .gt-mega ul {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	min-width: 0;
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
}

/* GT: drawer accordion -----------------------------------------------------
   wp_nav_menu renders depth=3 as nested <ul class="sub-menu">. Nothing
   collapsed them, so the whole product tree rendered open (~2000px tall).
   Collapse by default; JS adds a toggle per parent item.
   -------------------------------------------------------------------------- */
.gt-drawer-menu .sub-menu {
  display: none;
  margin: 0;
  padding-left: 14px;
  list-style: none;
}
.gt-drawer-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
.gt-drawer-menu .menu-item-has-children { position: relative; }
.gt-drawer-menu .menu-item-has-children > a { padding-right: 48px; }
.gt-drawer-menu .gt-submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: #1c1c1c;
  font: 400 20px/1 Arial, sans-serif;
}
.gt-drawer-menu .gt-submenu-toggle:focus-visible { outline: 2px solid #7140eb; outline-offset: -2px; }
/* GT: end drawer accordion */

/* GT: mobile header fit ----------------------------------------------------
   The logo is 1200x150 (8:1). It was being rendered 80x22 (3.6:1) with
   object-fit:fill -- visibly squashed -- because burger + logo + CTA + search
   needed 307px of the 307px available at 375px wide.
   Fix: never distort the logo, and drop the header CTA on phones. The drawer
   already contains its own "Get A Quote" (.gt-quote-mobile), so nothing is
   lost; that frees ~151px and the logo renders at its true 176px width.
   -------------------------------------------------------------------------- */
.gt-header .gt-logo { flex: 0 0 auto; }
.gt-header .gt-logo img {
  height: clamp(34px, 3.4vw, 44px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 575px) {
  .gt-header .gt-quote { display: none !important; }
  .gt-header .gt-logo img { height: 32px; }
}
/* GT: end mobile header fit */


/* GT: even nav whitespace -------------------------------------------------
   Earlier attempt equalised TEXT-to-TEXT distance by absolutely positioning
   the caret at the link's right edge. That was the wrong metric: the eye
   reads the CLEAR SPACE between items, and pinning the caret right meant
   dropdown items had ~20px of clear space after the caret while plain items
   had ~28px -- visibly tighter before "Contact Us".
   The caret belongs to its own label, so it sits inline right after the text
   with a small margin, and the flex gap then provides identical clear space
   after every item, caret or not.
   -------------------------------------------------------------------------- */
.gt-menu > li > a { position: relative; padding-right: 2px; }
.gt-menu > li.menu-item-has-children > a::after {
  position: static;
  margin-left: 6px;
  transform: translateY(2px);
}
/* GT: end even nav whitespace */

/* GT: pill header ---------------------------------------------------------
   New UI: the bar itself is transparent; the logo and nav ride in a floating
   white pill, with Download Catalog + Get A Quote sitting outside it on the
   right. Nav spacing is a single uniform flex gap, so the clear space between
   items is identical whether or not an item has a dropdown caret.
   -------------------------------------------------------------------------- */
.gt-header,
.gt-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
}

.gt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.6vw, 24px);
  height: auto;
  padding: 14px clamp(14px, 3vw, 40px);
  max-width: 1460px;
}

.gt-header-pill {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 38px);
  min-width: 0;
  padding: 9px clamp(16px, 1.8vw, 30px);
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 26px rgba(17, 17, 17, .12);
}

/* One uniform gap does the spacing; the caret rides with its own label. */
.gt-menu { gap: clamp(12px, 1.9vw, 30px); }
.gt-menu > li > a { padding: 6px 0; }

.gt-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.gt-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, .22);
  background: rgba(255, 255, 255, .95);
  color: var(--gt-ink, #111);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(17, 17, 17, .08);
  transition: background .2s, border-color .2s, color .2s;
}
.gt-catalog:hover { background: var(--gt-ink, #111); border-color: var(--gt-ink, #111); color: #fff; }

/* Search sits inside the pill's visual family rather than floating bare. */
.gt-search-toggle {
  background: rgba(255, 255, 255, .95);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(17, 17, 17, .08);
}

@media (max-width: 1100px) {
  .gt-catalog { display: none; }   /* Get A Quote stays; catalogue is in the menu */
}
@media (max-width: 991px) {
  .gt-header-pill { flex: 1 1 auto; gap: 12px; padding: 8px 14px; }
}
/* GT: end pill header */

/* GT: nav item baseline ---------------------------------------------------
   Every top-level item carried `margin: 0 0 10px` except the last one, which
   had `margin: 0`. In a 46px `align-items:center` row that centres a 46px
   margin-box at top 23 but the last item's 36px box at top 28 -- so "Contact
   Us" sat 5px lower than the rest. The bottom margin does nothing useful in a
   centred flex row, so it goes, and every item shares one baseline.
   -------------------------------------------------------------------------- */
.gt-menu > li { margin: 0; }
/* GT: end nav item baseline */

/* Mega menu: every heading and link on one line so columns stay equal */
.gt-mega-head,
.gt-mega-list > li > a {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gt-mega-grid { row-gap: clamp(20px, 2.2vw, 30px); }

/* ── Mobile header: logo left, menu button right, search lives in the drawer ── */
@media (max-width: 1100px) {
	.gt-header .gt-logo { order: 1; }
	.gt-header .gt-burger { order: 2; margin-left: auto; margin-right: -6px; }
	.gt-header .gt-search-toggle,
	.gt-header .gt-searchbar { display: none !important; }
	.gt-drawer-panel { inset: 0 0 0 auto; width: min(360px, 84%); max-width: none; padding-top: 56px; }
	.gt-drawer-close { right: 12px; }
}
.gt-drawer-search { display: flex; gap: 8px; margin: 0 0 14px; }
.gt-drawer-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid #e2e2e2; border-radius: 8px; font-size: 15px; background: #fafafa;
}
.gt-drawer-search input[type="search"]:focus { outline: 2px solid var(--gt-purple, #7B4FF4); outline-offset: 0; background: #fff; }
.gt-drawer-search button {
	flex: 0 0 44px; height: 44px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--gt-purple, #7B4FF4); color: #fff; display: grid; place-items: center; padding: 0;
}
@media (min-width: 1101px) { .gt-drawer-search { display: none; } }
/* Drawer close: pin to the top-right corner (theme button styles were pulling it into the flow). */
.gt-drawer .gt-drawer-panel .gt-drawer-close {
	position: absolute !important;
	top: 8px; right: 8px; left: auto;
	width: 44px; height: 44px; min-height: 0; padding: 0;
	display: grid; place-items: center;
	background: none !important; box-shadow: none !important; border: 0;
	font-size: 30px; line-height: 1; color: #333;
}
