/* ==========================================================================
   Reviews Trust Bar (neilkelly/reviews-trust-bar)
   Figma: 17 — Homeowner Stories / Zone2 TrustProofBar (5457:66)
   Token-driven, plain CSS. Dark proof bar: even row of value/label stats +
   a GuildQuality pill. Stacks under reviews-hero on the same dark field.
   Wrapper: .wp-block-neilkelly-reviews-trust-bar.nk-reviews-trust-bar
   ========================================================================== */
.wp-block-neilkelly-reviews-trust-bar.nk-reviews-trust-bar {
	background: var(--wp--preset--color--surface-dark);
	font-family: var(--wp--preset--font-family--inter);
	padding-block: var(--wp--custom--components--reviews--trust-pad-block);
	box-sizing: border-box;
}

.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	width: 100%;
	max-width: var(--wp--custom--layout--max-width);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--gutter);
	box-sizing: border-box;
}

.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__stats {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	text-align: center;
}

/* Line heights match the Figma text boxes exactly: 36px value in a 44px box
   (1.222), 20px markets value at 1.2, 12px label in 15px (1.25). Together they
   put the bar at its designed 167px. */
.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__value {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--extrabold);
	line-height: var(--wp--custom--line-height--xl);
	color: var(--wp--preset--color--brand-white);
}

/* A ★ authored inside a value (the rating row) renders in the utility yellow —
   same treatment as .nk-stats-bar__star. The rest of the value keeps the white
   __value colour above. */
.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__star { color: var(--wp--preset--color--utility-yellow); }

.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__value--markets {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--lg-tight);
	max-width: var(--wp--custom--components--reviews--trust-markets-width);
}

.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__label {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--snug);
	letter-spacing: var(--wp--custom--components--reviews--stat-label-tracking);
	text-transform: uppercase;
	color: var(--wp--preset--color--neutral-350);
}

.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--5);
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--brand-white);
	font-size: var(--wp--preset--font-size--sm-md);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--xl);
	color: var(--wp--preset--color--ink-primary);
	white-space: nowrap;
}

/* Linked variant (a Badge link is set on the page). Only the anchor is interactive; the
   plain <span> fallback stays static. White pill on the dark bar, so it settles to
   neutral-100 on hover — the same one-step-toward-grey move CLAUDE.md defines for white
   buttons — and the focus ring is white so it reads against the dark field around the
   pill, not against the pill itself. */
a.nk-reviews-trust-bar__badge {
	text-decoration: none;
	transition: background-color 200ms ease;
}

a.nk-reviews-trust-bar__badge:hover {
	background: var(--wp--preset--color--neutral-100);
}

a.nk-reviews-trust-bar__badge:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-white);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	a.nk-reviews-trust-bar__badge { transition: none; }
}

@media (max-width: 1023px) {
	.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__inner,
	.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__stats {
		gap: var(--wp--preset--spacing--6);
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__inner {
		padding-inline: var(--wp--preset--spacing--6);
	}
	.wp-block-neilkelly-reviews-trust-bar .nk-reviews-trust-bar__value {
		font-size: var(--wp--preset--font-size--xl-md);
	}
}

/* No block-gap seam between full-bleed sections. */
.wp-block-neilkelly-reviews-trust-bar { margin-block: 0; }
