/* Steinvik Bygg — project layer on styrk-blocks. Headings: Schibsted Grotesk
   ExtraBold, tight; body: Inter. Accent: the logo's turquoise. */

:root {
	--sv-ink: #131c2d;
	--sv-concrete: #f5f3ef;
	--sv-teal: #12af94;      /* decor and numbers on dark, never body text on white */
	--sv-teal-on-dark: #35c9ae;
	--sv-green: #0c8571;     /* CTA fill, white text 4.5:1 */
	--sv-radius: var(--wp--custom--styrk-blocks--radius, 2px); /* sharp, like cut timber */
}

.cb-page-header__title,
.text-section-heading,
.wp-block-styrk-blocks-process h2,
.wp-block-styrk-blocks-hero h1 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

/* ── Services: all five in one screen ──────────────────────────────────────
   Desktop: one row of five shorter photo tiles. Phones: a compact list, a
   small photo beside the title and one line, so the section is ~one screen. */
.sv-services .cb-feature-cards--photo {
	gap: 8px;
}

.sv-services .cb-feature-card.cb-feature-card--photo {
	border-radius: var(--sv-radius);
}

/* Desktop: a bento in one screen. The two core trades (nybygg, betong)
   large on top, the other three below; real job photos, a deep gradient
   from the foot so the text reads, the title set large. */
@media (min-width: 640px) {
	.sv-services .cb-feature-cards--photo {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 10px;
	}

	.sv-services .cb-feature-cards--photo > .cb-feature-card--photo.cb-feature-card {
		display: flex !important;
		flex-direction: column;
		justify-content: flex-end;
		grid-row: auto !important;
		grid-column: span 2;
		min-height: 15rem;
		padding: 1.5rem 1.75rem;
	}

	.sv-services .cb-feature-cards--photo > .cb-feature-card--photo.cb-feature-card:nth-child(-n+2) {
		grid-column: span 3;
		min-height: 21rem;
	}

	.sv-services .cb-feature-cards--photo .cb-photo-tile__text {
		display: flex !important;
		flex-direction: column;
		gap: 0.5rem;
		max-width: 34ch;
	}

	.sv-services .cb-feature-cards--photo .cb-photo-tile__heading {
		font-family: var(--wp--preset--font-family--display);
		font-size: 1.75rem;
		font-weight: 800;
		letter-spacing: -0.02em;
		line-height: 1.1;
	}

	.sv-services .cb-feature-cards--photo > .cb-feature-card--photo:nth-child(-n+2) .cb-photo-tile__heading {
		font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem);
	}

	.sv-services .cb-feature-cards--photo .cb-photo-tile__body {
		font-size: 1rem;
		line-height: 1.45;
	}

	/* Short turquoise rule above each title, like a chalk line. */
	.sv-services .cb-feature-cards--photo .cb-photo-tile__heading::before {
		content: "";
		display: block;
		width: 2.5rem;
		height: 3px;
		margin-bottom: 0.875rem;
		background: var(--sv-teal-on-dark);
	}
}

.sv-services .cb-feature-card.cb-feature-card--photo > .cb-photo-tile__shade {
	background: linear-gradient(to top, rgb(19 28 45 / 0.92) 0%, rgb(19 28 45 / 0.55) 45%, rgb(19 28 45 / 0.05) 100%);
}



