/*
 * DTX Spray Foam Pro — front-end styles.
 * One family (Archivo, variable width + weight). Condensed 800 for display, normal width for reading.
 * Palette: ink, steel, galvalume, foam gold, link blue, mill.
 */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 400 800;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #14181d;
	--ink-2: #333d48;
	--steel: #2b3440;
	--steel-deep: #222a34;
	--galv: #dde2e6;
	--gold: #f2b33d;
	--gold-hover: #f7c561;
	--gold-ink: #b27612;
	--blue: #1864ab;
	--mill: #f4f5f7;
	--muted: #556270;
	--line: #d5dbe0;
	--field: #b4bec8;
	--danger: #b42318;

	--font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: 16px;
	--radius: 8px;
	--header-h: 64px;

	--ribs: repeating-linear-gradient(
		90deg,
		transparent 0 40px,
		rgba(255, 255, 255, 0.075) 40px 44px,
		rgba(255, 255, 255, 0.03) 44px 48px,
		rgba(0, 0, 0, 0.22) 48px 54px,
		transparent 54px 66px,
		rgba(255, 255, 255, 0.035) 66px 67px,
		transparent 67px 80px,
		rgba(255, 255, 255, 0.035) 80px 81px,
		transparent 81px 96px
	);
	--sheen: linear-gradient(100deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%);
	--shade: linear-gradient(180deg, rgba(20, 24, 29, 0) 30%, rgba(20, 24, 29, 0.5));
}

@media (min-width: 600px) {
	:root {
		--gutter: 24px;
	}
}

