/*
 * Page sections: hero, breadcrumbs, card grids, trust signals,
 * text + media, testimonials, pills, FAQ, CTA banner, projects, lead form.
 * Loaded on every page that renders sections (see inc/assets.php).
 */

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* clip, not hidden: a jump to the form (#request-service) must not scroll
	   the hero's own contents and hide its top (the form's hidden scheduler
	   reaches past the hero). */
	overflow: clip;
	background:
		radial-gradient(120% 80% at 85% 0%, rgb(197 48 48 / 0.18), transparent 60%),
		var(--color-ink);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Overlay keeps text readable on any photo */
.hero--has-image .hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(17 17 17 / 0.92) 0%, rgb(17 17 17 / 0.75) 55%, rgb(17 17 17 / 0.45) 100%);
}

.hero__inner {
	padding-block: var(--space-l) var(--space-xl);
}

.hero--large .hero__inner {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero--compact .hero__inner {
	padding-block: var(--space-m) var(--space-l);
}

.hero__content {
	max-width: 48rem;
}

.hero__title {
	margin-bottom: var(--space-m);
}

.hero--compact .hero__title {
	font-size: var(--text-2xl);
}

.hero__highlight {
	display: block;
}

.hero__lead {
	max-width: 42rem;
	margin-bottom: var(--space-m);
}

.hero__checklist {
	margin-bottom: var(--space-m);
	font-weight: 700;
	color: var(--color-white);
}

/* Compact page header with nothing beside it (About, Contact): centered,
   under an even overlay so the middle of the photo is as dark as the left */
.hero--center .hero__inner {
	text-align: center;
}

.hero--center .hero__content,
.hero--center .hero__lead {
	margin-inline: auto;
}

.hero--center .breadcrumbs ol,
.hero--center .actions {
	justify-content: center;
}

.hero--center .hero__checklist {
	width: fit-content;
	margin-inline: auto;
	text-align: left;
}

.hero--center.hero--has-image .hero__media::after {
	background: rgb(17 17 17 / 0.78);
}

/* Rating line under the key points ("★★★★★ 4.9 from 450+ Google reviews") */
.hero__proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	margin-bottom: var(--space-m);
	font-weight: 600;
	color: var(--color-white);
}

.hero__stars {
	font-size: var(--text-lg);
	letter-spacing: 0.08em;
	color: var(--color-accent);
}

.actions {
	margin-top: var(--space-m);
}

.hero .actions {
	margin-top: 0;
}

/* Phones: the photo sits clear at the top instead of behind dark text, and the
   headline, rating and call button come first, so they fit the first screen.
   The intro and key points follow the button. Compact page headers keep the
   photo behind the text. */
@media (max-width: 47.99em) {
	.hero--has-image:not(.hero--compact) .hero__media {
		position: relative;
		inset: auto;
		z-index: 0;
		aspect-ratio: 16 / 9;
	}

	.hero--has-image:not(.hero--compact) .hero__media::after {
		background: linear-gradient(180deg, transparent 60%, var(--color-ink) 100%);
	}

	.hero--has-image:not(.hero--compact) .hero__inner {
		padding-top: var(--space-s);
	}

	.hero:not(.hero--compact) .hero__content {
		display: flex;
		flex-direction: column;
	}

	.hero:not(.hero--compact) .hero__content > .eyebrow--pill {
		display: none;
	}

	.hero:not(.hero--compact) .hero__title {
		order: 1;
		margin-bottom: var(--space-s);
	}

	.hero:not(.hero--compact) .hero__proof {
		order: 2;
		gap: 0.375rem;
		font-size: var(--text-sm);
	}

	.hero:not(.hero--compact) .hero__stars {
		font-size: var(--text-base);
		letter-spacing: 0.04em;
	}

	.hero:not(.hero--compact) .actions {
		order: 3;
		margin-bottom: var(--space-m);
	}

	.hero:not(.hero--compact) .actions .button {
		flex: 1 1 100%;
		justify-content: center;
	}

	.hero:not(.hero--compact) .hero__lead {
		order: 4;
	}

	.hero:not(.hero--compact) .hero__checklist {
		order: 5;
		margin-bottom: 0;
	}
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
	margin-bottom: var(--space-m);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-inline: var(--space-xs);
	opacity: 0.6;
}

.breadcrumbs a {
	color: inherit;
}

.breadcrumbs [aria-current="page"] {
	color: var(--color-text);
}

/* ==========================================================================
   Cards and grids
   ========================================================================== */

.card-grid__list,
.projects-grid .grid,
.testimonials .grid,
.post-grid,
.related-posts .grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.card__title {
	margin-bottom: var(--space-xs);
	font-size: var(--text-lg);
}

.card__text {
	margin: 0;
	color: var(--color-text-muted);
}

