/* ==========================================================================
   TextCRM Footer Widget
   ========================================================================== */

.textcrm-footer {
	position: relative;
	width: 100%;
	background-color: #0b1326;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

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

/* Centered, constrained content (full-width background) */
.textcrm-footer__inner {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 80px 24px 40px;
}

/* Column grid: brand spans 2, four link columns flow after it.
   With four columns the last one wraps under the brand — matching the
   reference layout. */
.textcrm-footer__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 48px;
	margin-bottom: 80px;
}

.textcrm-footer__brand {
	grid-column: span 2;
	min-width: 0;
}

/* Logo */
.textcrm-footer__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	margin-bottom: 24px;
}

.textcrm-footer__logo-img {
	display: block;
	height: 32px;
	width: auto;
	max-width: 100%;
	transition: opacity 0.2s ease;
}

.textcrm-footer__logo-img.is-inverted {
	filter: brightness(0) invert(1);
}

.textcrm-footer__logo:hover .textcrm-footer__logo-img {
	opacity: 0.85;
}

/* Description */
.textcrm-footer__desc {
	margin: 0 0 32px;
	max-width: 320px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.625;
	color: #9ca3af;
}

/* Social icons */
.textcrm-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.textcrm-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	color: #9ca3af;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.textcrm-footer__social a:hover,
.textcrm-footer__social a:focus-visible {
	background-color: rgba(0, 245, 160, 0.2);
	color: #00f5a0;
	outline: none;
}

.textcrm-footer__social a svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.textcrm-footer__social a i {
	font-size: 20px;
	line-height: 1;
}

/* Link columns */
.textcrm-footer__col {
	min-width: 0;
}

.textcrm-footer__col-title {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.textcrm-footer__col-links {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.textcrm-footer__col-links a {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
}

.textcrm-footer__col-links a:hover,
.textcrm-footer__col-links a:focus-visible {
	color: #00f5a0;
	outline: none;
}

/* Bottom bar — colours match the brand description + link columns above
   so the copyright line and legal links stay legible on the dark footer. */
.textcrm-footer__bottom {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 12px;
	font-weight: 500;
	color: #9ca3af;
}

.textcrm-footer__copy {
	margin: 0;
}

.textcrm-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.textcrm-footer__legal a {
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
}

.textcrm-footer__legal a:hover,
.textcrm-footer__legal a:focus-visible {
	color: #00f5a0;
	outline: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet: brand on its own full-width row, link columns in 3 then wrap */
@media (max-width: 1023.98px) {
	.textcrm-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
	.textcrm-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767.98px) {
	.textcrm-footer__inner {
		padding: 56px 20px 32px;
	}
	.textcrm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
		margin-bottom: 48px;
	}
	.textcrm-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		text-align: left;
	}
}

@media (max-width: 479.98px) {
	.textcrm-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.textcrm-footer *,
	.textcrm-footer *::before,
	.textcrm-footer *::after {
		transition: none !important;
		animation: none !important;
	}
}