@media (min-width: 1080px) {
	:root {
		--gutter: 32px;
		--header-h: 76px;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.125rem;
	font-stretch: 100%;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
	body {
		padding-bottom: 0;
	}
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: inherit;
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1.04;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(2rem, 1.45rem + 2vw, 2.875rem);
}

h3 {
	font-size: 1.5rem;
	font-weight: 700;
	font-stretch: 87.5%;
	line-height: 1.15;
}

p {
	margin: 0;
}

a {
	color: var(--blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.section--steel :focus-visible,
.site-footer :focus-visible,
.mobile-bar :focus-visible,
.calc__result :focus-visible {
	outline-color: var(--gold);
}

::selection {
	background: var(--gold);
	color: var(--ink);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: -200px;
	left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.site-main:focus {
	outline: none;
}

.muted {
	color: var(--muted);
}

/* ---------- Layout ---------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(52px, 7vw, 96px);
}

.section--tight {
	padding-bottom: 0;
}

.section--mill {
	background: var(--mill);
}

.section--steel {
	background-color: var(--steel);
	background-image: var(--shade), var(--ribs);
	color: #fff;
}

.section--steel .lede {
	color: var(--galv);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	margin-bottom: 28px;
}

.section-title {
	margin-bottom: 24px;
}

.link-more {
	font-weight: 700;
}

.lede {
	max-width: 60ch;
	margin-top: 14px;
	color: var(--ink-2);
	font-size: 1.1875rem;
}

.section-head + .lede {
	margin: -12px 0 28px;
}

.split {
	display: grid;
	gap: 36px;
}

@media (min-width: 960px) {
	.split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
		align-items: start;
	}

	.split--form {
		grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	}
}

.layout {
	display: grid;
	gap: 48px;
}

@media (min-width: 1000px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 64px;
		align-items: start;
	}
}

.layout__side > * + * {
	margin-top: 24px;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: 6px;
	background: none;
	color: inherit;
	font-size: 1.0625rem;
	font-stretch: 87.5%;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
	width: 20px;
	height: 20px;
}

.btn--primary {
	background: var(--gold);
	color: var(--ink);
}

.btn--primary:hover {
	background: var(--gold-hover);
}

.btn--dark {
	background: var(--ink);
	color: #fff;
}

.btn--dark:hover {
	background: var(--steel);
}

.btn--outline {
	border-color: currentColor;
}

.btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
}

.btn--on-light {
	color: var(--ink);
}

.btn--on-light:hover {
	background: var(--mill);
}

.btn--sm {
	min-height: 44px;
	padding: 0 18px;
	font-size: 1rem;
}

.btn--block {
	width: 100%;
}

.btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	color: var(--ink);
	text-decoration: none;
}

.logo-mark {
	width: 38px;
	height: 38px;
	flex: none;
}

.brand__name {
	font-size: 1.625rem;
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.brand__logo {
	display: block;
	width: auto;
	max-height: 46px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 48px;
	min-height: 48px;
	color: var(--ink);
	font-size: 1.0625rem;
	font-stretch: 87.5%;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.header-phone .icon {
	width: 20px;
	height: 20px;
	color: var(--steel);
}

.header-phone__num,
.header-cta {
	display: none;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle__icon {
	display: inline-flex;
}

.nav-toggle__icon--close,
.site-header.is-open .nav-toggle__icon--open {
	display: none;
}

.site-header.is-open .nav-toggle__icon--close {
	display: inline-flex;
}

/* Phone-size menu panel. */
.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	max-height: calc(100vh - var(--header-h));
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding: 4px var(--gutter) 24px;
	background: #fff;
	border-bottom: 1px solid var(--line);
	box-shadow: 0 24px 40px -24px rgba(20, 24, 29, 0.45);
}

.site-header.is-open .site-nav {
	display: block;
}

.nav-list,
.sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--line);
}

.nav-list > li > a {
	flex: 1;
	padding: 14px 0;
	color: var(--ink);
	font-size: 1.1875rem;
	font-weight: 700;
	text-decoration: none;
}

.nav-list a[aria-current="page"] {
	color: var(--blue);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.submenu-toggle .icon {
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.sub-menu {
	display: none;
	width: 100%;
	padding: 0 0 12px 14px;
}

.menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.sub-menu a {
	display: block;
	padding: 9px 0;
	color: var(--ink);
	text-decoration: none;
}

.sub-menu a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.site-nav__cta .btn-row {
	margin-top: 20px;
}

.site-nav__cta .btn {
	flex: 1 1 200px;
}

@media (min-width: 600px) {
	.header-phone__num,
	.header-cta {
		display: inline-flex;
	}

	.header-phone {
		padding: 0 6px;
	}
}

@media (min-width: 1080px) {
	.nav-toggle,
	.site-nav__cta {
		display: none;
	}

	.site-nav {
		display: block;
		position: static;
		max-height: none;
		margin-left: 20px;
		padding: 0;
		overflow: visible;
		border: 0;
		background: none;
		box-shadow: none;
	}

	.nav-list {
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.nav-list > li {
		position: relative;
		flex-wrap: nowrap;
		border: 0;
	}

	.nav-list > li > a {
		padding: 10px 12px;
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.nav-list > li > a:hover {
		color: var(--blue);
	}

	.submenu-toggle {
		width: 26px;
		height: 40px;
		margin-left: -10px;
	}

	.sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		width: 500px;
		grid-template-columns: 1fr 1fr;
		gap: 2px 12px;
		padding: 12px;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 10px;
		box-shadow: 0 24px 48px -20px rgba(20, 24, 29, 0.45);
	}

	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu,
	.menu-item-has-children.is-open > .sub-menu {
		display: grid;
	}

	.sub-menu a {
		padding: 9px 12px;
		border-radius: 6px;
	}

	.sub-menu a:hover {
		background: var(--mill);
		text-decoration: none;
	}
}

/* ---------- Heroes (ribbed steel) ---------- */

.hero,
.page-hero {
	background-color: var(--steel);
	background-image: var(--sheen), var(--shade), var(--ribs);
	color: #fff;
}

.hero {
	padding-top: clamp(44px, 7vw, 92px);
}

.hero__title {
	max-width: 15ch;
	font-size: clamp(3rem, 1.4rem + 4.6vw, 5rem);
	line-height: 0.96;
	letter-spacing: -0.01em;
}

.nowrap {
	white-space: nowrap;
}

.hero__intro {
	max-width: 46ch;
	margin-top: 22px;
	color: var(--galv);
	font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
	line-height: 1.5;
}

.hero__panel {
	position: relative;
	z-index: 2;
	margin-top: clamp(40px, 6vw, 64px);
	margin-bottom: -72px;
	padding: clamp(18px, 2.5vw, 28px);
	background: #fff;
	color: var(--ink);
	border-radius: 12px;
	box-shadow: 0 28px 56px -28px rgba(20, 24, 29, 0.55), 0 2px 6px rgba(20, 24, 29, 0.12);
}

.hero__panel-title {
	margin-bottom: 16px;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}

.section--after-hero {
	padding-top: calc(72px + clamp(48px, 6vw, 88px));
}

@media (min-width: 1080px) {
	.hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 520px;
		column-gap: 48px;
		align-items: end;
	}

	.hero__copy {
		padding-bottom: clamp(56px, 6vw, 88px);
	}

	.hero__title {
		max-width: none;
		font-size: clamp(3.75rem, 1rem + 4.2vw, 4.875rem);
	}

	.hero__panel {
		margin-top: 0;
	}

	.hero__panel .picker {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero__panel .picker__item {
		flex-direction: row;
		align-items: flex-start;
		gap: 12px;
		padding: 14px;
	}

	.hero__panel .picker__item .bicon {
		flex: none;
		width: 40px;
		height: 40px;
		margin: 2px 0 0;
	}

}

.page-hero {
	padding-block: clamp(28px, 4.5vw, 52px) clamp(40px, 6vw, 72px);
}

.page-hero__title {
	max-width: 20ch;
	font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.125rem);
	line-height: 0.98;
}

.page-hero__meta {
	margin-top: 12px;
	color: var(--gold);
	font-weight: 700;
}

.page-hero__intro {
	max-width: 60ch;
	margin-top: 18px;
	color: var(--galv);
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	line-height: 1.5;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	color: var(--galv);
	font-size: 0.9375rem;
}

.crumbs li + li::before {
	content: "/";
	margin: 0 10px;
	opacity: 0.55;
}

.crumbs a {
	color: var(--galv);
	text-decoration-color: rgba(221, 226, 230, 0.45);
}

.crumbs a:hover {
	color: #fff;
}

/* ---------- Building picker ---------- */

.picker {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.picker {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.picker {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.picker:has(> li:nth-child(4):last-child),
	.picker:has(> li:nth-child(8):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.picker:has(> li:nth-child(5):last-child),
	.picker:has(> li:nth-child(9):last-child) {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.picker__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 16px 18px;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.picker__item:hover {
	border-color: var(--steel);
	box-shadow: inset 0 -4px 0 var(--gold);
}

.bicon {
	flex: none;
	width: 44px;
	height: 44px;
	color: var(--steel);
}

.bicon .i-foam {
	stroke: var(--gold-ink);
}

.picker__item .bicon {
	margin-bottom: 6px;
}

.picker__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.picker__label {
	font-size: 1.1875rem;
	font-stretch: 87.5%;
	font-weight: 800;
	line-height: 1.15;
}

.picker__hint {
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.35;
}

.picker__more {
	margin-top: 14px;
	color: var(--muted);
	font-size: 1rem;
}

/* ---------- Trust strip ---------- */

.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}

.trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.trust .icon {
	width: 19px;
	height: 19px;
	color: var(--gold);
}

.trust--dark {
	color: var(--galv);
}

.trust--stack {
	flex-direction: column;
	gap: 10px;
}

.trust .muted {
	color: inherit;
	opacity: 0.8;
}

/* ---------- Rates + tables ---------- */

.price-head {
	display: grid;
	gap: 8px 64px;
	margin-bottom: 36px;
}

@media (min-width: 960px) {
	.price-head {
		grid-template-columns: minmax(0, 1fr) 400px;
		align-items: end;
	}
}

.price-head .rates {
	margin-top: 20px;
}

.rates {
	margin: 28px 0 0;
	border-top: 2px solid var(--ink);
}

.rates > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.rates dt {
	font-weight: 700;
}

.rates dd {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
	text-align: right;
}

.rates strong {
	display: block;
	color: var(--ink);
	font-size: 1.625rem;
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.spec-table,
.entry .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.spec-table thead th,
.entry .wp-block-table thead th {
	padding: 10px 14px;
	border: 0;
	border-bottom: 2px solid var(--ink);
	color: var(--muted);
	font-size: 0.9375rem;
	font-stretch: 87.5%;
	font-weight: 700;
	text-align: left;
	vertical-align: bottom;
}

.spec-table tbody th,
.spec-table td,
.entry .wp-block-table tbody th,
.entry .wp-block-table td {
	padding: 14px;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.spec-table tbody th {
	font-weight: 700;
}

.spec-table th:first-child,
.spec-table td:first-child,
.entry .wp-block-table th:first-child,
.entry .wp-block-table td:first-child {
	padding-left: 0;
}

.spec-table th:last-child,
.spec-table td:last-child,
.entry .wp-block-table th:last-child,
.entry .wp-block-table td:last-child {
	padding-right: 0;
}

.spec-table .num {
	text-align: right;
	white-space: nowrap;
}

.spec-table .price {
	color: var(--ink);
	font-size: 1.1875rem;
	font-stretch: 87.5%;
	font-weight: 800;
}

.table-note {
	margin-top: 12px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.entry .wp-block-table {
	margin-inline: 0;
	overflow-x: auto;
}

.entry .wp-block-table thead {
	border-bottom: 0;
}

.entry .wp-block-table figcaption {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.9375rem;
}

@media (max-width: 640px) {
	.price-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.price-table,
	.price-table tbody {
		display: block;
	}

	.price-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 14px;
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
	}

	.price-table tbody th,
	.price-table td {
		display: block;
		grid-column: 1;
		padding: 0;
		border: 0;
	}

	.price-table td {
		color: var(--muted);
		font-size: 0.9375rem;
	}

	.price-table td.price {
		grid-column: 2;
		grid-row: 1 / span 3;
		color: var(--ink);
		font-size: 1.125rem;
	}

	.compare-table,
	.compare-table tbody {
		display: block;
	}

	.compare-table thead {
		display: none;
	}

	.compare-table tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
	}

	.compare-table tbody th {
		grid-column: 1 / -1;
		padding: 0 0 6px;
		border: 0;
	}

	.compare-table td {
		padding: 0;
		border: 0;
		font-size: 0.9375rem;
	}

	.compare-table td::before {
		content: attr(data-label);
		display: block;
		color: var(--muted);
		font-size: 0.8125rem;
		font-weight: 700;
	}
}

/* ---------- Steps, cards, reviews ---------- */

.steps {
	display: grid;
	gap: 32px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.step {
	padding-top: 18px;
	border-top: 4px solid var(--gold);
}

.step__n {
	display: block;
	color: var(--steel);
	font-size: 3.25rem;
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1;
}

.step__title {
	margin: 12px 0 8px;
}

.step p {
	color: var(--ink-2);
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card__link {
	display: block;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none;
}

.card__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background-color: var(--steel);
}

.card__img--empty {
	background-image: var(--shade), var(--ribs);
}

.card__body {
	display: block;
	padding: 16px 18px 20px;
}

.card__title {
	display: block;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
}

.card__meta {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.card__link:hover .card__title {
	text-decoration: underline;
}

.reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.review {
	padding-top: 18px;
	border-top: 4px solid var(--steel);
}

.review__stars {
	display: flex;
	gap: 2px;
	margin-bottom: 12px;
	color: var(--gold-ink);
}

.review__stars .icon {
	width: 20px;
	height: 20px;
}

.review blockquote {
	margin: 0;
	font-size: 1.125rem;
}

.review__by {
	margin-top: 12px;
	font-weight: 700;
}

/* ---------- Lists of cities and services ---------- */

.city-list {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 4 180px;
	column-gap: 32px;
}

.city-list li {
	break-inside: avoid;
}

.city-list a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.city-list a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.service-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.service-list a:hover {
	border-color: var(--steel);
	box-shadow: inset 0 -4px 0 var(--gold);
}

.service-list .bicon {
	width: 40px;
	height: 40px;
}

.service-list strong {
	display: block;
	font-size: 1.125rem;
	font-stretch: 87.5%;
	font-weight: 800;
	line-height: 1.2;
}

.service-list .muted {
	display: block;
	font-size: 0.9375rem;
	line-height: 1.35;
}

/* ---------- Page content ---------- */

.section--page {
	padding-top: clamp(40px, 5vw, 64px);
}

.entry > * {
	margin-top: 0;
	margin-bottom: 0;
}

.entry > * + * {
	margin-top: 1.1em;
}

.entry > :where(p, .wp-block-list, h2, h3, h4, blockquote, details, .lede) {
	max-width: 70ch;
}

.entry > h2 {
	margin-top: 1.9em;
	font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.625rem);
}

.entry > h3 {
	margin-top: 1.6em;
}

.entry > h2 + *,
.entry > h3 + * {
	margin-top: 0.6em;
}

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

.entry > .wp-block-list {
	padding-left: 1.3em;
}

.entry > .wp-block-list > li + li {
	margin-top: 0.45em;
}

.entry > .wp-block-list > li::marker {
	color: var(--steel);
}

.entry strong {
	font-weight: 700;
}

.entry > .table-wrap,
.entry > .wp-block-table {
	margin-top: 1.5em;
}

.entry > .table-wrap + .table-note {
	margin-top: 12px;
}

.entry details {
	border-top: 1px solid var(--line);
}

.entry details + details {
	margin-top: 0;
}

.entry details:not(:has(+ details)) {
	border-bottom: 1px solid var(--line);
}

.entry details > summary {
	position: relative;
	padding: 18px 44px 18px 0;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.entry details > summary::-webkit-details-marker {
	display: none;
}

.entry details > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 8px;
	width: 11px;
	height: 11px;
	border-right: 2.5px solid var(--steel);
	border-bottom: 2.5px solid var(--steel);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.entry details[open] > summary::after {
	transform: translateY(-25%) rotate(225deg);
}

.entry details > :not(summary) {
	max-width: 68ch;
	margin: 0 0 18px;
	color: var(--ink-2);
}

.entry details > :not(summary) + :not(summary) {
	margin-top: -6px;
}

.entry blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--gold);
}

.entry > .lead-form,
.entry > .calc {
	margin-top: 2em;
}

.entry > .lead-form {
	max-width: 760px;
}

.entry > .nap + .lead-form {
	margin-top: 1.5em;
}

.entry .callout,
.entry .wp-block-group.is-style-callout {
	padding: 20px 24px;
	background: var(--mill);
	border-left: 4px solid var(--gold);
}

/* ---------- Side boxes ---------- */

.specs {
	padding: 20px 22px 8px;
	background: var(--mill);
	border-top: 4px solid var(--steel);
	border-radius: 0 0 10px 10px;
}

.specs__title,
.side-box__title {
	margin: 0 0 8px;
	font-size: 1.375rem;
}

.specs dl {
	margin: 0;
}

.specs dl > div {
	display: grid;
	grid-template-columns: 8.5em minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.specs dl > div:last-child {
	border-bottom: 0;
}

.specs dt {
	color: var(--muted);
	font-size: 0.9375rem;
}

.specs dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.side-box {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.side-box p {
	color: var(--ink-2);
}

.side-box__county {
	margin-bottom: 14px;
}

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

.side-box__list li + li {
	margin-top: 8px;
}

.side-box .btn-row {
	margin-top: 16px;
}

/* ---------- Lead form ---------- */

.lead-form {
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	box-shadow: 0 1px 2px rgba(20, 24, 29, 0.06);
}

.lead-form__title {
	font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.125rem);
}

.lead-form__intro {
	margin-top: 6px;
	color: var(--muted);
}

.field-row {
	display: grid;
	column-gap: 16px;
}

@media (min-width: 600px) {
	.lead-form:not(.is-compact) .field-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.field-row:has(.field--zip) {
		grid-template-columns: minmax(0, 1fr) 9em !important;
	}
}

.is-compact .field-row:has(.field--zip) {
	grid-template-columns: minmax(0, 1fr) !important;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 16px;
	min-width: 0;
}

.field label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

.opt {
	color: var(--muted);
	font-weight: 400;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	background: #fff;
	border: 1.5px solid var(--field);
	border-radius: 6px;
	color: var(--ink);
	font-size: 1.0625rem;
	line-height: 1.3;
}

.field select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232B3440' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	-webkit-appearance: none;
	appearance: none;
}

.field textarea {
	min-height: 96px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--blue);
	outline: 3px solid rgba(24, 100, 171, 0.25);
	outline-offset: 0;
}

.lead-form .btn--block {
	margin-top: 22px;
}

.lead-form__fine {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.875rem;
}

.form-error {
	margin-top: 16px;
	padding: 12px 14px;
	background: #fef3f2;
	border-left: 4px solid var(--danger);
	color: #7a271a;
	font-weight: 600;
}

.hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nap {
	display: grid;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.nap li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.nap .icon {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--gold);
}

.section--steel .nap {
	color: var(--galv);
}

.section--steel .nap a,
.site-footer .nap a {
	color: #fff;
}

/* ---------- Calculator ---------- */

.calc {
	display: grid;
	gap: 28px;
}

@media (min-width: 1000px) {
	.calc {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 48px;
		align-items: start;
	}

	.calc__result {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

.calc__step {
	min-width: 0;
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.calc__step legend {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding: 0;
	font-size: 1.75rem;
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1.1;
}

.calc__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--steel);
	color: #fff;
	font-size: 1.0625rem;
	font-stretch: 100%;
}

.calc__types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 640px) {
	.calc__types {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.calc__type {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	padding: 10px 12px;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.calc__type input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.calc__type .bicon {
	width: 34px;
	height: 34px;
}

.calc__type:hover {
	border-color: var(--steel);
}

.calc__type.is-checked {
	background: var(--mill);
	border-color: var(--ink);
	box-shadow: inset 0 -4px 0 var(--gold);
}

.calc__type:focus-within {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.calc__type:has(input:focus:not(:focus-visible)) {
	outline: none;
}

.calc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
	gap: 0 16px;
}

.calc__grid--2 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.calc .field {
	margin: 0 0 16px;
}

.calc__input {
	position: relative;
	display: block;
}

.calc__input input {
	padding-right: 60px;
}

.calc__suffix {
	position: absolute;
	top: 50%;
	right: 14px;
	color: var(--muted);
	font-size: 0.9375rem;
	transform: translateY(-50%);
	pointer-events: none;
}

.calc__presets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.calc__presets-label {
	margin-right: 4px;
	font-size: 0.9375rem;
	font-weight: 600;
}

.calc__preset {
	min-height: 40px;
	padding: 0 16px;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 20px;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}

.calc__preset:hover {
	border-color: var(--steel);
}

.calc__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	line-height: 1.45;
	cursor: pointer;
}

.calc__check input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--steel);
}

.calc__hint {
	color: var(--muted);
	font-size: 0.9375rem;
}

.calc__result {
	padding: 24px;
	background-color: var(--steel);
	background-image: var(--shade), var(--ribs);
	border-radius: 12px;
	color: #fff;
}

.calc__label {
	color: var(--galv);
	font-size: 0.9375rem;
	font-weight: 600;
}

.calc__price {
	margin-top: 4px;
	color: var(--gold);
	font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.875rem);
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.calc__lines {
	margin: 16px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid rgba(221, 226, 230, 0.22);
	list-style: none;
	color: var(--galv);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.calc__lines:empty {
	display: none;
}

.calc__lines li + li {
	margin-top: 6px;
}

.calc__result .btn {
	margin-top: 20px;
}

.calc__fine {
	margin-top: 12px;
	color: rgba(221, 226, 230, 0.85);
	font-size: 0.875rem;
}

.calc__float {
	position: sticky;
	bottom: calc(72px + env(safe-area-inset-bottom));
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding: 12px 16px;
	background: var(--steel);
	border-radius: 10px;
	box-shadow: 0 12px 28px -12px rgba(20, 24, 29, 0.7);
	color: var(--galv);
	font-weight: 600;
	text-decoration: none;
}

.calc__float strong {
	color: var(--gold);
	font-size: 1.5rem;
	font-stretch: 75%;
	font-weight: 800;
}

@media (min-width: 900px) {
	.calc__float {
		bottom: 16px;
	}
}

@media (min-width: 1000px) {
	.calc__float {
		display: none;
	}
}

.calc__noscript {
	padding: 16px;
	background: var(--mill);
}

/* ---------- Bands ---------- */

.cta-band {
	padding-block: clamp(44px, 6vw, 72px);
	background: var(--gold);
	color: var(--ink);
}

.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
}

.cta-band h2 {
	max-width: 20ch;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
}

.cta-band p {
	max-width: 52ch;
	margin-top: 10px;
	font-size: 1.125rem;
}

.cta-band .btn-row {
	margin-top: 0;
}

.cta-band .btn--outline:hover {
	background: rgba(20, 24, 29, 0.08);
}

/* ---------- Footer ---------- */

.site-footer {
	padding-block: clamp(52px, 7vw, 88px) 28px;
	background: var(--ink);
	color: var(--galv);
	font-size: 1rem;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--gold);
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	gap: 40px 32px;
}

@media (min-width: 700px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.site-footer__grid {
		grid-template-columns: 1.35fr 1fr 1.35fr 0.8fr;
		gap: 48px;
	}
}

.brand--footer {
	color: #fff;
}

.site-footer__tagline {
	max-width: 40ch;
	margin-top: 16px;
}

.site-footer__title {
	margin-bottom: 14px;
	color: #fff;
	font-size: 1.25rem;
	font-stretch: 87.5%;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__col li + li {
	margin-top: 8px;
}

.area-grid {
	columns: 2;
	column-gap: 24px;
}

.area-grid li {
	break-inside: avoid;
}

.profiles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 20px !important;
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid rgba(221, 226, 230, 0.16);
	font-size: 0.9375rem;
}

/* ---------- Phone-size action bar ---------- */

.mobile-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--ink);
	border-top: 1px solid #000;
}

.mobile-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 60px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.mobile-bar__item .icon {
	width: 22px;
	height: 22px;
}

.mobile-bar__item + .mobile-bar__item {
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-bar__item--price {
	background: var(--gold);
	color: var(--ink);
}

@media (min-width: 900px) {
	.mobile-bar {
		display: none;
	}
}

/* ---------- Misc ---------- */

.project-photo {
	margin: 0 0 1.5em;
}

.project-photo img {
	display: block;
	width: 100%;
	border-radius: 10px;
}

.project-quote {
	margin: 2em 0 0;
	padding: 22px 24px;
	background: var(--mill);
	border-left: 4px solid var(--gold);
}

.project-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.25rem;
}

.project-quote figcaption {
	margin-top: 10px;
	font-weight: 700;
}

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-top: 1.5em;
}

.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 10px;
}

.empty {
	max-width: 62ch;
}

.empty h2 {
	margin-bottom: 12px;
}

.post-list {
	display: grid;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-list__title {
	font-size: 1.75rem;
}

.post-list__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-list__title a:hover {
	text-decoration: underline;
}

.post-list__date {
	margin: 6px 0 8px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.mobile-bar,
	.cta-band,
	.site-footer,
	.lead-form {
		display: none !important;
	}

	.hero,
	.page-hero {
		background: none;
		color: var(--ink);
	}
}
