/**
 * FocalX mega-footer — dark bar, WPML + social row, legal strip.
 */

.fx-site-footer {
	--fx-footer-bg: #2d2f31;
	--fx-footer-text: #babfc3;
	--fx-footer-heading: #fff;
	--fx-footer-link: #babfc3;
	--fx-footer-muted: #989ea3;
	--fx-footer-max: 1140px;

	box-sizing: border-box;
	width: 100%;
	margin-top: auto;
	margin-bottom: 0;
	padding: 48px 24px 20px;
	background: var(--fx-footer-bg);
	color: var(--fx-footer-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.fx-site-footer *,
.fx-site-footer *::before,
.fx-site-footer *::after {
	box-sizing: border-box;
}

.fx-site-footer__shell {
	max-width: var(--fx-footer-max);
	margin: 0 auto;
	overflow: visible;
}

/* ----- Main columns ----- */
.fx-site-footer__grid {
	display: grid;
	grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
	gap: 32px 28px;
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tablet: 3 kolonner; 2. række: tom celle til venstre, About midt, Resources højre */
@media (max-width: 1100px) and (min-width: 601px) {
	.fx-site-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fx-site-footer__grid > .fx-site-footer__col:nth-child(4) {
		grid-column: 2;
		grid-row: 2;
	}

	.fx-site-footer__grid > .fx-site-footer__col:nth-child(5) {
		grid-column: 3;
		grid-row: 2;
	}
}

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

.fx-site-footer__col--brand {
	min-width: 0;
}

.fx-site-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 16px;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.fx-site-footer__logo img {
	display: block;
	height: auto;
	max-height: 28px;
	width: auto;
	max-width: 118px;
}

.fx-site-footer__tagline {
	margin: 0 0 20px;
	max-width: 320px;
	color: var(--fx-footer-text);
	font-size: 14px;
	line-height: 1.55;
}

.fx-site-footer__contact {
	margin: 0;
}

.fx-site-footer__mailto {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.fx-site-footer__mailto span {
	color: #fff;
}

.fx-site-footer__mailto:hover,
.fx-site-footer__mailto:focus-visible {
	color: #fff;
	opacity: 0.92;
}

.fx-site-footer__mail-ico {
	flex-shrink: 0;
	opacity: 0.85;
}

/* h2: Astra kan overskrive farve — kolonneoverskrifter */
.fx-site-footer h2.fx-site-footer__heading,
.fx-site-footer .fx-site-footer__heading {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #fff !important;
}

.fx-site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fx-site-footer__links a {
	color: var(--fx-footer-link);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.fx-site-footer__links a:hover,
.fx-site-footer__links a:focus-visible {
	color: #f2f4f7;
	text-decoration: none;
}

.fx-site-footer__links a:focus {
	outline: none;
}

.fx-site-footer__links a:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

/* ----- Mid: language + social ----- */
.fx-site-footer__mid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 24px;
	padding: 22px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	overflow: visible;
}

.fx-site-footer__lang-wrap {
	min-width: 0;
	overflow: visible;
}

/* Sprog: custom dropdown — aktivt sprog kun i trigger; menu = øvrige sprog med WPML-flag */
.fx-site-footer__lang-field {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.fx-site-footer__lang-dropdown-inner {
	position: relative;
	min-width: min(280px, 100%);
	max-width: 100%;
	overflow: visible;
}

.fx-site-footer__lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 10px 12px 10px 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
	background-color: #252628;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	transition:
		border-color 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.fx-site-footer__lang-btn:hover,
.fx-site-footer__lang-btn:focus {
	color: #fff;
	outline: none;
}

.fx-site-footer__lang-btn:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

.fx-site-footer__lang-field--dropdown.is-open .fx-site-footer__lang-btn {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.22);
}

.fx-site-footer__lang-field--dropdown.is-open .fx-site-footer__lang-chev {
	color: #fff;
	opacity: 1;
}

.fx-site-footer__lang-btn:focus-visible {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: none;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.fx-site-footer__lang-btn:active {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.22);
}

.fx-site-footer__lang-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.fx-site-footer__lang-flag .fx-header__lang-flag-img {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
}

.fx-site-footer__lang-current {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fx-site-footer__lang-chev {
	flex-shrink: 0;
	color: #fff;
	opacity: 0.85;
	transition:
		transform 0.18s ease,
		opacity 0.15s ease;
}

.fx-site-footer__lang-field--dropdown.is-open .fx-site-footer__lang-chev {
	transform: rotate(180deg);
}

/* Dropup: åbner opad så menuen ikke forlænger dokumenthøjde / hvid rem under footer */
.fx-site-footer__lang-menu {
	position: absolute;
	z-index: 40;
	left: 0;
	right: 0;
	top: auto;
	bottom: calc(100% + 6px);
	margin: 0;
	padding: 6px 0;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition:
		opacity 0.16s ease,
		transform 0.16s ease,
		visibility 0.16s;
	background: linear-gradient(180deg, rgba(48, 50, 52, 0.98) 0%, rgba(30, 31, 33, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(0, 0, 0, 0.2);
}

.fx-site-footer__lang-field--dropdown.is-open .fx-site-footer__lang-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.fx-site-footer__lang-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fx-site-footer__lang-list > li {
	margin: 0;
	padding: 0;
}

.fx-site-footer__lang-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		background 0.12s ease,
		color 0.12s ease,
		box-shadow 0.12s ease;
}

.fx-site-footer__lang-item:link,
.fx-site-footer__lang-item:visited {
	color: #fff;
}

.fx-site-footer__lang-item:hover,
.fx-site-footer__lang-item:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.fx-site-footer__lang-item:focus {
	outline: none;
	color: #fff;
}

.fx-site-footer__lang-item:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.fx-site-footer__lang-item:active {
	color: #fff;
}

.fx-site-footer__lang-flag--row .fx-header__lang-flag-img {
	width: 20px;
	height: 15px;
}

.fx-site-footer__lang-label {
	flex: 1;
	min-width: 0;
	color: inherit;
}

.fx-site-footer__lang--static {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fx-footer-text);
}

.fx-site-footer__lang-current {
	white-space: nowrap;
	font-weight: 500;
}

/* Social icons (shortcode) on dark background */
.fx-site-footer__social .fx-social-icons-nav {
	display: block;
}

.fx-site-footer__social .fx-social-icons {
	justify-content: flex-end;
}

.fx-site-footer__social .fx-social-icons__link {
	color: var(--fx-footer-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.fx-site-footer__social .fx-social-icons__link:hover,
.fx-site-footer__social .fx-social-icons__link:focus-visible {
	color: #f2f4f7;
	background: rgba(255, 255, 255, 0.1);
}

.fx-site-footer__social .fx-social-icons__link:focus-visible {
	box-shadow: 0 0 0 2px var(--fx-footer-bg), 0 0 0 4px rgba(186, 191, 195, 0.4);
}

/* ----- Bottom legal ----- */
/*
 * DOM: legal først, copyright sidst (semantik / mobil: copy nederst).
 * PC/tablet: row-reverse så copyright stadig visuelt til venstre som før.
 */
.fx-site-footer__bottom {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 20px;
	font-size: 14px;
	color: var(--fx-footer-muted);
	width: 100%;
}

.fx-site-footer__copy {
	margin: 0;
	font-size: 14px;
}

@media (max-width: 767px) {
	.fx-site-footer__bottom {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}
}

.fx-site-footer__legal-list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.fx-site-footer__legal-list {
		align-items: flex-start;
	}
}

.fx-site-footer__legal-list a {
	color: var(--fx-footer-link);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
}

.fx-site-footer__legal-list a:hover,
.fx-site-footer__legal-list a:focus-visible {
	text-decoration: none;
	color: #f2f4f7;
}

/*
 * Astras standard-footer (widgets / «Powered by» / copyright-bar) under FocalX-footeren.
 * Jeres .fx-site-footer har ikke klassen .site-footer — kun Astra har den.
 * Slå denne blok fra i Customizer (eller fjern CSS), hvis I vil vise Astra-footer-widgets igen.
 *
 * .site-primary-footer-wrap skjules også: den kan ellers efterlade padding/højde (hvid rem)
 * selv når inner footer.site-footer er display:none.
 */
footer.site-footer,
#colophon.site-footer,
footer#colophon {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	border: none !important;
}

.site-primary-footer-wrap,
.ast-primary-footer-wrap {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}

.site-below-footer-wrap {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}
