/* ────────────────────────────────────────────────────────────────────────
 * Insights Child — footer.css
 *
 * Site-wide footer. Loaded on every page (see functions.php
 * insights_enqueue_footer_assets).
 *
 * Palette echoes the reference design:
 *   - Background:    --ink (#1a1a1a)
 *   - Body type:     --cream at varying opacity
 *   - Headings:      --crimson-bright (small caps, generous tracking)
 *   - Utility row:   cream @ ~45% opacity, separated by hairline divider
 *
 * Layout: 4-column CSS grid → stacks to single column at 768px.
 * ───────────────────────────────────────────────────────────────────── */

:root {
	/* Local fallbacks if header.css hasn't defined them yet. */
	--ink: #1a1a1a;
	--cream: #FFFFFF;
	--crimson: #8B1A1A;
	--crimson-bright: #E8192C;
}

/* ──────────────────────────────────────────────────────────────
 * 1. SHELL
 * ────────────────────────────────────────────────────────────── */
.insights-footer {
	background: var(--ink);
	color: var(--cream);
	font-family: 'Jost', sans-serif;
	padding: 72px 0 28px;
	margin-top: 0;
}
.insights-footer .footer-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Override Astra's default footer styles (it adds its own padding). */
.insights-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.insights-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}
.insights-footer a:hover,
.insights-footer a:focus-visible {
	color: var(--cream);
	opacity: 1;
}
.insights-footer a:focus-visible {
	outline: 2px solid var(--cream);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────
 * 2. GRID (brand + 3 menu columns)
 * ────────────────────────────────────────────────────────────── */
.insights-footer .footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 56px;
	padding-bottom: 48px;
}

/* ──────────────────────────────────────────────────────────────
 * 3. BRAND COLUMN
 * ────────────────────────────────────────────────────────────── */
.insights-footer .footer-brand {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.insights-footer .footer-logo {
	display: inline-block;
	margin-bottom: 4px;
	max-width: 180px;
	line-height: 1;
}
.insights-footer .footer-logo-img {
	display: block;
	max-width: 100%;
	height: auto;
	/* Force-light treatment if the logo is dark-on-light. */
	filter: brightness(0) invert(1);
}
.insights-footer .footer-logo-text {
	font-family: 'Jost', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--cream);
	letter-spacing: -0.01em;
}
.insights-footer .footer-about {
	font-size: 14px;
	line-height: 1.65;
	color: rgba(245, 240, 235, 0.7);
	margin: 0;
	max-width: 320px;
}

/* ── Locations stack ─────────────────────────────────────────── */
.insights-footer .footer-locations {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 4px;
}
.insights-footer .footer-location {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.insights-footer .footer-location-name {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cream);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.insights-footer .footer-location-badge {
	display: inline-block;
	padding: 2px 8px;
	background: var(--crimson);
	color: var(--cream);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
}
.insights-footer .footer-location-address {
	font-size: 13px;
	line-height: 1.55;
	color: rgba(245, 240, 235, 0.6);
}

/* ──────────────────────────────────────────────────────────────
 * 4. MENU COLUMNS
 * ────────────────────────────────────────────────────────────── */
.insights-footer .footer-nav {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.insights-footer .footer-heading {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--crimson-bright);
	margin: 0;
	line-height: 1;
}
.insights-footer .footer-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.insights-footer .footer-menu li {
	margin: 0;
	padding: 0;
}
.insights-footer .footer-menu a {
	font-size: 17.25px; /* +15% over previous 15px — Andre 2026-05-20, liked the larger size */
	font-weight: 400;
	color: rgba(245, 240, 235, 0.8);
	line-height: 1.4;
}
.insights-footer .footer-menu a:hover,
.insights-footer .footer-menu a:focus-visible {
	color: var(--cream);
}

/* ──────────────────────────────────────────────────────────────
 * 5. UTILITY STRIP (copyright · policies · regs)
 * ────────────────────────────────────────────────────────────── */
.insights-footer .footer-utility {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(245, 240, 235, 0.12);
}
.insights-footer .footer-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}
.insights-footer .footer-meta p {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(245, 240, 235, 0.45);
	margin: 0;
}
.insights-footer .footer-meta .footer-company-reg {
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: none;
	color: rgba(245, 240, 235, 0.35);
	max-width: 280px;
	line-height: 1.45;
}
.insights-footer .footer-policies {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 24px;
}
.insights-footer .footer-policies a {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(245, 240, 235, 0.45);
}
.insights-footer .footer-policies a:hover,
.insights-footer .footer-policies a:focus-visible {
	color: var(--cream);
}
.insights-footer .footer-regs {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px 24px;
}
.insights-footer .footer-regs li {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(245, 240, 235, 0.45);
	white-space: nowrap;
}
.insights-footer .footer-regs .footer-reg-label {
	margin-right: 4px;
}
.insights-footer .footer-regs .is-placeholder .footer-reg-value {
	opacity: 0.5;
}

/* ──────────────────────────────────────────────────────────────
 * 6. RESPONSIVE
 * ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.insights-footer .footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
	}
	.insights-footer .footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.insights-footer {
		padding: 56px 0 24px;
	}
	.insights-footer .footer-inner {
		padding: 0 22px;
	}
	.insights-footer .footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-bottom: 40px;
	}
	.insights-footer .footer-brand {
		grid-column: auto;
	}
	.insights-footer .footer-utility {
		grid-template-columns: 1fr;
		gap: 16px;
		padding-top: 24px;
		text-align: center;
	}
	.insights-footer .footer-policies,
	.insights-footer .footer-regs {
		justify-content: center;
	}
}

/* ──────────────────────────────────────────────────────────────
 * 7. PARENT THEME OVERRIDES
 *    Astra applies default site-info / footer-widget-area styles
 *    we don't want. Neutralise.
 * ────────────────────────────────────────────────────────────── */
.site-footer.insights-footer,
.site-footer.insights-footer * {
	box-sizing: border-box;
}
.site-footer.insights-footer {
	border-top: 0 !important;
}
/* Hide any Astra-injected default footer markup that might appear before/after ours. */
.insights-footer ~ .ast-small-footer,
.insights-footer ~ .footer-sml-layout-1,
.site-footer.insights-footer .ast-small-footer,
.site-footer.insights-footer .ast-builder-grid-row {
	display: none !important;
}

/* ──────────────────────────────────────────────────────────────
 * 8. REDUCED MOTION
 * ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.insights-footer a {
		transition: none;
	}
}
