/**
 * BRO Electrical — Homeowner Guide (page-homeowner-guide.php).
 *
 * v2: a digital BROCHURE, not another website page. Full-bleed photo
 * cover, a two-column personal welcome from Tom (portrait + a script
 * Google Font applied only to the word "Tom" as a signature-style
 * sign-off — no fabricated signature image), a genuine 5-photo project
 * showcase reusing the site's existing case-study carousel component
 * (.bro-cs-carousel / carousel.js — already auto-advances every 3s,
 * has accessible prev/next + dot controls, pauses on hover/focus/touch,
 * and respects prefers-reduced-motion, so nothing new was built for
 * that requirement), short alternating editorial spreads instead of
 * repeated heading+paragraph blocks, and two full-width "statement"
 * breaks for a change of pace. Numbered-section language reuses the
 * large-numeral + hairline-divider recipe already proven on the House
 * Rewires page. Charcoal / white / warm off-white / a little orange —
 * nothing new introduced to the palette.
 */

/* Same self-contained recipe already duplicated independently in
   testimonials.css/reviews.css/contact.css -- needed here because this
   page reuses bro_electrical_child_render_case_study_carousel(), whose
   markup includes a .bro-sr-only live-region status paragraph, but none
   of the stylesheets this page actually loads define that class. */
.bro-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bro-guide-page section {
	scroll-margin-top: calc(var(--bro-header-height) + 1rem);
}

/* ---- Cover ---- */

.bro-guide-cover {
	position: relative;
	min-height: min(88vh, 820px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.bro-guide-cover__media {
	position: absolute;
	inset: 0;
}

.bro-guide-cover__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 62%;
}

.bro-guide-cover__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 23, 26, 0.15) 0%, rgba(20, 23, 26, 0.55) 60%, rgba(20, 23, 26, 0.88) 100%);
}

.bro-guide-cover__content {
	position: relative;
	z-index: 1;
	max-width: 46rem;
	padding-top: clamp(4rem, 10vw, 7rem);
	padding-bottom: clamp(3rem, 7vw, 5rem);
}

.bro-guide-cover__content .bro-eyebrow {
	color: var(--bro-orange);
}

.bro-guide-cover__heading {
	font-family: var(--bro-font-display);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--bro-white);
	margin: 1rem 0 1.5rem;
}

.bro-guide-cover__heading span {
	display: block;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.bro-guide-cover__lead {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-lg);
	font-weight: 600;
	color: var(--bro-text-on-dark);
	max-width: 34rem;
	margin: 0 0 2rem;
}

.bro-guide-print {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 0;
	background: none;
	border: none;
	border-bottom: 1px solid rgba(245, 242, 236, 0.4);
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 600;
	color: var(--bro-text-on-dark);
	cursor: pointer;
	transition: color var(--bro-transition-base), border-color var(--bro-transition-base);
}

.bro-guide-print svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.bro-guide-print:hover,
.bro-guide-print:focus-visible {
	color: var(--bro-orange);
	border-color: var(--bro-orange);
}

/* ---- Tom's welcome ---- */

.bro-guide-welcome {
	background: var(--bro-white);
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.bro-guide-welcome__inner {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5rem);
}

.bro-guide-welcome__media {
	flex: 0 0 auto;
	width: min(320px, 34vw);
	margin: 0;
}

.bro-guide-welcome__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--bro-radius-sm);
}

.bro-guide-welcome__text {
	flex: 1 1 480px;
	max-width: 34rem;
}

.bro-guide-welcome__lead {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h2);
	font-weight: 800;
	line-height: 1.15;
	color: var(--bro-text-on-light);
	margin: 0.75rem 0 1.25rem;
}

.bro-guide-welcome__text p {
	font-size: var(--bro-text-base);
	line-height: 1.7;
	color: var(--bro-text-muted-on-light);
	margin: 0 0 1.15rem;
}

.bro-guide-signature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bro-border-on-light);
}

.bro-guide-signature__script {
	font-family: 'Caveat', var(--bro-font-display), cursive;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	color: var(--bro-orange-burnt);
	margin-bottom: 0.35rem;
}

.bro-guide-signature__name {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 700;
	color: var(--bro-text-on-light);
}

.bro-guide-signature__role {
	font-size: var(--bro-text-xs);
	color: var(--bro-text-muted-on-light);
	margin-top: 0.15rem;
}

@media (max-width: 780px) {
	.bro-guide-welcome__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.bro-guide-welcome__media {
		width: 100%;
		max-width: 22rem;
	}
}

/* ---- Numbered editorial spreads (shared) ---- */

