/* ==========================================================================
   TextCRM Channels Widget
   Mirrors demo-html/home page.html → "All Channels Section"
   Palette: brand-green eyebrow + accent, tinted per-channel icon circles
   ========================================================================== */

.textcrm-channels {
	position: relative;
	width: 100%;
	padding-top: 96px;     /* py-24 */
	padding-bottom: 96px;
	background-color: #0b1326; /* matches the reference page bg; overridable via Style → Layout → Background */
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;

	/* Tunables driven by the Style tab. */
	--channel-bg-pct: 10%;
	--channel-border-pct: 20%;
	--channel-icon-size: 64px;
	--channel-icon-inner: 32px;
	--channel-hover-scale: 1.05;
	--channel-transition: 250ms;
}

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

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

/* --------------------------------------------------------------------------
   Eyebrow — "We meet your customers where they are"
   -------------------------------------------------------------------------- */
.textcrm-channels__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;                  /* gap-2 */
	margin-bottom: 16px;       /* mb-4 */
	font-size: 10px;           /* text-[10px] */
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;     /* tracking-widest */
	color: #00f5a0;
}

.textcrm-channels__eyebrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;               /* w-4 h-4 */
	height: 16px;
	flex-shrink: 0;
	color: currentColor;
}

.textcrm-channels__eyebrow-icon svg,
.textcrm-channels__eyebrow-icon i {
	width: 100%;
	height: 100%;
	font-size: 16px;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Heading — "All Channels. One Powerful Inbox."
   -------------------------------------------------------------------------- */
.textcrm-channels__title {
	margin: 0 0 64px;          /* mb-16 */
	font-size: 36px;           /* text-4xl */
	line-height: 1.1;
	font-weight: 700;          /* font-bold */
	color: #ffffff;
	letter-spacing: -0.01em;
}

.textcrm-channels__title-accent {
	color: #00f5a0;
}

/* --------------------------------------------------------------------------
   Channel grid
   grid-cols-4 mobile → md:grid-cols-8
   -------------------------------------------------------------------------- */
.textcrm-channels__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;                 /* gap-8 */
	max-width: 1024px;         /* max-w-5xl */
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Channel item
   -------------------------------------------------------------------------- */
.textcrm-channels__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;                 /* gap-3 */
	text-decoration: none;
}

.textcrm-channels__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--channel-icon-size, 64px);
	height: var(--channel-icon-size, 64px);
	border-radius: 9999px;
	border: 1px solid;
	background-color: rgba(0, 245, 160, 0.1);                       /* fallback */
	background-color: color-mix(in srgb, var(--channel-color, #00f5a0) var(--channel-bg-pct, 10%), transparent);
	border-color: rgba(0, 245, 160, 0.2);                           /* fallback */
	border-color: color-mix(in srgb, var(--channel-color, #00f5a0) var(--channel-border-pct, 20%), transparent);
	color: var(--channel-color, #00f5a0);
	transition: transform var(--channel-transition, 250ms) ease, background-color var(--channel-transition, 250ms) ease, border-color var(--channel-transition, 250ms) ease;
}

.textcrm-channels__icon svg {
	display: block;
	width: var(--channel-icon-inner, 32px);
	height: var(--channel-icon-inner, 32px);
	color: currentColor;
}

.textcrm-channels__icon i {
	font-size: var(--channel-icon-inner, 32px);
	line-height: 1;
	color: currentColor;
}

.textcrm-channels__item:hover .textcrm-channels__icon,
.textcrm-channels__item:focus-visible .textcrm-channels__icon {
	transform: scale(var(--channel-hover-scale, 1.05));
}

.textcrm-channels__label {
	font-size: 12px;           /* text-xs */
	font-weight: 500;          /* font-medium */
	color: #9ca3af;            /* text-gray-400 — matches hero subtitle */
	line-height: 1.4;
}

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

/* md — full 8-column row + larger heading */
@media (min-width: 768px) {
	.textcrm-channels__title {
		font-size: 48px;       /* md:text-5xl */
	}
	.textcrm-channels__grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

/* Phones — shrink circles, tighten padding */
@media (max-width: 480px) {
	.textcrm-channels {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	.textcrm-channels__container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.textcrm-channels__title {
		font-size: 30px;
		margin-bottom: 48px;
	}
	.textcrm-channels__grid {
		gap: 24px;
	}
	.textcrm-channels {
		--channel-icon-size: 56px;
		--channel-icon-inner: 28px;
	}
}

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