/**
 * BRO Electrical — homepage "Customer Reviews" teaser section.
 * A trimmed 3-review teaser for the full Testimonials page — one
 * dominant featured review + two smaller supporting reviews, editorial
 * treatment (hairline dividers, quotation marks, typography), no
 * boxed/identical cards.
 */

.bro-reviews {
	background: var(--bro-offwhite);
	padding: var(--bro-section-spacing) 0;
}

.bro-reviews .bro-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bro-reviews__intro {
	max-width: 46rem;
	margin: 0 0 clamp(3rem, 6vw, 5rem);
}

.bro-reviews__heading {
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--bro-text-on-light);
	margin: 0 0 1.5rem;
}

.bro-reviews__lead {
	font-size: var(--bro-text-lg);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	max-width: 58ch;
	margin: 0;
}

.bro-reviews__heading.bro-reveal-fade {
	transition-delay: 90ms;
}

.bro-reviews__lead.bro-reveal-fade {
	transition-delay: 180ms;
}

/* ---- Grid: dominant featured review + two smaller supporting ---- */

.bro-reviews__grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: flex-start;
}

.bro-reviews__featured-col {
	flex: 1 1 460px;
}

.bro-reviews__support-col {
	flex: 1 1 340px;
	max-width: 30rem;
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 4vw, 2.75rem);
}

/* ---- Shared review parts ---- */

.bro-review-home__stars {
	display: inline-block;
	color: var(--bro-orange);
	letter-spacing: 0.15em;
	font-size: var(--bro-text-sm);
	margin: 0 0 0.75rem;
}

.bro-review-home__source {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-xs);
	font-weight: 700;
	letter-spacing: var(--bro-tracking-label);
	text-transform: uppercase;
	color: var(--bro-text-muted-on-light);
	margin: 0 0 0.5em;
}

.bro-review-home__attribution {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75em;
	margin-top: 1.25rem;
}

.bro-review-home__attribution.bro-reveal-fade {
	transition-delay: 150ms;
}

.bro-review-home__name {
	font-family: var(--bro-font-display);
	font-weight: 700;
	color: var(--bro-text-on-light);
}

.bro-review-home__descriptor {
	font-size: var(--bro-text-sm);
	color: var(--bro-text-muted-on-light);
}

/* Text reveal — noticeably stronger than the generic site default
   (18px / 700ms) so the review copy itself is clearly seen rising and
   fading in, not just the decorative quotation mark. Scoped to this
   section only. */
.bro-js .bro-reviews .bro-review-home__quote-block,
.bro-js .bro-reviews .bro-review-home__attribution {
	transform: translateY(26px);
	transition-duration: 650ms;
}

@media (prefers-reduced-motion: reduce) {
	.bro-reviews .bro-reveal-fade {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ---- Featured review (dominant, large pull-quote) ---- */

.bro-review-home--featured {
	position: relative;
	transition: transform var(--bro-transition-base);
}

.bro-review-home--featured::before {
	content: '\201C';
	display: block;
	font-family: var(--bro-font-display);
	font-size: clamp(3.5rem, 7vw, 6rem);
	line-height: 1;
	color: var(--bro-orange);
	opacity: 0.35;
	margin: 0 0 -0.4rem;
	transition: opacity var(--bro-transition-base);
}

.bro-review-home--featured .bro-review-home__quote p {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h3);
	font-weight: 500;
	line-height: 1.45;
	color: var(--bro-text-on-light);
	margin: 0;
}

@supports selector(:has(*)) {
	.bro-js .bro-review-home--featured::before {
		opacity: 0;
		transform: translateY(8px) scale(0.92);
		transition: opacity 550ms var(--bro-ease), transform 550ms var(--bro-ease);
	}

	.bro-js .bro-review-home--featured:has(.bro-review-home__quote-block.is-visible)::before {
		opacity: 0.35;
		transform: translateY(0) scale(1);
	}

	@media (hover: hover) and (pointer: fine) {
		.bro-js .bro-review-home--featured:has(.bro-review-home__quote-block.is-visible):hover::before {
			opacity: 0.55;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.bro-review-home--featured::before {
		opacity: 0.35 !important;
		transform: none !important;
		transition: none !important;
	}
}

@media (hover: hover) and (pointer: fine) {
	.bro-review-home--featured:hover,
	.bro-review-home--featured.is-visible:hover {
		transform: translateY(-2px);
	}

	.bro-review-home--featured:hover .bro-review-home__descriptor {
		color: var(--bro-orange);
	}
}

/* ---- Supporting reviews (compact) ---- */

.bro-review-home--support::before {
	content: '';
	display: block;
	height: 1px;
	background: var(--bro-border-on-light);
	margin: 0 0 1.5rem;
	transition: transform var(--bro-transition-base);
}

.bro-review-home--support .bro-review-home__quote p {
	font-size: var(--bro-text-base);
	line-height: 1.65;
	color: var(--bro-text-muted-on-light);
	margin: 0;
}

.bro-review-home--support .bro-review-home__name {
	font-size: var(--bro-text-sm);
}

.bro-review-home--support .bro-review-home__descriptor {
	font-size: var(--bro-text-xs);
}

@supports selector(:has(*)) {
	.bro-js .bro-review-home--support::before {
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 550ms var(--bro-ease);
	}

	.bro-js .bro-review-home--support:has(.bro-review-home__quote-block.is-visible)::before {
		transform: scaleX(1);
	}

	.bro-reviews__support-col > .bro-review-home--support:nth-child(2)::before {
		transition-delay: 150ms;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bro-review-home--support::before {
		transform: none !important;
		transition: none !important;
	}
}

@media (hover: hover) and (pointer: fine) {
	.bro-review-home--support:hover::before {
		background: var(--bro-orange);
	}
}

.bro-reviews__support-col > .bro-review-home--support:nth-child(2) .bro-review-home__quote-block.bro-reveal-fade {
	transition-delay: 150ms;
}

.bro-reviews__support-col > .bro-review-home--support:nth-child(2) .bro-review-home__attribution.bro-reveal-fade {
	transition-delay: 300ms;
}

/* ---- CTA ---- */

.bro-reviews__cta {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	text-align: center;
}

.bro-reviews__cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 700;
	letter-spacing: var(--bro-tracking-label);
	text-transform: uppercase;
	color: var(--bro-text-on-light);
	text-decoration: none;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--bro-border-on-light);
}

.bro-reviews__cta-link .bro-icon-arrow {
	width: 14px;
	height: 14px;
	transition: transform var(--bro-transition-base);
}

.bro-reviews__cta-link:focus-visible {
	color: var(--bro-orange);
	border-color: var(--bro-orange);
}

.bro-reviews__cta-link:focus-visible .bro-icon-arrow {
	transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
	.bro-reviews__cta-link:hover {
		color: var(--bro-orange);
		border-color: var(--bro-orange);
	}

	.bro-reviews__cta-link:hover .bro-icon-arrow {
		transform: translateX(4px);
	}
}

@media (max-width: 900px) {
	.bro-reviews__support-col {
		max-width: none;
	}
}