.bro-guide-spread {
	background: var(--bro-white);
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.bro-guide-spread--offwhite {
	background: var(--bro-offwhite);
}

.bro-guide-spread__inner {
	max-width: 46rem;
}

.bro-guide-spread__inner--text-only {
	max-width: 40rem;
}

.bro-guide-spread__head {
	display: flex;
	align-items: baseline;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
}

.bro-guide-spread__number {
	flex: 0 0 auto;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h2);
	font-weight: 700;
	line-height: 1;
	color: var(--bro-border-on-light);
}

.bro-guide-spread__number--light {
	color: rgba(245, 242, 236, 0.28);
}

.bro-guide-spread__head h2 {
	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;
}

.bro-guide-spread__intro {
	font-size: var(--bro-text-lg);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	max-width: 42rem;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.bro-guide-spread__body {
	font-size: var(--bro-text-base);
	line-height: 1.7;
	color: var(--bro-text-muted-on-light);
	max-width: 50ch;
	margin: 0 0 1.15rem;
}

.bro-guide-spread__body:last-of-type {
	margin-bottom: 0;
}

/* ---- Spreads with a large photograph ---- */

.bro-guide-spread__inner--media {
	max-width: var(--bro-max-width);
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5.5rem);
}

.bro-guide-spread__inner--reverse {
	flex-direction: row-reverse;
}

.bro-guide-spread__text {
	flex: 1 1 460px;
}

.bro-guide-spread__media {
	flex: 1 1 480px;
	margin: 0;
}

.bro-guide-spread__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1448 / 1086;
	object-fit: cover;
	background: var(--bro-white);
	border-radius: var(--bro-radius-sm);
}

.bro-guide-spread__media--wide img {
	aspect-ratio: 2048 / 1482;
}

@media (max-width: 900px) {
	.bro-guide-spread__inner--media {
		display: block;
	}

	.bro-guide-spread__text {
		width: 100%;
	}

	.bro-guide-spread__media {
		width: 100%;
		max-width: 100%;
		margin: clamp(2rem, 4vw, 2.5rem) 0 0;
	}

	.bro-guide-spread__inner--reverse .bro-guide-spread__media {
		margin: 0 0 clamp(2rem, 4vw, 2.5rem);
	}
}

/* ---- NICEIC lockup (Section 06) ---- */

.bro-guide-niceic {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bro-border-on-light);
}

.bro-guide-niceic img {
	flex: 0 0 auto;
	height: 52px;
	width: auto;
	background: var(--bro-white);
	padding: 6px 9px;
	border: 1px solid var(--bro-border-on-light);
	border-radius: var(--bro-radius-sm);
}

.bro-guide-niceic p {
	font-size: var(--bro-text-sm);
	line-height: 1.55;
	color: var(--bro-text-muted-on-light);
	margin: 0;
	max-width: 34ch;
}

@media (max-width: 460px) {
	.bro-guide-niceic {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
	}
}

/* ---- Pull-quotes ---- */

.bro-guide-quote {
	max-width: 44rem;
	margin: clamp(2rem, 4vw, 2.75rem) 0 0;
	padding-left: 1.5rem;
	border-left: 3px solid var(--bro-orange);
}

/* Used only where a quote sits alone in a full-width section (not beside
   a photo in a two-column spread, where left alignment already reads
   correctly) -- genuine container centring via auto margins on the
   already-capped max-width, not just text-align. */
.bro-guide-quote--centered {
	margin-left: auto;
	margin-right: auto;
	padding-right: var(--bro-gutter);
}

.bro-guide-quote p {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-lg);
	font-weight: 600;
	line-height: 1.45;
	color: var(--bro-text-on-light);
	margin: 0 0 0.6rem;
}

.bro-guide-quote cite {
	display: block;
	font-style: normal;
	font-size: var(--bro-text-sm);
	color: var(--bro-text-muted-on-light);
}

.bro-guide-quote cite span {
	display: block;
	font-size: var(--bro-text-xs);
	margin-top: 0.15rem;
}

/* ---- Timeline (Section 02) ---- */

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

.bro-guide-timeline__step {
	padding: clamp(1.5rem, 3vw, 2.25rem) 0;
	border-top: 1px solid var(--bro-border-on-light);
}

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

.bro-guide-timeline__step-inner {
	display: flex;
	align-items: flex-start;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.bro-guide-timeline__index {
	flex: 0 0 auto;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h3);
	font-weight: 700;
	line-height: 1;
	color: var(--bro-orange);
	min-width: 2.25rem;
}

.bro-guide-timeline__body {
	flex: 1 1 auto;
	max-width: 40rem;
}

