/* ---------------------------------------------------------
   Premium footer.
   Rendered via wp_footer hook in functions.php. Hides Kadence's
   default footer wrappers so ours takes its place visually.
--------------------------------------------------------- */

/* Hide Kadence's default footer entirely — we render our own. */
#colophon:not(.lotarch-footer),
.site-footer:not(.lotarch-footer),
.footer-wrap {
	display: none !important;
}

/* Never on homepage: hero fills viewport, no scroll. */
body.home .lotarch-footer {
	display: none !important;
}

.lotarch-footer {
	background: var( --lotarch-bg-primary );
	color: var( --lotarch-fg-primary );
	font-family: var( --lotarch-font-sans );
	border-top: 1px solid rgba( 26, 26, 26, 0.1 );
	margin-top: 5rem;
}

.lotarch-footer__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp( 3rem, 5vw, 4.5rem ) clamp( 1.5rem, 4vw, 3rem );
	display: grid;
	/* Brand | Bekijk | Juridisch | Links | Publicaties */
	grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
	gap: clamp( 2rem, 4vw, 4rem );
	align-items: start;
}

/* Brand column — now includes contact info (address, email, phone). */
.lotarch-footer__brand {
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lotarch-footer__logo {
	display: inline-block;
	font-family: var( --lotarch-font-serif );
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var( --lotarch-fg-primary );
	text-decoration: none;
	margin: 0;
	line-height: 1;
}

.lotarch-footer__logo-img {
	display: block;
	width: auto;
	height: auto;
	max-height: 44px;
	max-width: 200px;
	object-fit: contain;
}

.lotarch-footer__tagline {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #555;
	margin: 0;
}

.lotarch-footer__brand .lotarch-footer__address {
	margin: 0;
	font-style: normal;
}

.lotarch-footer__brand .lotarch-footer__list--contact {
	margin: 0;
	/* Elk item (Utrechtseweg 159, 3818 ED Amersfoort, email, telefoon)
	   is een eigen <li>, zodat álle 4 dezelfde flex-gap krijgen ipv
	   line-height voor address + gap voor de rest. */
	gap: 0.5rem;
}

/* Non-link items in contact list (adres regels) krijgen dezelfde
   typografische styling als de link items. */
.lotarch-footer__brand .lotarch-footer__list--contact li {
	color: var( --lotarch-fg-primary );
	font-size: 0.95rem;
	line-height: 1.4;
}

/* Column headings */
.lotarch-footer__heading {
	font-family: var( --lotarch-font-sans );
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #666;
	margin: 0 0 1rem;
}

/* Lists */
.lotarch-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.lotarch-footer__list a {
	color: var( --lotarch-fg-primary );
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.lotarch-footer__list a:hover,
.lotarch-footer__list a:focus-visible {
	opacity: 1;
	color: #FD9606;
	outline: none;
}

/* Active page: als het footer-link naar de huidige pagina wijst, blijft
   die persistent oranje. WordPress zet current-menu-item op de <li>.
   Zo laten header en footer beide zien welke pagina we bekijken. */
.lotarch-footer__list .current-menu-item > a,
.lotarch-footer__list .current_page_item > a,
.lotarch-footer__list .current-menu-ancestor > a,
.lotarch-footer__list .current_page_ancestor > a,
.lotarch-footer__list .current-menu-parent > a {
	color: #FD9606;
}

.lotarch-footer__address {
	font-style: normal;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var( --lotarch-fg-primary );
	margin: 0;
}

/* --- Publicaties kolom (rechts) ---
   Elke publicatie = titel + subtiele meta-regel (bron · datum).
   Klikbaar als er een URL is ingesteld. */
.lotarch-footer__list--publications {
	gap: 1rem;
}

.lotarch-footer__publication a,
.lotarch-footer__publication > span {
	display: block;
	color: var( --lotarch-fg-primary );
	text-decoration: none;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.lotarch-footer__publication a:hover,
.lotarch-footer__publication a:focus-visible {
	opacity: 1;
	color: #FD9606;
	outline: none;
}

/* Kind-spans (titel + meta) meekleuren op hover want die hebben eigen
   hardcoded color regels die anders zouden overrulen. */
.lotarch-footer__publication a:hover .lotarch-footer__publication-title,
.lotarch-footer__publication a:hover .lotarch-footer__publication-meta,
.lotarch-footer__publication a:focus-visible .lotarch-footer__publication-title,
.lotarch-footer__publication a:focus-visible .lotarch-footer__publication-meta {
	color: #FD9606;
}

.lotarch-footer__publication-title {
	display: block;
	font-size: 0.92rem;
	font-weight: 400;
	color: var( --lotarch-fg-primary );
}

.lotarch-footer__publication-meta {
	display: block;
	font-size: 0.8rem;
	color: #888;
	margin-top: 0.15rem;
	font-style: italic;
}

.lotarch-footer__publications-empty {
	font-size: 0.85rem;
	color: #888;
	margin: 0;
	font-style: italic;
}

/* Bottom bar */
.lotarch-footer__bottom {
	border-top: 1px solid rgba( 26, 26, 26, 0.08 );
}

.lotarch-footer__container--bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.lotarch-footer__copy,
.lotarch-footer__meta {
	font-size: 0.85rem;
	color: #777;
	margin: 0;
	line-height: 1.5;
}

@media ( max-width: 1200px ) {
	.lotarch-footer__container {
		/* Brand | Bekijk | Juridisch | Links, publicaties op eigen rij. */
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
		row-gap: 2.5rem;
	}
	.lotarch-footer__col--publications {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 900px ) {
	.lotarch-footer__container {
		/* Brand + 3 kolommen in 2x2 layout, publicaties spant volle breedte. */
		grid-template-columns: 1fr 1fr;
		row-gap: 2.5rem;
	}
	.lotarch-footer__brand {
		grid-column: 1 / -1;
		max-width: none;
	}
	.lotarch-footer__col--publications {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 560px ) {
	.lotarch-footer__container {
		grid-template-columns: 1fr;
	}
	.lotarch-footer__container--bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

