/* ===========================================================================
   Consulting page, design canvas "Certain QMS rådgivning" (2026-10-02)
   ===========================================================================
   Loaded only on pages whose content uses the `cq-rad-` sections (see
   inc/page-radgivning.php), so nothing here reaches other pages. Values follow
   the canvas and the Certain QMS Web Design System it was built with:
   navy hero, service grid with a "where to start" card, course split,
   customer reference, three-column "why Certain", peach working-methods
   banner and the ink contact band with the Pipedrive form.

   Spacing comes from flex/grid `gap`, so block margins inside these sections
   are reset; the `!important` on that reset outranks the theme's
   `.cq-main h2 + .cq-lead`-style margin rules without restating each one. */

.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-rad-gutter: var(--wp--style--root--padding-left, clamp(24px, 5.56vw, 80px));
	--cq-rad-section: clamp(64px, 8vw, 112px);
	--cq-rad-peach: #fff3eb;
	--cq-rad-peach-hover: #ffe2cc;
	--cq-rad-peach-wash: #fffaf6; /* service card hover fill */
	--cq-rad-peach-edge: #f6d9c7; /* service card hover border */
	--cq-rad-clay: #b34e1a;
	--cq-rad-muted: #3f4947;
}

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

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

.cq-main .cq-rad-s {
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	scroll-margin-top: 80px;
}

.cq-main .cq-rad-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-rad-gutter));
	padding-inline: var(--cq-rad-gutter);
}

/* --- Shared section head ------------------------------------------------- */

.cq-main .cq-rad-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 48px !important;
	max-width: 720px;
}

.cq-main .cq-rad-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-rad-h2 {
	color: var(--cq-ink);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 500;
	letter-spacing: -0.016em;
	line-height: 1.15;
	text-wrap: balance;
}

.cq-main .cq-rad-lead {
	color: var(--cq-rad-muted);
	font-size: 18px;
	line-height: 1.6;
	max-width: 640px;
}

/* --- Buttons ------------------------------------------------------------- */
/* `!important` here: the theme's catch-all button rule chains six :not()s,
   which outranks any reasonable page-scoped selector. */

.cq-main .cq-rad-s .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Every button on the page has the site's button shape: 8px radius, the
   design system's "lg" size (17px, 15 x 26, 52px), as "Book demo". */
.cq-main .cq-rad-s .wp-block-button > .wp-block-button__link {
	align-items: center;
	border: 1.5px solid transparent !important;
	border-radius: var(--cq-radius-sm) !important;
	box-shadow: none !important;
	box-sizing: border-box;
	display: inline-flex;
	font-family: inherit;
	font-size: 17px !important;
	font-weight: 500 !important;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2 !important;
	min-height: 52px !important;
	padding: 15px 26px !important;
	text-decoration: none;
	transition: background-color 120ms var(--cq-ease), border-color 120ms var(--cq-ease), color 120ms var(--cq-ease);
}

.cq-main .cq-rad-s .wp-block-button > .wp-block-button__link:focus-visible {
	outline: 2px solid var(--cq-blue);
	outline-offset: 2px;
}

.cq-main .cq-rad-s .cq-rad-btn--primary > .wp-block-button__link {
	background-color: var(--cq-blue) !important;
	color: #ffffff !important;
}

.cq-main .cq-rad-s .cq-rad-btn--primary > .wp-block-button__link:hover {
	background-color: var(--cq-navy) !important;
	color: #ffffff !important;
}

/* Secondary: the theme's outline button (cq-btn-outline), white with a
   hairline and blue text. */
.cq-main .cq-rad-s .cq-rad-btn--secondary > .wp-block-button__link {
	background-color: #ffffff !important;
	border: 1px solid var(--cq-border) !important;
	border-radius: var(--cq-radius-sm) !important;
	color: var(--cq-blue) !important;
}

.cq-main .cq-rad-s .cq-rad-btn--secondary > .wp-block-button__link:hover {
	background-color: var(--cq-mist) !important;
	border-color: var(--cq-sky) !important;
	color: var(--cq-blue) !important;
}

/* Hero: white solid and sky outline on navy. */
.cq-main .cq-rad-hero .cq-rad-btn--light > .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--cq-ink) !important;
}

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

.cq-main .cq-rad-hero .cq-rad-btn--ghost > .wp-block-button__link {
	background-color: transparent !important;
	border-color: var(--cq-sky) !important;
	color: #ffffff !important;
}

.cq-main .cq-rad-hero .cq-rad-btn--ghost > .wp-block-button__link:hover {
	background-color: rgba(188, 207, 252, .16) !important;
	color: #ffffff !important;
}

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

