/**
 * Zestino designsystem – footer.
 */

.z-footer {
	position: relative;
	background: var(--z-black);
	border-top: 3px solid var(--z-red);
	overflow: hidden;
}

.z-footer__top {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--z-space-xl) var(--z-space-lg);
	padding-block: var(--z-space-2xl);
}

@media (max-width: 700px) {
	.z-footer__top {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}

	.z-footer__brand {
		grid-column: 1 / -1;
	}
}

.z-footer__brand .z-brand__text {
	margin-bottom: var(--z-space-sm);
}

.z-footer__tagline {
	max-width: 34ch;
	color: var(--z-text-muted);
	font-size: var(--z-fs-small);
	margin-bottom: var(--z-space-md);
}

.z-footer__col-title {
	margin: 0 0 var(--z-space-sm);
	font-family: var(--z-font-body);
	font-size: var(--z-fs-tiny);
	font-weight: var(--z-fw-bold);
	letter-spacing: var(--z-ls-label);
	text-transform: uppercase;
	color: var(--z-red);
}

.z-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.z-footer ul a {
	color: var(--z-text-muted);
	font-size: var(--z-fs-small);
}

.z-footer ul a:hover {
	color: var(--z-red);
}

/* Nyhetsbrev */
.z-newsletter__form {
	display: flex;
	gap: var(--z-space-2xs);
	max-width: 380px;
	margin-bottom: var(--z-space-xs);
}

.z-newsletter__form input[type="email"] {
	min-height: 48px;
}

@media (max-width: 480px) {
	.z-newsletter__form {
		flex-direction: column;
	}
}

/* Sosiale ikoner */
.z-social {
	display: flex;
	flex-direction: row !important;
	gap: var(--z-space-2xs) !important;
}

.z-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: var(--z-border);
	border-radius: var(--z-radius-xs);
	color: var(--z-text-muted);
	transition: all var(--z-dur-fast) var(--z-ease);
}

.z-social a:hover {
	background: var(--z-red);
	border-color: var(--z-red);
	color: #fff;
}

.z-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Bunnlinje */
.z-footer__bottom {
	position: relative;
	z-index: 1;
	border-top: var(--z-border);
	padding-block: var(--z-space-md);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--z-space-sm);
	font-size: var(--z-fs-tiny);
	color: var(--z-text-dim);
}

.z-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--z-space-sm);
}

.z-footer__legal a {
	color: var(--z-text-dim);
}

.z-footer__legal a:hover {
	color: var(--z-red);
}

/* Betalingsikoner */
.z-payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--z-space-2xs);
}

.z-payments img,
.z-payments svg {
	height: 26px;
	width: auto;
	opacity: 0.75;
	filter: grayscale(1);
	transition: opacity var(--z-dur-fast) var(--z-ease), filter var(--z-dur-fast) var(--z-ease);
}

.z-payments img:hover,
.z-payments svg:hover {
	opacity: 1;
	filter: none;
}

/* Stort vannmerke-ord bak footeren. */
.z-footer__watermark {
	position: absolute;
	left: 50%;
	bottom: -0.22em;
	transform: translateX(-50%);
	font-family: var(--z-font-display);
	font-size: clamp(6rem, 20vw, 20rem);
	font-weight: var(--z-fw-black);
	font-style: italic;
	line-height: 0.8;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.025;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
