/*
 * Structured solution page layout.
 */

.solution-page {
	--solution-page-image-radius: 0.9375rem;
	overflow: hidden;
	background: var(--color-bg);
	color: var(--color-on-dark-muted);
}

.solution-page__hero {
	padding-block: clamp(3.25rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.75rem);
	background: var(--color-blue-overlay);
	color: var(--color-white);
}

.solution-page__hero-inner {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

.solution-page__title {
	margin-bottom: 1.1rem;
	color: var(--color-white);
	font-size: clamp(2.65rem, 6vw, 4.25rem);
	line-height: 1;
}

.solution-page__intro {
	max-width: 46rem;
	margin: 0 auto;
	color: var(--color-on-dark-muted);
	font-size: clamp(0.98rem, 1.35vw, 1.08rem);
	line-height: 1.55;
}

.solution-page__lead {
	padding-block: 0 clamp(3.25rem, 7vw, 6.25rem);
	background: #fff;
	color: var(--color-text);
}

.solution-page__detail {
	padding-block: clamp(3.25rem, 7vw, 6.5rem);
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.solution-page__quote-band {
	padding-block: clamp(3rem, 7vw, 6.25rem);
	background: #fff;
}

.solution-page__closing {
	padding-block: clamp(3.25rem, 7vw, 6.5rem);
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.solution-page__cases {
	background: #fff;
	color: var(--color-text);
}

.solution-page__case {
	background: #fff;
	color: var(--color-text);
}

.solution-page__case-main {
	padding-block: clamp(3.75rem, 7vw, 6rem);
	background: #fff;
	color: var(--color-text);
}

.solution-page__case:nth-child(even) .solution-page__case-main {
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.solution-page__case-inner {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.solution-page__case--no-image .solution-page__case-inner {
	display: block;
}

.solution-page__case-media {
	overflow: hidden;
	margin: 0;
	aspect-ratio: 1.5 / 1;
	border-radius: var(--solution-page-image-radius);
	background: transparent;
	box-shadow: none;
}

.solution-page__case-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.solution-page__case-content {
	min-width: 0;
}

.solution-page__case-logo {
	display: inline-flex;
	align-items: center;
	max-width: min(14rem, 100%);
	margin: 0 0 1.25rem;
	padding: 0;
}

.solution-page__case-logo img {
	width: auto;
	max-height: 17rem;
	object-fit: contain;
}

.solution-page__case-logo--quote {
	align-self: center;
	max-width: min(24rem, 100%);
	margin: 0;
}

/* Logo-only case: the customer logo fills the media slot at hero size. */
.solution-page__case-hero-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: clamp(1rem, 3vw, 2.5rem);
}

/*
 * The mock places hero logos at roughly 28rem regardless of the source file's
 * pixel size (Erhvervsforum is upscaled in the design too), so force the width
 * instead of only capping it.
 */
.solution-page__case-hero-logo img {
	width: min(100%, 33rem);
	max-height: 30rem;
	object-fit: contain;
}

/* On dark (even) cases the logo sits on a light card to stay legible. */
.solution-page__case:nth-child(even) .solution-page__case-hero-logo {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
	background: #fff;
	border-radius: var(--card-radius, 1rem);
}

.solution-page__case-title {
	max-width: 18ch;
	margin-bottom: 1rem;
	color: var(--color-blue-dark);
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.05;
}

.solution-page__case:nth-child(even) .solution-page__case-title {
	color: var(--color-white);
}

.solution-page__case-copy {
	max-width: 42rem;
	color: var(--color-text-muted);
	font-size: clamp(0.98rem, 1.25vw, 1.08rem);
	line-height: 1.65;
}

.solution-page__case:nth-child(even) .solution-page__case-copy {
	color: var(--color-on-dark-muted);
}

.solution-page__case-copy p:last-child,
.solution-page__feature-copy p:last-child {
	margin-bottom: 0;
}

.solution-page__case-quote-wrap {
	margin-top: clamp(2.25rem, 5vw, 4.25rem);
}

.solution-page__case-quote {
	position: relative;
	display: grid;
	gap: clamp(1.75rem, 5vw, 4.5rem);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

.solution-page__case-quote::before {
	content: "\201C";
	position: absolute;
	top: -0.44em;
	left: 0;
	color: var(--color-brand-red);
	font-size: clamp(3.5rem, 8vw, 6.5rem);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	opacity: 0.92;
}

.solution-page__case-quote-content {
	min-width: 0;
}

.solution-page__case-quote-text {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--color-brand-red);
	font-size: clamp(0.98rem, 1.25vw, 1.08rem);
	font-weight: var(--font-weight-bold);
	line-height: 1.6;
}

.solution-page__case:nth-child(even) .solution-page__case-quote-text,
.solution-page__case:nth-child(even) .solution-page__case-quote::before {
	color: var(--color-white);
}

.solution-page__case-quote-footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: 1.2rem;
	color: var(--color-brand-red);
	text-align: right;
}

.solution-page__case-quote-footer strong {
	font-weight: var(--font-weight-bold);
}

.solution-page__case-quote-footer span {
	color: var(--color-text-muted);
	font-size: var(--font-size-small);
}

.solution-page__case:nth-child(even) .solution-page__case-quote-footer {
	color: var(--color-white);
}

.solution-page__case:nth-child(even) .solution-page__case-quote-footer span {
	color: rgba(255, 255, 255, 0.7);
}

.solution-page__case-feature-band {
	padding-block: clamp(2.6rem, 5vw, 4.25rem);
	background: var(--color-surface-light);
}

.solution-page__feature-grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
}

.solution-page__feature-card {
	display: grid;
	grid-template-columns: 2.35rem minmax(0, 1fr);
	gap: 0.95rem;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.solution-page__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--color-brand-red);
	flex: 0 0 auto;
}

.solution-page__feature-icon .dashicons {
	width: 2rem;
	height: 2rem;
	font-size: 2rem;
	line-height: 1;
}

.solution-page__feature-icon .solution-page__feature-icon-image {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
}

.solution-page__feature-title {
	margin-bottom: 0.5rem;
	color: var(--color-blue-dark);
	font-size: clamp(1rem, 1.4vw, 1.16rem);
	line-height: 1.2;
}

.solution-page__feature-copy {
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.58;
}

.solution-page__lead-inner,
.solution-page__detail-inner,
.solution-page__quote-inner,
.solution-page__closing-inner {
	position: relative;
}

.solution-page__lead-inner {
	margin-top: calc(clamp(2rem, 5vw, 4.25rem) * -1);
}

.solution-page__wide-media,
.solution-page__detail-media {
	overflow: hidden;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.solution-page__detail .solution-page__detail-media,
.solution-page__closing .solution-page__wide-media {
	background: transparent;
	box-shadow: none;
}

.solution-page__lead .solution-page__wide-media {
	overflow: visible;
	padding-top: var(--space-xl);
	border: 0;
	background: transparent;
	box-shadow: none;
}

.solution-page__wide-media {
	aspect-ratio: 16 / 8.4;
}

.solution-page__detail-media {
	aspect-ratio: 4 / 3;
}

.solution-page__wide-media img,
.solution-page__detail-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.solution-page__lead .solution-page__wide-media img,
.solution-page__lead .solution-page__media--empty::before {
	height: 100%;
	min-height: calc(18rem - var(--space-xl));
	border-radius: var(--solution-page-image-radius);
	box-shadow: var(--shadow-card);
}

.solution-page__media--empty::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	min-height: 18rem;
	background: repeating-linear-gradient(135deg, rgba(2, 34, 56, 0.06) 0 1px, transparent 1px 18px);
}

.solution-page__detail .solution-page__media--empty::before,
.solution-page__closing .solution-page__media--empty::before {
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

.solution-page__lead-copy {
	max-width: 52rem;
	margin: clamp(1.75rem, 4vw, 3rem) auto 0;
	text-align: center;
}

.solution-page__section-title {
	margin-bottom: 1rem;
	color: var(--color-blue-dark);
	font-size: clamp(1.85rem, 3.6vw, var(--font-size-h2));
}

.solution-page__detail .solution-page__section-title {
	color: var(--color-white);
}

.solution-page__text {
	color: var(--color-text-muted);
	font-size: var(--font-size-lead);
	line-height: 1.75;
}

.solution-page__detail .solution-page__text {
	color: var(--color-on-dark-muted);
}

.solution-page__text p:last-child {
	margin-bottom: 0;
}

.solution-page__detail-inner {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.solution-page__detail-card {
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--card-radius);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.solution-page__quote {
	position: relative;
	max-width: 58rem;
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 4.75rem) 0 0 clamp(2.25rem, 6vw, 6rem);
	border: 0;
	background: transparent;
	color: var(--color-brand-red);
	font-size: clamp(2rem, 5vw, 4.25rem);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0;
	line-height: 1.05;
	text-align: left;
}

.solution-page__quote p {
	margin: 0;
}

.solution-page__quote::before {
	content: "\201C";
	position: absolute;
	top: -0.12em;
	left: 0;
	color: var(--color-brand-red);
	font-size: clamp(5rem, 11vw, 9rem);
	line-height: 1;
	opacity: 0.68;
}

.solution-page__wide-media--closing {
	aspect-ratio: 16 / 7.6;
}

.solution-page__editor-content {
	max-width: var(--site-max-width);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
	color: var(--color-on-dark-muted);
}

.solution-page__editor-content:has(> :first-child.alignfull) {
	padding-top: 0;
}

.solution-page__editor-content:has(> :last-child.alignfull) {
	padding-bottom: 0;
}

.solution-page__editor-content > :not(.alignfull) {
	max-width: var(--content-max-width);
	margin-inline: auto;
}

.solution-page .solution-page-pricing-cta {
	padding-block: clamp(2.15rem, 4.5vw, 3.45rem);
}

.solution-page .solution-page-pricing-cta .cta-centered__inner {
	max-width: 48rem;
	padding-inline: clamp(1.25rem, 4vw, 2.25rem);
	gap: clamp(0.8rem, 1.7vw, 1.15rem);
}

.solution-page .solution-page-pricing-cta .cta-centered__heading {
	font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.solution-page .solution-page-pricing-cta .cta-centered__body {
	max-width: 42rem;
	font-size: clamp(0.9rem, 1.05vw, 1rem);
	line-height: 1.55;
}

.solution-page .solution-page-pricing-cta .cta-centered__actions {
	margin-top: 0.25rem;
}

.solution-page .solution-page-pricing-cta .cta-centered__button {
	min-width: 11rem;
	padding: 0.72rem 2rem;
	font-size: 0.95rem;
}

.solution-page--events-oplevelser .solution-page__case-quote,
.solution-page--undervisning-kurser .solution-page__case-quote {
	max-width: 46rem;
	margin-inline: auto;
}

/* Quotes that carry a customer logo span the full container like the design mock. */
.solution-page--events-oplevelser .solution-page__case-quote--has-logo,
.solution-page--undervisning-kurser .solution-page__case-quote--has-logo {
	max-width: none;
}

.solution-page--events-oplevelser .solution-page__case-quote-content,
.solution-page--undervisning-kurser .solution-page__case-quote-content {
	max-width: 48rem;
}

.solution-page--events-oplevelser .solution-page__case-quote-text,
.solution-page--undervisning-kurser .solution-page__case-quote-text {
	font-style: italic;
	font-weight: var(--font-weight-regular);
	line-height: 1.55;
}

.solution-page--events-oplevelser .solution-page__case-quote-text br,
.solution-page--undervisning-kurser .solution-page__case-quote-text br {
	display: none;
}

@media (min-width: 56rem) {
	.solution-page__detail-inner {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	.solution-page__case-inner {
		grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	}

	.solution-page__case-quote--has-logo {
		grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr);
	}

	.solution-page__case-quote--has-logo::before {
		left: calc(32% + clamp(0.4rem, 2vw, 1.25rem));
	}

	.solution-page--events-oplevelser .solution-page__case-quote--has-logo,
	.solution-page--undervisning-kurser .solution-page__case-quote--has-logo {
		grid-template-columns: minmax(14rem, 0.45fr) minmax(0, 1fr);
	}

	.solution-page--events-oplevelser .solution-page__case-quote--has-logo::before,
	.solution-page--undervisning-kurser .solution-page__case-quote--has-logo::before {
		left: calc(35% + clamp(0.4rem, 2vw, 1.25rem));
	}

	.solution-page__feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 55.9375rem) {
	.solution-page__lead-copy,
	.solution-page__editor-content,
	.solution-page__quote {
		text-align: left;
	}

	.solution-page__wide-media,
	.solution-page__wide-media--closing {
		aspect-ratio: 4 / 3;
	}

	.solution-page__lead-inner {
		margin-top: -2rem;
	}

	.solution-page__detail-card {
		padding: 1.35rem;
	}

	.solution-page__case-title {
		max-width: none;
	}

	.solution-page__case-media {
		aspect-ratio: 4 / 3;
	}

	.solution-page__feature-card {
		grid-template-columns: 2.1rem minmax(0, 1fr);
	}

	.solution-page__feature-icon {
		width: 2.1rem;
		height: 2.1rem;
	}

	.solution-page__feature-icon .dashicons {
		width: 1.8rem;
		height: 1.8rem;
		font-size: 1.8rem;
	}

	.solution-page__feature-icon .solution-page__feature-icon-image {
		width: 1.8rem;
		height: 1.8rem;
	}
}

@media (max-width: 47.9375rem) {
	.solution-page .solution-page-pricing-cta .cta-centered__inner {
		width: min(calc(100% - 1rem), 48rem);
		padding-inline: 1.25rem;
	}
}
