/**
 * HNS Supply Group homepage styles — screenshot reconstruction.
 */

:root {
	--hns-navy: #041628;
	--hns-navy-deep: #02101c;
	--hns-navy-mid: #0a2238;
	--hns-orange: #f15a22;
	--hns-orange-hover: #d94e1b;
	--hns-white: #ffffff;
	--hns-light: #f3f5f7;
	--hns-gray: #6b7280;
	--hns-text: #1a1f26;
	--hns-border: #e5e7eb;
	--hns-container: 1180px;
	--hns-gutter: 24px;
	--hns-radius: 4px;
	--hns-radius-lg: 10px;
	--hns-shadow: 0 8px 24px rgba(4, 22, 40, 0.08);
	--hns-font: "Montserrat", "Segoe UI", Arial, sans-serif;
	--hns-header-h: 78px;
}

/* Reset interference from legacy theme CSS on front */
body.hns-body {
	margin: 0;
	font-family: var(--hns-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--hns-text);
	background: var(--hns-white);
	-webkit-font-smoothing: antialiased;
}

body.hns-body *,
body.hns-body *::before,
body.hns-body *::after {
	box-sizing: border-box;
}

body.hns-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

body.hns-body a {
	text-decoration: none;
}

/* Header nav + CTA — force white (overrides body link inherit / WP global styles) */
body.hns-body .hns-header,
body.hns-body .hns-header .hns-nav,
body.hns-body .hns-header .hns-nav__list,
body.hns-body .hns-header .hns-nav__list li {
	color: #ffffff;
}

body.hns-body .hns-header .hns-nav a,
body.hns-body .hns-header .hns-nav__list a,
body.hns-body .hns-header .hns-nav__list .menu-item a,
body.hns-body .hns-header .menu a {
	color: #ffffff !important;
}

body.hns-body .hns-header .hns-nav a:hover,
body.hns-body .hns-header .hns-nav__list a:hover,
body.hns-body .hns-header .hns-nav a:focus-visible,
body.hns-body .hns-header .hns-nav__list a:focus-visible {
	color: var(--hns-orange) !important;
}

body.hns-body .hns-header a.hns-btn--primary,
body.hns-body .hns-header .hns-btn--primary,
body.hns-body a.hns-btn.hns-btn--primary,
body.hns-body .hns-btn.hns-btn--primary {
	color: #ffffff !important;
}

body.hns-body .hns-header a.hns-btn--primary:hover,
body.hns-body .hns-btn.hns-btn--primary:hover,
body.hns-body .hns-btn.hns-btn--primary:focus-visible {
	color: #ffffff !important;
}

.hns-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--hns-orange);
	color: #fff;
	padding: 8px 12px;
	z-index: 10000;
}

.hns-skip-link:focus {
	left: 12px;
	top: 12px;
}

.hns-container {
	width: min(100% - (var(--hns-gutter) * 2), var(--hns-container));
	margin-inline: auto;
}

.hns-text-accent {
	color: var(--hns-orange);
}

/* Buttons */
.hns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: var(--hns-radius);
	font-family: var(--hns-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.hns-btn--primary {
	background: var(--hns-orange);
	color: #ffffff !important;
	border-color: var(--hns-orange);
}

.hns-btn--primary:hover,
.hns-btn--primary:focus-visible {
	background: var(--hns-orange-hover);
	border-color: var(--hns-orange-hover);
	color: #ffffff !important;
}

.hns-btn--ghost {
	background: transparent;
	color: var(--hns-white);
	border-color: rgba(255, 255, 255, 0.85);
}

.hns-btn--ghost:hover,
.hns-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	color: var(--hns-white);
}

.hns-btn--nav {
	min-height: 40px;
	padding: 0 18px;
	font-size: 12px;
}

/* Header */
.hns-header {
	position: relative;
	z-index: 1000;
	background: var(--hns-navy);
	height: var(--hns-header-h);
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

@supports (position: sticky) {
	.hns-header {
		position: sticky;
		top: 0;
	}
}

.hns-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: min(100% - (var(--hns-gutter) * 2), var(--hns-container));
	margin-inline: auto;
}