/* Whole card is clickable via the heading link; "Learn more" sits at the bottom */
.card--link {
	position: relative;
	display: flex;
	flex-direction: column;
	transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card--link .card__title a {
	color: var(--color-heading);
	text-decoration: none;
}

.card--link .card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.card--link:hover {
	border-color: var(--color-brand);
	box-shadow: var(--shadow-m);
}

.card--link:hover .card__title a {
	color: var(--color-brand);
}

.card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: auto;
	padding-top: var(--space-s);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-brand);
}

.card__more svg {
	width: 1em;
	height: 1em;
	transition: transform var(--transition);
}

.card--link:hover .card__more svg {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.card__more svg {
		transition: none;
	}
}

.card--link:focus-within {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

.card--link .card__title a:focus-visible {
	outline: none;
}

.check-list--columns {
	columns: 2 18rem;
	column-gap: var(--space-l);
}

.check-list--columns li {
	break-inside: avoid;
	margin-bottom: var(--space-s);
}

.check-list--columns span {
	display: block;
}

/* ==========================================================================
   Trust signals
   ========================================================================== */

.trust {
	padding-block: var(--space-l);
	border-block: var(--border-width) solid var(--color-border);
}

.trust__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
	gap: var(--space-m);
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

/* Each fact in a box, like the stats rows in page copy */
.trust__item {
	padding: var(--space-m) var(--space-s);
	background: var(--color-white);
	border: var(--border-width) solid var(--color-border);
	border-top: 4px solid var(--color-brand);
	border-radius: 12px;
}

.surface-dark .trust__item {
	background: var(--color-ink-soft);
	border-color: rgb(255 255 255 / 0.1);
	border-top-color: var(--color-accent);
}

.trust__value {
	display: block;
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: var(--weight-heavy);
	line-height: 1.1;
	color: var(--color-heading);
}

.surface-dark .trust__value {
	color: var(--color-accent);
}

/* Two to a row on phones */
@media (max-width: 29.99em) {
	.trust__list {
		gap: var(--space-s);
	}

	.trust__item {
		padding: var(--space-s) var(--space-xs);
	}

	.trust__value {
		font-size: var(--text-xl);
	}
}

.trust__label {
	display: block;
	margin-top: var(--space-2xs);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

/* ==========================================================================
   Text + media
   ========================================================================== */

.text-media__inner {
	display: grid;
	gap: var(--space-l);
	align-items: center;
}

@media (min-width: 48em) {
	.text-media__inner {
		grid-template-columns: 1fr 1fr;
	}

	.text-media--reverse .text-media__media {
		order: -1;
	}

	.text-media--no-image .text-media__inner {
		grid-template-columns: minmax(0, var(--content-max));
	}
}

.text-media__media img {
	width: 100%;
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
	display: flex;
	flex-direction: column;
}

.testimonial__quote {
	flex: 1;
	margin: 0 0 var(--space-s);
	font-size: var(--text-base);
}

.testimonial__quote::before {
	content: "\201C";
	display: block;
	height: 2rem;
	font-family: var(--font-heading);
	font-size: 3rem;
	line-height: 1;
	color: var(--color-brand);
}

.testimonial__name {
	margin: 0;
	font-weight: 700;
}

.testimonial__source {
	display: block;
	font-size: var(--text-sm);
	font-weight: 400;
	color: var(--color-text-muted);
}

/* ==========================================================================
   Pills (service areas, filters)
   ========================================================================== */

.pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0 0 var(--space-m);
	padding: 0;
	list-style: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1rem;
	font-weight: 600;
	color: var(--color-heading);
	text-decoration: none;
	background: var(--color-white);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-pill);
}

.pill:hover {
	color: var(--color-brand);
	border-color: var(--color-brand);
}

.pill.is-active {
	color: var(--color-white);
	background: var(--color-brand);
	border-color: var(--color-brand);
}

.surface-dark .pill {
	color: var(--color-white);
	background: transparent;
}

.filter-bar {
	margin-bottom: var(--space-l);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__list,
.entry-content .wp-block-details:first-of-type {
	border-top: var(--border-width) solid var(--color-border);
}

/* Question toggles left in page copy look like the FAQ section's */
.faq__item,
.entry-content .wp-block-details {
	margin: 0;
	border-bottom: var(--border-width) solid var(--color-border);
}

.faq__question,
.entry-content .wp-block-details > summary {
	position: relative;
	padding: var(--space-s) 2.5rem var(--space-s) 0;
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	color: var(--color-heading);
	list-style: none;
	cursor: pointer;
}

.faq__question::-webkit-details-marker,
.entry-content .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.faq__question::after,
.entry-content .wp-block-details > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0.5rem;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--color-brand);
	transform: translateY(-50%);
}

.faq__item[open] .faq__question::after,
.entry-content .wp-block-details[open] > summary::after {
	content: "\2212";
}

.faq__answer,
.entry-content .wp-block-details > :not(summary) {
	padding-bottom: var(--space-s);
	color: var(--color-text-muted);
}

/* FAQ page: links to each topic, centered, without the place pin */
.faq-topics {
	padding-block: var(--space-l) 0;
}

