/* ==========================================================================
   TextCRM Solutions Hero Widget
   Layout / type from demo-html/solution.html (display-xl, headline-lg,
   body-lg, label-sm, sparkle pill, .glow-primary hover shadow)
   Palette locked to brand tokens used by TextCRM Hero (green #00f5a0 on
   surface #0b1326, white-tinted surfaces, white-tinted borders).
   ========================================================================== */

.textcrm-solutions-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding-top: 128px;   /* pt-32 */
	padding-bottom: 96px; /* pb-24 */
	background-color: #0b1326; /* bg-background */
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;

	/* Alignment driven by the Style → Layout control (defaults = centered). */
	--sh-text-align: center;
	--sh-justify: center;
	--sh-mx-left: auto;
	--sh-mx-right: auto;
}

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

/* --------------------------------------------------------------------------
   Background glow (radial-style centered halo)
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero__glow {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 400px;
	background-color: rgba(0, 245, 160, 0.1);
	filter: blur(120px);
	border-radius: 9999px;
	opacity: 0.2;
	pointer-events: none;
}

.textcrm-solutions-hero__glow.is-animated {
	animation: textcrm-solutions-hero-pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes textcrm-solutions-hero-pulse {
	0%, 100% { opacity: 0.1; }
	50%      { opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   Content container
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1440px;          /* max-w-max-width */
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;          /* px-gutter */
	padding-right: 24px;
	text-align: var(--sh-text-align, center);
}

/* --------------------------------------------------------------------------
   Pill badge (solution.html: rounded-full border bg + sparkle icon + label-sm)
   Brand colors override solution.html's secondary tint so it matches the
   TextCRM Hero badge styling.
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;                    /* gap-2 */
	padding: 4px 16px;           /* py-1 px-4 */
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 12px;             /* label-sm */
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #00f5a0;
	margin-bottom: 24px;         /* mb-6 */
}

.textcrm-solutions-hero__badge-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.textcrm-solutions-hero__badge-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.textcrm-solutions-hero__badge-text {
	display: inline-flex;
	align-items: center;
}

/* --------------------------------------------------------------------------
   Title — solution.html uses headline-lg on mobile, display-xl on md+
   ( 48 / 1.2 / -0.03em / 700 → 72 / 1.1 / -0.04em / 700 )
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero__title {
	margin: 0 0 24px;            /* mb-6 */
	max-width: 896px;            /* max-w-4xl */
	margin-left: var(--sh-mx-left, auto);
	margin-right: var(--sh-mx-right, auto);
	font-size: 48px;             /* headline-lg */
	line-height: 1.2;
	letter-spacing: -0.03em;
	font-weight: 700;
	color: #ffffff;              /* override of on-surface → brand white */
}

.textcrm-solutions-hero__title-accent {
	color: #00f5a0;              /* brand green (was text-secondary) */
}

/* --------------------------------------------------------------------------
   Subtitle — body-lg ( 18 / 1.6 / 0.01em / 400 )
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero__subtitle {
	max-width: 672px;            /* max-w-2xl */
	margin: 0 var(--sh-mx-right, auto) 40px var(--sh-mx-left, auto); /* mb-10 */
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: 0.01em;
	font-weight: 400;
	color: #9ca3af;              /* brand on-surface-variant override */
}

/* --------------------------------------------------------------------------
   Action buttons
   solution.html: flex-col on mobile, sm:flex-row at >=640px, gap-4.
   Primary: bg-secondary text-on-secondary px-8 py-4 rounded-xl + .glow-primary
   Secondary: bg-surface-container-high text-on-surface px-8 py-4 rounded-xl
              with border-white/5 (here overridden to brand white-tint).
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: var(--sh-justify, center);
	gap: 16px;                   /* gap-4 */
}

.textcrm-solutions-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 32px;          /* px-8 py-4 */
	border-radius: 12px;         /* rounded-xl */
	font-size: 16px;             /* body-md */
	font-weight: 700;            /* font-bold */
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.textcrm-solutions-hero__btn-label {
	display: inline-flex;
	align-items: center;
}

.textcrm-solutions-hero__btn-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.textcrm-solutions-hero__btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Primary — brand green ( replaces secondary palette from solution.html ) */
.textcrm-solutions-hero__btn--primary {
	background-color: #00f5a0;
	color: #000000;
	box-shadow: 0 0 0 rgba(0, 245, 160, 0);
}

.textcrm-solutions-hero__btn--primary:hover,
.textcrm-solutions-hero__btn--primary:focus-visible {
	box-shadow: 0 0 20px rgba(0, 245, 160, 0.4);
	outline: none;
}

/* Secondary — white-tinted surface card to stay on-brand with TextCRM Hero */
.textcrm-solutions-hero__btn--secondary {
	background-color: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.textcrm-solutions-hero__btn--secondary:hover,
.textcrm-solutions-hero__btn--secondary:focus-visible {
	background-color: rgba(255, 255, 255, 0.1);
	outline: none;
}

/* --------------------------------------------------------------------------
   Optional entrance animation (JS-free — CSS keyframes triggered after a tick)
   We start hidden and reveal via a sibling animation when the section is in
   the document. Final state matches the resting design.
   -------------------------------------------------------------------------- */
.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate {
	opacity: 0;
	transform: translateY(20px);
	animation: textcrm-solutions-hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate:nth-child(1) { animation-delay: 0.05s; }
.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate:nth-child(2) { animation-delay: 0.15s; }
.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate:nth-child(3) { animation-delay: 0.25s; }
.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate:nth-child(4) { animation-delay: 0.35s; }
.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate:nth-child(5) { animation-delay: 0.45s; }

@keyframes textcrm-solutions-hero-fade-up {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

/* sm — buttons sit side by side and shrink to content width */
@media (min-width: 640px) {
	.textcrm-solutions-hero__actions {
		flex-direction: row;
	}
	.textcrm-solutions-hero__btn {
		width: auto;
	}
}

/* md — title scales up to display-xl ( 72 / 1.1 / -0.04em / 700 ) */
@media (min-width: 768px) {
	.textcrm-solutions-hero__title {
		font-size: 72px;
		line-height: 1.1;
		letter-spacing: -0.04em;
	}
}

/* Small phones — slightly tighter padding + headline */
@media (max-width: 480px) {
	.textcrm-solutions-hero {
		padding-top: 112px;
		padding-bottom: 72px;
	}
	.textcrm-solutions-hero__title {
		font-size: 36px;
		letter-spacing: -0.02em;
	}
	.textcrm-solutions-hero__subtitle {
		font-size: 16px;
	}
	.textcrm-solutions-hero__container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.textcrm-solutions-hero__btn {
		font-size: 15px;
		padding: 14px 24px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.textcrm-solutions-hero *,
	.textcrm-solutions-hero *::before,
	.textcrm-solutions-hero *::after {
		animation: none !important;
		transition: none !important;
	}
	.textcrm-solutions-hero--reveal .textcrm-solutions-hero__animate {
		opacity: 1;
		transform: none;
	}
}
