/*
 * Volt Instruments Services and Products pages (overviews and detail pages). Loads after home.css
 * (shared tokens and vh-* sections) and styles the vp-* elements built by
 * scripts/setup/catalog-pages.php.
 */

/* ---------- Hero ---------- */
.e-con.vp-hero {
	padding-bottom: clamp(56px, 7vw, 96px);
}
.e-con.vp-hero-overview {
	padding-bottom: 0;
}
.vh .e-con.vp-hero-copy {
	gap: 24px;
}
.vh .vp-h1 .elementor-heading-title {
	max-width: 16ch;
}
.vh .vp-hero-overview .vh-h1 .elementor-heading-title {
	max-width: 18ch;
}
.vh .vp-crumbs nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: var(--vh-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vh-ink-2);
}
.vh .vp-crumbs a {
	color: var(--vh-blue-ink);
	text-decoration: none;
}
.vh .vp-crumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.vh .vp-crumbs [aria-hidden] {
	color: var(--vh-line-strong);
}
.vh .vp-crumbs [aria-current] {
	color: var(--vh-ink);
}

/* hero drawing: the item's line drawing on a drawing sheet */
.vh .vp-sheet {
	margin: 0;
	padding: clamp(24px, 4vw, 48px);
	background:
		linear-gradient(var(--vh-line) 1px, transparent 1px) -1px -1px / 16px 16px,
		linear-gradient(90deg, var(--vh-line) 1px, transparent 1px) -1px -1px / 16px 16px,
		var(--vh-white);
	border: 1px solid var(--vh-line-strong);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(12, 26, 36, 0.06), 0 32px 56px -28px rgba(12, 26, 36, 0.3);
}
.vh .vp-sheet svg.vh-icon {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	overflow: visible;
}
.vh .vp-drawing-glyph .vp-sheet svg.vh-icon {
	aspect-ratio: 4 / 3;
	max-width: 420px;
	margin: 0 auto;
}
.vh .vp-sheet figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(20px, 3vw, 32px);
	padding-top: 14px;
	border-top: 1px solid var(--vh-line);
	font-family: var(--vh-mono);
	font-size: 0.75rem;
	color: var(--vh-ink);
}
.vh .vp-sheet figcaption b {
	margin-right: 8px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vh-ink-2);
}

/* ---------- Overview lists ---------- */
.vh .vp-head-note p {
	max-width: 30em;
	margin: 0;
}
.vh .e-con.vp-product-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* five products: 3 + 2, the second row ruled off like the first */
.vh .e-con.vp-product-grid-5 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vh .e-con.vp-product-grid-5 > .e-con.vh-product:nth-child(3n + 1) {
	padding-left: 0;
	border-left: 0;
}
.vh .e-con.vp-product-grid-5 > .e-con.vh-product:nth-child(-n + 3) {
	border-bottom: 1px solid var(--vh-line);
}

/* cross-link band between the two overviews */
.e-con.vp-cross {
	background: var(--vh-paper);
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}
.vh .e-con.vp-cross-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: end;
}
.vh .e-con.vp-cross-copy {
	gap: 16px;
	align-items: flex-start;
}

/* ---------- Detail: what's included ---------- */
.vh .e-con.vp-feature-list {
	border-top: 1px solid var(--vh-ink);
}
.vh .e-con.vp-feature {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
	padding: 22px 0 24px;
	border-bottom: 1px solid var(--vh-line);
}
.vh .vp-feature-no span,
.vh .vp-step-no span {
	display: block;
	font-family: var(--vh-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--vh-blue-ink);
}
.vh .vp-feature-title .elementor-heading-title {
	font-family: var(--vh-display);
	font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
	color: var(--vh-ink);
}

/* ---------- Detail: how a project runs / ways to order ----------
   Dark band like the Home process. Four cards hang off one trace; each card's node carries the
   step number, and the trace lights up to the hovered card. */
.e-con.vp-deliver {
	--vp-d-line: #2a3c49;
	--vp-d-muted: #8fa3b1;
	--vp-d-text: #b9c7d1;
	--vp-d-card: #11232f;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='400' viewBox='0 0 720 400' fill='none' stroke='%2300adef' stroke-opacity='0.18' stroke-width='1.5'%3E%3Cpath d='M0 340 H200 L240 300 H430 L470 260 H720'/%3E%3Cpath d='M380 0 V80 L420 120 H600 L640 160 H720'/%3E%3Cpath d='M480 0 V50 L510 80 H720'/%3E%3Cg fill='%230c1a24'%3E%3Ccircle cx='200' cy='340' r='4'/%3E%3Ccircle cx='430' cy='300' r='4'/%3E%3Ccircle cx='600' cy='120' r='4'/%3E%3Ccircle cx='510' cy='80' r='4'/%3E%3C/g%3E%3C/svg%3E") right -160px top -120px / 720px 400px no-repeat, var(--vh-ink);
	background-position: left -260px bottom -230px, 0 0;
	color: var(--vh-white);
}
.vp-deliver ::selection {
	background: var(--vh-blue);
	color: var(--vh-ink);
}
.vh .e-con.vp-deliver-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: end;
	margin-bottom: clamp(56px, 7vw, 88px);
}
.vp-deliver .vh-h2 .elementor-heading-title {
	color: var(--vh-white);
	max-width: 12ch;
}
.vh .e-con.vp-deliver-copy {
	gap: 16px;
	align-items: flex-start;
}
.vp-deliver .vh-body,
.vp-deliver .vh-body p {
	color: var(--vp-d-text);
}
.vp-deliver .vh-btn-text .elementor-button {
	color: var(--vh-blue);
}
.vp-deliver .vh-btn-text .elementor-button:hover {
	color: var(--vh-white);
}
.vp-deliver a:focus-visible,
.vp-deliver .elementor-button:focus-visible {
	outline-color: var(--vh-blue);
}

