/**
 * Shared site footer
 *
 * The same component is used by every template. The tablet layout deliberately
 * keeps the brand and contact details together, then places the two expanded
 * navigation groups below.
 */
.nn-site-footer.nn-site-footer {
	background-color: #061f18;
	background-image:
		linear-gradient(rgba(7, 31, 24, 0.78), rgba(7, 31, 24, 0.86)),
		url("../images/backgrounds/background-north-green-new.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border: 0;
	color: #f4f1e6;
	margin: 0;
	padding: clamp(2.75rem, 5vw, 4.5rem) 0 1.75rem;
}

.nn-site-footer .nn-footer-shell {
	margin-inline: auto !important;
	max-width: 77.5rem !important;
	position: relative;
	width: min(calc(100% - 4rem), 77.5rem) !important;
}

.nn-site-footer .nn-footer-grid {
	align-items: start;
	display: grid !important;
	gap: clamp(1.5rem, 3vw, 3rem);
	grid-template-columns: minmax(15rem, 1.2fr) repeat(2, minmax(8rem, 0.65fr)) minmax(13rem, 0.9fr) !important;
	padding: 0;
}

.nn-site-footer .nn-footer-brand,
.nn-site-footer .nn-footer-menu {
	min-width: 0;
}

.nn-site-footer .nn-footer-brand {
	max-width: 25rem;
}

.nn-site-footer .nn-footer-logo-lockup {
	align-items: center;
	display: flex;
	gap: 0.65rem;
	margin: 0 0 1.35rem;
}

.nn-site-footer .nn-footer-logo,
.nn-site-footer .nn-footer-wordmark-image {
	margin: 0;
}

.nn-site-footer .nn-footer-logo img {
	display: block;
	height: auto;
	width: clamp(4.5rem, 7vw, 6.25rem) !important;
}

.nn-site-footer .nn-footer-wordmark-image img {
	display: block;
	height: auto;
	max-width: none;
	width: clamp(7.8rem, 11vw, 10rem) !important;
}

.nn-site-footer .nn-footer-statement {
	color: rgba(244, 241, 230, 0.9);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.4;
	margin: 0;
	max-width: 16rem;
}

.nn-site-footer .nn-footer-cta {
	margin-top: 1.1rem;
}

.nn-site-footer .nn-footer-cta .wp-block-button__link {
	align-items: center;
	background: #f05a28;
	border: 1px solid #f05a28;
	border-radius: 0.3rem;
	box-shadow: 0 0.8rem 1.6rem rgba(240, 90, 40, 0.2);
	color: #f4f1e6;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 800;
	gap: 0.4rem;
	line-height: 1;
	padding: 0.78rem 1rem;
	text-decoration: none;
}

.nn-site-footer .nn-footer-cta .wp-block-button__link:hover,
.nn-site-footer .nn-footer-cta .wp-block-button__link:focus-visible {
	background: #ff6a3d;
	border-color: #ff6a3d;
	color: #f4f1e6;
}

.nn-site-footer .nn-footer-menu {
	border: 0;
	padding: 0;
}

.nn-site-footer .nn-footer-menu-title {
	color: #a4b49a;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	margin: 0 0 0.8rem;
	text-transform: uppercase;
}

.nn-site-footer .nn-footer-link-list,
.nn-site-footer .nn-footer-contact-list,
.nn-site-footer .nn-footer-social-list,
.nn-site-footer .nn-footer-legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nn-site-footer .nn-footer-link-list {
	display: grid;
	gap: 0.5rem;
}

.nn-site-footer .nn-footer-link-list a,
.nn-site-footer .nn-footer-contact-list,
.nn-site-footer .nn-footer-contact-list a,
.nn-site-footer .nn-footer-legal-list a {
	color: rgba(244, 241, 230, 0.82);
	font-size: 0.9rem;
	line-height: 1.4;
	text-decoration-color: transparent;
	text-underline-offset: 0.18em;
}

.nn-site-footer .nn-footer-link-list a:hover,
.nn-site-footer .nn-footer-link-list a:focus-visible,
.nn-site-footer .nn-footer-contact-list a:hover,
.nn-site-footer .nn-footer-contact-list a:focus-visible,
.nn-site-footer .nn-footer-legal-list a:hover,
.nn-site-footer .nn-footer-legal-list a:focus-visible {
	color: #f4f1e6;
	text-decoration-color: #f05a28;
}

.nn-site-footer .nn-footer-contact-list {
	display: grid;
	gap: 0.6rem;
}

.nn-site-footer .nn-footer-contact-list li {
	align-items: center;
	color: rgba(244, 241, 230, 0.82);
	display: flex;
	font-size: 0.9rem;
	gap: 0.6rem;
	line-height: 1.4;
}

.nn-site-footer .nn-footer-contact-icon {
	color: #f05a28;
	flex: 0 0 1rem;
	height: 1rem;
	width: 1rem;
}

.nn-site-footer .nn-footer-contact-icon svg {
	display: block;
	fill: none;
	height: 100%;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 100%;
}

.nn-site-footer .nn-footer-social-list {
	display: flex;
	gap: 0.55rem;
	margin-top: 0.95rem;
}

.nn-site-footer .nn-footer-social-link {
	align-items: center;
	background: rgba(244, 241, 230, 0.1);
	border: 1px solid rgba(244, 241, 230, 0.18);
	border-radius: 0.35rem;
	color: #f4f1e6;
	display: inline-flex;
	height: 2rem;
	justify-content: center;
	width: 2rem;
}

.nn-site-footer .nn-footer-social-link svg {
	display: block;
	fill: currentcolor;
	height: 1rem;
	width: 1rem;
}

.nn-site-footer .nn-footer-bottom {
	border-top: 1px solid rgba(244, 241, 230, 0.12);
	display: flex;
	gap: 1rem 1.5rem;
	justify-content: space-between;
	margin-top: 1.75rem;
	padding-top: 1rem;
}

.nn-site-footer .nn-footer-copyright {
	color: rgba(244, 241, 230, 0.72);
	font-size: 0.8rem;
	margin: 0;
}

.nn-site-footer .nn-footer-legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.nn-site-footer .nn-footer-legal-list a {
	font-size: 0.8rem;
	font-weight: 800;
}

@media (min-width: 701px) and (max-width: 1024px) {
	.nn-site-footer.nn-site-footer {
		padding-block: 2.75rem 1.8rem;
	}

	.nn-site-footer .nn-footer-shell {
		max-width: 41rem !important;
		width: calc(100% - 6rem) !important;
	}

	.nn-site-footer .nn-footer-grid {
		column-gap: 0 !important;
		grid-template-areas:
			"brand connect"
			"services explore";
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		row-gap: 1.9rem !important;
	}

	.nn-site-footer .nn-footer-brand {
		align-content: center;
		background: rgba(4, 29, 22, 0.34);
		border: 1px solid rgba(244, 241, 230, 0.18);
		border-radius: 0.85rem 0 0 0.85rem;
		border-right: 0;
		display: grid;
		grid-area: brand;
		min-height: 14.7rem;
		padding: 1.9rem 1.45rem;
	}

	.nn-site-footer .nn-footer-brand .nn-footer-logo-lockup {
		margin-bottom: 0.9rem;
	}

	.nn-site-footer .nn-footer-brand .nn-footer-logo img {
		width: 4.7rem !important;
	}

	.nn-site-footer .nn-footer-brand .nn-footer-wordmark-image img {
		width: 8.45rem !important;
	}

	.nn-site-footer .nn-footer-brand .nn-footer-statement {
		font-size: 0.98rem;
		max-width: 15rem;
	}

	.nn-site-footer .nn-footer-brand .nn-footer-cta {
		margin-top: 0.9rem;
	}

	.nn-site-footer .nn-footer-brand .nn-footer-cta .wp-block-button__link {
		font-size: 0.84rem;
		min-height: 2.45rem;
		padding: 0.72rem 0.9rem;
	}

	.nn-site-footer .nn-footer-menu {
		border: 0;
		padding: 0;
	}

	.nn-site-footer .nn-footer-menu:nth-child(2) {
		grid-area: explore;
	}

	.nn-site-footer .nn-footer-menu:nth-child(3) {
		grid-area: services;
	}

	.nn-site-footer .nn-footer-connect {
		align-content: center;
		background: rgba(4, 29, 22, 0.34);
		border: 1px solid rgba(244, 241, 230, 0.18);
		border-radius: 0 0.85rem 0.85rem 0;
		display: grid;
		grid-area: connect;
		min-height: 14.7rem;
		padding: 1.9rem 1.45rem;
	}

	.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) {
		justify-items: center;
		text-align: center;
	}

	.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-link-list {
		align-items: center;
		gap: 0.2rem;
	}

	.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-link-list a {
		align-items: center;
		display: inline-flex;
		min-height: 2.4rem;
	}

	.nn-site-footer .nn-footer-menu-title {
		font-size: 0.74rem;
		margin-bottom: 0.7rem;
	}

	.nn-site-footer .nn-footer-link-list a,
	.nn-site-footer .nn-footer-contact-list li,
	.nn-site-footer .nn-footer-contact-list a {
		font-size: 0.88rem;
	}

	.nn-site-footer .nn-footer-connect .nn-footer-contact-list {
		gap: 0.55rem;
	}

	.nn-site-footer .nn-footer-connect .nn-footer-social-list {
		margin-top: 0.85rem;
	}

	.nn-site-footer .nn-footer-bottom {
		align-items: center;
		flex-direction: column;
		gap: 0.85rem;
		justify-content: center;
		margin-top: 1.65rem;
		padding-top: 1rem;
		text-align: center;
	}

	.nn-site-footer .nn-footer-legal-list {
		justify-content: center;
	}
}