.bro-guide-timeline__title {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h3);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bro-text-on-light);
	margin: 0 0 0.4rem;
}

.bro-guide-timeline__text {
	font-size: var(--bro-text-base);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	margin: 0;
}

@media (max-width: 640px) {
	.bro-guide-timeline__step-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}

/* ---- Project photography showcase ---- */

.bro-guide-showcase {
	background: var(--bro-charcoal);
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.bro-guide-showcase__head {
	max-width: 40rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.bro-guide-showcase__head .bro-eyebrow {
	color: var(--bro-orange);
}

.bro-guide-showcase__head h2 {
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--bro-white);
	margin: 1rem 0 1rem;
}

.bro-guide-showcase__head p {
	font-size: var(--bro-text-base);
	line-height: 1.65;
	color: var(--bro-text-muted-on-dark);
	margin: 0;
	max-width: 46ch;
}

/* Sized larger than the default case-study carousel -- a proper
   portfolio-spread moment, not a small hub-tile carousel. */
.bro-guide-showcase__carousel .bro-cs-carousel__viewport {
	--bro-cs-stage-min-h: 380px;
	--bro-cs-stage-max-h: 640px;
	border-radius: var(--bro-radius-sm);
}

@media (max-width: 900px) {
	.bro-guide-showcase__carousel .bro-cs-carousel__viewport {
		--bro-cs-stage-max-h: 480px;
	}
}

@media (max-width: 640px) {
	.bro-guide-showcase__carousel .bro-cs-carousel__viewport {
		--bro-cs-stage-min-h: 260px;
		--bro-cs-stage-max-h: 420px;
	}
}

/* ---- Full-width statement breaks (Section 04, Trusted Trades) ---- */

.bro-guide-statement {
	background: var(--bro-charcoal);
	text-align: center;
	padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.bro-guide-statement--offwhite {
	background: var(--bro-offwhite);
}

.bro-guide-statement__inner {
	max-width: 40rem;
	margin: 0 auto;
}

.bro-guide-statement .bro-guide-spread__number {
	display: block;
	margin-bottom: 1rem;
}

.bro-guide-statement .bro-eyebrow {
	color: var(--bro-orange);
}

.bro-guide-statement__headline {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0.75rem 0 1.25rem;
}

.bro-guide-statement:not(.bro-guide-statement--offwhite) .bro-guide-statement__headline {
	color: var(--bro-white);
}

.bro-guide-statement--offwhite .bro-guide-statement__headline {
	color: var(--bro-text-on-light);
}

.bro-guide-statement__body {
	font-size: var(--bro-text-base);
	line-height: 1.7;
	margin: 0;
}

.bro-guide-statement:not(.bro-guide-statement--offwhite) .bro-guide-statement__body {
	color: var(--bro-text-muted-on-dark);
}

.bro-guide-statement--offwhite .bro-guide-statement__body {
	color: var(--bro-text-muted-on-light);
	max-width: 50ch;
}

/* ---- Booking & payments (Section 07) ---- */

.bro-guide-booking {
	background: var(--bro-charcoal);
	padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.bro-guide-booking .bro-guide-spread__head h2 {
	color: var(--bro-white);
}

.bro-guide-booking__figures {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	max-width: 44rem;
}

.bro-guide-booking__number {
	font-family: var(--bro-font-display);
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--bro-orange);
	margin: 0 0 0.75rem;
}

.bro-guide-booking__label {
	font-size: var(--bro-text-sm);
	line-height: 1.55;
	color: var(--bro-text-muted-on-dark);
	margin: 0;
	max-width: 26ch;
}

@media (max-width: 560px) {
	.bro-guide-booking__figures {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* ---- Checklist (Section 08) ---- */

.bro-guide-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem 2.5rem;
}

.bro-guide-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.bro-guide-checklist__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 0.15rem;
	border-radius: 50%;
	background: var(--bro-orange);
	color: var(--bro-white);
}

.bro-guide-checklist__icon svg {
	width: 12px;
	height: 12px;
}

.bro-guide-checklist li span:last-child {
	font-size: var(--bro-text-base);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
}

@media (max-width: 700px) {
	.bro-guide-checklist {
		grid-template-columns: 1fr;
	}
}

/* ---- Closing contact section ---- */

.bro-guide-contact {
	background: var(--bro-charcoal);
	text-align: center;
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.bro-guide-contact__inner {
	max-width: 40rem;
}

.bro-guide-contact h2 {
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--bro-white);
	margin: 1rem 0 1.25rem;
}

.bro-guide-contact > .bro-container > p {
	font-size: var(--bro-text-base);
	line-height: 1.65;
	color: var(--bro-text-muted-on-dark);
	margin: 0 0 2rem;
}

.bro-guide-contact__methods {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 2.5rem;
	margin-bottom: 1.5rem;
}

.bro-guide-contact__method {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-base);
	font-weight: 600;
	color: var(--bro-white);
	text-decoration: none;
}

.bro-guide-contact__method svg {
	width: 18px;
	height: 18px;
	color: var(--bro-orange);
	flex: 0 0 auto;
}

.bro-guide-contact__method:hover,
.bro-guide-contact__method:focus-visible {
	color: var(--bro-orange);
}

.bro-guide-contact__note {
	font-size: var(--bro-text-sm);
	color: var(--bro-text-muted-on-dark);
	margin: 0 0 2rem;
}

.bro-guide-contact__cta {
	display: inline-flex;
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
	.bro-guide-cover__heading span {
		font-size: clamp(2.1rem, 9vw, 2.75rem);
	}

	.bro-guide-spread__head {
		gap: 0.85rem;
	}

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

	.bro-guide-spread__head h2 {
		font-size: var(--bro-text-h2);
	}

	.bro-guide-statement__headline {
		font-size: var(--bro-text-h2);
	}

	.bro-guide-signature__script {
		font-size: 2.5rem;
	}
}

/* ---- Print / Save as PDF ----
   Forces every section to a plain white background with dark text
   regardless of whether the browser's own "background graphics" print
   option is on. Hides interactive/web-only chrome; keeps BRO branding,
   headings, section numbers and photographs. */
@media print {
	.bro-header,
	.bro-mobile-nav,
	.bro-guide-print,
	.bro-footer,
	.bro-skip-link {
		display: none !important;
	}

	body,
	.bro-guide-page,
	.bro-guide-page section {
		background: #fff !important;
		color: #14171a !important;
	}

	.bro-guide-cover {
		min-height: auto;
	}

	.bro-guide-cover__overlay {
		display: none;
	}

	.bro-guide-cover__content,
	.bro-guide-cover__heading span,
	.bro-guide-cover__lead {
		color: #14171a !important;
	}

	.bro-guide-spread__number,
	.bro-guide-spread__number--light,
	.bro-guide-timeline__index,
	.bro-guide-booking__number {
		color: #a8451f !important;
	}

	.bro-guide-cover__content .bro-eyebrow,
	.bro-guide-showcase__head .bro-eyebrow,
	.bro-guide-statement .bro-eyebrow {
		color: #a8451f !important;
	}

	.bro-guide-spread__head h2,
	.bro-guide-welcome__lead,
	.bro-guide-contact h2,
	.bro-guide-timeline__title,
	.bro-guide-quote p,
	.bro-guide-showcase__head h2,
	.bro-guide-statement__headline,
	.bro-guide-signature__name {
		color: #14171a !important;
	}

	.bro-guide-spread__body,
	.bro-guide-spread__intro,
	.bro-guide-welcome__text p,
	.bro-guide-timeline__text,
	.bro-guide-checklist li span:last-child,
	.bro-guide-showcase__head p,
	.bro-guide-statement__body,
	.bro-guide-contact > .bro-container > p,
	.bro-guide-contact__note,
	.bro-guide-niceic p,
	.bro-guide-booking__label,
	.bro-guide-signature__role {
		color: #444 !important;
	}

	.bro-guide-signature__script {
		color: #a8451f !important;
	}

	.bro-guide-contact__method,
	.bro-guide-contact__cta {
		color: #14171a !important;
		border: 1px solid #14171a;
	}

	.bro-guide-quote {
		border-left-color: #a8451f;
	}

	.bro-guide-checklist__icon,
	.bro-guide-checklist__icon svg {
		background: #a8451f !important;
		color: #fff !important;
	}

	/* Carousel: print only the first (active) slide, plain and static. */
	.bro-guide-showcase {
		background: #fff !important;
	}

	.bro-cs-carousel__arrow,
	.bro-cs-carousel__dots,
	.bro-cs-carousel__status {
		display: none !important;
	}

	.bro-cs-carousel__track {
		transform: none !important;
	}

	.bro-cs-carousel__slide {
		display: none !important;
	}

	.bro-cs-carousel__slide:nth-child(2) {
		display: flex !important;
	}

	.bro-guide-spread,
	.bro-guide-timeline__step,
	.bro-guide-quote,
	.bro-guide-welcome,
	.bro-guide-statement,
	figure {
		break-inside: avoid;
	}

	a[href]::after {
		content: none !important;
	}
}
