/* ==========================================================================
   TextCRM Trusted Businesses Widget
   Mirrors demo-html/home page.html → "Trusted By" section
   Palette: deeper bg #060e20 · white/5 hairlines · grayscale + invert logos
   ========================================================================== */

.textcrm-trusted {
	position: relative;
	width: 100%;
	padding-top: 80px;     /* py-20 */
	padding-bottom: 80px;
	background-color: #060e20;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-bottom: 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;

	/* Tunables exposed by the Style → Logos controls. */
	--trusted-opacity: 0.5;
	--trusted-opacity-hover: 1;
	--trusted-grayscale: 1;
	--trusted-grayscale-hover: 0;
	--trusted-invert: 1;
	--trusted-invert-hover: 0;     /* default: drop the invert on hover so original colours show through */
	--trusted-duration: 500ms;
}

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

.textcrm-trusted__container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Heading
   "Trusted by 5,000+ businesses worldwide"
   Default color = hero subtitle gray (#9ca3af) per the project override.
   -------------------------------------------------------------------------- */
.textcrm-trusted__heading {
	margin: 0 0 40px;          /* mb-10 */
	text-align: center;
	font-size: 12px;           /* text-xs */
	font-weight: 700;          /* font-bold */
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.1em;     /* tracking-widest */
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Logos row — opacity + grayscale now live on each logo so the de-saturate
   effect responds to hovering an individual image, not the whole row.
   -------------------------------------------------------------------------- */
.textcrm-trusted__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 32px;                 /* gap-8 (mobile) */
}

.textcrm-trusted__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	opacity: var(--trusted-opacity, 0.5);
	transition: opacity var(--trusted-duration, 500ms) ease;
}

.textcrm-trusted__logo:hover,
.textcrm-trusted__logo:focus-visible {
	opacity: var(--trusted-opacity-hover, 1);
}

.textcrm-trusted__logo-img {
	display: block;
	height: 40px;              /* default — slightly larger than the reference h-8 */
	width: auto;
	max-width: 100%;
	filter:
		invert(var(--trusted-invert, 1))
		grayscale(var(--trusted-grayscale, 1));
	transition: filter var(--trusted-duration, 500ms) ease;
}

.textcrm-trusted__logo:hover .textcrm-trusted__logo-img,
.textcrm-trusted__logo:focus-visible .textcrm-trusted__logo-img {
	filter:
		invert(var(--trusted-invert-hover, 0))
		grayscale(var(--trusted-grayscale-hover, 0));
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.textcrm-trusted__logos {
		gap: 80px;             /* md:gap-20 */
	}
}

@media (max-width: 480px) {
	.textcrm-trusted {
		padding-top: 56px;
		padding-bottom: 56px;
	}
	.textcrm-trusted__container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.textcrm-trusted__heading {
		margin-bottom: 28px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.textcrm-trusted__logo,
	.textcrm-trusted__logo-img {
		transition: none;
	}
}