.faq-topics .is-style-pills {
	justify-content: center;
	margin: 0;
}

.faq-topics .is-style-pills li::before {
	display: none;
}

.faq[id] {
	scroll-margin-top: var(--header-height);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta__inner {
	max-width: 52rem;
	text-align: center;
}

.cta__text {
	font-size: var(--text-lg);
}

.cta .actions {
	justify-content: center;
}

/* Depth on the red: soft light at one corner, shade at the other */
.cta {
	background:
		radial-gradient(50% 120% at 0% 0%, rgb(255 255 255 / 0.14), transparent 70%),
		radial-gradient(50% 120% at 100% 100%, rgb(0 0 0 / 0.22), transparent 70%),
		var(--color-brand);
}

/* ==========================================================================
   Projects
   ========================================================================== */

.project-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.project-card__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--color-gray-200);
}

.project-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-card__media--empty {
	background:
		repeating-linear-gradient(45deg, transparent 0 12px, rgb(0 0 0 / 0.03) 12px 24px),
		var(--color-gray-200);
}

.project-card__body {
	padding: var(--space-m);
}

.project-card .eyebrow {
	margin-bottom: var(--space-2xs);
}

.project-card__location {
	margin: 0;
	font-size: var(--text-sm);
}

.projects-grid__more {
	margin-top: var(--space-m);
}

.projects-grid .actions {
	justify-content: center;
}

.project-detail__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-l);
	align-items: start;
}

@media (min-width: 60em) {
	.project-detail__inner {
		grid-template-columns: minmax(0, 1fr) 20rem;
	}

	.project-detail__meta {
		position: sticky;
		top: calc(var(--header-height) + var(--space-m));
	}
}

.project-detail__featured {
	margin: 0 0 var(--space-l);
}

.project-detail__featured img {
	width: 100%;
	border-radius: var(--radius-m);
}

.meta-list {
	margin: 0;
}

.meta-list dt {
	font-family: var(--font-heading);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.meta-list dd {
	margin: 0 0 var(--space-s);
	font-weight: 700;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: var(--space-s);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-grid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-s);
}

/* ==========================================================================
   Lead form
   ========================================================================== */

.lead-form {
	scroll-margin-top: var(--header-height);
}

.lead-form__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-l);
	align-items: start;
}

/* Let embedded forms shrink to the column instead of widening the page */
.lead-form__form {
	min-width: 0;
}

@media (min-width: 60em) {
	.lead-form__inner {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}
}

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

.contact-list li {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	margin-bottom: var(--space-s);
	font-weight: 600;
}

.contact-list svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--color-brand);
}

.placeholder-box {
	display: grid;
	place-content: center;
	min-height: 18rem;
	padding: var(--space-l);
	text-align: center;
	color: var(--color-text-muted);
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-s);
}

.placeholder-box p {
	margin-bottom: var(--space-xs);
}

/* ==========================================================================
   LeadCapture ST form (colors come from the plugin's own settings)
   ========================================================================== */

.lead-form .lcst-widget {
	font-family: var(--font-body);
}

.lead-form .lcst-widget .lcst-head-title,
.lead-form .lcst-widget .lcst-cta {
	font-family: var(--font-heading) !important;
}

/* ==========================================================================
   Reading layout: long-form copy on posts and pages (centered column,
   article-sized headings, "On this page" contents)
   ========================================================================== */

.article__body .entry-content {
	font-size: var(--text-base);
}

.article__body .entry-content h2 {
	margin-top: var(--space-l);
	font-size: var(--text-xl);
	scroll-margin-top: calc(var(--header-height) + var(--space-s));
}

.article__body .entry-content h3 {
	margin-top: var(--space-m);
	font-size: var(--text-lg);
}

/* Table of contents */
.toc {
	margin-bottom: var(--space-l);
	padding: var(--space-m);
	background: var(--color-gray-100);
	border-left: 4px solid var(--color-brand);
	border-radius: var(--radius-s);
}

.toc__heading {
	margin-bottom: var(--space-xs);
	font-family: var(--font-heading);
	font-weight: var(--weight-semibold);
}

.toc ol {
	margin: 0;
	padding-left: 1.25rem;
}

.toc li {
	margin-bottom: var(--space-2xs);
}

/* Short labels from the old site's sections ("What It Costs") sit above their heading */
.article__body .entry-content .eyebrow {
	margin-top: var(--space-l);
	margin-bottom: var(--space-2xs);
}

.article__body .entry-content .eyebrow + h2,
.article__body .entry-content .eyebrow + h3 {
	margin-top: 0;
}

.article__body .entry-content > :first-child {
	margin-top: 0;
}

/* ==========================================================================
   Page content bands: long page copy as full-width sections (pages only;
   blog posts keep the narrow reading column)
   ========================================================================== */


.band {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	scroll-margin-top: var(--header-height);
}

/* About 80% of the page on large screens */
.band__inner {
	width: min(100% - 2 * var(--gutter), 72rem);
}