@media (max-width: 639px) {
	.sv-services .cb-feature-cards--photo {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.sv-services .cb-feature-cards--photo > .cb-feature-card--photo.cb-feature-card {
		display: grid;
		grid-row: auto;
		grid-template-columns: 88px 1fr;
		grid-template-rows: auto auto;
		column-gap: 16px;
		row-gap: 2px;
		align-items: center;
		min-height: 0;
		padding: 8px 12px 8px 8px;
		background: #fff;
		color: var(--sv-ink);
	}

	.sv-services .cb-feature-card--photo > .cb-photo-tile__media {
		position: relative;
		inset: auto;
		grid-row: 1 / span 2;
		grid-column: 1;
		width: 88px;
		height: 72px;
		border-radius: 0;
	}

	.sv-services .cb-feature-card--photo > .cb-photo-tile__shade {
		display: none;
	}

	.sv-services .cb-feature-card--photo .cb-photo-tile__heading {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		color: var(--sv-ink);
		font-size: 1.125rem;
	}

	.sv-services .cb-feature-card--photo .cb-photo-tile__body {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		color: #4a5567;
		font-size: 0.9375rem;
		line-height: 1.4;
	}
}

/* ── «Få pristilbud»: the 3-step lead form (scripts/lead-form.php) ─────────
   Scoped to the section anchor #pristilbud: Forminator writes its own
   per-form CSS with an #id selector, and only an id outranks it.
   A white card: «STEG n AV 3» and the step name over a three-part progress
   bar, the choices as tiles, Tilbake (outline) and Neste (filled) below. The
   step count is written for this three-step form. */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form {
	/* Padding: set in the form's own settings (scripts/lead-form.php). */
	border-radius: var(--sv-radius);
	background: #fff;
	box-shadow: 0 24px 60px -24px rgb(19 28 45 / 0.35);
	color: var(--sv-ink);
	counter-reset: sv-step;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 0 0 1.75rem;
	padding-top: 2rem;
	border: 0;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps::before,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps::after,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-break {
	display: none !important; /* Forminator shows the first and last spacer */
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step {
	counter-increment: sv-step;
	align-self: end;
	/* Forminator sizes the step buttons for its dot layout on desktop. */
	width: auto !important;
	height: 4px;
	margin: 0 !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #e3e1dc;
	cursor: default;
	/* The steps are a progress bar here, not buttons: no clicks, no focus
	   ring around an empty box (functions.php also takes them out of Tab). */
	pointer-events: none;
	outline: none !important;
	box-shadow: none !important;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step.forminator-current,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step:has(~ .forminator-current) {
	background: var(--sv-ink);
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step .forminator-step-dot,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step:not(.forminator-current) .forminator-step-label {
	display: none;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step.forminator-current::before {
	content: "Steg " counter(sv-step) " av 3";
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sv-ink);
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step.forminator-current .forminator-step-label {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 0.9375rem;
	color: #4a5567;
}

/* Question + help text */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-label {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--sv-ink);
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-field {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 640px) {
	#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-field {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-label,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-description,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-error-message {
	grid-column: 1 / -1;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-description {
	order: -1;
	margin: -0.25rem 0 0.5rem;
	font-size: 0.9375rem;
	color: #4a5567;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-label {
	order: -2;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-radio {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: 64px;
	width: auto;
	/* Forminator spaces inline radios with side margins; the grid gap does it here. */
	margin: 0 !important;
	padding: 1rem 1.125rem;
	border: 1px solid #d3dadd;
	border-radius: var(--sv-radius);
	background: #fff;
	cursor: pointer;
	/* Forminator only lets the bullet and text take clicks; the whole tile is the target here. */
	pointer-events: auto !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-radio:hover {
	border-color: var(--sv-ink);
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-radio:has(input:checked) {
	border-color: var(--sv-green);
	background: #dff4ef;
	box-shadow: inset 0 0 0 1px var(--sv-green);
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-radio:has(input:focus-visible) {
	outline: 2px solid var(--sv-ink);
	outline-offset: 2px;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-radio .forminator-radio-bullet {
	display: none;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-radio .forminator-radio-label {
	margin: 0;
	padding: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sv-ink);
}

/* Text fields */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-input,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-textarea {
	border: 1px solid #b9c2c6;
	border-radius: var(--sv-radius);
	background: #fff;
	color: var(--sv-ink);
	font-size: 1rem;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-text .forminator-label,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-textarea .forminator-label,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-phone .forminator-label,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-email .forminator-label {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
}

/* Footer: Tilbake left, Neste / Send right */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer {
	justify-content: space-between !important;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e3e1dc;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer .forminator-button {
	min-height: 48px;
	padding: 0 1.5rem;
	border: 1px solid var(--sv-ink);
	border-radius: 2px;
	font-size: 1rem;
	font-weight: 600;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer .forminator-button-back {
	background: #fff;
	color: var(--sv-ink);
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer .forminator-button-next,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer .forminator-button-submit {
	margin-left: auto;
	background: var(--sv-ink);
	color: #fff;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer .forminator-button:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer .forminator-button:focus-visible {
	outline: 2px solid var(--sv-ink);
	outline-offset: 2px;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination:focus,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-row:focus {
	/* Forminator moves focus to the first row of a new step; it is not a control. */
	outline: none !important;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step:focus-visible {
	outline: 2px solid var(--sv-ink);
	outline-offset: 4px;
}

/* ── «Få pristilbud» section (contact-section.sv-lead) ─────────────────────
   Pitch and promises on the left (5/12), the form card on the right (7/12),
   both starting at the top. Phones: heading, form, then the promises. */
.sv-lead .contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.sv-lead .contact-layout__cols {
	display: contents;
}

.sv-lead .contact-layout__header {
	margin: 0;
}

.sv-lead .contact-form__heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.sv-lead .contact-form__subheading {
	max-width: 30ch;
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.5;
	opacity: 0.88;
}

/* The form comes before the details in the markup (block setting "info on
   the right"), so phones show it first AND keyboard users reach it first.
   No `order` here: reordering with CSS made Tab jump back up the page. */
.sv-lead .contact-form-col {
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
}

.sv-lead .contact-info-col {
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
}

.sv-lead .contact-info {
	padding: 0;
	border: 0;
	background: none;
}

.sv-lead .contact-info-rows {
	margin: 0;
	border-top: 1px solid rgb(255 255 255 / 0.16);
}

.sv-lead .contact-info-row {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.16);
}

.sv-lead .contact-info-row__label {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sv-teal-on-dark);
}

.sv-lead .contact-info-row__value {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 500;
}

.sv-lead .contact-info-row__value a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.sv-lead .contact-info-row__note {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 400;
	opacity: 0.9; /* 0.8 gave 4.19:1 on white */
}

/* Light variant (Kontakt page): lines and labels on white. */
.sv-lead:not(.styrk-dark) .contact-info-rows,
.sv-lead:not(.styrk-dark) .contact-info-row {
	border-color: #e3e1dc;
}

.sv-lead:not(.styrk-dark) .contact-info-row__label {
	color: var(--c-accent-700, #0b7d6a);
}

@media (min-width: 1024px) {
	.sv-lead .contact-layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-rows: auto 1fr;
		column-gap: clamp(3rem, 6vw, 6rem);
		row-gap: 2.5rem;
	}

	.sv-lead .contact-layout__header {
		grid-column: 1;
		grid-row: 1;
	}

	.sv-lead .contact-info-col {
		grid-column: 1;
		grid-row: 2;
	}

	.sv-lead .contact-form-col {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
	}
}

/* Form messages: small and red, under the field, not body-size text. */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-error-message {
	margin-top: 0.375rem;
	padding: 0;
	background: none;
	font-size: 0.875rem;
	font-weight: 500;
	color: #b42318;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-error-message::before {
	display: none;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-description [data-limit] {
	font-size: 0.8125rem;
	color: #4a5567;
}

/* ── Page header (sub-pages): compact band ─────────────────────────────────
   The plugin default leaves room for a header that floats over it (212px) and
   draws a line across the top; this site's header is solid, so the band
   starts right under it: crumb, title, one line. */
.cb-page-header.wp-block-styrk-blocks-page-header {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.cb-page-header.wp-block-styrk-blocks-page-header::before {
	display: none;
}

.cb-page-header__title {
	margin: 0.75rem 0 0;
	font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem);
}

.cb-page-header__rule {
	display: none;
}

.cb-page-header__subtitle {
	max-width: 46ch;
	margin-top: 1rem;
	font-size: 1.1875rem;
	color: #4a5567;
}

/* Hidden form steps take no room (Forminator leaves them with a min height). */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination[aria-hidden="true"] {
	display: none !important;
}

/* Footer: menu links at body size, like the contact column beside them. */
.site-footer .site-footer__pages-link {
	font-size: 1rem;
	line-height: 1.5;
}

/* ── One content rail ──────────────────────────────────────────────────────
   Page header and footer follow the plugin rail (--cb-content-max + --cb-rail)
   like every section block, so all left edges line up. */
.cb-page-header__inner,
.site-footer__inner,
.site-footer__bar > .wp-block-group {
	box-sizing: border-box;
	max-width: var(--cb-content-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--cb-rail, 1rem);
}

/* ── Header ────────────────────────────────────────────────────────────────
   The Steinvik mark has fine detail (waves, skyline, two-line wordmark): at
   the plugin's fixed 44px it turns to mush, so it gets real height here.
   Icon buttons share the site's sharp corners. */
.rh-logo {
	height: 72px;
}

@media (max-width: 600px) {
	.rh-logo {
		height: 52px;
	}
}

.rh-search-trigger {
	border-radius: var(--sv-radius);
}

/* Section headings sit on the left edge at every width (the plugin centres
   some on phones), so the page reads down one line. */
.sv-services .cb-section-header {
	align-items: flex-start;
	text-align: left;
}

.sv-services .cb-section-header .text-section-heading,
.sv-services .cb-section-header p {
	text-align: left !important;
	margin-inline: 0 !important;
}

.sv-services .cb-section-header {
	align-items: flex-start !important;
}

/* ── Staff wall (employee-grid.sv-staff) ───────────────────────────────────
   The portraits exist only at 180×225 px, so they are shown near that size:
   a tight wall of five per row, photo edge to edge, name under it, the phone
   number as a plain link. No card boxes, no empty space. */
.sv-staff .grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem 0.625rem;
}

@media (min-width: 640px) {
	.sv-staff .grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	/* Five per row: 15 people fill three full rows, and an e-mail address fits. */
	.sv-staff .grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.sv-staff .cb-employee-card {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.sv-staff .cb-employee-photo {
	aspect-ratio: 4 / 5;
	border-radius: var(--sv-radius);
	background: #e3e1dc;
}

.sv-staff .cb-employee-photo img {
	object-position: center 22%;
}

.sv-staff .cb-employee-card .p-6 {
	padding: 0.625rem 0 0;
	gap: 0.125rem;
}

.sv-staff .cb-employee-card__trigger {
	flex: none;
}

.sv-staff .cb-employee-card h3 {
	font-size: 1.0625rem;
	font-weight: 600;
}

.sv-staff .cb-employee-card__foot {
	padding: 0.125rem 0 0;
	background: none;
}

.sv-staff .cb-employee-actions,
.sv-staff .cb-employee-actions > * {
	padding: 0;
	background: none;
	border-radius: 0;
}

.sv-staff .cb-employee-actions svg {
	display: none;
}

.sv-staff .cb-employee-actions a {
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ── Numbers band (stats-row.sv-stats) ─────────────────────────────────────
   One dark strip, figures large and left-aligned in a row, a hairline between
   them like joints between boards. No card, no empty white box. */
.sv-stats.wp-block-styrk-blocks-stats-row {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.sv-stats [class*="card"],
.sv-stats .cb-stats-card {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.sv-stats .cb-stats-grid {
	border: 0;
	background: none;
	box-shadow: none;
}

.sv-stats .cb-stats-grid {
	width: 100%;
	max-width: none;
}

.sv-stats .cb-stat {
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 1rem;
	border-left: 1px solid rgb(255 255 255 / 0.2);
	text-align: center;
}

.sv-stats .cb-stat:first-child {
	border-left: 0;
}

@media (max-width: 639px) {
	.sv-stats .cb-stat {
		padding: 1rem 0;
		border-left: 0;
		border-top: 1px solid rgb(255 255 255 / 0.2);
	}

	.sv-stats .cb-stat:first-child {
		border-top: 0;
	}
}

.sv-stats .cb-stat-value {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--sv-teal-on-dark);
}

.sv-stats .cb-stat-label {
	font-size: 1rem;
	color: rgb(255 255 255 / 0.85);
}

/* The plugin lines cards up on shared rows (photo / name / contact); with
   contact on only two people that left an empty band under every row. Each
   card sizes to its own content here. */
.sv-staff .grid {
	grid-template-rows: none !important;
	grid-auto-rows: auto !important;
	align-items: start;
}

.sv-staff .cb-employee-card {
	display: flex !important;
	flex-direction: column;
	grid-row: auto !important;
}

.sv-staff .cb-employee-card__trigger {
	display: flex !important;
	width: 100%;
}

.sv-staff .cb-employee-card .cb-employee-photo,
.sv-staff .cb-employee-card .p-6 {
	grid-row: auto !important;
	width: 100%;
}

.sv-staff .cb-employee-card .cb-employee-identity {
	min-height: 0;
}

.sv-staff .cb-employee-card .cb-employee-card__foot,
.sv-staff .cb-employee-card .cb-employee-actions {
	flex: none;
	padding: 0.125rem 0 0;
}

@media (max-width: 639px) {
	.sv-staff .cb-employee-actions a {
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	.sv-staff .cb-employee-card {
		overflow: visible;
	}
}

/* Contact lines sit straight under the name and role, so it is clear whose
   number and address they are (the plugin pads and offsets them inline). */
.sv-staff .cb-employee-card .cb-employee-actions {
	gap: 0.125rem;
	margin: 0.25rem 0 0 !important;
	padding: 0 !important;
}

.sv-staff .cb-employee-card .cb-employee-card__foot {
	padding: 0 !important;
}

.sv-staff .cb-employee-card__role {
	padding: 0;
	border-radius: 0 !important;
	background: none;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #4a5567;
}

.sv-staff .cb-employee-card__role {
	border: 0 !important;
	padding-left: 0 !important;
	letter-spacing: 0;
	text-transform: none;
}

/* Small phones: two per row, so a full e-mail address fits under the name. */
@media (max-width: 479px) {
	.sv-staff .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.625rem;
	}
}

/* Each person is one framed card: white, a hairline edge, photo edge to edge
   at the top, text with room around it. Cards in a row share one height. */
.sv-staff .grid {
	align-items: stretch;
	gap: 1rem;
}

.sv-staff .cb-employee-card {
	border: 1px solid #e3e1dc !important;
	border-radius: var(--sv-radius) !important;
	background: #fff !important;
}

.sv-staff .cb-employee-photo {
	border-radius: 0;
}

.sv-staff .cb-employee-card .p-6 {
	padding: 0.875rem 1rem 0 !important;
}

.sv-staff .cb-employee-card .cb-employee-card__foot {
	padding: 0 1rem 1rem !important;
}

.sv-staff .cb-employee-card .p-6:last-child,
.sv-staff .cb-employee-card__trigger:last-child .p-6 {
	padding-bottom: 1rem !important;
}

.sv-staff .cb-employee-card__role {
	margin-top: 0.125rem;
}

.sv-staff .cb-employee-card .cb-employee-actions {
	gap: 0.375rem;
	margin-top: 0.625rem !important;
	padding-top: 0.625rem !important;
	border-top: 1px solid #e3e1dc;
	border-radius: 0 !important;
}

.sv-staff .cb-employee-actions a {
	line-height: 1.4;
}

.sv-staff .cb-employee-actions a {
	font-size: 0.875rem;
	white-space: nowrap;
}

.sv-staff .cb-employee-card .cb-employee-actions > * {
	margin: 0 !important;
}

@media (max-width: 479px) {
	.sv-staff .cb-employee-card .p-6 {
		padding: 0.75rem 0.75rem 0 !important;
	}

	.sv-staff .cb-employee-card .cb-employee-card__foot {
		padding: 0 0.75rem 0.75rem !important;
	}

	.sv-staff .cb-employee-actions a {
		font-size: 0.8125rem;
	}
}

/* Phones and small tablets: the two contact people (the cards with
   phone/e-mail) take the full row, photo on the left and details beside it,
   so the e-mail address never breaks; the rest stay in the grid. */
@media (max-width: 767px) {
	.sv-staff .cb-employee-card:has(.cb-employee-actions a) {
		display: grid !important;
		grid-column: 1 / -1;
		grid-template-columns: 8rem minmax(0, 1fr);
		grid-template-rows: auto auto;
		align-content: start;
		align-items: start;
	}

	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .cb-employee-card__trigger {
		display: contents !important;
	}

	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .cb-employee-photo {
		grid-column: 1;
		grid-row: 1 / span 2 !important;
		align-self: stretch;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		min-height: 0;
	}

	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .cb-employee-card__foot {
		align-self: start;
	}

	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .p-6,
	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .cb-employee-card__foot {
		grid-column: 2;
		width: auto;
	}

	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .cb-employee-actions a {
		font-size: 0.875rem;
	}
}

/* Footer social icons: square 44px targets on a hairline frame, spaced apart. */
.site-footer .site-footer__social-link--icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 0.5rem 0 0;
	border: 1px solid rgb(255 255 255 / 0.28);
	border-radius: var(--sv-radius);
	color: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.site-footer .site-footer__social-link--icons:hover {
	border-color: #fff;
	background: rgb(255 255 255 / 0.08);
}

.site-footer .site-footer__social-link--icons:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.site-footer .site-footer__social-link--icons svg {
	width: 20px;
	height: 20px;
}

/* ── Sharp corners everywhere ──────────────────────────────────────────────
   Plugin parts with their own hard-coded round shapes (circle toggles, pill
   badges, icon tiles) follow the site's square edge too. */
.rh-megamenu__sub-toggle,
.rh-mobile-toggle,
.rh-search-close,
.cb-hero__video-toggle,
.cb-project-card__badge,
.cb-feature-icon,
.site-footer__pages-toggle,
.cb-employee-modal,
.cb-employee-modal * {
	border-radius: var(--sv-radius) !important;
}

/* ── Hero on phones: the film fills the screen under the header and the
   text sits at the bottom, so most of the picture (and the end logo) shows. */
@media (max-width: 767px) {
	.wp-block-styrk-blocks-hero.cb-hero {
		align-items: flex-end;
		min-height: calc(100svh - 72px);
	}

	.wp-block-styrk-blocks-hero .cb-hero__main {
		padding-top: 0;
		padding-bottom: 2rem;
	}
}

/* Mobile menu: full screen width (the panel stopped 15px short). */
.rh-megamenu {
	width: 100vw;
	right: auto;
}

/* Phones: the pause/play button sits in the top corner, clear of the CTA. */
@media (max-width: 767px) {
	.wp-block-styrk-blocks-hero .cb-hero__video-toggle {
		top: 1rem;
		bottom: auto;
	}
}

/* ── Mobile header CTA ─────────────────────────────────────────────────────
   styrk-blocks hides the header CTA below 1100px and expects the menu to
   carry it, but the menu has no CTA. «Gratis befaring» is short enough to sit
   between search and the menu button down to 360px, and stays visible while
   the menu is open (the header sits above it). */
@media (max-width: 1100px) {
	.site-header-react .rh-cta {
		display: inline-flex !important;
		align-items: center;
		flex-shrink: 0;
		min-height: 44px;
		padding: 0 0.875rem !important;
		font-size: 0.9375rem !important;
		white-space: nowrap;
	}

	/* 16px: room for each control's focus ring (2px + offset) without the
	   rings of neighbours touching. */
	.site-header-react > div {
		gap: 16px !important;
	}
}

@media (max-width: 370px) {
	.site-header-react .rh-cta {
		padding: 0 0.625rem !important;
		font-size: 0.875rem !important;
	}

	.rh-logo {
		height: 46px;
	}
}

/* Showcase on phones: the four service cards as compact rows (small photo
   beside the title), so the section stays about one screen tall. */
@media (max-width: 639px) {
	.sv-showcase .cb-showcase__row {
		gap: 8px;
	}

	.sv-showcase .cb-project-card {
		flex-direction: row !important;
		align-items: center;
		min-height: 0;
	}

	.sv-showcase .cb-project-card .cb-project-photo {
		flex: 0 0 96px;
		width: 96px;
		aspect-ratio: 4 / 3;
	}

	.sv-showcase .cb-project-card .p-6 {
		padding: 0.75rem 1rem;
	}

	.sv-showcase .cb-project-card h4 {
		font-size: 1.0625rem;
	}
}

.sv-showcase .cb-project-card {
	box-shadow: none;
	border-radius: var(--sv-radius);
}


/* Form rhythm: 8px from label to field, 24px between fields, the field's own
   focus ring square and inside the card. */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-row {
	margin-bottom: 1.5rem;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-row:last-child {
	margin-bottom: 0;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field > .forminator-label {
	display: block;
	margin-bottom: 0.5rem;
	padding: 0;
	line-height: 1.3;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-radio .forminator-field > .forminator-label {
	margin-bottom: 0.25rem;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-input,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-textarea {
	min-height: 48px;
	padding: 0.75rem 0.875rem;
	border-radius: var(--sv-radius) !important;
	box-shadow: none !important;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-input:focus,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-textarea:focus {
	border-color: var(--sv-ink);
	outline: 2px solid var(--sv-ink);
	outline-offset: -1px;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-field-textarea .forminator-description {
	margin-top: 0.25rem;
	text-align: right;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-textarea {
	font-family: inherit;
}

/* ── «Dette får du» band (split-section.sv-gets) ───────────────────────────
   Dark band, the list as rows divided by hairlines like boards, each lead-in
   on its own line with a short turquoise rule in front. */
.sv-gets ul {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgb(255 255 255 / 0.18);
}

.sv-gets li {
	position: relative;
	margin: 0;
	padding: 1rem 0 1rem 2rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.18);
	color: rgb(255 255 255 / 0.82);
	line-height: 1.5;
}

.sv-gets li::before {
	content: "";
	position: absolute;
	top: 1.6rem;
	left: 0;
	width: 1rem;
	height: 3px;
	background: var(--sv-teal-on-dark);
}

.sv-gets li strong {
	display: block;
	margin-bottom: 0.125rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
}

.sv-gets .cb-eyebrow {
	color: var(--sv-teal-on-dark);
}

/* Lead section: the form card runs the full height of the left column (top
   on the heading, bottom on the last line of the list), buttons pinned to
   its foot. */
@media (min-width: 1024px) {
	.sv-lead .contact-form-col {
		align-self: stretch;
		display: flex;
	}

	.sv-lead .contact-form-col > :not(.forminator-edit-module) {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	/* Forminator's admin-only "Edit form" link must not take half the column. */
	.sv-lead .contact-form-col {
		position: relative;
	}

	/* Forminator gives the form a 30px bottom margin when the link follows it. */
	.sv-lead .contact-form-col > .forminator-custom-form {
		margin-bottom: 0 !important;
	}

	.sv-lead .contact-form-col > .forminator-edit-module {
		position: absolute;
		top: 100%;
		left: 0;
		margin-top: 0.5rem;
	}

	#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form {
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-footer {
		margin-top: auto;
	}
}

/* Header on the same rail as the page content at every width (the plugin
   uses a fixed 16px gutter below 1100px; sections use --cb-rail). */
@media (max-width: 1100px) {
	.site-header-react > div {
		padding-left: var(--cb-rail, 1rem) !important;
		padding-right: var(--cb-rail, 1rem) !important;
	}
}

/* Contact lines sit on the card's foot, so they line up across a row
   whether or not the person has a title line. */
.sv-staff .cb-employee-card .cb-employee-card__foot {
	margin-top: auto !important;
}

@media (min-width: 640px) {
	.sv-services .cb-feature-cards--photo .cb-photo-tile__heading,
	.sv-services .cb-feature-cards--photo .cb-photo-tile__body {
		align-self: flex-start !important;
		text-align: left;
	}
}

.sv-services .cb-section-header > * {
	align-self: flex-start !important;
	text-align: left !important;
	margin-left: 0 !important;
}

@media (min-width: 640px) and (max-width: 1023px) {
	.sv-services .cb-feature-cards--photo .cb-photo-tile__heading {
		font-size: 1.375rem;
	}

	.sv-services .cb-feature-cards--photo > .cb-feature-card--photo:nth-child(-n+2) .cb-photo-tile__heading {
		font-size: 2rem;
	}
}

@media (max-width: 359px) {
	.sv-staff .cb-employee-card:has(.cb-employee-actions a) {
		grid-template-columns: 6.5rem minmax(0, 1fr);
	}

	.sv-staff .cb-employee-card:has(.cb-employee-actions a) .cb-employee-actions a {
		font-size: 0.8125rem;
	}
}

/* ── QA fixes ──────────────────────────────────────────────────────────────
   Anchors (#pristilbud) and Tab land below the sticky header, not under it. */
html {
	scroll-padding-top: 116px;
}

/* The footer logo link hugs its image, so the image sits centred in it. */
.site-footer .site-footer__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
}

/* Badges on project cards: 12px floor. */
.cb-project-card__badge {
	font-size: 0.75rem !important;
}

/* Touch screens: icon buttons get the 48px minimum. */
@media (max-width: 1100px) {
	.site-header-react .rh-search-trigger,
	.wp-block-styrk-blocks-hero .cb-hero__video-toggle {
		min-width: 48px;
		min-height: 48px;
	}
}

.wp-block-styrk-blocks-hero .cb-hero__video-toggle svg {
	width: 20px;
	height: 20px;
}

/* Selected text reads white on the CTA green (the plugin's ink-on-green was
   3.7:1); cookie banner buttons underline on hover like every other CTA. */
::selection {
	background: var(--sv-green);
	color: #fff; /* 4.5:1 on the CTA green */
}

#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .mgbutton:hover,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .mgbutton:focus-visible {
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
}

/* Form steps: the 4px bar sits at the bottom of a 48px hit area. */
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps {
	padding-top: 0;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step {
	height: 48px;
	background: linear-gradient(#e3e1dc, #e3e1dc) bottom / 100% 4px no-repeat;
}

#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step.forminator-current,
#pristilbud .forminator-custom-form.forminator-custom-form.forminator-custom-form .forminator-pagination-steps .forminator-step:has(~ .forminator-current) {
	background: linear-gradient(var(--sv-ink), var(--sv-ink)) bottom / 100% 4px no-repeat;
}

/* ── Project pages ─────────────────────────────────────────────────────────
   The plugin's project template keeps post content on the 1176px rail, so
   full-width sections (bands with a background) broke off at the rail with
   their text on the band's edge. They run edge to edge as on every page. */
.cb-project-body__inner .wp-block-post-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

/* …and get back the rail padding the plugin strips inside the project body,
   so their text starts on the same edge as the header and the meta row. */
.cb-project-body__inner > .wp-block-post-content > .alignfull > .px-13 {
	padding-inline: var(--cb-rail, 3.25rem);
}

/* The project body pads with a fixed 52px gutter (--cb-content-gutter) while
   every section uses the responsive rail (--cb-rail): on phones the meta row
   sat 36px in from the header and the sections. Same rail for both. */
.cb-project-body__inner {
	padding-inline: var(--cb-rail, 1rem) !important;
}

/* Previous / next project: two full-width buttons stacked on phones, not
   one left and one wrapped to the right. */
@media (max-width: 639px) {
	.cb-project-body .cb-post-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.cb-project-body .cb-post-nav__link,
	.cb-project-body .cb-post-nav__link a {
		display: block;
		box-sizing: border-box;
		width: 100%;
		text-align: center;
	}
}

/* Project gallery on the same rail as the sections around it, heading left
   at every width. */
.sv-project-gallery > .cb-media-grid__header,
.sv-project-gallery > .cb-media-grid__inner {
	box-sizing: border-box;
	padding-inline: var(--cb-rail, 1rem) !important;
}

.sv-project-gallery > .cb-media-grid__header {
	align-items: flex-start !important; /* the plugin centres it on phones */
	text-align: left !important;
}

.sv-project-gallery > .cb-media-grid__header h2 {
	align-self: flex-start !important;
	margin-inline: 0 !important;
	text-align: left !important;
}

/* Project pages: previous/next at the 14px floor, meta labels at 12px, and
   gallery tiles ring inside their cropped cell. */
.cb-project-body .cb-post-nav__link a {
	font-size: 0.875rem !important;
}

.cb-project-meta__row dt {
	font-size: 0.75rem !important;
}

.sv-project-gallery .cb-media-grid__cell :focus-visible {
	outline-offset: -3px !important;
}

/* Project bands sit flush: the post-content block gap left a 20px white
   strip between a coloured section and the dark CTA band. */
.cb-project-body__inner .wp-block-post-content > .alignfull + .alignfull {
	margin-top: 0;
}

/* Previous / next: the same 48px above and below, not 64px over and the
   template's 160px under (a white hole before the footer). */
.cb-project-body__inner > .cb-post-nav {
	margin-top: 48px;
}

.wp-site-blocks > main:not(.cb-page-main) > .cb-project-body.cb-project-body {
	padding-bottom: 48px !important;
}

/* ── Footer: green flare over a blueprint grid ──
   The plugin's accent flare (styrk-blocks .site-footer::before) reads grey on
   navy at 18%, so it is lifted here to read as Steinvik green. ::after draws
   a drafting grid: fine 24px lines, a heavier line every 120px, faded out
   from the top-right so it sits behind the flare, never behind body text. */
.site-footer::before {
	opacity: 0.12;
	filter: blur(60px);
}

.site-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image:
		linear-gradient(to right, rgb(12 133 113 / 0.32) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(12 133 113 / 0.32) 1px, transparent 1px),
		linear-gradient(to right, rgb(255 255 255 / 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(255 255 255 / 0.05) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: right -1px top -1px;
	mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 0%, rgb(0 0 0 / 0.45) 45%, transparent 85%);
	-webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 0%, rgb(0 0 0 / 0.45) 45%, transparent 85%);
}

/* Forminator's "Edit form" link (logged-in admins only) follows the
   section's text colour, so it shows on the dark lead band too. */
.forminator-edit-module .forminator-module-edit-link {
	color: inherit !important;
}
