/* ===========================================================================
   Contact page, design canvas "Contact us page" (2026-10-02)
   ===========================================================================
   Loaded only on pages whose content uses the `cq-kon-` sections (see
   inc/page-kontakt.php), so nothing here reaches other pages. Values follow
   the canvas and the Certain QMS Web Design System it was built with:
   eyebrow, H1 and lead over a list of direct contacts (icon tile, label,
   link) on the left, the Pipedrive form on the right (5fr / 7fr from
   1024px, stacked below), then the ink "Book en demo" band, centred.

   Spacing comes from flex/grid `gap`, so block margins inside these sections
   are reset, as on the consulting and industries pages. */

.cq-main {
	/* Same gutter as the header/footer (theme.json root padding), so the
	   content column lines up with them (2026-10-07 review CQ-V1). */
	--cq-kon-gutter: var(--wp--style--root--padding-left, clamp(24px, 5.56vw, 80px));
	--cq-kon-section: clamp(64px, 8vw, 112px);
	--cq-kon-section-lg: clamp(80px, 11vw, 160px);
	--cq-kon-muted: #3f4947;
}

.wp-block-post-content > .cq-kon-s {
	margin-block: 0 !important;
}

.cq-main .cq-kon-s :where(h1, h2, h3, p, ul, li, .wp-block-buttons, .wp-block-group) {
	margin: 0 !important;
}

.cq-main .cq-kon-s {
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cq-main .cq-kon-wrap {
	box-sizing: border-box;
	margin-inline: auto !important;
	/* 1200px of content, like the header and footer (contentSize). */
	max-width: calc(1200px + 2 * var(--cq-kon-gutter));
	padding-inline: var(--cq-kon-gutter);
}

/* --- Intro + form ---------------------------------------------------------- */

.cq-main .cq-kon-main {
	background-color: #ffffff;
	padding-block: var(--cq-crumb-top) var(--cq-kon-section);
}

/* Breadcrumb row above the two columns (--cq-crumb-* in style.css). */
.cq-main .cq-kon-crumbs {
	margin-bottom: var(--cq-crumb-gap) !important;
}

.cq-main .cq-kon-grid {
	align-items: start;
	display: grid;
	gap: 48px;
	grid-template-columns: minmax(0, 1fr);
}

.cq-main .cq-kon-intro {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.cq-main .cq-kon-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cq-main .cq-kon-eyebrow {
	color: var(--cq-navy);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.cq-main .cq-kon-title {
	color: var(--cq-ink);
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.08;
}

.cq-main .cq-kon-lead {
	color: var(--cq-kon-muted);
	font-size: 20px;
	line-height: 1.6;
	max-width: 68ch;
}

/* Direct contacts: hairline-separated rows with a mist icon tile. */
.cq-main .cq-kon-list {
	border-top: 1px solid var(--cq-border);
	list-style: none;
	padding: 0;
}

.cq-main .cq-kon-item {
	align-items: flex-start;
	border-bottom: 1px solid var(--cq-border);
	display: flex;
	gap: 16px;
	padding-block: 20px;
}

.cq-main .cq-kon-item__icon {
	align-items: center;
	background-color: var(--cq-mist);
	border-radius: var(--cq-radius-sm);
	color: var(--cq-blue);
	display: flex;
	flex-shrink: 0;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.cq-main .cq-kon-item__icon::before {
	background-color: currentColor;
	content: "";
	height: 24px;
	-webkit-mask: var(--cq-icon) center / contain no-repeat;
	mask: var(--cq-icon) center / contain no-repeat;
	width: 24px;
}

.cq-main .cq-kon-item__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cq-main .cq-kon-item__label {
	color: var(--cq-kon-muted);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.45;
}

.cq-main .cq-kon-item__link {
	color: var(--cq-blue);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.cq-main .cq-kon-item__link:hover {
	color: var(--cq-navy);
	text-decoration: underline;
}

.cq-main .cq-kon-item__link:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--cq-blue);
	outline-offset: 2px;
}

.cq-main .cq-kon-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cq-main .cq-kon-form__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cq-main .cq-kon-form__title {
	color: var(--cq-ink);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.cq-main .cq-kon-form__lead {
	color: var(--cq-kon-muted);
	font-size: 17px;
	line-height: 1.65;
}

/* Reserve the embed's height so the band below does not jump on load. */
.cq-main .cq-kon-form .pipedriveWebForms {
	min-height: 520px;
}

/* Pipedrive centres its form (max 480px) inside a full-width iframe. Capping
   the iframe at that width puts the form's left edge on the heading's
   (Oda, 2026-10-07); Pipedrive also drops its own "Get in touch" title at
   this width, so it no longer repeats the heading above. */
.cq-main .cq-kon-form .pipedriveWebForms iframe {
	max-width: 480px;
}

.cq-main .cq-kon-form .cq-consent-gate {
	max-width: none;
}

@media (min-width: 1024px) {
	.cq-main .cq-kon-grid {
		gap: 40px;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	/* Divider between intro and form, centred in the old 80px gap
	   (Oda, 2026-10-16). Stacked layouts below 1024px have none. */
	.cq-main .cq-kon-form {
		align-self: stretch;
		border-left: 1px solid var(--cq-border);
		padding-left: 40px;
	}
}

@media (max-width: 599.98px) {
	.cq-main .cq-kon-intro {
		gap: 32px;
	}

	.cq-main .cq-kon-head {
		gap: 12px;
	}

	.cq-main .cq-kon-grid {
		gap: 40px;
	}

	.cq-main .cq-kon-form .pipedriveWebForms {
		min-height: 560px;
	}
}

/* --- CTA band -------------------------------------------------------------- */

.cq-main .cq-kon-cta {
	background-color: var(--cq-ink);
	color: #ffffff;
}

/* Eyebrow, title, lead and button centred in the band (Oda, 2026-10-07). */
.cq-main .cq-kon-cta__inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-block: var(--cq-kon-section-lg);
	text-align: center;
}

.cq-main .cq-kon-cta__eyebrow {
	color: var(--cq-sky);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.cq-main .cq-kon-cta__title {
	color: #ffffff;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 500;
	letter-spacing: -0.016em;
	line-height: 1.15;
	/* As wide as the lead below it (68ch at half this size), so the heading
	   uses the band's width; balanced when it does wrap (Oda, 2026-10-07). */
	max-width: 34ch;
	text-wrap: balance;
}

.cq-main .cq-kon-cta__lead {
	color: #ffffff;   /* white, as on the other ink CTA bands (Oda, 2026-10-07) */
	font-size: 20px;
	line-height: 1.6;
	max-width: 68ch;
}

.cq-main .cq-kon-cta .cq-kon-btn--light > .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--cq-ink) !important;
}

.cq-main .cq-kon-cta .cq-kon-btn--light > .wp-block-button__link:hover {
	background-color: var(--cq-sky) !important;
	color: var(--cq-ink) !important;
}

.cq-main .cq-kon-cta .wp-block-button > .wp-block-button__link:focus-visible {
	outline-color: var(--cq-sky);
}

/* --- Icons ----------------------------------------------------------------- */
/* Lucide-style, 24px, 1.5px stroke, as in the canvas. */

.cq-kon-icon--help {
	--cq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.cq-kon-icon--phone {
	--cq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2a19.8 19.8 0 0 1-8.6-3.1a19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.cq-kon-icon--mail {
	--cq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