.band__body > * {
	max-width: none;
}

/* Centered section header above cards and grids: the heading spans the
   section like the content below; an intro line keeps a readable width */
.band__header {
	margin-bottom: var(--space-l);
	text-align: center;
}

.band__body > .band__header > p:not(.eyebrow) {
	max-width: 52rem;
	margin-inline: auto;
}

.band__header > :last-child {
	margin-bottom: 0;
}

/* A section that is only a short checklist (a strip of claims) is one centered row */
.band__body > .is-style-checklist:only-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-xs) var(--space-l);
	margin: 0;
	columns: auto;
}

/* A row of facts under an intro ("Federal · Data Center", "CO Lic. …") */
.is-style-checklist.is-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-xs) var(--space-l);
	columns: auto;
}

.band__body > .is-style-checklist:only-child li,
.is-style-checklist.is-row li {
	margin: 0;
}

/* Four claims would wrap three and one: two by two instead (highlight tiles
   have their own grid) */
@media (min-width: 40em) {
	.band:not(.band--highlights) .band__body > .is-style-checklist:only-child:has(> li:nth-child(4):last-child) {
		display: grid;
		grid-template-columns: repeat(2, max-content);
		justify-content: center;
	}
}

/* Highlights (a red band that was only a checklist): a row of white tiles,
   each with a check badge, on a light band */
.band--highlights {
	padding-block: var(--space-l);
	background: var(--color-gray-100);
}

.band--highlights .band__body > .is-style-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--space-s);
}

.band--highlights .is-style-checklist li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-ink);
	background: var(--color-white);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-s);
}

.band--highlights .is-style-checklist li::before {
	position: static;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
	border: 0;
	border-radius: 50%;
	transform: none;
}

/* A single review across a section: centered, the quote larger */
.band__body > .review-stars,
.band__body > .review-stars ~ p {
	max-width: 48rem;
	margin-inline: auto;
	text-align: center;
}

.band__body > .review-stars + p {
	font-size: var(--text-lg);
	font-style: italic;
}

/* A page's opening section without a heading is its introduction: lead-size text */
.content-bands > .band:first-child .band__body:not(:has(h2, h3)) > p:not([class*="-"]) {
	font-size: var(--text-lg);
}

/* A row of buttons on its own line under a section's text sits centered */
.band__body > .wp-block-buttons,
.band__cta .actions {
	justify-content: center;
}

/* Buttons, place pills and tags under a centered header sit centered too */
.band__header ~ .wp-block-buttons,
.band__header ~ .is-style-pills,
.band__header ~ .is-style-tags {
	justify-content: center;
}

/* So do the closing line right above those buttons ("Call today or …") and
   a label above pills ("Adjacent Cities Served:") */
.band__header ~ p:has(+ .wp-block-buttons:last-child):not(:is(h3, h4) + p),
.band__header ~ :is(p, h3, h4):has(+ .is-style-pills) {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

/* A short call to action (heading, a line, buttons): centered as a whole */
.band__cta-body {
	text-align: center;
}

.band__cta-body > p:not(.eyebrow) {
	max-width: 52rem;
	margin-inline: auto;
}

.band__cta-body .wp-block-buttons,
.band__cta-body .is-style-pills {
	justify-content: center;
}

/* Button rows from separate columns (request + call) share a line */
.band__cta-body .wp-block-buttons:has(+ .wp-block-buttons),
.band__cta-body .wp-block-buttons + .wp-block-buttons {
	display: inline-flex;
	margin: var(--space-xs) 0.25rem;
	vertical-align: middle;
}

/* Its columns (text beside a phone box) stack */
.band__cta-body .wp-block-columns {
	display: block;
}

.band__cta-body .wp-block-column + .wp-block-column {
	margin-top: var(--space-m);
}

.band__cta-body > .band__header {
	margin-bottom: var(--space-m);
}

/* Plain lists: brand-colored bullets, like the checklists' marks */
.band__body ul:not([class*="is-style-"]) > li::marker {
	color: var(--color-brand);
}

/* "Real person answers · 24/7/365 · Under 60-minute response" */
.trust-line {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.surface-dark .trust-line,
.band--brand .trust-line {
	color: rgb(255 255 255 / 0.75);
}

/* Labels on red sections: white, not red on red */
.band--brand .eyebrow {
	color: rgb(255 255 255 / 0.85);
}


.band__body h2 {
	scroll-margin-top: calc(var(--header-height) + var(--space-s));
}

.band__body h3 {
	margin-top: var(--space-m);
	font-size: var(--text-lg);
}

.band__body .eyebrow {
	margin-bottom: var(--space-xs);
}

.band__body > :last-child {
	margin-bottom: 0;
}

/* Text beside the section's lead image, alternating sides */
@media (min-width: 60em) {
	.band--media .band__inner {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--space-xl);
		align-items: start;
	}

	.band--media:nth-of-type(even) .band__media {
		order: -1;
	}

	.band--media:nth-of-type(even) .band__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.band__media {
		position: sticky;
		top: calc(var(--header-height) + var(--space-m));
	}
}

@media (max-width: 59.99em) {
	.band__media {
		margin-top: var(--space-l);
	}
}

/* Lists with five or more items flow into two columns on wide screens (not in a column or card: too narrow) */
@media (min-width: 48em) {
	.band__body .wp-block-list:has(> li:nth-child(5)):not(.wp-block-column *, .card *) {
		columns: 2;
		column-gap: var(--space-l);
	}

	.band__body .wp-block-list li {
		break-inside: avoid;
	}
}

/* Long lists of short items (a "services we provide" list): three columns */
@media (min-width: 60em) {
	.band__body > .wp-block-list:not([class*="is-style-"]):has(> li:nth-child(12)) {
		columns: 3;
	}
}

/* Plain bullets in page sections take the brand color, like the checklists */
.band__body ul.wp-block-list:not([class*="is-style-"]) > li::marker {
	color: var(--color-brand);
}

.band--dark ul.wp-block-list:not([class*="is-style-"]) > li::marker,
.band--brand ul.wp-block-list:not([class*="is-style-"]) > li::marker {
	color: currentColor;
}

/* ==========================================================================
   Images in page and post content
   ========================================================================== */

.entry-content .wp-block-image {
	margin: var(--space-l) 0;
}

.entry-content .wp-block-image.aligncenter {
	margin-inline: auto;
}

.entry-content .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
}

