/* ==========================================================================
   Header / navigation — pixel parity with the approved design
   (design7.jpg) and the original static build's pages.css header rules.
   Targets Header Footer Elementor's real rendered classes: .hfe-menu-item,
   .hfe-sub-menu-item, .sub-menu, .hfe-nav-menu__toggle, .hfe-nav-menu-icon.
   ========================================================================== */

/* ---------- Sticky header shell ------------------------------------------ */
.ehf-header #masthead,
#masthead{
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: transparent;
	transition: background-color .3s ease, box-shadow .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
}
.elementor-element-hdr0001 > .e-con-inner{
	justify-content: space-between !important;
}
body.admin-bar .ehf-header #masthead,
body.admin-bar #masthead{
	top: 32px;
}
#masthead.tpc-is-stuck{
	background-color: rgba(0,0,0,.94) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.elementor-element-hdr0001{
	max-width: 1400px;
	width: calc(100% - 48px);
	margin-left: auto !important;
	margin-right: auto !important;
	background-color: transparent !important;
	padding-top: 45px !important;
	padding-bottom: 45px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	transition: padding .3s ease;
}
#masthead.tpc-is-stuck .elementor-element-hdr0001{
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}
.elementor-element-hdr0002{
	flex-shrink: 0 !important;
}
.elementor-element-hdr0002 .hfe-site-logo-container,
.elementor-element-hdr0002 .hfe-site-logo-set,
.elementor-element-hdr0002 .hfe-site-logo{
	width: 154px !important;
	flex-shrink: 0 !important;
	transition: width .3s ease;
}
.elementor-element-hdr0002 .hfe-site-logo-container img{
	width: 154px !important;
	max-width: 154px !important;
	transition: width .3s ease, max-width .3s ease;
}
#masthead.tpc-is-stuck .elementor-element-hdr0002 .hfe-site-logo-container,
#masthead.tpc-is-stuck .elementor-element-hdr0002 .hfe-site-logo-set,
#masthead.tpc-is-stuck .elementor-element-hdr0002 .hfe-site-logo{
	width: 75px !important;
}
#masthead.tpc-is-stuck .elementor-element-hdr0002 .hfe-site-logo-container img{
	width: 75px !important;
	max-width: 75px !important;
}
@media (max-width: 1024px){
	.elementor-element-hdr0001{
		padding-top: 22px !important;
		padding-bottom: 22px !important;
	}
	.elementor-element-hdr0002 .hfe-site-logo-container,
	.elementor-element-hdr0002 .hfe-site-logo-set,
	.elementor-element-hdr0002 .hfe-site-logo{
		width: 118px !important;
	}
	.elementor-element-hdr0002 .hfe-site-logo-container img{
		width: 118px !important;
		max-width: 118px !important;
	}
}
@media (min-width: 1025px){
	.elementor-element-hdr0003{
		gap: 57px !important;
	}
	ul.hfe-nav-menu{
		gap: 44px !important;
		align-items: center !important;
	}
	.nav-cta-btn{
		margin-left: 13px;
	}
}
@media (max-width: 1180px) and (min-width: 1025px){
	.elementor-element-hdr0003{
		gap: 28px !important;
	}
	ul.hfe-nav-menu{
		gap: 28px !important;
	}
}

/* ---------- Desktop top-level links ---------------------------------------- */
.elementor-widget-navigation-menu a.hfe-menu-item{
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600 !important;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #A3A3A3 !important;
	transition: color .2s ease;
}
@media (min-width: 1025px){
	.elementor-widget-navigation-menu a.hfe-menu-item{
		padding: 10px 0 !important;
	}
}

.elementor-widget-navigation-menu .menu-item.current-menu-item a.hfe-menu-item,
.elementor-widget-navigation-menu .menu-item.current_page_item a.hfe-menu-item,
.elementor-widget-navigation-menu .menu-item.current-menu-ancestor a.hfe-menu-item,
.elementor-widget-navigation-menu .menu-item.current-menu-parent a.hfe-menu-item,
.elementor-widget-navigation-menu .menu-item.current_page_ancestor a.hfe-menu-item,
.elementor-widget-navigation-menu .menu-item.current_page_parent a.hfe-menu-item,
.elementor-widget-navigation-menu a.hfe-menu-item:hover,
.elementor-widget-navigation-menu a.hfe-menu-item:focus{
	color: #21C0DE !important;
}

