/**
 * HESENT Stage 10L — launch visual finalization.
 * Staging presentation only. Product 51 and Product 80 are explicitly excluded.
 */

:root {
	--hesent-10l-blue: #0b2d4d;
	--hesent-10l-blue-2: #174d78;
	--hesent-10l-blue-soft: #eaf1f6;
	--hesent-10l-neutral: #f5f8fa;
	--hesent-10l-line: #cfdae3;
	--hesent-10l-orange: #d35b32;
	--hesent-10l-ink: #20364a;
}

/* Blue-led brand hierarchy. Protected product pages retain their current presentation. */
body:not(.postid-51):not(.postid-80) .site-header__utility {
	background: var(--hesent-10l-blue);
	border-bottom: 0;
	color: rgba(255, 255, 255, 0.82);
}

body:not(.postid-51):not(.postid-80) .site-header__utility p {
	color: inherit;
}

body:not(.postid-51):not(.postid-80) .site-header {
	background: #fff;
	border-bottom-color: var(--hesent-10l-line);
}

body:not(.postid-51):not(.postid-80) .site-header__main {
	border-bottom: 3px solid var(--hesent-10l-blue);
}

body:not(.postid-51):not(.postid-80) .site-header .site-brand-title a,
body:not(.postid-51):not(.postid-80) .site-header .wp-block-site-title a,
body:not(.postid-51):not(.postid-80) .site-header .wp-block-navigation-item__content {
	color: var(--hesent-10l-blue);
}

body:not(.postid-51):not(.postid-80) .site-header .wp-block-navigation-item__content:hover,
body:not(.postid-51):not(.postid-80) .site-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--hesent-10l-blue-2) !important;
}

body:not(.postid-51):not(.postid-80) .site-header__rfq .wp-block-button__link,
body:not(.postid-51):not(.postid-80) main .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body:not(.postid-51):not(.postid-80) main .hesent-v3-button:not(.hesent-v3-button--outline) .wp-block-button__link {
	background: var(--hesent-10l-blue) !important;
	border-color: var(--hesent-10l-blue) !important;
	box-shadow: inset 0 -2px 0 var(--hesent-10l-orange);
	color: #fff !important;
}

body:not(.postid-51):not(.postid-80) main .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body:not(.postid-51):not(.postid-80) main .hesent-v3-button:not(.hesent-v3-button--outline) .wp-block-button__link:hover {
	background: var(--hesent-10l-blue-2) !important;
	border-color: var(--hesent-10l-blue-2) !important;
}

body:not(.postid-51):not(.postid-80) main :where(.wp-block-post-title, .category-hero h1, .solution-hero h1, .hesent-section h2, .entry-content h2) {
	color: var(--hesent-10l-blue) !important;
}

body:not(.postid-51):not(.postid-80) :where(.category-hero, .category-hero--archive) {
	background: linear-gradient(90deg, var(--hesent-10l-blue) 0 4px, transparent 4px), #fff !important;
}

body:not(.postid-51):not(.postid-80) .solution-hero,
body:not(.postid-51):not(.postid-80) .solution-hero.has-precision-navy-background-color {
	border-top-color: var(--hesent-10l-blue) !important;
}

body:not(.postid-51):not(.postid-80) :where(.product-editorial-section--quality, .hesent-product-rfq-band, .category-cta) {
	border-left-color: var(--hesent-10l-blue) !important;
}

/* Brighter, layered Homepage surfaces. */
.home .hesent-v3-home-hero__copy {
	background: var(--hesent-10l-neutral);
}

.home .hesent-v3-home-hero__copy h1,
.home .hesent-v3-section-head h2,
.home .hesent-v3-applications h2,
.home .hesent-v3-trust h2 {
	color: var(--hesent-10l-blue) !important;
}

.home .hesent-v3-applications--text {
	background: var(--hesent-10l-blue-soft) !important;
	border-block-color: var(--hesent-10l-line);
}

.home .hesent-v3-system-row {
	border-color: var(--hesent-10l-line);
}

/* Supplier confidence: balanced copy, calm trust cards, and a real media position. */
.home .hesent-v3-trust {
	background: linear-gradient(90deg, var(--hesent-10l-neutral) 0 64%, var(--hesent-10l-blue-soft) 64% 100%) !important;
	padding-block: clamp(4rem, 6vw, 5.5rem);
	scroll-margin-top: 10rem;
}