.entry-content .wp-element-caption {
	margin-top: var(--space-xs);
	font-size: var(--text-sm);
	text-align: center;
	color: var(--color-text-muted);
}

/* Lead image beside a section: framed with a brand accent */
.band__media .wp-block-image {
	position: relative;
	margin: 0;
}

.band__media .wp-block-image::before {
	content: "";
	position: absolute;
	inset: var(--space-s) calc(-1 * var(--space-s)) calc(-1 * var(--space-s)) var(--space-s);
	z-index: -1;
	border: 3px solid var(--color-brand);
	border-radius: var(--radius-m);
}

.band__media img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.band--media .band__inner {
	isolation: isolate;
}

/* Galleries: even tiles */
.entry-content .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: var(--space-s);
	margin: var(--space-l) 0;
}

/* Logos are small: two across on a phone, four on a tablet */
@media (max-width: 59.99em) {
	.entry-content .wp-block-gallery.is-logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 37.5em) and (max-width: 59.99em) {
	.entry-content .wp-block-gallery.is-logos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Four across a full section, with a short last row centered */
@media (min-width: 60em) {
	.band__body > .wp-block-gallery {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.band__body > .wp-block-gallery > * {
		grid-column: span 2;
	}

	.band__body > .wp-block-gallery > :nth-child(4n+1):nth-last-child(3) {
		grid-column: 2 / span 2;
	}

	.band__body > .wp-block-gallery > :nth-child(4n+1):nth-last-child(2) {
		grid-column: 3 / span 2;
	}

	.band__body > .wp-block-gallery > :nth-child(4n+1):last-child {
		grid-column: 4 / span 2;
	}

	/* Five photos: one row of five rather than four and a lone one */
	.band__body > .wp-block-gallery:has(> :nth-child(5):last-child) {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.band__body > .wp-block-gallery:has(> :nth-child(5):last-child) > * {
		grid-column: auto;
	}
}

/* Core sizes gallery tiles with a high-specificity width rule; the grid handles size here */
.entry-content .wp-block-gallery .wp-block-image {
	width: 100% !important;
	margin: 0 !important;
}

.entry-content .wp-block-gallery img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-shadow: var(--shadow-s);
}

/* Partner logos (Generac, GreenSky, Xcel Energy) show whole on white tiles */
.entry-content .wp-block-gallery.is-logos img {
	aspect-ratio: 2 / 1;
	object-fit: contain;
	padding: var(--space-s);
	background: var(--color-white);
}

/* Tall photos (pendants hanging through a stairwell) keep a portrait shape */
.entry-content .wp-block-gallery.is-portrait img {
	aspect-ratio: 4 / 5;
}

/* ==========================================================================
   Hero with the lead form on the right (below the text on phones)
   ========================================================================== */

.hero--form .hero__inner {
	display: grid;
	gap: var(--space-l);
	align-items: center;
}

.hero--form .breadcrumbs {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

@media (min-width: 60em) {
	.hero--form .hero__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: var(--space-xl);
	}
}

.hero__form {
	min-width: 0;
	scroll-margin-top: calc(var(--header-height) + var(--space-s));
}

.hero__form .placeholder-box {
	min-height: 22rem;
	color: var(--color-text-muted);
	border-color: var(--color-border);
}

.hero__form .lcst-widget {
	font-family: var(--font-body);
}

.hero__form .lcst-widget .lcst-head-title,
.hero__form .lcst-widget .lcst-cta {
	font-family: var(--font-heading) !important;
}

/* ==========================================================================
   Page sections kept from the original layout
   ========================================================================== */

.band--light {
	background: var(--color-gray-100);
}

/* Call-to-action row added between long runs of sections */
.band__cta {
	margin-top: var(--space-m);
	padding-top: var(--space-m);
	border-top: var(--border-width) solid var(--color-border);
}

.surface-dark .band__cta {
	border-top-color: rgb(255 255 255 / 0.12);
}

.band--brand {
	background: var(--color-brand);
}

.band--brand .wp-block-button__link {
	color: var(--color-brand-dark);
	background: var(--color-white);
}

.band--brand .wp-block-button__link:hover,
.band--brand .is-style-outline .wp-block-button__link:hover {
	color: var(--color-brand-dark);
	background: var(--color-gray-100);
}

/* White cards on a red section read as light surfaces again */
.band--brand .is-style-cards > * {
	--color-text: var(--color-ink);
	--color-heading: var(--color-ink);
	--color-link: var(--color-brand-dark);

	color: var(--color-text);
}

.band--brand .is-style-cards > * .eyebrow {
	color: var(--color-brand);
}

.band--brand .is-style-cards .wp-block-button__link {
	color: var(--color-white);
	background: var(--color-brand);
}

.band--brand .is-style-cards .wp-block-button__link:hover {
	color: var(--color-white);
	background: var(--color-brand-dark);
}

.band--dark .band__body p,
.band--dark .band__body li {
	color: var(--color-text);
}


/* Two columns with a side box (60/40 splits from the original pages) */
.band__body .wp-block-columns {
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-block: var(--space-m);
}

.band__body .column-aside {
	padding: var(--space-m);
	background: var(--color-white);
	border: var(--border-width) solid var(--color-border);
	border-top: 4px solid var(--color-brand);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
}

.band--light .column-aside {
	background: var(--color-white);
}

.band--dark .column-aside {
	background: var(--color-ink-soft);
	border-color: rgb(255 255 255 / 0.12);
	border-top-color: var(--color-accent);
	box-shadow: none;
}

.band__body .column-aside > :last-child {
	margin-bottom: 0;
}

/* Side card titles ("Free Estimate") */
.band__body .column-aside > h3:first-child {
	margin-top: 0;
	font-size: var(--text-lg);
}

@media (min-width: 60em) {
	.band__body .column-aside {
		align-self: flex-start;
		position: sticky;
		top: calc(var(--header-height) + var(--space-m));
	}
}

/* Shared sections after a page's own sections (related services, more
   projects, reviews, FAQ) line up with them: same width, centered headings
   (every heading on the homepage, so its sections read alike) */
.content-bands ~ .section > .container {
	width: min(100% - 2 * var(--gutter), 72rem);
}

.content-bands ~ .section .section__header,
.home .section .section__header {
	max-width: none;
	margin-inline: auto;
	text-align: center;
}

.content-bands ~ .section .section__header > p:not(.eyebrow),
.home .section .section__header > p:not(.eyebrow) {
	max-width: var(--content-max);
	margin-inline: auto;
}

/* Town pills and the "View all" link center under the heading */
.content-bands ~ .service-areas .pill-list {
	justify-content: center;
}

.content-bands ~ .service-areas .container > p {
	text-align: center;
}

/* Three-across card lists: a short last row sits centered */
@media (min-width: 64em) {
	.grid--3 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.grid--3 > * {
		grid-column: span 2;
	}

	.grid--3 > :nth-child(3n+1):nth-last-child(2) {
		grid-column: 2 / span 2;
	}

	.grid--3 > :nth-child(3n+1):last-child {
		grid-column: 3 / span 2;
	}
}

/* Text beside the estimate form */
@media (min-width: 60em) {
	.band__split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-xl);
		align-items: start;
	}
}