.hns-logo img {
	width: 168px;
	height: auto;
	display: block;
}

.hns-nav {
	margin-left: auto;
}

.hns-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hns-nav__list > li {
	list-style: none;
	margin: 0;
}

.hns-nav__list a {
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hns-nav__list a:hover,
.hns-nav__list a:focus-visible {
	color: var(--hns-orange);
}

.hns-nav__chevron {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #ffffff;
	display: inline-block;
}

.hns-nav__list a:hover .hns-nav__chevron,
.hns-nav__list a:focus-visible .hns-nav__chevron {
	border-top-color: var(--hns-orange);
}

/* Force all menu icons (dashicons, SVG, images) to white */
.hns-nav img,
.hns-nav svg,
.hns-nav .dashicons,
.hns-nav i[class*="fa"],
.hns-nav .menu-item-icon,
.hns-header .hns-nav__list .icon {
	color: #ffffff !important;
	fill: #ffffff !important;
	filter: brightness(0) invert(1);
}

.hns-nav-toggle {
	display: none;
	margin-left: auto;
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	padding: 10px;
	cursor: pointer;
}

.hns-nav-toggle span {
	display: block;
	height: 2px;
	background: #ffffff;
	margin: 5px 0;
}

.hns-nav__cta-mobile {
	display: none;
}

/* Hero — match reference composition (compact, truck right, dark left) */
.hns-hero {
	position: relative;
	height: clamp(500px, 30vw, 540px);
	min-height: 500px;
	display: flex;
	align-items: center;
	color: var(--hns-white);
	overflow: hidden;
	background: none;
}

.hns-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.hns-hero__content {
	position: relative;
	z-index: 2;
	padding: 48px 0;
	max-width: 440px;
	margin-left: max(calc((100% - var(--hns-container)) / 2), var(--hns-gutter));
	margin-right: auto;
	width: min(440px, calc(100% - (var(--hns-gutter) * 2)));
}

.hns-hero__title {
	margin: 0 0 22px;
	font-size: clamp(52px, 4.2vw, 60px);
	line-height: 0.94;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #ffffff;
}

.hns-hero__title-line {
	display: block;
}

.hns-hero__title-line--moving {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.hns-maple {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 0.62em;
	height: 0.62em;
	margin: 0;
	color: var(--hns-orange);
	line-height: 0;
	vertical-align: middle;
}

.hns-maple svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hns-hero__subtitle {
	margin: 0 0 30px;
	max-width: 420px;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	color: #ffffff;
}

.hns-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hns-hero__actions .hns-btn {
	min-height: 48px;
	padding: 0 26px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* Value — locked 2-line heading geometry */
.hns-value {
	position: relative;
	overflow: hidden;
	background: var(--hns-navy);
	color: var(--hns-white);
	padding: 56px 0;
	min-height: 460px;
	display: flex;
	align-items: center;
}

.hns-value__grid {
	position: relative;
	z-index: 1;
	/* keep .hns-container width/gutters — do not stretch full bleed */
	margin-left: auto;
	margin-right: auto;
}

.hns-value__copy {
	position: relative;
	z-index: 2;
	max-width: 560px;
	width: 100%;
	padding-right: 36px;
	box-sizing: border-box;
}

.hns-value__title {
	margin: 0 0 18px;
}

.hns-value__title-main,
.hns-value__title-accent {
	display: block;
	font-size: clamp(18px, 1.55vw, 23px);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.hns-value__title-main {
	color: var(--hns-white);
	margin: 0;
}

.hns-value__title-line {
	display: block;
	white-space: nowrap;
}

.hns-value__title-accent {
	color: var(--hns-orange);
	margin: 8px 0 0;
	white-space: nowrap;
}

.hns-value__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
	max-width: 480px;
}

.hns-value__text--strong {
	font-weight: 500;
	color: var(--hns-white);
	margin-top: 14px;
	margin-bottom: 0;
}

/* Absolute right bleed — flush to section edge like reference */
.hns-value__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: min(46vw, 680px);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	pointer-events: none;
}

.hns-value__media::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 55%;
	z-index: 1;
	background: linear-gradient(
		90deg,
		var(--hns-navy) 0%,
		rgba(4, 22, 40, 0.95) 38%,
		rgba(4, 22, 40, 0.55) 68%,
		rgba(4, 22, 40, 0) 100%
	);
	pointer-events: none;
}

.hns-value__media picture {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	width: 100%;
}

.hns-value__media img {
	display: block;
	width: auto;
	height: 92%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: right center;
	/* slight right crop so parts meet the edge like the reference */
	margin-right: -1%;
	transform: none;
	filter: none;
	border-radius: 0;
	background: transparent;
}

/* Services */
.hns-services {
	background: #f4f6f8;
	padding: 78px 0 84px;
}

.hns-section-head {
	text-align: center;
	margin-bottom: 40px;
}

.hns-section-title {
	margin: 0 0 8px;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hns-navy);
}

