/*
 * Global chrome: sticky header/nav (SiteNav.dc.html) and footer
 * (SiteFooter.dc.html). Loaded on every page.
 */

/* Skip to content sits above the fixed nav */
.pf-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(248, 251, 248, 0);
	transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}

.pf-nav.is-scrolled {
	background: rgba(248, 251, 248, .82);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	box-shadow: 0 1px 0 rgba(30, 30, 30, .06), 0 18px 40px -28px rgba(30, 30, 30, .4);
}

.pf-nav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.pf-nav__brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
}

.pf-nav__brand-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px -6px rgba(0, 155, 77, .7);
}

.pf-nav__brand-icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.pf-nav__brand-text {
	font-family: var(--pf-font-display);
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -.01em;
	color: var(--pf-ink);
}

.pf-nav__links {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pf-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 9px 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	color: var(--pf-ink);
	text-decoration: none;
	transition: background .2s;
}

.pf-nav__link:hover {
	background: rgba(30, 30, 30, .05);
}

.pf-nav__link.is-current {
	color: #009B4D;
	background: rgba(0, 155, 77, .08);
}

.pf-nav__item-drop {
	position: relative;
}

.pf-nav__item-drop [data-caret] {
	transition: transform .25s;
}

.pf-nav__item-drop:hover [data-caret] {
	transform: rotate(180deg);
}

.pf-nav__drop {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 230px;
	padding: 8px;
	background: rgba(255, 255, 255, .85);
	backdrop-filter: blur(18px) saturate(180%);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	border: 1px solid rgba(30, 30, 30, .07);
	border-radius: 16px;
	box-shadow: 0 24px 50px -24px rgba(30, 30, 30, .4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.pf-nav__item-drop:hover .pf-nav__drop {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pf-nav__drop-link {
	display: block;
	padding: 11px 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--pf-ink);
	text-decoration: none;
	transition: background .15s;
}

.pf-nav__drop-link:hover {
	background: rgba(0, 155, 77, .07);
}

.pf-nav__cta {
	padding: 11px 20px;
	font-size: 14.5px;
	box-shadow: none;
}

.pf-nav__cta:hover {
	box-shadow: 0 12px 26px -12px rgba(30, 30, 30, .6);
}

.pf-nav__burger {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(30, 30, 30, .12);
	background: rgba(255, 255, 255, .6);
	border-radius: 12px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

@media (max-width: 960px) {
	.pf-nav__links,
	.pf-nav__cta {
		display: none !important;
	}

	.pf-nav__burger {
		display: inline-flex !important;
	}
}

/* Mobile slide-in panel */
.pf-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba(248, 251, 248, .98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity .35s ease, transform .35s ease;
	padding: 88px 28px 40px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow-y: auto;
}

.pf-mobile-nav.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.pf-mobile-nav__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(30, 30, 30, .12);
	background: #fff;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pf-mobile-nav__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #009B4D;
	padding: 14px 0 4px;
}

.pf-mobile-nav__link {
	font-weight: 600;
	font-size: 18px;
	color: var(--pf-muted);
	text-decoration: none;
	padding: 7px 0;
}

.pf-mobile-nav__link--big {
	font-family: var(--pf-font-display);
	font-weight: 700;
	font-size: 26px;
	color: var(--pf-ink);
	padding: 10px 0;
	margin-top: 8px;
}

.pf-mobile-nav__cta {
	margin-top: 18px;
}

/* Footer */
.pf-footer {
	background: var(--pf-green-deepest);
	color: #fff;
	padding: 72px 24px 36px;
}

.pf-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
}

@media (max-width: 960px) {
	.pf-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.pf-footer__grid {
		grid-template-columns: 1fr;
	}
}

.pf-footer__brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	margin-bottom: 22px;
}

.pf-footer__brand-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pf-footer__brand-icon img {
	width: 31px;
	height: 31px;
	object-fit: contain;
}

.pf-footer__brand-text {
	font-family: var(--pf-font-display);
	font-weight: 800;
	font-size: 20px;
	color: #fff;
}

.pf-footer__tagline {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 380px;
}

.pf-footer__tagline span:first-child {
	font-size: 14.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, .92);
}

.pf-footer__tagline span:not(:first-child) {
	font-size: 13.5px;
	color: rgba(255, 255, 255, .5);
}

.pf-footer__heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7ED957;
	margin-bottom: 18px;
}

.pf-footer__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pf-footer__links a {
	font-size: 14.5px;
	color: rgba(255, 255, 255, .66);
	text-decoration: none;
	transition: color .2s;
}

.pf-footer__links a:hover {
	color: #fff;
}

.pf-footer__link--coming-soon {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .52);
	font-size: 14.5px;
}

.pf-footer__link--coming-soon small {
	padding: 2px 6px;
	border: 1px solid rgba(126, 217, 87, .25);
	border-radius: 999px;
	color: rgba(196, 245, 176, .82);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.pf-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.pf-footer__social a {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.pf-footer__social a:hover {
	background: rgba(255, 255, 255, .18);
}

.pf-footer__bottom {
	margin-top: 54px;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.pf-footer__bottom span {
	font-size: 13px;
	color: rgba(255, 255, 255, .45);
}

/* Scroll to top */
.pf-scrolltop {
	position: fixed;
	bottom: 26px;
	right: 26px;
	z-index: 90;
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 15px;
	background-image: var(--pf-gradient);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 14px 30px -12px rgba(0, 155, 77, .7);
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
}

.pf-scrolltop.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* Page content needs top breathing room since the nav is fixed/transparent */
.site-main {
	display: block;
}

/* Pins the footer to the viewport bottom on short content. Only applied
   via the pf-sticky-footer body class (see inc/setup.php) — currently
   just linkfra.da, matching that page's flex-column wrapper in the
   design export. The fixed-position nav/scroll-top button are unaffected
   since fixed elements aren't flex items. */
body.pf-sticky-footer {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.pf-sticky-footer .site-main {
	flex: 1 0 auto;
}
