/**
 * BRO Electrical — "Featured Projects" homepage section.
 * Editorial/portfolio treatment: large real project photography,
 * alternating asymmetric rows rather than a rigid card grid.
 */

.bro-featured-projects {
	background: var(--bro-white);
	padding: var(--bro-section-spacing) 0;
}

/* Intro block — visually matches "What We Do" heading pattern (duplicated
   on purpose, scoped to this section, so that section is never touched). */
.bro-featured-projects__intro {
	max-width: 46rem;
	margin: 0 0 clamp(3rem, 6vw, 5rem);
}

.bro-featured-projects__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-featured-projects__lead {
	font-size: var(--bro-text-lg);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	max-width: 62ch;
	margin: 0;
}

/* Stagger to match the "What We Do" intro reveal rhythm (same values,
   scoped to this section's own class names). */
.bro-featured-projects__heading.bro-reveal-fade {
	transition-delay: 90ms;
}

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

.bro-project-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bro-project {
	display: flex;
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	border-top: 1px solid var(--bro-border-on-light);
}

.bro-project-list > .bro-project:last-child {
	border-bottom: 1px solid var(--bro-border-on-light);
}

.bro-project:nth-child(even) {
	flex-direction: row-reverse;
}

.bro-project__media {
	flex: 0 0 58%;
	aspect-ratio: var(--bro-project-ratio, 4 / 3);
	overflow: hidden;
	background: var(--bro-offwhite);
}

.bro-project__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 900ms var(--bro-ease);
}

.bro-project__body {
	flex: 1 1 auto;
}

.bro-project__index {
	display: block;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h2);
	font-weight: 700;
	color: var(--bro-border-on-light);
	line-height: 1;
	margin: 0 0 1.25rem;
}

.bro-project__title {
	font-size: var(--bro-text-h2);
	font-weight: 700;
	line-height: 1.2;
	color: var(--bro-text-on-light);
	margin: 0 0 1rem;
}

.bro-project__text {
	font-size: var(--bro-text-base);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	max-width: 42ch;
	margin: 0 0 2rem;
}

.bro-project__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	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-on-light);
	text-decoration: none;
}

.bro-project__link .bro-icon-arrow {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	transition: transform var(--bro-transition-base);
}

.bro-project__link:focus-visible {
	color: var(--bro-orange);
}

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

@media (hover: hover) and (pointer: fine) {
	.bro-project__media img {
		transform: scale(1);
	}

	.bro-project:hover .bro-project__media img,
	.bro-project:focus-within .bro-project__media img {
		transform: scale(1.045);
	}

	.bro-project:hover .bro-project__link,
	.bro-project:focus-within .bro-project__link {
		color: var(--bro-orange);
	}

	.bro-project:hover .bro-project__link .bro-icon-arrow,
	.bro-project:focus-within .bro-project__link .bro-icon-arrow {
		transform: translateX(4px);
	}
}

@media (max-width: 900px) {
	.bro-project,
	.bro-project:nth-child(even) {
		flex-direction: column;
		align-items: stretch;
		gap: 1.75rem;
	}

	.bro-project__media {
		flex-basis: auto;
		max-height: 70vh;
	}

	.bro-project__index {
		font-size: var(--bro-text-h3);
		margin-bottom: 0.75rem;
	}

	.bro-project__title {
		font-size: var(--bro-text-h3);
	}
}
