/*
 * Volt Instruments Contact page (scripts/setup/contact-rebuild.php). Loads after home.css and
 * pages.css; the form itself is styled by mu-plugins/volt-enquiry/enquiry.css.
 *
 * Unlike the other pages (white hero with a drawing), Contact opens on a dark "contact desk":
 * direct lines on the left, the three-step form card on the right, both above the fold.
 */

/* ---------- Contact desk ---------- */
.e-con.vc-desk {
	--vc-text: #b9c7d1;
	--vc-muted: #8fa3b1;
	--vc-line: #2a3c49;
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: clamp(56px, 7vw, 96px);
	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") left -300px bottom -170px / 720px 400px no-repeat,
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--vh-ink);
	color: var(--vh-white);
}
.vc-desk ::selection {
	background: var(--vh-blue);
	color: var(--vh-ink);
}
.vh .e-con.vc-desk-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(36px, 5vw, 80px);
	align-items: start;
}
.vh .e-con.vc-info {
	gap: 22px;
	padding-top: 8px;
}

/* type on dark */
.vh .vc-crumbs nav,
.vh .vc-crumbs [aria-current] {
	color: var(--vc-muted);
}
.vh .vc-crumbs a {
	color: var(--vh-blue);
}
.vh .vc-h1 .elementor-heading-title {
	font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4rem);
	max-width: 11ch;
	color: var(--vh-white);
}
.vh .vc-lead p {
	max-width: 26em;
	font-size: 1.125rem;
	color: var(--vc-text);
}
.vc-label {
	margin: 0 0 14px;
	font-family: var(--vh-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vh-blue);
}

/* direct lines */
.vc-lines {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--vc-line);
}
.vc-lines li {
	border-bottom: 1px solid var(--vc-line);
}
.vc-lines a {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 16px;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	color: var(--vh-white);
	text-decoration: none;
}
.vc-lines a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--vc-muted);
	border-right: 2px solid var(--vc-muted);
	transform: rotate(45deg);
	transition: transform 0.25s var(--vh-ease), border-color 0.25s var(--vh-ease);
}
.vc-lines svg {
	width: 40px;
	height: 40px;
	padding: 9px;
	border: 1px solid var(--vc-line);
	fill: none;
	stroke: var(--vh-blue);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: background-color 0.25s var(--vh-ease), border-color 0.25s var(--vh-ease), stroke 0.25s var(--vh-ease);
}
.vc-lines span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--vh-display);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}
.vc-lines small {
	font-family: var(--vh-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vc-muted);
}
/* the theme darkens every a:hover; keep the text white on the dark band */
.vh .vc-lines a:is(:hover, :focus, :active),
.vh .vc-lines a:is(:hover, :focus, :active) span {
	color: var(--vh-white);
}
.vh .vc-lines a:is(:hover, :focus, :active) small {
	color: var(--vh-blue);
}
.vc-lines a:hover svg,
.vc-lines a:focus-visible svg {
	background: var(--vh-blue);
	border-color: var(--vh-blue);
	stroke: var(--vh-ink);
}
.vc-lines a:hover::after {
	border-color: var(--vh-blue);
	transform: translateX(3px) rotate(45deg);
}
.vc-open {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--vc-text);
}
.vc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3ccf7a;
	box-shadow: 0 0 0 4px rgba(60, 207, 122, 0.18);
}

/* what happens next */
.vc-next {
	margin-top: 14px;
	padding-top: 26px;
	border-top: 1px solid var(--vc-line);
}
.vc-next ol {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: vc;
}
.vc-next ol::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--vc-line);
}
.vc-next li {
	counter-increment: vc;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 0 18px 40px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--vc-text);
}
.vc-next li:last-child {
	padding-bottom: 0;
}
.vc-next li::before {
	content: counter(vc);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--vh-blue);
	border-radius: 50%;
	background: var(--vh-ink);
	font-family: var(--vh-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--vh-blue);
}
.vc-next b {
	font-family: var(--vh-display);
	font-size: 1rem;
	font-weight: 600;
	color: var(--vh-white);
}

/* form card */
.vh .e-con.vc-form-card {
	padding: clamp(22px, 3vw, 40px);
	background: var(--vh-white);
	color: var(--vh-ink);
	border-top: 4px solid var(--vh-blue);
	box-shadow: 0 48px 96px -40px rgba(0, 0, 0, 0.55);
}
.vc-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 20px;
	margin-bottom: 8px;
}
.vh .vc-card-head h2 {
	margin: 0;
	font-family: var(--vh-display);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--vh-ink);
}
.vc-card-head p {
	margin: 0;
	font-family: var(--vh-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vh-ink-2);
}
.vc-card-head p span {
	margin: 0 4px;
	color: var(--vh-line-strong);
}

/* ---------- Visit the workshop ---------- */
.e-con.vc-visit {
	background: var(--vh-paper);
	scroll-margin-top: 90px;
}
.vh .e-con.vc-visit-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: stretch;
}
.vc-visit .vc-label {
	color: var(--vh-blue-ink);
}
.vh .vc-visit-h {
	margin: 0 0 28px;
	font-family: var(--vh-display);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--vh-ink);
	text-wrap: balance;
}
.vc-details {
	margin: 0;
	border-top: 1px solid var(--vh-line-strong);
}
.vc-details > div {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	column-gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--vh-line);
}
.vc-details svg {
	grid-row: span 2;
	width: 36px;
	height: 36px;
	padding: 7px;
	border: 1px solid var(--vh-line-strong);
	background: var(--vh-white);
	fill: none;
	stroke: var(--vh-ink);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vc-details dt {
	margin: 0 0 4px;
	font-family: var(--vh-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vh-ink-2);
}
.vc-details dd {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--vh-ink);
}
.vc-details a {
	color: var(--vh-blue-ink);
	font-weight: 600;
	text-underline-offset: 3px;
}
.vc-visit-note {
	margin: 20px 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--vh-ink-2);
}
.vh .vc-map-w {
	min-height: 420px;
	border: 1px solid var(--vh-line-strong);
	padding: 8px;
	background: var(--vh-white);
}
.vh .vc-map-w .elementor-widget-container,
.vh .vc-map-w .elementor-custom-embed {
	height: 100%;
}
.vh .vc-map-w iframe {
	display: block;
	height: 100% !important;
	min-height: 400px;
	filter: grayscale(0.85) contrast(1.05);
	transition: filter 0.4s var(--vh-ease);
}
.vh .vc-map-w:hover iframe {
	filter: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.vh .e-con.vc-desk-grid,
	.vh .e-con.vc-visit-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	/* on narrow screens the form comes straight after the heading; next steps move below it */
	.vh .e-con.vc-info {
		display: contents;
	}
	.vh .vc-crumbs { order: 1; }
	.vh .vc-h1 { order: 2; }
	.vh .vc-lead { order: 3; }
	.vh .vc-form-card { order: 4; }
	.vh .vc-lines-w { order: 5; }
	.vh .vc-next-w { order: 6; }
	.vh .e-con.vc-desk-grid {
		row-gap: 22px;
	}
	.vh .vc-h1 .elementor-heading-title {
		max-width: 14ch;
	}
}
@media (max-width: 767px) {
	.vh .e-con.vc-form-card {
		padding: 20px 16px;
		/* Bleed 8px past the text column on both sides (Elementor fixes width at 100%). */
		width: calc(100% + 16px);
		max-width: none;
		margin-inline: -8px;
	}
}
