/* ==========================================================================
   Site Footer
   ========================================================================== */

.p2p-site-footer {
	position: relative;
	color: #fff;
}


/* ==========================================================================
   Shared container
   ========================================================================== */

.p2p-footer-container {
	width: min(100% - 40px, 1200px);
	margin-inline: auto;
	position: relative;
}


/* ==========================================================================
   Contact section
   ========================================================================== */

.p2p-footer-contact {
	background: #000;
	padding: 58px 0 64px;
}

.p2p-footer-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 60px;
	align-items: start;
}

.p2p-footer-column {
	min-width: 0;
	text-align: center;
	font-size: 15px;
	line-height: 1.55;
}


/* ==========================================================================
   Headings
   ========================================================================== */

.p2p-footer-heading {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}


/* ==========================================================================
   Address
   ========================================================================== */

.p2p-footer-address__content {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-style: normal;
}


/* ==========================================================================
   Company
   ========================================================================== */

.p2p-footer-company {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.p2p-footer-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-bottom: 14px;
}

.p2p-footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #fff;
	font-size: 21px;
	line-height: 1;
	text-decoration: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.p2p-footer-social__link:hover,
.p2p-footer-social__link:focus-visible {
	color: #fff;
	opacity: 0.7;
	transform: translateY(-1px);
}

.p2p-footer-company__details {
	margin: 0;
}

.p2p-footer-company__details p {
	margin: 0;
}

.p2p-footer-company__name {
	margin-bottom: 2px !important;
}

.p2p-footer-company__email a {
	color: inherit;
	text-decoration: none;
}

.p2p-footer-company__email a:hover,
.p2p-footer-company__email a:focus-visible {
	text-decoration: underline;
}

.p2p-footer-company__cvr {
	margin-top: 2px !important;
}


/* ==========================================================================
   Contact details
   ========================================================================== */

.p2p-footer-contact-details {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.p2p-footer-contact-details__items {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.p2p-footer-hours {
	margin: 0 0 10px;
}

.p2p-footer-hours p {
	display: flex;
	gap: 5px;
	margin: 0;
}

.p2p-footer-hours__days {
	white-space: nowrap;
}

.p2p-footer-hours__time {
	white-space: nowrap;
}

.p2p-footer-contact-link {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 5px;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p2p-footer-contact-link:hover,
.p2p-footer-contact-link:focus-visible {
	color: #fff;
}

.p2p-footer-contact-link .p2p-icon {
	width: 16px;
	text-align: center;
	text-decoration: none;
}


/* ==========================================================================
   Bottom section
   ========================================================================== */

.p2p-footer-bottom {
	position: relative;
	background: #202020;
	min-height: 310px;
	padding: 94px 0 32px;
}

.p2p-footer-bottom__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
}


/* ==========================================================================
   Sustainability organization
   ========================================================================== */

.p2p-footer-sustainability {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.p2p-footer-sustainability__link {
	display: inline-flex;
	align-items: center;
	transition: opacity 0.2s ease;
}

.p2p-footer-sustainability__link:hover,
.p2p-footer-sustainability__link:focus-visible {
	opacity: 0.8;
}

.p2p-footer-sustainability__image {
	display: block;
	width: auto;
    max-height: 70px;
}


/* ==========================================================================
   Footer navigation
   ========================================================================== */

.p2p-footer-navigation {
	display: flex;
	justify-content: flex-end;
}

.p2p-footer-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p2p-footer-menu li {
	margin: 0;
	padding: 0;
}

.p2p-footer-menu a {
	display: block;
	color: #aaa;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.2s ease;
}

.p2p-footer-menu a:hover,
.p2p-footer-menu a:focus-visible {
	color: #fff;
}


/* ==========================================================================
   Copyright
   ========================================================================== */

.p2p-footer-copyright {
	margin-top: 78px;
	text-align: center;
	color: #aaa;
	font-size: 15px;
	line-height: 1.5;
}


/* ==========================================================================
   Back to top
   ========================================================================== */

/*
 * Sits on the top edge of the footer: half over the content above,
 * half over the footer, giving a tab look at every screen size.
 */
.p2p-footer-back-to-top {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 5rem;
	height: 5rem;

	transform: translate(-50%, -50%);

	border-radius: 50%;
	background: #000;
	color: #fff;

	font-size: 18px;
	line-height: 1;

	text-decoration: none;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.p2p-footer-back-to-top:hover,
.p2p-footer-back-to-top:focus-visible {
	color: #fff;
	background: #2b2b2b;
	transform: translate(-50%, calc(-50% - 2px));
}

@media (max-width: 575.98px) {

	.p2p-footer-back-to-top {
		width: 3.5rem;
		height: 3.5rem;
	}

}


/* ==========================================================================
   Responsive
   ========================================================================== */

/* md: three narrower columns. */
@media (max-width: 991.98px) {

	.p2p-footer-contact-grid {
		gap: 32px;
	}

}

/* Below md: single column. */
@media (max-width: 767.98px) {

	.p2p-footer-container {
		width: min(100% - 30px, 1200px);
	}


	/* ----------------------------------------------------------------------
	   Contact
	   ---------------------------------------------------------------------- */

	.p2p-footer-contact {
		padding: 48px 0;
	}

	.p2p-footer-contact-grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.p2p-footer-column {
		width: 100%;
	}

	.p2p-footer-contact-details__items {
		align-items: center;
	}


	/* ----------------------------------------------------------------------
	   Bottom
	   ---------------------------------------------------------------------- */

	.p2p-footer-bottom {
		min-height: 0;
		padding: 75px 0 30px;
	}

	.p2p-footer-bottom__top {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.p2p-footer-sustainability {
		justify-content: center;

        .p2p-footer-sustainability__link img {
            max-height: 70px;
            width: auto;
        }
	}

	.p2p-footer-navigation {
		justify-content: center;
	}

	.p2p-footer-menu {
		align-items: center;
	}

	.p2p-footer-copyright {
		margin-top: 50px;
	}

}