.band__split-text > .wp-block-buttons {
	justify-content: flex-start;
}

.band__split-form {
	margin-top: var(--space-l);
}

@media (min-width: 60em) {
	.band__split-form {
		margin-top: 0;
	}
}

/* Office maps: one wide, or two side by side */
.office-maps__item h3 {
	margin-bottom: var(--space-2xs);
}

.office-maps__item p {
	margin-bottom: var(--space-s);
	color: var(--color-text-muted);
}

@media (min-width: 48em) {
	.office-maps__list--multi {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-l);
	}

	.office-maps__list--multi .contact-map {
		aspect-ratio: 4 / 3;
	}
}

.office-maps__list--multi .office-maps__item + .office-maps__item {
	margin-top: var(--space-l);
}

@media (min-width: 48em) {
	.office-maps__list--multi .office-maps__item + .office-maps__item {
		margin-top: 0;
	}
}

.contact-map {
	overflow: hidden;
	aspect-ratio: 16 / 7;
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-s);
}

.contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 47.99em) {
	.contact-map {
		aspect-ratio: 4 / 3;
	}
}

/* Snapshot facts in a side box ("Client: QuikTrip"): ruled rows */
.column-aside p:has(> strong:first-child) {
	margin: 0;
	padding-block: 0.5rem;
	border-bottom: 1px solid var(--color-border);
}