/* --- Icons --------------------------------------------------------------- */
/* Glyphs the shared `.cq-icon--*` set lacks. Same mask technique. */

.cq-icon--lock {
	--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%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E");
}

.cq-main .cq-rad-checks {
	--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='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* --- Hero ---------------------------------------------------------------- */

.cq-main .cq-rad-hero {
	background-color: var(--cq-indigo-900);
	color: #ffffff;
}

.cq-main .cq-rad-hero > .cq-rad-wrap {
	padding-block: var(--cq-crumb-top) 120px;
}

.cq-main .cq-rad-hero__grid {
	/* Copy starts --cq-crumb-gap below the breadcrumb, as on every hero. */
	align-items: start;
	display: grid;
	gap: 64px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: var(--cq-crumb-gap) !important;
}

.cq-main .cq-rad-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 560px;
}

.cq-main .cq-rad-hero .cq-rad-eyebrow {
	color: var(--cq-sky);
}

.cq-main .cq-rad-hero h1 {
	color: #ffffff;
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.08;
	text-wrap: balance;
}

.cq-main .cq-rad-hero__lead {
	color: #ffffff;
	font-size: 18px;
	line-height: 1.6;
}

.cq-main .cq-rad-hero .wp-block-buttons {
	margin-top: 8px !important;
}

.cq-main .cq-rad-hero__image img {
	aspect-ratio: 1 / 1;
	border-radius: var(--cq-radius-lg);
	display: block;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	object-position: 52% 40%;
	width: 100%;
}

/* --- Services ------------------------------------------------------------ */

.cq-main .cq-rad-services {
	background-color: #ffffff;
	border-bottom: 1px solid var(--cq-border);
}

.cq-main .cq-rad-services > .cq-rad-wrap {
	padding-block: var(--cq-rad-section);
}