/* ---------- Contact nav item styled as the CTA button (replaces the old separate Enquire button) ---------------------------------------- */
.elementor-widget-navigation-menu .nav-cta-btn > a.hfe-menu-item{
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background-color: #DD292C !important;
	color: #FFFFFF !important;
	border: 1px solid transparent;
}
.elementor-widget-navigation-menu .nav-cta-btn > a.hfe-menu-item:hover,
.elementor-widget-navigation-menu .nav-cta-btn > a.hfe-menu-item:focus{
	background-color: #B91F22 !important;
	color: #FFFFFF !important;
}
.elementor-widget-navigation-menu li.nav-cta-btn.current-menu-item > a.hfe-menu-item,
.elementor-widget-navigation-menu li.nav-cta-btn.current_page_item > a.hfe-menu-item{
	color: #FFFFFF !important;
}
@media (min-width: 1025px){
	.elementor-widget-navigation-menu .nav-cta-btn > a.hfe-menu-item{
		min-height: 50px !important;
		min-width: 210px !important;
		padding: 0 32px !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		letter-spacing: .01em !important;
	}
}

/* ---------- Dropdown panel (desktop) --------------------------------------- */
.elementor-widget-navigation-menu .menu-item-has-children .sub-menu{
	top: calc(100% + 16px) !important;
	left: -24px !important;
	background-color: rgba(0,0,0,.97) !important;
	border-top: 3px solid #21C0DE;
	box-shadow: 0 18px 40px rgba(0,0,0,.45);
	min-width: 300px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.elementor-widget-navigation-menu .menu-item-has-children .menu-item-has-children .sub-menu{
	top: -13px !important;
	left: 100% !important;
	border-top: 0;
	border-left: 3px solid #21C0DE;
	transform: translateX(8px);
}
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu,
.hfe-nav-menu .menu-item-has-children:hover > .sub-menu,
.hfe-nav-menu .menu-item-has-children:focus-within > .sub-menu{
	opacity: 1;
	visibility: visible;
	transform: none;
}
.elementor-widget-navigation-menu .sub-menu a.hfe-sub-menu-item{
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #c4c4c4 !important;
	text-transform: none;
	transition: color .2s ease, background-color .2s ease;
}
/* Category-level links (have their own nested sub-menu) read as bold white
   headers, matching the original .tpc-dd__item>.tpc-dd__link treatment. */
.elementor-widget-navigation-menu .sub-menu > li.menu-item-has-children > div > a.hfe-sub-menu-item,
.elementor-widget-navigation-menu .sub-menu > li.menu-item-has-children > a.hfe-sub-menu-item{
	font-family: "Inter", sans-serif;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff !important;
}
.elementor-widget-navigation-menu .sub-menu a.hfe-sub-menu-item:hover,
.elementor-widget-navigation-menu .sub-menu a.hfe-sub-menu-item:focus{
	color: #21C0DE !important;
	background-color: rgba(255,255,255,.04);
}
/* Nested (level-2) flyout panel gets the cyan left rule instead of top rule. */
.elementor-widget-navigation-menu .sub-menu .sub-menu{
	border-top: 0;
	border-left: 3px solid #21C0DE;
}

/* ---------- Enquire CTA button in the header -------------------------------- */
.elementor-element-hdr0005 .elementor-button{
	background-color: #DD292C !important;
	color: #fff !important;
	font-family: "Inter", sans-serif;
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.elementor-element-hdr0005 .elementor-button:hover{
	background-color: #B91F22 !important;
}

/* ---------- Hide the header's own Enquire button + stop overflow on mobile - */
@media (max-width: 1024px){
	.elementor-element-hdr0005{ display: none !important; }
	.elementor-element-hdr0001{ flex-wrap: nowrap !important; }
	.elementor-element-hdr0002{ flex: 0 0 auto !important; }
	.elementor-element-hdr0003{ flex: 0 1 auto !important; min-width: 0 !important; justify-content: flex-end !important; }
	.elementor-element-hdr0003 .hfe-nav-menu{ min-width: 0; }
}

/* ---------- Mobile menu toggle + full-screen drawer ------------------------- */
@media (max-width: 1024px){
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle{
		color: #fff;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu-icon svg{
		width: 28px;
		height: 28px;
	}
	/* Elementor's shared icon-svg default hardcodes fill:#000 on the <path>;
	   override so the hamburger/close icon is visible on the black header. */
	.elementor-widget-navigation-menu .hfe-nav-menu-icon svg,
	.elementor-widget-navigation-menu .hfe-nav-menu-icon svg path{
		fill: #fff !important;
	}

	/* The toggle's very next sibling is the <nav> HFE renders the menu
	   into (confirmed in inc/js/frontend.js: `$selector = $this.next()`,
	   shown once the toggle carries .hfe-active-menu). Force it into a
	   full-viewport black drawer matching the original .tpc-nav.is-open. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav{
		position: fixed !important;
		inset: 0 !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		height: 100vh !important;
		height: 100dvh !important;
		z-index: 9999 !important;
		background: #000 !important;
		padding: 110px 20px 40px !important;
		overflow-y: auto !important;
		display: flex !important;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-nav-menu{
		flex-direction: column;
		flex-wrap: nowrap;
		height: auto;
		width: 100%;
		gap: 0;
		margin-top: 50px;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav a.hfe-sub-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav li{
		font-size: 24px;
		padding: 7px 0px;
		border-bottom: 0 !important;
		color: #fff !important;
		background: transparent !important;
	}
	/* Divider restored for: every root-level item (direct child of the main
	   menu list) and any parent item (has its own children) at any level —
	   leaf sub-items (no children) stay divider-free. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav > ul.hfe-nav-menu > li,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav li.menu-item-has-children{
		border-bottom: 1px solid #222 !important;
	}
	/* Collapsed-by-default state. HFE's own JS (div.hfe-has-submenu-container
	   click handler, inc/js/frontend.js) toggles this via inline
	   visibility/opacity/height on expand/collapse — do NOT !important
	   those three properties here or the native accordion toggle breaks. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu .sub-menu{
		position: static !important;
		left: auto !important;
		top: auto !important;
		width: 100% !important;
		max-width: none !important;
		transform: none !important;
		visibility: hidden;
		opacity: 0;
		height: 0;
		overflow: hidden;
		box-shadow: none;
		background: none !important;
		border: 0;
		min-width: 0;
		padding-left: 16px;
		transition: opacity .2s ease;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav li.menu-item-has-children{
		display: block !important;
		height: auto !important;
	}
	/* Submenu toggle row (chevron button) — matches .tpc-subtoggle in the
	   original: 48px tap target, white chevron, rotates 180deg when open. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-has-submenu-container{
		display: flex !important;
		align-items: center;
		justify-content: space-between;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-has-submenu-container a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-has-submenu-container a.hfe-sub-menu-item{
		flex: 1;
		border-bottom: 0 !important;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-menu-toggle{
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		color: #fff;
		transition: transform .2s ease;
	}
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-menu-toggle i,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .hfe-menu-toggle svg{
		color: #fff;
		fill: #fff !important;
	}
	/* HFE's own JS already swaps the chevron glyph (angle-down -> angle-up)
	   on expand; only the colour needs to change here (white collapsed,
	   cyan expanded), matching the target drawer design. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav [aria-expanded="true"] .hfe-menu-toggle,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav [aria-expanded="true"] .hfe-menu-toggle i{
		color: #21C0DE !important;
	}
	/* Current page (e.g. Home) — plus Products' ancestor/parent state on
	   its category and single-product sub-pages — stays cyan in the
	   drawer; the generic item-colour rule above otherwise wins on
	   specificity. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .menu-item.current-menu-item a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .menu-item.current_page_item a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .menu-item.current-menu-ancestor a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .menu-item.current-menu-parent a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .menu-item.current_page_ancestor a.hfe-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .menu-item.current_page_parent a.hfe-menu-item{
		color: #21C0DE !important;
	}
	/* Sub-menu levels: no row dividers inside an expanded group (only the
	   top-level items keep the line, which naturally lands after the whole
	   expanded block since the sub-menu is nested inside that <li>). */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu li,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu a.hfe-sub-menu-item{
		border-bottom: 0 !important;
		padding: 3px 0 !important;
		font-size: 15px !important;
	}
	/* Nested parent items (category links with their own children, e.g.
	   "Combustible Cartridge Cases") keep the divider too — must come after
	   the leaf reset above to win on equal specificity. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu li.menu-item-has-children{
		border-bottom: 1px solid #222 !important;
	}
	/* Category-level links (their own nested sub-menu): cyan, bold uppercase. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu > li.menu-item-has-children > div > a.hfe-sub-menu-item,
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu > li.menu-item-has-children > a.hfe-sub-menu-item{
		color: #21C0DE !important;
		font-size: 18px !important;
		padding: 10px 0 !important;
	}
	/* Leaf links (no children): muted grey, normal case. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu + nav .sub-menu li:not(.menu-item-has-children) > a.hfe-sub-menu-item{
		color: #c4c4c4 !important;
		text-transform: none;
		font-weight: 500;
	}
	/* Keep the header bar itself solid while the drawer is open. */
	.elementor-widget-navigation-menu .hfe-nav-menu__toggle.hfe-active-menu{
		position: relative;
		z-index: 10000;
	}
}

/* ---------- Logo stays visible above the open drawer ----------------------- */
/* The drawer <nav> (z-index:9999) is a DOM descendant of #masthead (nested
   under hdr0001 > hdr0003 > hdr0004), so it shares #masthead's stacking
   context with the logo — raising #masthead's own z-index doesn't change
   their relative order. The close (X) toggle already wins because of the
   "Keep the header bar solid" rule below (z-index:10000); give the logo the
   same treatment so both sit visibly at the top of the black panel. */
@media (max-width: 1024px){
	#masthead:has(.hfe-nav-menu__toggle.hfe-active-menu){
		background-color: #000 !important;
	}
	.elementor-element-hdr0002{
		position: relative;
	}
	body:has(.hfe-nav-menu__toggle.hfe-active-menu) .elementor-element-hdr0002{
		z-index: 10000;
	}
}

/* ---------- "Enquire" button inside the open mobile drawer ---------------- */
/* hdr0005 (Elementor Button widget) is hidden at all other times (see the
   ≤1024px hide rule above); while the drawer is open it's pinned to the
   bottom of the panel, full width, matching the target design's red
   ENQUIRE bar under the menu list. */
@media (max-width: 1024px){
	body:has(.hfe-nav-menu__toggle.hfe-active-menu) .elementor-element-hdr0005{
		display: block !important;
		position: fixed !important;
		left: 20px;
		right: 20px;
		bottom: 24px;
		z-index: 10001;
	}
	body:has(.hfe-nav-menu__toggle.hfe-active-menu) .elementor-element-hdr0005 .elementor-button{
		display: flex !important;
		width: 100%;
		justify-content: center;
		min-height: 56px;
		font-size: 16px !important;
		letter-spacing: .02em !important;
	}
}

/* ---------- Hide the duplicate header Enquire button on small screens,
   the HFE flex layout already wraps; match original tpc-header__cta rule --- */
@media (max-width: 1024px){
	.elementor-element-hdr0003{
		flex-wrap: nowrap;
	}
}

/* ---------- Product dropdown anchor targets: clear the fixed header on jump --- */
#mcc-130, #mcc-105,
#precision-mechanical-components, #composite-bullet-proof-panels, #amorphous-boron-powder,
#augmenting-charges, #nc-igniter-bag, #nc-coated-discs, #primers, #ng-barrier-sleeves{
	scroll-margin-top: 140px;
}
@media (max-width: 1024px){
	#mcc-130, #mcc-105,
	#precision-mechanical-components, #composite-bullet-proof-panels, #amorphous-boron-powder,
	#augmenting-charges, #nc-igniter-bag, #nc-coated-discs, #primers, #ng-barrier-sleeves{
		scroll-margin-top: 90px;
	}
}