.hns-section-sub {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--hns-gray);
}

.hns-services__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.hns-card {
	background: var(--hns-white);
	border: 1px solid #e8eaed;
	box-shadow: 0 6px 18px rgba(4, 22, 40, 0.06);
	border-radius: 6px;
	padding: 28px 18px 26px;
	text-align: center;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hns-card__icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 18px;
	color: var(--hns-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hns-card__icon img {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto;
	filter: brightness(0) saturate(100%);
}

.hns-card__title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: var(--hns-navy);
	line-height: 1.3;
	text-align: center;
}

.hns-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #000000;
	text-align: center;
	max-width: 220px;
}

/* Industries */
.hns-industries {
	background: var(--hns-navy);
	color: var(--hns-white);
	padding: 64px 0 70px;
	text-align: center;
}

.hns-industries__title {
	margin: 0 0 46px;
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hns-industries__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 18px;
}

.hns-industries__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hns-industries__icon {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
}

.hns-industries__icon img {
	width: 60px;
	height: 60px;
	filter: brightness(0) invert(1);
}

.hns-industries__label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	max-width: 130px;
}

/* Advantage */
.hns-advantage {
	background: var(--hns-white);
	padding: 80px 0;
}

.hns-advantage__grid {
	display: grid;
	grid-template-columns: 0.78fr 1.1fr 0.95fr;
	gap: 40px;
	align-items: center;
}

.hns-advantage__media img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	object-position: center top;
	border-radius: 8px;
}

.hns-advantage__title {
	margin: 0 0 16px;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--hns-navy);
}

.hns-advantage__text {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--hns-gray);
	max-width: 340px;
}

.hns-advantage__panel {
	background: var(--hns-navy);
	color: var(--hns-white);
	border-radius: 12px;
	padding: 36px 30px;
	min-height: 360px;
	display: flex;
	align-items: center;
}

.hns-advantage__features {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: grid;
	gap: 24px;
}

.hns-advantage__features li {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 14px;
	align-items: start;
}

.hns-advantage__feature-icon img {
	width: 28px;
	height: 28px;
	filter: brightness(0) invert(1);
}

.hns-advantage__feature-label {
	display: flex;
	flex-direction: column;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hns-white);
}

.hns-advantage__feature-line {
	display: block;
}

/* Footer */
.hns-footer {
	background: var(--hns-navy-deep);
	color: rgba(255, 255, 255, 0.86);
	padding-top: 72px;
}

.hns-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.15fr 1fr;
	gap: 36px;
	padding-bottom: 48px;
}

.hns-footer__tagline {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.6;
	max-width: 260px;
	color: rgba(255, 255, 255, 0.72);
}

.hns-footer__heading {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hns-white);
}

.hns-footer__links,
.hns-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.hns-footer__links a,
.hns-footer__contact a {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
}

.hns-footer__links a:hover,
.hns-footer__contact a:hover {
	color: var(--hns-orange);
}

.hns-footer__social {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-top: 18px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
}

.hns-footer__social img {
	width: 18px;
	height: 18px;
	filter: brightness(0) invert(1);
}

