/**
 * Global footer — Tailwind-equivalent to legendary_footer_ui_concept.jsx
 * Scoped to .lgf-footer; uses :root tokens from legendary-home.css when loaded.
 */

.lgf-footer {
	box-sizing: border-box;
	border-top: 1px solid var(--legendary-white-10, rgba(255, 255, 255, 0.1));
	background-color: var(--legendary-n950, #0a0a0a);
	color: #fff;
	font-family: var(--legendary-font-sans, ui-sans-serif, system-ui, sans-serif);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.lgf-inner {
	width: 100%;
	max-width: var(--legendary-max, 80rem);
	margin-left: auto;
	margin-right: auto;
	padding: 3rem 1.5rem;
}

@media (min-width: 1024px) {
	.lgf-inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Main panel: grid gap-8 rounded-[2rem] border bg-white/[0.03] p-8 lg:grid-cols-[1.2fr_0.8fr_0.8fr_1fr] lg:p-10 */
.lgf-panel {
	display: grid;
	gap: 2rem;
	border-radius: var(--legendary-r16, 2rem);
	border: 1px solid var(--legendary-white-10, rgba(255, 255, 255, 0.1));
	background-color: rgba(255, 255, 255, 0.03);
	padding: 2rem;
}

@media (min-width: 1024px) {
	.lgf-panel {
		grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
		padding: 2.5rem;
	}
}

.lgf-brand-title {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: none;
}

/* mt-4 max-w-sm text-sm leading-7 text-neutral-400 */
.lgf-lead {
	margin-top: 1rem;
	max-width: 24rem;
	font-size: 0.875rem;
	line-height: 1.75rem;
	color: var(--legendary-n400, #a3a3a3);
}

/* mt-6 flex flex-wrap gap-3 */
.lgf-actions {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* rounded-2xl bg-white px-5 py-3 text-sm font-medium text-neutral-950 */
.lgf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--legendary-r2, 1rem);
	padding: 0.75rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.15s ease;
	border: 1px solid transparent;
}

.lgf-btn:hover {
	opacity: 0.92;
}

.lgf-btn--primary {
	background-color: #fff;
	color: var(--legendary-n950, #0a0a0a);
}

/* rounded-2xl border border-white/10 px-5 py-3 text-sm text-white */
.lgf-btn--outline {
	background-color: transparent;
	border-color: var(--legendary-white-10, rgba(255, 255, 255, 0.1));
	color: #fff;
}

/* text-xs uppercase tracking-[0.3em] text-neutral-500 */
.lgf-kicker {
	font-size: 0.75rem;
	line-height: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--legendary-n500, #737373);
}

/* mt-5 space-y-3 */
.lgf-stack {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.lgf-link {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--legendary-n300, #d4d4d4);
	text-decoration: none;
	transition: color 0.15s ease;
	cursor: pointer;
}

.lgf-link:hover {
	color: #fff;
}

.lgf-service-line {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--legendary-n300, #d4d4d4);
}

.lgf-contact-lines {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--legendary-n300, #d4d4d4);
}

.lgf-service-areas {
	margin-top: 1.5rem;
}

.lgf-pills {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lgf-pill {
	border-radius: 9999px;
	border: 1px solid var(--legendary-white-10, rgba(255, 255, 255, 0.1));
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--legendary-n300, #d4d4d4);
}

.lgf-social {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.75rem;
}

.lgf-square {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	border: 1px solid var(--legendary-white-10, rgba(255, 255, 255, 0.1));
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--legendary-n300, #d4d4d4);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.lgf-square:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.2);
}

.lgf-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.lgf-social-icon svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

/* Bottom: mt-8 border-t pt-6 flex flex-col gap-4 md:flex-row md:items-center md:justify-between */
.lgf-bottom {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-top: 1px solid var(--legendary-white-10, rgba(255, 255, 255, 0.1));
	padding-top: 1.5rem;
}

@media (min-width: 768px) {
	.lgf-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.lgf-copy {
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--legendary-n500, #737373);
}

.lgf-copy a {
	color: var(--legendary-n400, #a3a3a3);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lgf-copy a:hover {
	color: #fff;
}

.lgf-legal-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.lgf-legal {
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--legendary-n400, #a3a3a3);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.lgf-legal:hover {
	color: #fff;
}

/* Hide Kadence / parent theme footer when global Legendary footer is active */
body.legendary-global-footer #colophon,
body.legendary-global-footer .site-bottom-footer-wrap,
body.legendary-global-footer .kadence-footer,
body.legendary-global-footer footer#colophon {
	display: none !important;
}

/* In-content footers superseded by global footer */
body.legendary-global-footer .legendary-page footer.legendary-site-footer,
body.legendary-global-footer .legendary-fleet-page .lf-page-footer {
	display: none !important;
}