.cq-main .cq-rad-svcs {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Icon tile (::before) with its glyph (::after) laid over it. */
.cq-main .cq-rad-svc {
	background-color: #ffffff;
	border: 1px solid var(--cq-border);
	border-radius: var(--cq-radius-lg);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	position: relative;
	transition: background-color 120ms var(--cq-ease), border-color 120ms var(--cq-ease), box-shadow 120ms var(--cq-ease);
}

.cq-main .cq-rad-svc::before {
	background-color: var(--cq-rad-peach);
	border-radius: 10px;
	content: "";
	display: block;
	flex: none;
	height: 44px;
	margin-bottom: 12px;
	transition: background-color 120ms var(--cq-ease);
	width: 44px;
}

.cq-main .cq-rad-svc::after {
	background-color: var(--cq-rad-clay);
	content: "";
	height: 24px;
	left: 35px;
	-webkit-mask: var(--cq-icon) center / contain no-repeat;
	mask: var(--cq-icon) center / contain no-repeat;
	pointer-events: none;
	position: absolute;
	top: 35px;
	width: 24px;
}

.cq-main .cq-rad-svc__title {
	color: var(--cq-ink);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.cq-main .cq-rad-svc__body {
	color: var(--cq-rad-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* Linked cards: the title link is stretched over the whole card. */
.cq-main .cq-rad-svc__title a {
	color: inherit;
	text-decoration: none;
	transition: color 120ms var(--cq-ease);
}

.cq-main .cq-rad-svc--link .cq-rad-svc__title a::before {
	border-radius: var(--cq-radius-lg);
	content: "";
	inset: -1px;
	position: absolute;
	z-index: 1;
}

.cq-main .cq-rad-svc--link .cq-rad-svc__title a:focus {
	outline: none;
}

/* The whole card is the link: no underline on hover, focus or click (Oda,
   2026-10-16). Outranks the global `.cq-main a:not(…):hover` underline. */
.cq-main .cq-rad-svc--link .cq-rad-svc__title a:not(.wp-element-button):is(:hover, :focus, :focus-visible, :active) {
	text-decoration: none;
}

.cq-main .cq-rad-svc--link .cq-rad-svc__title a:focus-visible::before {
	outline: 2px solid var(--cq-blue);
	outline-offset: 2px;
}

.cq-main .cq-rad-svc--link:hover {
	/* Warm hover matching the peach/clay icon tile, as on the product modules (Oda, 2026-10-16). */
	background-color: var(--cq-rad-peach-wash);
	border-color: var(--cq-rad-peach-edge);
	box-shadow: var(--cq-shadow-sm);
}

.cq-main .cq-rad-svc--link:hover::before {
	background-color: var(--cq-rad-peach-hover);
}

.cq-main .cq-rad-help {
	background-color: var(--cq-mist);
	border-radius: var(--cq-radius-lg);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	justify-content: space-between;
	padding: 24px;
}

.cq-main .cq-rad-help__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* The help card is a quarter of the grid: its button fills the card with
   tighter padding, so "Kontakt en rådgiver" stays on one line. */
.cq-main .cq-rad-help .wp-block-button,
.cq-main .cq-rad-s .cq-rad-help .wp-block-button > .wp-block-button__link {
	width: 100%;
}

.cq-main .cq-rad-s .cq-rad-help .wp-block-button > .wp-block-button__link {
	font-size: 16px !important;
	padding-inline: 16px !important;
}

/* --- Courses split ------------------------------------------------------- */

.cq-main .cq-rad-courses {
	background-color: #ffffff;
}

.cq-main .cq-rad-courses > .cq-rad-wrap {
	padding-block: var(--cq-rad-section);
}

.cq-main .cq-rad-split {
	align-items: center;
	display: grid;
	gap: 96px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cq-main .cq-rad-split__image img {
	aspect-ratio: 3 / 2;
	border-radius: var(--cq-radius-lg);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.cq-main .cq-rad-split__copy {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cq-main .cq-rad-split .cq-rad-h2 {
	max-width: 20ch;
}

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

.cq-main .cq-rad-split .wp-block-buttons,
.cq-main .cq-rad-ref .wp-block-buttons {
	margin-top: 8px !important;
}

/* --- Customer reference -------------------------------------------------- */

.cq-main .cq-rad-refs {
	background-color: var(--cq-mist);
}

.cq-main .cq-rad-refs > .cq-rad-wrap {
	padding-block: var(--cq-rad-section);
}

/* Head row: title on the left, "Se referanser" on the right. */
.cq-main .cq-rad-refs__head {
	align-items: flex-end;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-bottom: 48px !important;
}

.cq-main .cq-rad-refs__head .cq-rad-head {
	margin-bottom: 0 !important;
}

.cq-main .cq-rad-refs__head .wp-block-buttons {
	flex-shrink: 0;
}

.cq-main .cq-rad-ref {
	background-color: #ffffff;
	border: 1px solid #dbe4fb;
	border-radius: var(--cq-radius-lg);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	overflow: hidden;
}

.cq-main .cq-rad-ref__image {
	background-color: #f7f9ff;
	min-height: 320px;
}

.cq-main .cq-rad-ref__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: 42% 35%;
	width: 100%;
}

.cq-main .cq-rad-ref__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	padding: 48px;
}

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

.cq-main .cq-rad-ref__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-rad-ref__body {
	color: var(--cq-rad-muted);
	font-size: 17px;
	line-height: 1.65;
}

/* --- Why Certain --------------------------------------------------------- */

.cq-main .cq-rad-why {
	background-color: #ffffff;
}

.cq-main .cq-rad-why > .cq-rad-wrap {
	padding-block: var(--cq-rad-section);
}

.cq-main .cq-rad-why__grid {
	border-block: 1px solid var(--cq-border);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cq-main .cq-rad-why__cell {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 40px 32px;
}

.cq-main .cq-rad-why__cell + .cq-rad-why__cell {
	border-left: 1px solid var(--cq-border);
}

.cq-main .cq-rad-why__title {
	color: var(--cq-ink);
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.cq-main .cq-rad-why__body {
	color: #232323;
	font-size: 16px;
	line-height: 26px;
}

/* --- Working-methods banner ---------------------------------------------- */

.cq-main .cq-rad-banner {
	background-color: #ffffff;
	box-sizing: border-box;
	padding: 0 var(--cq-rad-gutter) var(--cq-rad-section);
}

.cq-main .cq-rad-banner__shell {
	align-items: center;
	background-color: var(--cq-rad-peach);
	border-radius: 16px;
	box-sizing: border-box;
	display: grid;
	gap: 64px;
	grid-template-columns: 1.1fr 1fr;
	margin-inline: auto !important;
	/* Banners sit inside the 1200px content column (review CQ-V1). */
	max-width: 1200px;
	padding: 64px;
}

.cq-main .cq-rad-banner__copy,
.cq-main .cq-rad-banner__aside {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cq-main .cq-rad-banner__aside {
	align-self: stretch;
	border-left: 1px solid rgba(6, 12, 49, .12);
	justify-content: center;
	padding-left: 64px;
}

.cq-main .cq-rad-banner .cq-rad-h2 {
	max-width: 18ch;
}

.cq-main .cq-rad-banner__lead {
	color: var(--cq-rad-muted);
	font-size: 17px;
	line-height: 1.65;
	max-width: 46ch;
}

.cq-main .cq-rad-checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	padding: 0;
}

.cq-main .cq-rad-checks li {
	align-items: flex-start;
	color: var(--cq-ink);
	display: flex;
	font-size: 17px;
	gap: 12px;
	line-height: 1.65;
}

.cq-main .cq-rad-checks li::before {
	background-color: var(--cq-blue);
	content: "";
	flex: none;
	height: 20px;
	margin-top: 4px;
	-webkit-mask: var(--cq-icon) center / contain no-repeat;
	mask: var(--cq-icon) center / contain no-repeat;
	width: 20px;
}

/* --- Contact band -------------------------------------------------------- */

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

.cq-main .cq-rad-contact > .cq-rad-wrap {
	padding-block: var(--cq-rad-section);
}

.cq-main .cq-rad-contact__grid {
	align-items: center;
	column-gap: 32px;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	row-gap: 48px;
}

.cq-main .cq-rad-contact__copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
	grid-column: 1 / span 5;
}

.cq-main .cq-rad-contact .cq-rad-eyebrow {
	color: var(--cq-sky);
}

.cq-main .cq-rad-contact .cq-rad-h2 {
	color: #ffffff;
}

.cq-main .cq-rad-contact__lead {
	color: #ffffff;
	font-size: 18px;
	line-height: 1.6;
}

.cq-main .cq-rad-contact__card {
	background-color: #ffffff;
	border-radius: var(--cq-radius-lg);
	box-shadow: var(--cq-shadow-lg);
	box-sizing: border-box;
	color: #232323;
	display: flex;
	flex-direction: column;
	gap: 20px;
	grid-column: 7 / span 6;
	padding: 40px;
}



/* --- Narrow desktop ------------------------------------------------------ */
/* Below 1200px a quarter-width help card is too narrow for "Contact a
   consultant" on one line, so the service grid drops to two columns
   already here rather than at the tablet breakpoint. */

@media (max-width: 1199.98px) {
	.cq-main .cq-rad-svcs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --- Tablet and phone ---------------------------------------------------- */

@media (max-width: 1023.98px) {
	.cq-main .cq-rad-hero > .cq-rad-wrap {
		padding-bottom: 72px;
	}

	.cq-main .cq-rad-hero__grid {
		gap: 40px;
		grid-template-columns: minmax(0, 1fr);
	}

	.cq-main .cq-rad-hero__copy {
		max-width: 640px;
	}

	.cq-main .cq-rad-hero__image img {
		aspect-ratio: 4 / 3;
		max-height: none;
	}


	.cq-main .cq-rad-split,
	.cq-main .cq-rad-banner__shell {
		gap: 48px;
		grid-template-columns: minmax(0, 1fr);
	}

	.cq-main .cq-rad-ref {
		grid-template-columns: minmax(0, 1fr);
	}

	.cq-main .cq-rad-refs__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 24px;
	}

	.cq-main .cq-rad-ref__image {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.cq-main .cq-rad-ref__text {
		padding: 32px;
	}

	.cq-main .cq-rad-why__grid {
		border-bottom: 0;
		grid-template-columns: minmax(0, 1fr);
	}

	.cq-main .cq-rad-why__cell {
		padding: 28px 0;
	}

	.cq-main .cq-rad-why__cell + .cq-rad-why__cell {
		border-left: 0;
		border-top: 1px solid var(--cq-border);
	}

	.cq-main .cq-rad-banner__shell {
		padding: 48px;
	}

	.cq-main .cq-rad-banner__aside {
		border-left: 0;
		border-top: 1px solid rgba(6, 12, 49, .12);
		padding-left: 0;
		padding-top: 48px;
	}

	.cq-main .cq-rad-contact__copy,
	.cq-main .cq-rad-contact__card {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599.98px) {
	.cq-main .cq-rad-svcs {
		gap: 16px;
		grid-template-columns: minmax(0, 1fr);
	}

	.cq-main .cq-rad-ref__text {
		padding: 24px;
	}

	.cq-main .cq-rad-banner__shell {
		padding: 32px 24px;
	}

	.cq-main .cq-rad-contact__card {
		padding: 24px;
	}

	.cq-main .cq-rad-s .wp-block-buttons,
	.cq-main .cq-rad-s .wp-block-button,
	.cq-main .cq-rad-s .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cq-main .cq-rad-s *,
	.cq-main .cq-rad-s *::before,
	.cq-main .cq-rad-s *::after {
		transition: none !important;
	}
}
