/**
 * Trygghet — Figma node 1110:471
 * inside FINIX UPDATE → FINIX - Hjem.
 *
 * Content wrapper 1280px (x=320 on 1920 artboard). No mobile frame in Figma;
 * both two-column rows stack below 1025px.
 *
 * @package Staging_Finix_NO
 */

.trygghet {
	width: 100%;
	background-color: var(--color-bg-secondary);
	padding: 4rem 0;
}

.trygghet__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
	max-width: var(--finix-content-width);
	margin-inline: auto;
	padding-inline: 1rem;
}

.trygghet__top,
.trygghet__bottom {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
}

.trygghet__intro,
.trygghet__story {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.trygghet__intro {
	gap: 24px;
}

.trygghet__story {
	gap: 16px;
}

.trygghet__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 22px;
	border: 0.5px solid color-mix(in srgb, var(--color-border) 20%, transparent);
	border-radius: 999px;
	background-color: var(--color-bg-quaternary);
	color: var(--color-txt-heading);
}

.trygghet__heading,
.trygghet__lead,
.trygghet__story-p,
.trygghet__card-heading,
.trygghet__card-body {
	margin: 0;
}

.trygghet__checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trygghet__check {
	display: flex;
	align-items: center;
	gap: 10px;
}

.trygghet__check-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.trygghet__photo {
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
}

.trygghet__photo-image {
	width: 100%;
	height: auto;
	aspect-ratio: 689 / 420;
	object-fit: cover;
}

.trygghet__card {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	padding: 32px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--color-border) 20%, transparent);
	border-radius: 16px;
	background-color: var(--color-bg-primary);
}

.trygghet__card-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 12px;
}

.trygghet__card-icon-image {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.trygghet__card-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	padding-top: 16px;
}

.trygghet__card-spacer {
	display: none;
}

.trygghet__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 43px;
	padding: 10px 28px;
	border: 0;
	border-radius: 999px;
	background-color: var(--color-accent);
	color: var(--color-txt-heading);
	text-decoration: none;
	white-space: nowrap;
}

.trygghet__cta:hover,
.trygghet__cta:focus-visible {
	filter: brightness(1.08);
}

@media (min-width: 768px) {
	.trygghet {
		padding: 6rem 0;
	}

	.trygghet__inner {
		padding-inline: 1.5rem;
	}

	.trygghet__checks {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 24px;
	}
}

@media (min-width: 1025px) {
	.trygghet {
		padding: 150px 0;
	}

	.trygghet__inner {
		gap: 56px;
		padding-inline: 0;
	}

	.trygghet__top {
		flex-direction: row;
		align-items: flex-start;
		gap: 32px;
	}

	.trygghet__intro {
		flex: 0 0 685px;
		width: 685px;
		max-width: 685px;
	}

	.trygghet__heading,
	.trygghet__lead {
		max-width: 616px;
	}

	.trygghet__checks {
		flex-wrap: nowrap;
		width: 613px;
	}

	.trygghet__story {
		flex: 0 0 563px;
		width: 563px;
		max-width: 563px;
		padding-top: 58px;
	}

	.trygghet__bottom {
		flex-direction: row;
		align-items: stretch;
		gap: 28px;
		height: 420px;
	}

	.trygghet__photo {
		flex: 0 0 689px;
		width: 689px;
		height: 420px;
	}

	.trygghet__photo-image {
		width: 689px;
		height: 420px;
		aspect-ratio: auto;
	}

	.trygghet__card {
		flex: 0 0 563px;
		width: 563px;
		height: 420px;
	}

	.trygghet__card-spacer {
		display: block;
		flex: 1 0 auto;
		width: 100%;
		min-height: 0;
	}
}
