/*
 * Footer root.
 *
 * The component inherits the Customizer-selected main color through a shared
 * custom property. Typography is scoped here so WordPress widget markup
 * inherits
 * the same readable baseline without requiring widget-specific resets.
 */
.scouting-nederland-footer-root {
	position: relative;
	margin-top: 0;
	background: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
	color: #fff;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 2;
}

.scouting-nederland-footer-root h5 {
	margin: 0 0 1.4rem;
	color: #fff;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

/* Decorative repeating grass strip cropped to its final visible height. */
.scouting-nederland-footer-root .scouting-nederland-footer-grass {
	position: relative;
	display: block;
	width: 100%;
	height: 110px;
	margin-bottom: -1px;
	background-color: #fff;
	background-image: url(../images/footer-grass.png);
	background-position: left calc(100% + 22px);
	background-repeat: repeat-x;
	background-size: auto 135px;
}

/* Main color band containing social links, copyright, and partner widgets. */
.scouting-nederland-footer-root .scouting-nederland-footer-main {
	background: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
	color: #fff;
	min-height: 315px;
	padding: 2.5rem 0 3rem;
}

/*
 * Two asymmetric Grid tracks give partner logos slightly more horizontal room.
 */
.scouting-nederland-footer-root .scouting-nederland-footer-inner {
	width: min(var(--scouting-nederland-page-width), calc(100% - 2rem));
	max-width: var(--scouting-nederland-page-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 5rem;
	align-items: start;
}

.scouting-nederland-footer-root .scouting-nederland-footer-copyright {
	margin-top: 2.4rem;
	max-width: 360px;
}

/*
 * Bottom navigation switches back to a white surface using the active main
 * color.
 */
.scouting-nederland-footer-root .scouting-nederland-footer-bottom {
	background: #fff;
	color: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
}

.scouting-nederland-footer-root .scouting-nederland-footer-bottom-inner {
	width: min(var(--scouting-nederland-page-width), calc(100% - 2rem));
	max-width: var(--scouting-nederland-page-width);
	margin: 0 auto;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scouting-nederland-footer-root .scouting-nederland-footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Real partner content is supplied through the footer-partners widget area. */
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area {
	color: #fff;
}

/*
 * Social links use Flex so icon spacing remains independent of list semantics.
 */
.scouting-nederland-footer-root .scouting-nederland-footer-social ul {
	display: flex;
	align-items: center;
	gap: 1.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.scouting-nederland-footer-root .scouting-nederland-footer-social a {
	color: #fff;
	text-decoration: none;
	font-size: 1.15rem;
	line-height: 1;
}

.scouting-nederland-footer-root .scouting-nederland-footer-social i {
	color: #fff;
}

.scouting-nederland-footer-root .scouting-nederland-footer-copyright p {
	margin: 0 0 0.65rem;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.65;
	font-weight: 400;
}

.scouting-nederland-footer-root .scouting-nederland-footer-menu li {
	display: inline-flex;
	align-items: center;
}

/*
 * WordPress can add nav-link; all footer-menu link states share the same color.
 */
.scouting-nederland-footer-root .scouting-nederland-footer-menu a {
	color: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen)) !important;
	font-size: 0.85rem;
	line-height: 1.2;
	font-weight: 400;
	text-decoration: none;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area h2,
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area h3,
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area h4,
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area h5 {
	margin: 0 0 1.8rem;
	color: #fff;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area a {
	color: #fff;
}

/*
 * Bound arbitrary widget images without distorting their intrinsic aspect
 * ratio.
 */
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area img {
	width: auto;
	max-width: 100%;
	max-height: 95px;
	margin: 0 2rem 1.5rem 0;
	vertical-align: middle;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area figure,
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area p {
	margin: 0 0 1rem;
	color: #fff;
}

.scouting-nederland-footer-root .scouting-nederland-footer-menu li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 22px;
	margin: 0 1rem;
	background: var(--scouting-nederland-main-color, var(--wp--preset--color--scouting-groen));
	opacity: 1;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area .widget {
	margin: 0;
	color: #fff;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area .widget-title {
	margin: 0 0 1.8rem;
	color: #fff;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area .wp-block-gallery,
.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area .wp-block-image {
	margin-bottom: 1rem;
}

.scouting-nederland-footer-root .scouting-nederland-footer-menu a:hover {
	text-decoration: underline;
}

.scouting-nederland-footer-root .scouting-nederland-footer-partners-widget-area .widget + .widget {
	margin-top: 1.5rem;
}

/*
 * Collapse footer columns and menu rows once two desktop tracks no longer fit.
 */
@media (max-width: 900px) {

	.scouting-nederland-footer-root .scouting-nederland-footer-grass {
		height: 90px;
		background-position-y: calc(100% + 18px);
		background-size: auto 112px;
	}

	.scouting-nederland-footer-root .scouting-nederland-footer-inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		width: calc(100% - 2rem);
		max-width: none;
	}

	.scouting-nederland-footer-root .scouting-nederland-footer-bottom-inner {
		width: calc(100% - 2rem);
		max-width: none;
		padding: 1rem 0;
	}

	.scouting-nederland-footer-root .scouting-nederland-footer-menu {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.6rem;
		text-align: center;
	}

	.scouting-nederland-footer-root .scouting-nederland-footer-menu li + li::before {
		content: none;
	}
}

/* Customizer main-color choices select matching grass artwork. */
body.scouting-nederland-utilities-main-green .scouting-nederland-footer-root .scouting-nederland-footer-grass {
	background-image: url(../images/grass-groen.png);
}

body.scouting-nederland-utilities-main-blue .scouting-nederland-footer-root .scouting-nederland-footer-grass {
	background-image: url(../images/grass-blauw.png);
}

body.scouting-nederland-utilities-main-yellow .scouting-nederland-footer-root .scouting-nederland-footer-grass {
	background-image: url(../images/grass-geel.png);
}

body.scouting-nederland-utilities-main-red .scouting-nederland-footer-root .scouting-nederland-footer-grass {
	background-image: url(../images/grass-rood.png);
}

body.scouting-nederland-utilities-main-orange .scouting-nederland-footer-root .scouting-nederland-footer-grass {
	background-image: url(../images/grass-oranje.png);
}

body.scouting-nederland-utilities-main-purple .scouting-nederland-footer-root .scouting-nederland-footer-grass {
	background-image: url(../images/grass-paars.png);
}

.scouting-nederland-footer-butterfly {
	position: absolute;
	inset: -70px 0 0;
	overflow: clip;
	pointer-events: none;
}

.scouting-nederland-footer-butterfly-flight {
	position: absolute;
	top: 105px;
	left: 65%;
	width: 100px;
	height: 100px;
	transform: scale(-0.35, 0.35);
	transform-origin: top left;
}

.scouting-nederland-footer-butterfly-body {
	position: relative;
	display: block;
	width: 30px;
	height: 100px;
	transform: rotateX(50deg) rotateY(20deg) rotateZ(-50deg);
	transform-style: preserve-3d;
}

.scouting-nederland-footer-butterfly-body::before {
	content: "";
	position: absolute;
	top: -15px;
	left: 50%;
	z-index: 2;
	width: 20px;
	height: 110px;
	margin-left: -10px;
	border-radius: 50%;
	background: #362c13;
	transform: rotateY(100deg);
}

.scouting-nederland-footer-butterfly-wing {
	position: absolute;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0.9;
	transform-style: preserve-3d;
}

.scouting-nederland-footer-butterfly-wing-left {
	left: 0;
	z-index: 3;
	transform: rotateY(-20deg);
	transform-origin: 700% 50%;
}

.scouting-nederland-footer-butterfly-wing-right {
	right: 0;
	z-index: 1;
	transform: rotateY(200deg);
	transform-origin: 0 50%;
}

.scouting-nederland-footer-butterfly-upper,
.scouting-nederland-footer-butterfly-lower {
	position: absolute;
	top: 0;
	right: 0;
	overflow: hidden;
	border-radius: 50%;
	background: #ffca1e;
	transform-origin: 100% 50%;
}

.scouting-nederland-footer-butterfly-upper {
	top: 15px;
	width: 130px;
	height: 70px;
	transform: rotateZ(40deg);
}

.scouting-nederland-footer-butterfly-lower {
	width: 100px;
	height: 55px;
	transform: rotateZ(-40deg);
}

.scouting-nederland-footer-butterfly-upper::after,
.scouting-nederland-footer-butterfly-lower::after {
	content: "";
	position: absolute;
	top: 5px;
	border-radius: 50%;
	background: #ffd651;
}

.scouting-nederland-footer-butterfly-upper::after {
	left: -30px;
	width: 100px;
	height: 60px;
}

.scouting-nederland-footer-butterfly-lower::after {
	left: -24px;
	width: 60px;
	height: 45px;
}

.scouting-nederland-footer-butterfly-shadow {
	position: absolute;
	top: 100px;
	left: -10px;
	width: 100px;
	height: 10px;
	border-radius: 50%;
	background: #000;
	opacity: 0.1;
}

@media (prefers-reduced-motion: no-preference) {

	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-flight {
		animation: scouting-nederland-footer-butterfly-flight 20s linear infinite;
	}

	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-body {
		animation: scouting-nederland-footer-butterfly-float 1.2s ease-in-out infinite;
	}

	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-wing-left {
		animation: scouting-nederland-footer-butterfly-left 0.24s ease-in-out infinite alternate;
	}

	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-wing-right {
		animation: scouting-nederland-footer-butterfly-right 0.24s ease-in-out infinite alternate;
	}

	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-shadow {
		animation: scouting-nederland-footer-butterfly-shadow 1.2s ease-in-out infinite;
	}
}

.scouting-nederland-footer-butterfly.scouting-nederland-footer-butterfly-paused .scouting-nederland-footer-butterfly-flight,
.scouting-nederland-footer-butterfly.scouting-nederland-footer-butterfly-paused .scouting-nederland-footer-butterfly-body,
.scouting-nederland-footer-butterfly.scouting-nederland-footer-butterfly-paused .scouting-nederland-footer-butterfly-wing,
.scouting-nederland-footer-butterfly.scouting-nederland-footer-butterfly-paused .scouting-nederland-footer-butterfly-shadow {
	animation-play-state: paused;
}

@keyframes scouting-nederland-footer-butterfly-flight {

	from {
		left: -100px;
	}

	to {
		left: calc(100% + 100px);
	}
}

@keyframes scouting-nederland-footer-butterfly-float {

	50% {
		transform: rotateX(50deg) rotateY(20deg) rotateZ(-50deg) translateY(-30px);
	}
}

@keyframes scouting-nederland-footer-butterfly-left {

	from {
		transform: rotateY(-20deg);
	}

	to {
		transform: rotateY(90deg);
	}
}

@keyframes scouting-nederland-footer-butterfly-right {

	from {
		transform: rotateY(200deg);
	}

	to {
		transform: rotateY(90deg);
	}
}

@keyframes scouting-nederland-footer-butterfly-shadow {

	50% {
		transform: scale(0.7);
	}
}

@media (prefers-reduced-motion: reduce) {

	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-flight,
	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-body,
	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-wing,
	.scouting-nederland-footer-butterfly.scouting-nederland-motion-reveal .scouting-nederland-footer-butterfly-shadow {
		animation: none;
	}
}