.column-aside p:has(> strong:first-child):last-child {
	border-bottom: 0;
}

/* A section that is only a strip (a row of stats, a line of claims) needs
   less room than one of copy */
.band:has(> .band__inner > .band__body > :is(.is-style-stats, .is-style-checklist):only-child) {
	padding-block: var(--space-l);
}

/* ==========================================================================
   Service tiles (homepage, city, division and service pages)
   ========================================================================== */

/* Dark, with the hero's red glow, so the tiles' photos carry the color */
.service-tiles {
	background:
		radial-gradient(60% 70% at 50% 0%, rgb(197 48 48 / 0.25), transparent 70%),
		var(--color-ink);
}

/* A little wider than the page column, so the tiles are larger */
.service-tiles > .container {
	width: min(100% - 2 * var(--gutter), 86rem);
}

/* Two across, then five; a short last row is centered */
.service-tiles__list {
	--tile-gap: var(--space-s);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--tile-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-tiles__list > li {
	flex: 0 0 calc((100% - var(--tile-gap)) / 2);
}

@media (min-width: 48em) {
	.service-tiles__list {
		--tile-gap: 1.25rem;
	}

	.service-tiles__list > li {
		flex-basis: calc((100% - 4 * var(--tile-gap)) / 5);
	}

	/* Six tiles: two rows of three, each the size of a tile in a row of five */
	.service-tiles__list:has(> :nth-child(6):last-child) {
		max-width: calc(60% - 0.4 * var(--tile-gap));
		margin-inline: auto;
	}

	.service-tiles__list:has(> :nth-child(6):last-child) > li {
		flex-basis: calc((100% - 2 * var(--tile-gap)) / 3);
	}
}

/* The photo fills the tile and fades into brand red at the bottom, under the
   name; the icon sits in the middle */
.service-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	aspect-ratio: 1;
	padding: var(--space-s);
	overflow: hidden;
	color: var(--color-white);
	text-align: center;
	text-decoration: none;
	background: var(--color-ink-soft);
	border-radius: 20px;
	box-shadow: 0 12px 30px rgb(0 0 0 / 0.35);
	transition: transform var(--transition), box-shadow var(--transition);
}

.service-tile__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.service-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(17 17 17 / 0.2) 0%, rgb(17 17 17 / 0.4) 45%, rgb(197 48 48 / 0.95) 100%);
}

.service-tile__icon {
	display: grid;
	place-items: center;
	margin-block: auto;
	filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5));
}

.service-tile__icon svg {
	width: clamp(3rem, 5.5vw, 4.5rem);
	height: auto;
	stroke-width: 1.75;
}

.service-tile__title {
	font-family: var(--font-heading);
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	font-weight: var(--weight-heavy);
	line-height: 1.2;
	text-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
}

.service-tile:hover {
	color: var(--color-white);
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}

.service-tile:hover .service-tile__image {
	transform: scale(1.06);
}

.service-tile:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.service-tile,
	.service-tile__image {
		transition: none;
	}

	.service-tile:hover,
	.service-tile:hover .service-tile__image {
		transform: none;
	}
}

/* ==========================================================================
   Offers (homepage)
   ========================================================================== */

/* Brand red with a lighter glow at the top; the black button sits on its
   bottom edge */