/* Mobile footer: a single stacked brand/contact card, followed by open menus. */
@media (max-width: 700px) {
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer {
		background-color: #061f18 !important;
		background-image:
			linear-gradient(rgba(7, 31, 24, 0.78), rgba(7, 31, 24, 0.86)),
			url("../images/backgrounds/background-north-green-new.png") !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
		padding: 2.25rem 0 1.75rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-shell {
		max-width: 28rem !important;
		width: calc(100% - 3.75rem) !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-grid {
		align-items: start !important;
		column-gap: 1rem !important;
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		row-gap: 0 !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect {
		background: rgba(4, 29, 22, 0.48) !important;
		border: 1px solid rgba(244, 241, 230, 0.2) !important;
		box-shadow: none !important;
		box-sizing: border-box !important;
		grid-column: 1 / -1 !important;
		justify-self: stretch !important;
		margin: 0 !important;
		padding: 1.9rem 1.25rem !important;
		text-align: center !important;
		width: 100% !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand {
		align-content: center !important;
		border-bottom: 0 !important;
		border-radius: 0.85rem 0.85rem 0 0 !important;
		display: grid !important;
		grid-row: 1 !important;
		justify-items: center !important;
		padding-bottom: 1rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-footer-logo-lockup {
		gap: 0.55rem !important;
		justify-content: center !important;
		margin: 0 auto 1.45rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-footer-logo img {
		height: auto !important;
		width: 3.25rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-footer-wordmark-image img,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-logo-wordmark img {
		height: auto !important;
		width: 6.3rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-footer-statement {
		font-size: 0.88rem !important;
		line-height: 1.45 !important;
		margin-inline: auto !important;
		max-width: 14.5rem !important;
		text-align: center !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-footer-cta {
		display: flex !important;
		justify-content: center !important;
		margin: 1.15rem auto 0 !important;
		width: 100% !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand .nn-footer-cta .wp-block-button {
		margin-inline: auto !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect {
		align-content: start !important;
		border-radius: 0 0 0.85rem 0.85rem !important;
		display: grid !important;
		grid-row: 2 !important;
		justify-items: center !important;
		padding-bottom: 1.35rem !important;
		padding-top: 1.15rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect .nn-footer-menu-title {
		display: block !important;
		font-size: 0.72rem !important;
		margin: 0 0 0.85rem !important;
		text-align: center !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect .nn-footer-contact-list {
		display: grid !important;
		gap: 0.6rem !important;
		margin: 0 auto !important;
		max-width: 13rem !important;
		padding: 0 !important;
		width: 100% !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect .nn-footer-contact-list li {
		font-size: 0.82rem !important;
		gap: 0.55rem !important;
		text-align: left !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect .nn-footer-social-list {
		justify-content: center !important;
		margin: 1rem auto 0 !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:nth-of-type(1) {
		grid-column: 2 !important;
		grid-row: 3 !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:nth-of-type(2) {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) {
		border: 0 !important;
		display: grid !important;
		justify-items: center !important;
		margin: 1.8rem 0 0 !important;
		padding: 0 !important;
		text-align: center !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-menu-title {
		display: block !important;
		font-size: 0.7rem !important;
		margin: 0 0 0.85rem !important;
		text-align: center !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-link-list,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-accordion,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-accordion:not([open]) {
		align-items: center !important;
		block-size: auto !important;
		content-visibility: visible !important;
		display: grid !important;
		gap: 0.55rem !important;
		overflow: visible !important;
		padding: 0 !important;
		visibility: visible !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-accordion summary {
		display: none !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-link-list a {
		align-items: center !important;
		display: inline-flex !important;
		font-size: 0.78rem !important;
		justify-content: center !important;
		min-height: 2.45rem !important;
		padding: 0.3rem 0 !important;
		white-space: normal !important;
		width: 100% !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-bottom {
		align-items: center !important;
		border-top: 1px solid rgba(244, 241, 230, 0.12) !important;
		flex-direction: column !important;
		gap: 0.7rem !important;
		grid-column: 1 / -1 !important;
		justify-content: center !important;
		margin-top: 1.9rem !important;
		padding-top: 1rem !important;
		text-align: center !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-copyright,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-legal-list {
		margin-inline: auto !important;
		text-align: center !important;
		width: 100% !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-legal-list {
		justify-content: center !important;
	}
}

@media (max-width: 700px) {
	.nn-site-footer .nn-footer-shell {
		width: min(calc(100% - 2rem), 30rem) !important;
	}

	.nn-site-footer .nn-footer-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.nn-site-footer .nn-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

/*
 * Tablet footer architecture. These selectors intentionally match the shared
 * theme's legacy specificity so the production footer has one reliable layout
 * on every template, including pages with older block-style rules.
 */
@media (min-width: 701px) and (max-width: 1024px) {
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer {
		background-color: #061f18 !important;
		background-image:
			linear-gradient(rgba(7, 31, 24, 0.78), rgba(7, 31, 24, 0.86)),
			url("../images/backgrounds/background-north-green-new.png") !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
		padding-block: 2.75rem 1.8rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-shell {
		max-width: 41rem !important;
		width: calc(100% - 6rem) !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-grid {
		align-items: stretch !important;
		column-gap: 0 !important;
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		row-gap: 1.9rem !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect {
		align-content: center !important;
		align-self: stretch !important;
		background: rgba(4, 29, 22, 0.44) !important;
		border: 1px solid rgba(244, 241, 230, 0.18) !important;
		box-shadow: none !important;
		box-sizing: border-box !important;
		min-height: 14.7rem !important;
		padding: 1.9rem 1.45rem !important;
		width: 100% !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-brand {
		border-radius: 0.85rem 0 0 0.85rem !important;
		border-right: 0 !important;
		display: grid !important;
		grid-column: 1 !important;
		grid-row: 1 !important;
		justify-self: stretch !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-connect {
		border-left: 0 !important;
		border-radius: 0 0.85rem 0.85rem 0 !important;
		display: grid !important;
		grid-column: 2 !important;
		grid-row: 1 !important;
		justify-self: stretch !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:nth-of-type(1) {
		grid-column: 2 !important;
		grid-row: 2 !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:nth-of-type(2) {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) {
		border: 0 !important;
		display: grid !important;
		justify-items: center !important;
		padding: 0 !important;
		text-align: center !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-link-list,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-accordion,
	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-accordion:not([open]) {
		align-items: center !important;
		block-size: auto !important;
		content-visibility: visible !important;
		display: grid !important;
		gap: 0.2rem !important;
		overflow: visible !important;
		visibility: visible !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-accordion summary {
		display: none !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-menu:not(.nn-footer-connect) .nn-footer-link-list a {
		align-items: center !important;
		display: inline-flex !important;
		justify-content: center !important;
		min-height: 2.4rem !important;
		width: auto !important;
	}

	body[class] .wp-site-blocks .nn-site-footer.nn-site-footer .nn-footer-bottom {
		align-items: center !important;
		flex-direction: column !important;
		gap: 0.85rem !important;
		justify-content: center !important;
		margin-top: 1.65rem !important;
		padding-top: 1rem !important;
		text-align: center !important;
	}
}
