/**
 * VZ Bygg site footer.
 */

.t0-footer {
	border-block-start: 0.0625rem solid var(--wp--preset--color--border, #e5dfdb);
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
	color: var(--wp--preset--color--text, #24211f);
}

.t0-footer__inner {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-wide-size));
	margin-inline: auto;
	padding-block: clamp(3rem, 6vw, 5rem) var(--wp--preset--spacing--50, 1.5rem);
}

.t0-footer__top {
	display: grid;
	grid-template-columns: minmax(16rem, 1.5fr) minmax(12rem, 0.75fr) minmax(10rem, 0.6fr);
	gap: clamp(2rem, 5vw, 5rem);
}

.t0-footer__branding,
.t0-footer__contact,
.t0-footer__links {
	min-width: 0;
}

.t0-footer__branding {
	max-width: 34rem;
}


.t0-footer__brand-logo {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.t0-footer__brand-logo img {
	display: block;
	width: min(10rem, 100%);
	height: auto;
}

.t0-footer__brand-logo:focus-visible {
	border-radius: 0.25rem;
	outline: 0.1875rem solid var(--wp--preset--color--primary, #b0744a);
	outline-offset: 0.3rem;
}

.t0-footer__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.t0-footer__logo .custom-logo {
	width: auto;
	max-height: 3.25rem;
}

.t0-footer__title {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--text, #24211f);
	font-size: var(--wp--preset--font-size--x-large, 1.5rem);
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
}

.t0-footer__title::before {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary, #b0744a);
	content: "";
}

.t0-footer__title:hover {
	color: var(--wp--preset--color--primary, #b0744a);
	text-decoration: none;
}

.t0-footer__description {
	max-width: 48ch;
	margin: var(--wp--preset--spacing--40, 1rem) 0 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.7;
}

.t0-footer__heading {
	margin: 0 0 var(--wp--preset--spacing--40, 1rem);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 750;
	line-height: 1.3;
}

.t0-footer__address {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.625rem;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-style: normal;
	line-height: 1.6;
}

.t0-footer__address a {
	min-height: 2.25rem;
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--text, #24211f);
	font-weight: 650;
	text-decoration: none;
}

.t0-footer__address a:hover,
.t0-footer-menu a:hover,
.t0-footer-legal-menu a:hover {
	color: var(--wp--preset--color--primary, #b0744a);
	text-decoration: none;
}

.t0-footer-menu,
.t0-footer-legal-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.t0-footer-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.t0-footer-menu li,
.t0-footer-legal-menu li {
	margin: 0;
}

.t0-footer-menu a {
	display: inline-flex;
	min-height: 2.25rem;
	align-items: center;
	color: var(--wp--preset--color--text, #24211f);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 650;
	text-decoration: none;
}

.t0-footer-menu .current-menu-item > a,
.t0-footer-menu .current-menu-ancestor > a {
	color: var(--wp--preset--color--primary-dark, #8d5835);
}

.t0-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block-start: var(--wp--preset--spacing--50, 1.5rem);
	margin-block-start: clamp(2rem, 5vw, 4rem);
	border-block-start: 0.0625rem solid var(--wp--preset--color--border, #e5dfdb);
}

.t0-footer__copyright {
	margin: 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	line-height: 1.5;
}

.t0-footer-legal-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.t0-footer-legal-menu a {
	display: inline-flex;
	min-height: 2.25rem;
	align-items: center;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 64rem) {
	.t0-footer__inner {
		padding-block-start: clamp(2.75rem, 5vw, 4rem);
	}

	.t0-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem clamp(2rem, 5vw, 3rem);
	}

	.t0-footer__branding {
		grid-column: 1 / -1;
	}
}

@media (max-width: 40rem) {
	.t0-footer__brand-logo img {
		width: 8.75rem;
	}

	.t0-footer__inner {
		padding-block: 2.5rem 1.25rem;
	}

	.t0-footer__top {
		grid-template-columns: minmax(0, 1.3fr) minmax(7rem, 0.7fr);
		gap: 1.75rem 1.25rem;
	}

	.t0-footer__branding {
		grid-column: 1 / -1;
	}

	.t0-footer__description {
		margin-block-start: 0.75rem;
		line-height: 1.55;
	}

	.t0-footer__heading {
		margin-block-end: 0.5rem;
	}

	.t0-footer__address {
		gap: 0.125rem;
		line-height: 1.5;
	}

	.t0-footer__address a,
	.t0-footer-menu a {
		min-height: 2.5rem;
	}

	.t0-footer-menu {
		gap: 0;
	}

	.t0-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
		padding-block-start: 1rem;
		margin-block-start: 1.75rem;
	}

	.t0-footer-legal-menu {
		justify-content: flex-start;
		gap: 0.25rem 1rem;
	}
}

@media (max-width: 22rem) {
	.t0-footer__top {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 1.5rem;
	}

	.t0-footer__branding {
		grid-column: auto;
	}
}

@media (forced-colors: active) {
	.t0-footer,
	.t0-footer__bottom {
		border-color: CanvasText;
	}
}
