:root {
	--bloom-footer-bg: #1A4B52;
	--bloom-footer-deep: #133A40;
	--bloom-footer-legal: #0F3238;
	--bloom-footer-accent: #4ECDC4;
	--bloom-footer-text: rgba(255, 255, 255, 0.9);
	--bloom-footer-muted: rgba(255, 255, 255, 0.7);
}

.bloomlab-footer {
	width: 100%;
	background: var(--bloom-footer-bg) !important;
	color: #FFFFFF;
	font-family: var(--bloom-font-family, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif);
	margin-top: 0;
	position: relative;
	z-index: 100;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
	display: block;
}

.bloomlab-footer,
.bloomlab-footer *,
.bloomlab-footer *::before,
.bloomlab-footer *::after {
	box-sizing: border-box;
	font-family: var(--bloom-font-family, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif) !important;
	font-style: normal !important;
}

.footer-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px var(--bloom-side-padding, clamp(16px, 5vw, 60px)) 28px;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
	gap: 24px 48px;
	margin-bottom: 0;
}

.footer-column {
	display: flex;
	flex-direction: column;
}

.footer-column-title {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-links li {
	margin: 0;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	transition: color 0.3s ease, padding-left 0.3s ease;
	display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: var(--bloom-footer-accent);
	padding-left: 4px;
	outline: none;
}

.footer-logo-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	width: fit-content;
}

.footer-logo:focus-visible {
	outline: 2px solid var(--bloom-footer-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.footer-logo-img,
.bloomlab-footer .footer-logo .footer-logo-img,
.bloomlab-footer .footer-logo-column .footer-logo img {
	height: 32px !important;
	width: auto !important;
	max-width: 160px !important;
	max-height: 32px !important;
	display: block;
	object-fit: contain;
}

.footer-tagline {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8125rem;
	line-height: 1.4;
	margin: 0;
	max-width: 240px;
}

.footer-legal {
	background: var(--bloom-footer-legal);
	padding: 16px var(--bloom-side-padding, clamp(16px, 5vw, 60px));
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-copyright {
	color: var(--bloom-footer-muted);
	font-size: 0.8125rem;
	margin: 0;
}

.footer-legal-links {
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.footer-legal-links li {
	margin: 0;
}

.footer-legal-links a {
	color: var(--bloom-footer-muted);
	text-decoration: none;
	font-size: 0.8125rem;
	transition: color 0.3s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
	color: var(--bloom-footer-accent);
	outline: none;
}

@media (max-width: 1024px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 32px;
	}
}

@media (max-width: 768px) {
	.footer-main {
		padding: 24px var(--bloom-side-padding, 16px) 20px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.footer-column-title {
		margin-bottom: 8px;
	}

	.footer-column:not(.footer-logo-column) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding-bottom: 12px;
	}

	.footer-column:not(.footer-logo-column) .footer-column-title {
		cursor: pointer;
		position: relative;
		padding-right: 24px;
		user-select: none;
	}

	.footer-column:not(.footer-logo-column) .footer-column-title::after {
		content: '+';
		position: absolute;
		right: 0;
		font-size: 1.25rem;
		font-weight: 300;
		transition: transform 0.3s ease;
	}

	.footer-column:not(.footer-logo-column)[data-expanded="true"] .footer-column-title::after {
		content: '-';
	}

	.footer-column:not(.footer-logo-column) .footer-links {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease, margin-top 0.3s ease;
		margin-top: 0;
	}

	.footer-column:not(.footer-logo-column)[data-expanded="true"] .footer-links {
		max-height: 500px;
		margin-top: 8px;
	}

	.footer-legal-content {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.footer-legal-links {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.footer-main {
		padding: 20px var(--bloom-side-padding, 16px) 18px;
	}

	.footer-grid {
		gap: 12px;
	}

	.footer-legal {
		padding: 12px 16px;
	}
}

@media (min-width: 769px) {
	.footer-column:not(.footer-logo-column) .footer-links {
		max-height: none !important;
		margin-top: 0 !important;
	}

	.footer-column:not(.footer-logo-column) .footer-column-title {
		cursor: default;
		padding-right: 0;
	}

	.footer-column:not(.footer-logo-column) .footer-column-title::after {
		display: none;
	}

	.footer-column:not(.footer-logo-column) {
		border-bottom: none;
	}
}