.vh .e-con.vp-step-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	position: relative;
	padding-top: 28px;
}
@media (max-width: 1024px) {
	.vh .e-con.vp-step-grid { padding-top: 20px; }
}
/* the trace the cards hang from */
.vh .e-con.vp-step-grid::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--vh-blue) 0%, var(--vh-blue) 60%, rgba(0, 173, 239, 0.25) 100%);
}
.vh .e-con.vp-step {
	gap: 12px;
	padding: 36px 26px 26px;
	position: relative;
	background: var(--vp-d-card);
	border: 1px solid var(--vp-d-line);
	border-top: 2px solid var(--vp-d-line);
	transition: transform 0.35s var(--vh-ease), border-color 0.35s var(--vh-ease), background-color 0.35s var(--vh-ease);
}
/* drop line from the trace to the card */
.vh .e-con.vp-step::before {
	content: "";
	position: absolute;
	top: -28px;
	left: 44px;
	width: 2px;
	height: 28px;
	background: var(--vp-d-line);
	transition: background-color 0.35s var(--vh-ease);
}
.vh .e-con.vp-step:hover {
	transform: translateY(-4px);
	border-color: #3b5263;
	border-top-color: var(--vh-blue);
	background: #142a38;
}
.vh .e-con.vp-step:hover::before {
	background: var(--vh-blue);
}
.vh .vp-step-head,
.vh .vp-step-head .elementor-widget-container {
	position: static;
}
.vh .vp-step-head .elementor-widget-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.vh .vp-step-node {
	position: absolute;
	top: -47px;
	left: 26px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	box-sizing: border-box;
	border: 2px solid var(--vh-blue);
	border-radius: 50%;
	background: var(--vh-ink);
	font-family: var(--vh-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--vh-blue);
	z-index: 1;
	transition: background-color 0.35s var(--vh-ease), color 0.35s var(--vh-ease);
}
.vh .e-con.vp-step:hover .vp-step-node,
.vh .e-con.vp-step:last-child .vp-step-node {
	background: var(--vh-blue);
	color: var(--vh-ink);
}
.vh .e-con.vp-step:last-child .vp-step-node {
	box-shadow: 0 0 0 6px rgba(0, 173, 239, 0.16);
}
.vh .vp-step-head svg.vp-step-g {
	display: block;
	width: 52px;
	height: 39px;
	overflow: visible;
}
.vp-deliver .vh-icon .i-line { stroke: var(--vp-d-text); fill: none; }
.vp-deliver .vh-icon .i-thin { stroke: var(--vp-d-muted); }
.vh .e-con.vp-step:hover .vh-icon .i-sig { stroke: var(--vh-white); }
.vh .vp-step-title .elementor-heading-title {
	font-family: var(--vh-display);
	font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--vh-white);
}
.vh .e-con.vp-step > .vp-step-out {
	margin-top: auto;
}
.vh .vp-step-text p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--vp-d-text);
}
.vh .vp-step-out p {
	margin: 12px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--vp-d-line);
	font-family: var(--vh-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--vh-white);
}
.vh .vp-step-out span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vh-blue);
}

/* ---------- Detail: related ---------- */
.e-con.vp-related {
	padding-bottom: clamp(56px, 6vw, 88px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.vh .e-con.vp-deliver-head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
	.vh .e-con.vp-step-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 64px;
	}
	.vh .e-con.vp-step-grid::before {
		display: none;
	}
	.vh .e-con.vp-step::before {
		display: none;
	}
	.vh .vp-step-node {
		top: -19px;
	}
	.vh .e-con.vp-product-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.vh .e-con.vp-cross-grid {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}
@media (max-width: 767px) {
	.vh .e-con.vp-product-grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}
	.vh .e-con.vp-step-grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 56px;
	}
	.vh .e-con.vp-feature {
		grid-template-columns: 40px minmax(0, 1fr);
	}
}

/* Long-form "about" section on detail pages (catalog-pages.php $about): headings and lists in body copy. */
.e-con.vp-about {
	border-top: 1px solid var(--vh-line);
}
.vh .vp-prose h3 {
	font-family: var(--vh-display);
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--vh-ink);
	margin: 1.6em 0 0.6em;
}
.vh .vp-prose ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
	max-width: 38em;
}
.vh .vp-prose li {
	font-size: 1.0625rem;
	line-height: 1.6;
	margin-bottom: 0.45em;
}
.vh .vp-prose li::marker {
	color: var(--vh-blue);
}
.vh .vp-prose strong {
	color: var(--vh-ink);
	font-weight: 600;
}
.vh .vp-prose a {
	color: var(--vh-blue-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* five-product grid at smaller widths (home.css switches vh-product-grid to 2 columns, then 1) */
@media (max-width: 1024px) {
	.vh .e-con.vp-product-grid-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.vh .e-con.vp-product-grid-5 > .e-con.vh-product:nth-child(n) {
		border-top: 0;
		border-bottom: 0;
	}
	.vh .e-con.vp-product-grid-5 > .e-con.vh-product:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
	.vh .e-con.vp-product-grid-5 > .e-con.vh-product:nth-child(-n + 4) {
		border-bottom: 1px solid var(--vh-line);
	}
}
@media (max-width: 767px) {
	.vh .e-con.vp-product-grid-5 {
		grid-template-columns: minmax(0, 1fr);
	}
	.vh .e-con.vp-product-grid-5 > .e-con.vh-product:nth-child(-n + 4) {
		border-bottom: 1px solid var(--vh-line);
	}
}