/* ---------- Page-title breadcrumb (Home / Current Page) ------------------- */
.tpc-crumbs p{
	font-family: "Inter", sans-serif;
	font-size: 14px !important;
	line-height: 1.5;
	color: #bbb !important;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.tpc-crumbs a{
	color: #bbb !important;
	text-decoration: none;
	transition: color .2s ease;
}
.tpc-crumbs a:hover,
.tpc-crumbs a:focus{
	color: #fff !important;
}
.tpc-crumbs .tpc-crumbs__current{
	color: #21C0DE;
	text-decoration: none;
}

/* ---------- "What Sets Us Apart" cards — offset cyan hard shadow ---------- */
/* Matches static: .tpc-imagebox--offset .tpc-imagebox__img{box-shadow:9px 9px 0
   var(--tpc-cyan);margin-right:9px;margin-bottom:9px} — present on the home
   (Precision/Reliability/Indigenous) and company page cards only. */
[data-id="58e8885"] .elementor-widget-image img,
[data-id="cp0042w"] .elementor-widget-image img{
	box-shadow: 9px 9px 0 #21C0DE;
	margin-right: 9px;
	margin-bottom: 9px;
}
[data-id="58e8885"] .elementor-heading-title,
[data-id="cp0042w"] .elementor-heading-title{
	padding-bottom: 14px;
	border-bottom: 1px solid #D0D0D0;
}
[data-id="58e8885"] .elementor-widget-text-editor,
[data-id="cp0042w"] .elementor-widget-text-editor{
	margin-top: 16px;
}