.offers {
	position: relative;
	padding-block: var(--space-xl) calc(var(--space-xl) + 1.5rem);
	background:
		radial-gradient(60% 80% at 50% 0%, rgb(255 255 255 / 0.14), transparent 70%),
		linear-gradient(180deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
}

/* Wider than the page column, so each offer's lines run longer */
.offers > .container {
	width: min(100% - 2 * var(--gutter), 80rem);
}

/* The heading between two white rules */
.offers__heading {
	display: flex;
	align-items: center;
	gap: var(--space-m);
	margin: 0 0 var(--space-l);
	font-size: clamp(1.25rem, 2.4vw, 1.875rem);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.offers__heading::before,
.offers__heading::after {
	content: "";
	flex: 1 1 0;
	min-width: 1.5rem;
	max-width: 10rem;
	height: 4px;
	background: var(--color-white);
	border-radius: 2px;
}

.offers__heading::before {
	margin-left: auto;
}

.offers__heading::after {
	margin-right: auto;
}

.offers__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Icon beside a title and a line of detail; white rules between offers */
.offer {
	display: flex;
	align-items: center;
	gap: var(--space-m);
	padding-block: var(--space-m);
}

.offer + .offer {
	border-top: 2px solid rgb(255 255 255 / 0.3);
}

.offer > svg {
	flex-shrink: 0;
	width: clamp(3.25rem, 5vw, 4.5rem);
	height: auto;
	stroke-width: 1.5;
}

.offer__title {
	margin: 0 0 0.35rem;
	font-size: var(--text-lg);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.offer__title a {
	color: inherit;
	text-decoration: none;
}

.offer__title a:hover {
	text-decoration: underline;
}

.offer p {
	margin: 0;
	color: rgb(255 255 255 / 0.9);
}

@media (min-width: 60em) {
	.offers__list {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}

	/* Side by side: each offer's icon above its centered text */
	.offer {
		flex-direction: column;
		gap: var(--space-s);
		padding: var(--space-s) clamp(1rem, 2vw, 2rem);
		text-align: center;
	}

	.offer + .offer {
		border-top: 0;
		border-left: 2px solid rgb(255 255 255 / 0.35);
	}
}

.offers__action {
	position: absolute;
	bottom: 0;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, 50%);
}

.offers__action .actions {
	margin: 0;
}

.offers__action .button {
	white-space: nowrap;
	color: var(--color-white);
	background: var(--color-ink);
	border-color: var(--color-ink);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgb(17 17 17 / 0.35);
}

.offers__action .button:hover {
	color: var(--color-ink);
	background: var(--color-white);
	border-color: var(--color-ink);
}

/* ==========================================================================
   Homepage
   ========================================================================== */

/* The facts under the reviews: raised cards on the reviews' background */
.home .trust {
	padding-block: 0 var(--space-xl);
	border: 0;
}

.home .trust__item {
	box-shadow: 0 14px 34px rgb(17 17 17 / 0.12);
}

.home .trust__value {
	color: var(--color-brand);
}

/* A short brand bar under each section heading (homepage, city, division
   and service pages) */
:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .section__header h2::after,
:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .band__body > h2::after,
:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .band__header h2::after,
:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .is-style-image-text h2::after,
.about-story h2::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: var(--space-s);
	background: var(--color-brand);
	border-radius: 2px;
}

:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .section__header h2::after,
:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .band__header h2::after {
	margin-inline: auto;
}

:is(.home, .single-service_area, .page-template-division-hub, .page-template-service) .surface-dark h2::after {
	background: var(--color-accent);
}

/* Steps ("What to Expect"): numbered badges joined by a line */
.is-steps {
	position: relative;
	counter-reset: step;
	margin-top: var(--space-l);
}

.wp-block-columns.is-steps > .wp-block-column {
	position: relative;
	padding-top: 2.75rem;
	counter-increment: step;
}

.is-steps > .wp-block-column::before {
	content: counter(step);
	position: absolute;
	top: -1.5rem;
	left: 1.5rem;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-heavy);
	color: var(--color-white);
	background: var(--color-brand);
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--color-white), 0 6px 16px rgb(197 48 48 / 0.35);
}

@media (min-width: 60em) {
	.is-steps::before {
		content: "";
		position: absolute;
		top: 0;
		left: 3rem;
		right: 3rem;
		border-top: 2px dashed rgb(197 48 48 / 0.35);
	}
}

/* ==========================================================================
   About with trust boxes (homepage and city pages)
   ========================================================================== */

.about-story__inner {
	display: grid;
	gap: var(--space-l);
}

@media (min-width: 60em) {
	.about-story__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		column-gap: clamp(2rem, 5vw, 5rem);
		align-items: start;
	}
}

.about-story__lead {
	margin-top: var(--space-s);
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	color: var(--color-heading);
}

.about-story__points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-s);
	margin: var(--space-l) 0 0;
	padding: 0;
	list-style: none;
}

/* A soft red box: icon beside a bold title and a short line */
.trust-box {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	padding: 1.25rem;
	font-size: var(--text-sm);
	line-height: 1.35;
	color: var(--color-text-muted);
	background: rgb(197 48 48 / 0.07);
	border-radius: 14px;
}

.trust-box strong {
	display: block;
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: var(--weight-heavy);
	color: var(--color-heading);
}

.trust-box svg {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--color-brand);
	stroke-width: 1.75;
}

@media (max-width: 29.99em) {
	.about-story__lead {
		font-size: var(--text-base);
	}

	.trust-box {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-xs);
		padding: var(--space-s);
	}

	.trust-box strong {
		font-size: var(--text-sm);
	}

	.trust-box svg {
		width: 2rem;
		height: 2rem;
	}
}

.about-story__text p {
	margin-bottom: var(--space-s);
}

/* The photo under an arched top */
.about-story__media {
	margin-top: var(--space-l);
}

/* Without a story (city pages): the photo, then the buttons, centered beside
   the trust boxes */
@media (min-width: 60em) {
	.about-story__body:not(:has(.about-story__text)) {
		align-self: center;
	}
}

.about-story__body:not(:has(.about-story__text)) {
	display: flex;
	flex-direction: column;
}

.about-story__body:not(:has(.about-story__text)) .about-story__media {
	order: -1;
	margin-top: 0;
}

.about-story__body:not(:has(.about-story__text)) .actions {
	justify-content: center;
	margin-top: var(--space-l);
}

.about-story__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 50% 50% 20px 20px / 32% 32% 20px 20px;
	box-shadow: 0 18px 40px rgb(17 17 17 / 0.18);
}