.hns-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hns-footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.hns-footer__copy,
.hns-footer__legal {
	margin: 0;
}

.hns-footer__legal a {
	color: #ffffff;
}

.hns-footer__legal a:hover {
	color: #ffffff;
	opacity: 0.85;
}

/* Hide legacy leftover chrome on front page */
body.home .site-push-menu,
body.front-page .site-push-menu,
body.hns-body > .site-push-menu,
body.hns-body .nav1,
body.hns-body #back-top,
body.hns-body .site-header:not(.hns-header),
body.hns-body .nav:not(.hns-nav) {
	display: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
	.hns-services__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hns-industries__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: 28px;
	}

	.hns-advantage__grid {
		grid-template-columns: 1fr 1fr;
	}

	.hns-advantage__panel {
		grid-column: 1 / -1;
	}

	.hns-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.hns-nav-toggle {
		display: block;
	}

	.hns-header__cta {
		display: none;
	}

	.hns-nav {
		position: absolute;
		top: var(--hns-header-h);
		left: 0;
		right: 0;
		background: var(--hns-navy-deep);
		padding: 18px 24px 24px;
		display: none;
		margin: 0;
	}

	.hns-nav.is-open {
		display: block;
	}

	.hns-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.hns-nav__cta-mobile {
		display: inline-flex;
		margin-top: 18px;
	}

	.hns-value__grid,
	.hns-advantage__grid {
		grid-template-columns: 1fr;
	}

	.hns-value {
		display: block;
		min-height: 0;
		padding: 64px 0 0;
		overflow: hidden;
	}

	.hns-value__copy {
		width: 100%;
		max-width: none;
		padding-right: 0;
		padding-bottom: 32px;
	}

	.hns-value__title-main,
	.hns-value__title-accent {
		white-space: normal;
	}

	.hns-value__title-line {
		white-space: normal;
	}

	.hns-value__media {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		width: 100%;
		height: auto;
		min-height: 260px;
		justify-content: flex-end;
		margin: 0;
	}

	.hns-value__media picture {
		height: auto;
		min-height: 260px;
	}

	.hns-value__media img {
		height: auto;
		width: min(100%, 560px);
		max-height: 320px;
		margin-right: 0;
		margin-left: auto;
	}

	.hns-hero {
		height: clamp(420px, 72vw, 500px);
		min-height: 420px;
	}

	.hns-hero__media {
		background-position: center right;
	}

	.hns-hero__content {
		margin-left: var(--hns-gutter);
		padding: 40px 0 48px;
		max-width: none;
		width: calc(100% - (var(--hns-gutter) * 2));
	}

	.hns-hero__title {
		font-size: clamp(40px, 10vw, 52px);
		margin-bottom: 18px;
	}

	.hns-hero__subtitle {
		max-width: 100%;
		font-size: 15px;
		margin-bottom: 24px;
	}

	.hns-hero__actions .hns-btn {
		min-height: 46px;
		padding: 0 20px;
	}
}

@media (max-width: 700px) {
	.hns-services__grid {
		grid-template-columns: 1fr;
	}

	.hns-card {
		min-height: 0;
		padding: 26px 20px 24px;
	}

	.hns-card__title {
		font-size: 16px;
	}

	.hns-card__text {
		font-size: 14px;
		max-width: none;
	}

	.hns-industries__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 28px;
	}

	.hns-industries__title {
		font-size: clamp(20px, 6vw, 26px);
		margin-bottom: 36px;
	}

	.hns-industries__icon {
		width: 56px;
		height: 56px;
	}

	.hns-industries__icon img {
		width: 52px;
		height: 52px;
	}

	.hns-industries__label {
		font-size: 14px;
		max-width: 140px;
	}

	.hns-footer__grid {
		grid-template-columns: 1fr;
	}

	.hns-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.hns-value,
	.hns-services,
	.hns-advantage {
		padding: 64px 0;
	}

	.hns-value {
		padding-bottom: 0;
	}

	.hns-advantage__media img {
		height: auto;
		max-height: 300px;
	}
}