.home .hesent-v3-trust .hesent-v3-editorial,
.home .hesent-v3-trust .hesent-v3-editorial:has(> .hesent-v3-media-slot:not(.has-active-media)) {
	align-items: stretch;
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr) !important;
}

.home .hesent-v3-trust .hesent-v3-editorial__copy {
	align-content: center;
	display: grid;
}

.home .hesent-v3-trust .hesent-v3-eyebrow {
	color: var(--hesent-10l-orange) !important;
}

.home .hesent-v3-trust .hesent-v3-lead {
	color: #52697b;
	display: block !important;
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	line-height: 1.65;
	margin-top: 1rem;
}

.home .hesent-v3-trust .hesent-v3-reason-list {
	border: 0 !important;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.home .hesent-v3-trust .hesent-v3-reason,
.home .hesent-v3-trust .hesent-v3-reason:nth-child(odd),
.home .hesent-v3-trust .hesent-v3-reason:nth-child(even) {
	background: #fff;
	border: 0 !important;
	border-left: 3px solid var(--hesent-10l-blue-2) !important;
	min-height: 4rem;
	padding: 0.8rem 1rem !important;
}

.home .hesent-v3-trust .hesent-v3-reason:last-child {
	grid-column: 1 / -1;
}

.home .hesent-v3-trust .hesent-v3-reason p {
	font-size: 0.86rem;
	line-height: 1.45;
	margin: 0;
}

.home .hesent-v3-trust .hesent-v3-media-slot.hesent-v3-media-slot--reserved {
	align-content: end;
	aspect-ratio: auto;
	background:
		linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		var(--hesent-10l-blue);
	background-size: 2.5rem 2.5rem;
	border: 0;
	display: grid !important;
	isolation: isolate;
	min-width: 0;
	min-height: clamp(26rem, 34vw, 32rem);
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	position: relative;
	width: 100%;
}

.home .hesent-v3-trust .hesent-v3-media-slot--reserved > .hesent-v3-media-slot__inner,
.home .hesent-v3-trust .hesent-v3-media-slot--reserved > .hesent-v3-evidence__caption {
	display: block;
}

.home .hesent-v3-trust .hesent-v3-media-slot--reserved::before {
	border: 1px solid rgba(255, 255, 255, 0.2);
	content: "";
	inset: clamp(1rem, 2vw, 1.5rem);
	position: absolute;
	z-index: -1;
}

.home .hesent-v3-trust .hesent-v3-media-slot--reserved::after {
	background: var(--hesent-10l-orange);
	content: "";
	height: 3px;
	left: clamp(1.5rem, 3vw, 2.5rem);
	position: absolute;
	top: clamp(1.5rem, 3vw, 2.5rem);
	width: 3.5rem;
}

.home .hesent-v3-trust-media .hesent-v3-media-slot__inner {
	margin: 0;
	max-width: 25rem;
	padding: 0;
}

.home .hesent-v3-trust-media :where(h3, p) {
	color: rgba(255, 255, 255, 0.82);
}

.home .hesent-v3-trust-media h3 {
	color: #fff !important;
	font-size: clamp(1.55rem, 2.4vw, 2.25rem);
	line-height: 1.18;
	margin: 0.75rem 0 1rem;
}

.home .hesent-v3-trust-media .hesent-v3-media-slot__code {
	color: #b9d0e1;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
}

.home .hesent-v3-trust-media .hesent-v3-media-slot__inner p:last-child {
	color: rgba(255, 255, 255, 0.82) !important;
}

.home .hesent-v3-trust-media .hesent-v3-evidence__caption {
	background: transparent !important;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	margin: 1.75rem 0 0;
	padding: 1rem 0 0;
	text-transform: uppercase;
	width: 100%;
}

/* About HESENT: one composed story rather than three loose stacked blocks. */
body.page-id-99 .wp-block-post-title {
	color: var(--hesent-10l-blue);
	margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

body.page-id-99 .wp-block-post-title::after {
	background: var(--hesent-10l-orange);
	content: "";
	display: block;
	height: 3px;
	margin-top: 1.25rem;
	width: 3.5rem;
}

body.page-id-99 .entry-content {
	align-items: center;
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	margin-inline: auto;
	max-width: var(--hesent-10h-content);
	padding-bottom: clamp(3.5rem, 6vw, 5rem);
	width: min(calc(100% - (2 * var(--hesent-10h-gutter))), var(--hesent-10h-content));
}

body.page-id-99 .entry-content > :where(section, figure),
body.page-id-99 :where(.hesent-company-intro, .hesent-company-role) {
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.page-id-99 .hesent-company-intro {
	padding-block: 1rem;
}

body.page-id-99 .hesent-company-intro .eyebrow {
	color: var(--hesent-10l-blue-2);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.page-id-99 .hesent-company-intro p {
	color: #40576a;
	line-height: 1.75;
}

body.page-id-99 .hesent-company-factory-slot.hesent-company-factory-slot--reserved {
	aspect-ratio: 4 / 3;
	background-color: var(--hesent-10l-neutral);
	border-color: var(--hesent-10l-line);
	margin: 0 !important;
	max-width: none !important;
	min-height: 0;
	transform: none;
	width: 100% !important;
}

body.page-id-99 .hesent-company-factory-slot.hesent-company-factory-slot--reserved::before {
	background: var(--hesent-10l-blue);
}

body.page-id-99 .hesent-company-factory-slot__label strong {
	color: var(--hesent-10l-blue);
}

body.page-id-99 .hesent-company-role {
	background: var(--hesent-10l-blue-soft);
	border-left: 4px solid var(--hesent-10l-blue-2);
	grid-column: 1 / -1;
	padding: clamp(1.75rem, 3vw, 2.5rem);
}

body.page-id-99 .hesent-company-role h2 {
	margin-top: 0;
}

body.page-id-99 .hesent-company-role p:last-child {
	margin-bottom: 0;
}

body.page-id-99 .hesent-company-role a {
	color: var(--hesent-10l-blue-2);
	font-weight: 650;
}

@media (max-width: 900px) {
	.home .hesent-v3-trust {
		background: var(--hesent-10l-neutral) !important;
	}

	.home .hesent-v3-trust .hesent-v3-editorial,
	.home .hesent-v3-trust .hesent-v3-editorial:has(> .hesent-v3-media-slot:not(.has-active-media)) {
		gap: 2rem;
		grid-template-columns: 1fr !important;
	}

	.home .hesent-v3-trust .hesent-v3-media-slot.hesent-v3-media-slot--reserved {
		min-height: 23rem;
	}

	body.page-id-99 .entry-content {
		align-items: stretch;
		gap: 1.75rem;
		grid-template-columns: 1fr;
	}

	body.page-id-99 .hesent-company-intro {
		padding-block: 0;
	}
}

@media (max-width: 520px) {
	body:not(.postid-51):not(.postid-80) .site-header__utility {
		display: none;
	}

	body:not(.postid-51):not(.postid-80) .site-header__main {
		border-bottom-width: 3px;
	}

	.home .hesent-v3-trust {
		padding-block: 3.25rem;
	}

	.home .hesent-v3-trust .hesent-v3-reason-list {
		grid-template-columns: 1fr;
	}

	.home .hesent-v3-trust .hesent-v3-reason:last-child {
		grid-column: auto;
	}

	.home .hesent-v3-trust .hesent-v3-media-slot.hesent-v3-media-slot--reserved {
		min-height: 19rem;
		padding: 1.5rem;
	}

	body.page-id-99 .wp-block-post-title {
		font-size: clamp(2.35rem, 11vw, 3rem);
		margin-bottom: 2rem;
	}

	body.page-id-99 .entry-content {
		gap: 1.5rem;
		padding-bottom: 3.25rem;
	}

	body.page-id-99 .hesent-company-intro p {
		line-height: 1.65;
	}

	body.page-id-99 .hesent-company-factory-slot.hesent-company-factory-slot--reserved {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	body.page-id-99 .hesent-company-role {
		padding: 1.35rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body:not(.postid-51):not(.postid-80) .wp-block-button__link {
		transition: none !important;
	}
}
