/* ==========================================================================
   TextCRM Story Widget
   "Our Story" two-column narrative + framed media for the About page.
   Palette / type / glow / hover mirrored from the TextCRM Value Props and
   Inner Hero widgets (#0f172a surface, #00f5a0 accent, white-tinted borders,
   teal media glow, Inter type).
   ========================================================================== */

.textcrm-story {
	position: relative;
	width: 100%;
	padding-top: 96px;                 /* py-24 */
	padding-bottom: 96px;
	background-color: #0f172a;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #f3f4f6;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

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

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

/* --------------------------------------------------------------------------
   Grid — single column on mobile, two columns on md+
   -------------------------------------------------------------------------- */
.textcrm-story__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;

	/* Order driven by the Style → Layout "Media Position" control. */
	--st-text-order: 1;
	--st-media-order: 2;
}

.textcrm-story__text {
	min-width: 0;
}

.textcrm-story__media {
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Eyebrow
   -------------------------------------------------------------------------- */
.textcrm-story__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #00f5a0;
}

.textcrm-story__eyebrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: currentColor;
}

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

/* --------------------------------------------------------------------------
   Heading + body
   -------------------------------------------------------------------------- */
.textcrm-story__title {
	margin: 0 0 24px;
	font-size: 36px;                   /* text-4xl */
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.02em;
}

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

.textcrm-story__body {
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 1.7;
	color: #9ca3af;
}

.textcrm-story__body p {
	margin: 0 0 16px;
}

.textcrm-story__body p:last-child {
	margin-bottom: 0;
}

.textcrm-story__body a {
	color: #00f5a0;
	text-decoration: none;
}

.textcrm-story__body a:hover {
	text-decoration: underline;
}

.textcrm-story__body strong {
	color: #ffffff;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Stat strip
   -------------------------------------------------------------------------- */
.textcrm-story__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-bottom: 32px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.textcrm-story__stat {
	min-width: 0;
}

.textcrm-story__stat-value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.textcrm-story__stat-label {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Button — primary brand pill (mirrors Inner Hero primary button)
   -------------------------------------------------------------------------- */
.textcrm-story__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	border-radius: 12px;
	background-color: #00f5a0;
	color: #000000;
	font-size: 16px;
	font-weight: 700;
	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;
}

.textcrm-story__btn:hover,
.textcrm-story__btn:focus-visible {
	box-shadow: 0 0 20px rgba(0, 245, 160, 0.4);
	transform: translateY(-1px);
	outline: none;
}

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

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

/* --------------------------------------------------------------------------
   Media — framed image with teal glow + floating stat card
   -------------------------------------------------------------------------- */
.textcrm-story__media {
	position: relative;
}

.textcrm-story__media-glow {
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	height: 80%;
	background-color: rgba(0, 245, 160, 0.18);
	filter: blur(110px);
	border-radius: 9999px;
	pointer-events: none;
}

.textcrm-story__media-frame {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background-color: rgba(255, 255, 255, 0.03);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.textcrm-story__media-img {
	display: block;
	width: 100%;
	height: auto;
}

.textcrm-story__float {
	position: absolute;
	z-index: 2;
	right: 20px;
	bottom: 20px;
	padding: 16px 20px;
	border-radius: 16px;
	background-color: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(0, 245, 160, 0.3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}

.textcrm-story__float-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: #00f5a0;
}

.textcrm-story__float-label {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #e5e7eb;
}

/* --------------------------------------------------------------------------
   Responsive — two columns + larger heading from md+
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.textcrm-story__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 64px;
	}

	.textcrm-story__title {
		font-size: 44px;
		line-height: 1.1;
	}

	.textcrm-story__text {
		order: var(--st-text-order, 1);
	}

	.textcrm-story__media {
		order: var(--st-media-order, 2);
	}
}

@media (min-width: 1024px) {
	.textcrm-story__title {
		font-size: 48px;
	}
}

/* Phones — tighten padding + type */
@media (max-width: 480px) {
	.textcrm-story {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.textcrm-story__container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.textcrm-story__title {
		font-size: 28px;
	}

	.textcrm-story__stats {
		gap: 20px;
	}

	.textcrm-story__stat-value {
		font-size: 24px;
	}

	.textcrm-story__btn {
		width: 100%;
	}

	.textcrm-story__float {
		right: 12px;
		bottom: 12px;
		padding: 12px 16px;
	}

	.textcrm-story__float-value {
		font-size: 20px;
	}
}

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