/**
 * BRO Electrical — "Builders & Developers" homepage section.
 * Dark charcoal, more commercial/contractor-focused in tone than the
 * residential sections above, but built from the same design tokens
 * and hairline-divider language (no boxed cards, no stock imagery).
 */

.bro-builders {
	position: relative;
	overflow: hidden;
	background: var(--bro-charcoal);
	padding: var(--bro-section-spacing) 0;
}

/* Extremely subtle static architectural line detail — decorative only. */
.bro-builders::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		90deg,
		rgba(245, 242, 236, 0.05) 0,
		rgba(245, 242, 236, 0.05) 1px,
		transparent 1px,
		transparent clamp(64px, 8vw, 120px)
	);
}

/* Explicit stacking order so the new electrical-plan background layer
   (added below) can never sit above the approved content. */
.bro-builders__inner {
	position: relative;
	z-index: 1;
}

/*
 * Subtle background electrical plan — a real BRO project drawing,
 * recoloured to off-white linework with the original white background
 * made fully transparent (pre-processed into the PNG itself; nothing
 * here regenerates or redraws the artwork). Purely decorative, static,
 * sits behind .bro-builders__inner, centred so drawing detail reads on
 * both sides of the closing statement, intentionally oversized/cropped
 * (viewport-relative sizing) rather than shown as a full rectangle.
 */
.bro-builders::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url('../images/backgrounds/electrical-plan.png');
	background-repeat: no-repeat;
	background-position: 50% calc(100% + 60px);
	background-size: 140vw auto;
	opacity: 0.09;
}

@media (max-width: 1023px) {
	.bro-builders::after {
		background-position: 50% calc(100% + 40px);
		background-size: 170vw auto;
	}
}

@media (max-width: 599px) {
	.bro-builders::after {
		background-position: 50% -20px;
		background-size: 220vw auto;
	}
}

.bro-builders__intro {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: flex-start;
	margin: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.bro-builders__intro-heading {
	flex: 1 1 320px;
}

.bro-builders__heading {
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: var(--bro-white);
	margin: 0;
}

.bro-builders__intro-copy {
	flex: 1 1 360px;
	max-width: 46rem;
}

.bro-builders__intro-copy p {
	font-size: var(--bro-text-base);
	line-height: 1.65;
	color: var(--bro-text-muted-on-dark);
	max-width: 58ch;
	margin: 0 0 1.25rem;
}

.bro-builders__intro-copy p:last-child {
	margin-bottom: 0;
}

.bro-builders__intro-copy p:nth-child(1).bro-reveal-fade {
	transition-delay: 0ms;
}

.bro-builders__intro-copy p:nth-child(2).bro-reveal-fade {
	transition-delay: 100ms;
}

.bro-builders__intro-copy p:nth-child(3).bro-reveal-fade {
	transition-delay: 200ms;
}

.bro-builders__intro-copy p:nth-child(4).bro-reveal-fade {
	transition-delay: 300ms;
}

/* Four strengths — hairline grid, not boxed cards. */
.bro-strengths {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bro-border-on-dark);
}

.bro-strength {
	padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--bro-border-on-dark);
	border-right: 1px solid var(--bro-border-on-dark);
}

.bro-strengths > .bro-strength:nth-child(2n) {
	border-right: none;
}

.bro-strength__index {
	display: block;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--bro-orange);
	margin: 0 0 1rem;
}

.bro-strength__title {
	font-size: var(--bro-text-lg);
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--bro-white);
	margin: 0 0 0.75rem;
}

.bro-strength__text {
	font-size: var(--bro-text-sm);
	line-height: 1.6;
	color: var(--bro-text-muted-on-dark);
	max-width: 38ch;
	margin: 0;
}

.bro-strengths > .bro-strength:nth-child(1).bro-reveal-fade {
	transition-delay: 0ms;
}

.bro-strengths > .bro-strength:nth-child(2).bro-reveal-fade {
	transition-delay: 120ms;
}

.bro-strengths > .bro-strength:nth-child(3).bro-reveal-fade {
	transition-delay: 240ms;
}

.bro-strengths > .bro-strength:nth-child(4).bro-reveal-fade {
	transition-delay: 360ms;
}

/* Closing statement + CTA */
.bro-builders__closing {
	margin-top: clamp(3.5rem, 7vw, 6rem);
	text-align: center;
}

.bro-builders__rule {
	height: 1px;
	max-width: 220px;
	margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
	background: var(--bro-border-on-dark);
}

.bro-builders__statement {
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: var(--bro-white);
	margin: 0 0 2rem;
}

.bro-builders__prompt {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 600;
	letter-spacing: var(--bro-tracking-label);
	text-transform: uppercase;
	color: var(--bro-text-muted-on-dark);
	max-width: 44ch;
	margin: 0 auto 2rem;
}

.bro-builders__statement.bro-reveal-fade {
	transition-delay: 0ms;
}

.bro-builders__prompt.bro-reveal-fade {
	transition-delay: 100ms;
}

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

@media (hover: hover) and (pointer: fine) {
	.bro-builders__cta:hover .bro-icon-arrow,
	.bro-builders__cta:focus-visible .bro-icon-arrow {
		transform: translateX(4px);
	}
}

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

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

@media (max-width: 767px) {
	.bro-strengths {
		grid-template-columns: 1fr;
	}

	.bro-strength {
		border-right: none;
	}
}
