/*
 * Elite Industrial — Hello Child: header styles.
 * Scoped entirely to .elite-header so nothing here can affect Elementor
 * page-body content rendered elsewhere on the page.
 */

:root {
	--elite-navy: #101B2B;
	--elite-red: #C62828;
	--elite-red-hover: #a91f1f;
	--elite-offwhite: #F1F4F7;
}

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

.elite-header {
	background: var(--elite-navy);
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
}

body.admin-bar .elite-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .elite-header {
		top: 46px;
	}
}

.elite-header__inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px;
	padding: 14px 24px;
}

/* ---------- Brand ---------- */

.elite-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex: 0 0 auto;
	min-width: 0;
}

.elite-header__icon-img,
.elite-header__icon-fallback-text {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
	flex: 0 0 auto;
}

.elite-header__icon-fallback-text {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--elite-offwhite);
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

.elite-header__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	white-space: nowrap;
}

.elite-header__brand-name {
	color: var(--elite-red);
	font-weight: 800;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: Arial, Helvetica, sans-serif;
}

.elite-header__brand-tagline {
	color: var(--elite-offwhite);
	font-weight: 500;
	font-size: 10.5px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-top: 2px;
	font-family: Arial, Helvetica, sans-serif;
}

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

.elite-header__nav--desktop {
	flex: 1 1 auto;
	min-width: 0;
	display: none; /* revealed at the 1025px desktop breakpoint */
}

.elite-header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 18px;
}

.elite-header__menu li {
	margin: 0;
}

.elite-header__menu a {
	color: var(--elite-offwhite);
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: Arial, Helvetica, sans-serif;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.elite-header__menu a:hover,
.elite-header__menu a:focus {
	color: var(--elite-red);
}

/* ---------- Desktop actions (phone + CTA) ---------- */

.elite-header__actions {
	display: none; /* revealed at the 1025px desktop breakpoint */
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

.elite-header__phone {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--elite-offwhite);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	font-family: Arial, Helvetica, sans-serif;
}

.elite-header__phone:hover,
.elite-header__phone:focus {
	color: var(--elite-red);
}

.elite-header__phone .elite-header__icon-svg {
	flex: 0 0 auto;
}

.elite-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--elite-red);
	color: #ffffff;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 10px 18px;
	border-radius: 4px;
	white-space: nowrap;
	font-family: Arial, Helvetica, sans-serif;
	transition: background-color 0.15s ease;
}

.elite-header__cta:hover,
.elite-header__cta:focus {
	background: var(--elite-red-hover);
	color: #ffffff;
}

/* ---------- Compact phone (mobile/tablet top bar, <=1024px) ---------- */

.elite-header__phone--compact {
	display: flex;
	align-items: center;
	gap: 6px;
}

.elite-header__phone--compact .elite-header__phone-text {
	display: none;
}

.elite-header__phone--compact .elite-header__icon-svg {
	width: 20px;
	height: 20px;
}

/* ---------- Hamburger toggle ---------- */

.elite-header__toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	flex: 0 0 auto;
}

.elite-header__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--elite-offwhite);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.elite-header__toggle[aria-expanded="true"] .elite-header__toggle-bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.elite-header__toggle[aria-expanded="true"] .elite-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.elite-header__toggle[aria-expanded="true"] .elite-header__toggle-bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile panel ---------- */

.elite-header__mobile {
	background: var(--elite-navy);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 12px 24px 20px;
}

.elite-header__mobile[hidden] {
	display: none;
}

.elite-header__menu-mobile {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.elite-header__menu-mobile li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.elite-header__menu-mobile li:last-child {
	border-bottom: none;
}

.elite-header__menu-mobile a {
	display: block;
	padding: 13px 4px;
	color: var(--elite-offwhite);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: Arial, Helvetica, sans-serif;
}

.elite-header__menu-mobile a:hover,
.elite-header__menu-mobile a:focus {
	color: var(--elite-red);
}

.elite-header__mobile-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}

.elite-header__mobile-call,
.elite-header__mobile-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 12px 16px;
	border-radius: 4px;
	font-family: Arial, Helvetica, sans-serif;
}

.elite-header__mobile-call {
	background: rgba(255, 255, 255, 0.08);
	color: var(--elite-offwhite);
}

.elite-header__mobile-cta {
	background: var(--elite-red);
	color: #ffffff;
}

.elite-header .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ================= Breakpoints ================= */

/* Show the phone number text next to the compact icon once there's enough
   width for it; icon-only below this. */
@media (min-width: 601px) {
	.elite-header__phone--compact {
		font-size: 12.5px;
	}
	.elite-header__phone--compact .elite-header__phone-text {
		display: inline;
		color: var(--elite-offwhite);
		font-weight: 600;
	}
}

/* Smallest phones: icon-only brand (name + tagline both hidden). At these
   widths the top bar only needs to fit icon + compact phone + hamburger;
   spelling out "ELITE INDUSTRIAL DISTRIBUTORS" here doesn't fit without
   forcing a second line or pushing the hamburger off-screen, and the same
   icon-only treatment was already validated in the earlier mockup-match
   round. Full brand text returns at 481px+ (tablet and up), where it
   comfortably fits. */
@media (max-width: 480px) {
	.elite-header__brand-text {
		display: none;
	}
	.elite-header__icon-img,
	.elite-header__icon-fallback-text {
		width: 46px;
		height: 46px;
	}
	.elite-header__inner {
		padding-left: 16px;
		padding-right: 16px;
		gap: 10px;
	}
}

/* Desktop: 1025px and above is the single-row, no-wrap target. Brand block
   is enlarged here to read as visually prominent (standalone "E" mark at
   ~76px, per the approved reference image), which pushes the header to a
   slightly taller ~96-100px on desktop only — mobile/tablet header height
   is unaffected. */
@media (min-width: 1025px) {
	.elite-header__nav--desktop {
		display: block;
	}

	.elite-header__actions {
		display: flex;
	}

	.elite-header__phone--compact,
	.elite-header__toggle {
		display: none;
	}

	.elite-header__mobile {
		display: none !important;
	}

	.elite-header__inner {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.elite-header__brand {
		gap: 14px;
	}

	.elite-header__icon-img,
	.elite-header__icon-fallback-text {
		width: 76px;
		height: 76px;
	}

	.elite-header__brand-name {
		font-size: 19px;
	}

	.elite-header__brand-tagline {
		font-size: 11.5px;
		margin-top: 3px;
	}
}

/* Desktop tightening band (1025-1366px): keep everything on one row without
   letting spacing get loose enough to risk wrapping/collision at 1280px.
   Widened from the original 1279px cutoff to 1366px after enlarging the
   brand block (76px icon + larger brand name) for the approved reference
   image made the untightened spacing collide with the nav at exactly
   1280px; 1440px+ has enough room to stay on the untightened spacing. */
@media (min-width: 1025px) and (max-width: 1366px) {
	.elite-header__inner {
		padding-left: 14px;
		padding-right: 14px;
		gap: 8px;
	}
	.elite-header__brand {
		gap: 10px;
	}
	.elite-header__menu {
		gap: 10px;
	}
	.elite-header__menu a {
		font-size: 12px;
	}
	.elite-header__actions {
		gap: 8px;
	}
	.elite-header__cta {
		padding: 9px 14px;
	}
}
