/**
 * Home trust / credibility stat stripe (Story US-003).
 *
 * A contrasting warm gradient band (orange → yellow) that breaks up the dark
 * navy/graphite sections around it. Carries a short heading and a responsive
 * row of headline statistics with large bold numbers on dark ink so they stay
 * legible against the bright stripe.
 *
 * Reuses the theme's design tokens from style.css / responsive.css. Static
 * section — no JavaScript. Respects prefers-reduced-motion.
 *
 * @package my-theme
 */

.trust-stats {
	position: relative;
	padding-block: var(--space-section, clamp(3rem, 6vw, 5.5rem));
	/* Warm orange → yellow gradient stripe, the contrasting band the story asks
	   for between the dark services grid and the dark testimonials section. */
	background-image: linear-gradient(
		135deg,
		var(--color-orange, #e87a2f) 0%,
		var(--color-orange, #e87a2f) 35%,
		var(--color-yellow, #f5a623) 100%
	);
	color: var(--color-navy-deep, #141824);
	overflow: hidden;
	isolation: isolate;
}

/* Subtle diagonal texture so the bright band reads as "shop floor", not flat. */
.trust-stats::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.05) 0,
		rgba(0, 0, 0, 0.05) 2px,
		transparent 2px,
		transparent 26px
	);
	opacity: 0.55;
}

.trust-stats__inner {
	position: relative;
	z-index: 1;
}

/* --- Heading ---------------------------------------------------------- */

.trust-stats__head {
	max-width: 46rem;
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.trust-stats__title {
	margin: 0;
	color: var(--color-navy-deep, #141824);
	font-family: var(--font-heading, "Montserrat", sans-serif);
	font-size: var(--text-3xl, clamp(2rem, 1.6rem + 1.8vw, 2.5rem));
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: var(--letter-tight, -0.01em);
	text-transform: uppercase;
}

.trust-stats__intro {
	margin: 0.75rem 0 0;
	color: rgba(20, 24, 36, 0.82);
	font-size: var(--text-lg, 1.125rem);
	font-weight: 600;
}

/* --- Stat grid -------------------------------------------------------- */

.trust-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.trust-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-align: center;
	padding: clamp(1rem, 2.5vw, 1.75rem) 0.5rem;
	/* Hairline dividers between figures, drawn on the darkened band. */
	border-inline-start: 1px solid rgba(20, 24, 36, 0.14);
}

.trust-stats__item:first-child {
	border-inline-start: 0;
}

.trust-stats__value {
	display: block;
	font-family: var(--font-heading, "Montserrat", sans-serif);
	font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: var(--letter-tight, -0.01em);
	color: var(--color-navy-deep, #141824);
	/* Slight lift so the big numerals pop off the bright band. */
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.trust-stats__label {
	display: block;
	max-width: 12rem;
	font-family: var(--font-heading, "Montserrat", sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--letter-wide, 0.08em);
	text-transform: uppercase;
	color: rgba(20, 24, 36, 0.86);
}

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

@media (max-width: 860px) {
	.trust-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(1rem, 4vw, 1.75rem);
	}

	/* Reset the vertical dividers into a clean 2-column layout. */
	.trust-stats__item {
		border-inline-start: 0;
	}

	.trust-stats__item:nth-child(even) {
		border-inline-start: 1px solid rgba(20, 24, 36, 0.14);
	}
}

@media (max-width: 460px) {
	.trust-stats__grid {
		grid-template-columns: 1fr;
	}

	.trust-stats__item,
	.trust-stats__item:nth-child(even) {
		border-inline-start: 0;
		border-top: 1px solid rgba(20, 24, 36, 0.14);
		padding-block: 1.25rem;
	}

	.trust-stats__item:first-child {
		border-top: 0;
	}
}
