/* ==========================================================================
   NCON Construction Group LLC
   1. Tokens and base   2. Layout helpers   3. Buttons   4. Header
   5. Hero and page hero   6. Home sections   7. Gallery   8. Testimonials
   9. Estimate form   10. Inner pages   11. CTA band and footer
   12. Sticky mobile bar   13. WordPress bits   14. Motion and print
   ========================================================================== */

/* 1. Tokens and base
   ========================================================================== */
:root {
	--navy: #0f1f33;
	--navy-2: #1a2f4b;
	--ink: #0b1626;
	--stone: #f4efe7;
	--stone-2: #e9e1d3;
	--line: #d8cfc0;
	--text: #1c2733;
	--muted: #55606c;
	--white: #ffffff;
	--accent: #e5a00d;
	--accent-contrast: #0b1626;
	--focus: #0f1f33;
	--radius: 4px;
	--container: 1180px;
	--gutter: 20px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--shadow: 0 18px 40px rgba(11, 22, 38, 0.18);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	color: var(--navy);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

a {
	color: var(--navy);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--accent);
}

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

.icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

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

/* 2. Layout helpers
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--container) + (var(--gutter) * 2));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container--narrow {
	max-width: calc(800px + (var(--gutter) * 2));
}

.section {
	padding: 64px 0;
}

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

.section--dark {
	--focus: #ffffff;
	background: var(--navy);
	color: rgba(255, 255, 255, 0.86);
}

.section--dark h2,
.section--dark h3 {
	color: var(--white);
}

.section__head {
	max-width: 760px;
	margin-bottom: 40px;
}

.section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	max-width: none;
}

.section__head--row > div {
	max-width: 760px;
}

.section__head--row .section__lead {
	margin-bottom: 0;
}

.section__title {
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.7rem);
}

.section__lead {
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--navy);
	font-weight: 600;
}

.section--dark .section__lead {
	color: var(--white);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--navy);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 4px;
	background: var(--accent);
}

.eyebrow--light {
	color: rgba(255, 255, 255, 0.9);
}

.split {
	display: grid;
	gap: 40px;
	align-items: center;
}

.panel {
	padding: 28px 24px;
	background: var(--stone);
	border-left: 6px solid var(--accent);
}

.panel__title {
	font-size: 1.25rem;
	margin-bottom: 18px;
}

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

.checklist li {
	position: relative;
	margin: 0;
	padding: 12px 0 12px 40px;
	border-top: 1px solid var(--line);
	font-weight: 600;
	color: var(--navy);
	line-height: 1.45;
}

.checklist li:first-child {
	border-top: 0;
}

.checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 26px;
	height: 26px;
	background-color: var(--navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M9.2 16.6 4.8 12.2l-1.6 1.6 6 6L21 8l-1.6-1.6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	border-radius: 2px;
}

/* Image slots and placeholders */
.slot {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--stone-2);
	aspect-ratio: 4 / 3;
}

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

.slot--portrait {
	aspect-ratio: 4 / 5;
}

.slot--stone {
	aspect-ratio: 3 / 4;
}

.ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	padding: 16px;
	text-align: center;
	color: var(--muted);
	background-color: #e4dbcb;
	background-image:
		repeating-linear-gradient(135deg, rgba(15, 31, 51, 0.05) 0 2px, transparent 2px 14px),
		linear-gradient(160deg, #efe8db 0%, #ddd2bf 100%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.ph .icon {
	width: 34px;
	height: 34px;
	opacity: 0.6;
}

.ph__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.slot--stone-alt .ph {
	color: rgba(255, 255, 255, 0.82);
	background-color: #24364f;
	background-image:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px),
		linear-gradient(200deg, #2c4160 0%, #16263c 100%);
	border-color: #16263c;
}

/* 3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn--accent {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.btn--accent:hover {
	filter: brightness(0.93);
}

.btn--dark {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

.btn--dark:hover {
	background: var(--navy-2);
	border-color: var(--navy-2);
}

.btn--ghost {
	background: transparent;
	border-color: var(--navy);
	color: var(--navy);
}

.btn--ghost:hover {
	background: var(--navy);
	color: var(--white);
}

.btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--white);
}

.btn--ghost-light:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--navy);
}

.btn--text {
	min-height: 48px;
	padding-left: 4px;
	padding-right: 4px;
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.btn--sm {
	min-height: 44px;
	padding: 8px 16px;
	font-size: 0.9375rem;
	white-space: nowrap;
}

.btn--lg {
	min-height: 56px;
	padding: 14px 28px;
	font-size: 1.0625rem;
}

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

.btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 28px 0 0;
}

.btn-row--center {
	justify-content: center;
	margin-top: 40px;
}

.btn-row--stack {
	flex-direction: column;
	align-items: stretch;
	max-width: 360px;
}

/* 4. Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 68px;
}

.brand {
	display: inline-flex;
	flex-direction: column;
	margin: 0 auto 0 0;
	color: var(--navy);
	text-decoration: none;
	line-height: 1;
}

.brand__mark {
	font-size: 1.75rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	padding-bottom: 4px;
	border-bottom: 4px solid var(--accent);
}

.brand__sub {
	margin-top: 5px;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	white-space: nowrap;
}

.brand--logo .custom-logo-link {
	display: block;
}

.brand--logo .custom-logo {
	display: block;
	width: auto;
	max-height: 52px;
}

.nav-toggle {
	order: 3;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 12px;
	background: transparent;
	border: 2px solid var(--navy);
	border-radius: var(--radius);
	color: var(--navy);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.15s ease;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.header-actions {
	order: 2;
	display: none;
	align-items: center;
	gap: 16px;
}

.header-phone {
	display: none;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	color: var(--navy);
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - 68px);
	overflow-y: auto;
	background: var(--white);
	border-bottom: 4px solid var(--accent);
	box-shadow: var(--shadow);
}

/* Without JavaScript the menu is simply shown under the header bar. */
.js .primary-nav {
	display: none;
}

.js .primary-nav.is-open {
	display: block;
}

.no-js .nav-toggle {
	display: none;
}

.no-js .primary-nav {
	position: static;
	box-shadow: none;
	border-bottom: 0;
	flex-basis: 100%;
	order: 4;
}

.no-js .site-header__inner {
	flex-wrap: wrap;
}

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu {
	padding: 8px var(--gutter) 16px;
}

.primary-nav a {
	display: block;
	padding: 14px 4px;
	border-bottom: 1px solid var(--line);
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
}

.primary-nav .sub-menu a {
	padding-left: 20px;
	font-weight: 600;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	box-shadow: inset 4px 0 0 var(--accent);
	padding-left: 14px;
}

@media (min-width: 480px) {
	.header-actions {
		display: flex;
	}
}

@media (min-width: 700px) {
	.header-phone {
		display: inline-flex;
	}
}

@media (min-width: 1140px) {
	.site-header__inner {
		min-height: 80px;
		gap: 28px;
	}

	.nav-toggle {
		display: none;
	}

	.primary-nav,
	.js .primary-nav {
		position: static;
		display: block;
		max-height: none;
		overflow: visible;
		border: 0;
		box-shadow: none;
		order: 1;
	}

	.header-actions {
		order: 2;
	}

	/* The number returns to the header once there is room beside the menu. */
	.header-phone {
		display: none;
	}

	.primary-nav .menu {
		display: flex;
		align-items: center;
		gap: 2px;
		padding: 0;
	}

	.primary-nav .menu > li {
		position: relative;
	}

	.primary-nav a {
		padding: 10px 9px;
		border-bottom: 0;
		font-size: 0.9375rem;
		white-space: nowrap;
	}

	.primary-nav .menu > li > a {
		box-shadow: inset 0 -3px 0 transparent;
	}

	.primary-nav .menu > li > a:hover,
	.primary-nav .menu > .current-menu-item > a,
	.primary-nav .menu > .current_page_item > a {
		box-shadow: inset 0 -3px 0 var(--accent);
		padding-left: 9px;
	}

	.primary-nav .sub-menu {
		position: absolute;
		left: 0;
		top: 100%;
		display: none;
		min-width: 220px;
		padding: 8px 0;
		background: var(--white);
		border-top: 3px solid var(--accent);
		box-shadow: var(--shadow);
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu {
		display: block;
	}

	.primary-nav .sub-menu a {
		padding: 10px 18px;
	}
}

@media (min-width: 1380px) {
	.site-header--has-phone .container {
		max-width: calc(1340px + (var(--gutter) * 2));
	}

	.header-phone {
		display: inline-flex;
	}
}

/* 5. Hero and page hero
   ========================================================================== */
.hero,
.page-hero {
	--focus: #ffffff;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.88);
	background-color: var(--navy);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(135deg, var(--ink) 0%, var(--navy) 55%, var(--navy-2) 100%);
	background-size: 56px 56px, 56px 56px, 100% 100%;
}

.hero::after,
.page-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -120px;
	bottom: 0;
	width: 420px;
	height: 8px;
	background: var(--accent);
	transform: skewX(-35deg);
}

.hero__media,
.page-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__media img,
.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__media::after,
.page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(11, 22, 38, 0.94) 0%, rgba(11, 22, 38, 0.8) 55%, rgba(11, 22, 38, 0.55) 100%);
}

.hero {
	padding: 48px 0 56px;
}

.hero__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

.hero__title {
	margin-bottom: 20px;
	font-size: clamp(2rem, 1.25rem + 3vw, 3.3rem);
	line-height: 1.07;
	letter-spacing: -0.025em;
	color: var(--white);
}

.hl {
	color: var(--accent);
}

.hero__lead {
	max-width: 58ch;
	margin-bottom: 12px;
	font-size: 1.125rem;
	line-height: 1.6;
}

.hero__sign {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--white);
}

.hero__tagline {
	display: inline-block;
	margin: 36px 0 0;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--white);
}

.page-hero {
	padding: 48px 0 52px;
}

.page-hero__title {
	margin: 0;
	font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem);
	color: var(--white);
}

.page-hero__lead {
	max-width: 62ch;
	margin: 18px 0 0;
	font-size: 1.1875rem;
	line-height: 1.55;
}

/* 6. Home sections
   ========================================================================== */
.stats {
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
}

.stat {
	padding: 28px 16px 26px 0;
	border-top: 1px solid var(--line);
}

.stat:nth-child(-n + 2) {
	border-top: 0;
}

.stat:nth-child(even) {
	padding-left: 20px;
	border-left: 1px solid var(--line);
}

.stat__num {
	display: inline-block;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 5px solid var(--accent);
	font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.5rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--navy);
}

.stat__label {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--muted);
}

.figure-box {
	padding: 32px 24px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-left: 6px solid var(--accent);
}

.figure-box__num {
	margin: 0 0 8px;
	font-size: clamp(2.4rem, 11vw, 4.2rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--accent);
	white-space: nowrap;
}

.figure-box__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86);
}

.callout {
	margin: 24px 0 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--accent);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--white);
}

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

.fact {
	padding: 20px;
	background: var(--white);
	border-top: 5px solid var(--accent);
}

.fact__num {
	display: block;
	margin-bottom: 6px;
	font-size: 1.9rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.fact__label {
	display: block;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--muted);
}

.stone-photos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	align-items: start;
}

.stone-photos .slot--stone-alt {
	margin-top: 40px;
}

.steps {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step {
	position: relative;
	margin: 0;
	padding: 22px 20px 22px 84px;
	background: var(--stone);
	border-top: 4px solid var(--navy);
	counter-increment: step;
}

.step::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 1.125rem;
	font-weight: 900;
}

.step__title {
	margin: 0 0 6px;
	font-size: 1.125rem;
	letter-spacing: 0;
}

.step__text {
	margin: 0;
	font-size: 0.9875rem;
	line-height: 1.5;
	color: var(--muted);
}

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

@media (min-width: 768px) {
	.section {
		padding: 88px 0;
	}

	.hero {
		padding: 72px 0 80px;
	}

	.page-hero {
		padding: 72px 0 76px;
	}

	.stats__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.stat,
	.stat:nth-child(even) {
		padding: 36px 24px 34px;
		border-top: 0;
		border-left: 1px solid var(--line);
	}

	.stat:first-child {
		padding-left: 0;
		border-left: 0;
	}

	.panel {
		padding: 36px 32px;
	}

	.figure-box {
		padding: 44px 36px;
	}
}

@media (min-width: 960px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
		gap: 56px;
	}

	.split {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 72px;
	}

	.split--reverse {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	.figure-box__num {
		font-size: clamp(2.6rem, 4.3vw, 3.9rem);
	}
}

@media (min-width: 1000px) {
	.section {
		padding: 104px 0;
	}

	/* Full-width step row (home page). Inside page text the steps stay stacked. */
	.section > .container > .steps {
		grid-template-columns: repeat(5, 1fr);
	}

	.section > .container > .steps > .step {
		padding: 84px 20px 26px;
	}
}

/* 7. Gallery
   ========================================================================== */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
}

.filter {
	min-height: 44px;
	padding: 8px 16px;
	background: var(--white);
	border: 2px solid var(--navy);
	border-radius: var(--radius);
	color: var(--navy);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}

.filter:hover {
	background: var(--stone);
}

.filter.is-active {
	background: var(--navy);
	color: var(--white);
}

.no-js .filters {
	display: none;
}

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

.project {
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.project[hidden] {
	display: none;
}

.project__body {
	padding: 20px 20px 22px;
	border-top: 4px solid var(--navy);
}

.project__cat {
	margin: 0 0 6px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.project__title {
	margin: 0;
	font-size: 1.25rem;
}

.project__caption {
	margin: 8px 0 0;
	font-size: 0.9875rem;
	color: var(--muted);
}

.project--placeholder .project__title {
	color: var(--muted);
	font-weight: 700;
}

.projects__empty {
	margin: 0;
	padding: 28px 20px;
	background: var(--stone);
	border: 1px dashed var(--line);
	font-weight: 700;
	color: var(--muted);
	text-align: center;
}

.projects__empty[hidden] {
	display: none;
}

.section--stone .projects__empty {
	background: var(--white);
}

.gallery-hint {
	display: none;
	margin: 24px 0 0;
	font-size: 0.9375rem;
	color: var(--muted);
}

.js .gallery-hint {
	display: block;
}

.gallery-intro {
	margin-bottom: 32px;
}

/* Before and after. Default (no JavaScript): two photos side by side. */
.ba {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
	background: var(--ink);
}

.ba__pane {
	position: relative;
	overflow: hidden;
	background: var(--stone-2);
}

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

.ba--single {
	display: block;
}

.ba--single .ba__pane {
	aspect-ratio: 4 / 3;
}

.ba__tag {
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 2;
	padding: 5px 10px;
	background: var(--ink);
	color: var(--white);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 2px;
}

.ba__tag--after {
	left: auto;
	right: 10px;
	background: var(--accent);
	color: var(--accent-contrast);
}

.ba__range,
.ba__handle {
	display: none;
}

/* Placeholder panes */
.ba--static .ba__pane--ph {
	aspect-ratio: 2 / 3;
	background-color: #e4dbcb;
	background-image:
		repeating-linear-gradient(135deg, rgba(15, 31, 51, 0.05) 0 2px, transparent 2px 14px),
		linear-gradient(160deg, #efe8db 0%, #d9cdb8 100%);
}

.ba--static .ba__pane--ph-after {
	background-color: #24364f;
	background-image:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px),
		linear-gradient(200deg, #2c4160 0%, #16263c 100%);
}

/* With JavaScript: a draggable comparison slider. */
.js .ba[data-ba] {
	--pos: 50%;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: ew-resize;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.js .ba[data-ba] .ba__pane {
	position: absolute;
	inset: 0;
}

.js .ba[data-ba] .ba__pane--before {
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.js .ba[data-ba] .ba__pane img {
	pointer-events: none;
}

.js .ba[data-ba] .ba__range {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.js .ba[data-ba] .ba__handle {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	z-index: 4;
	width: 4px;
	margin-left: -2px;
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(11, 22, 38, 0.25);
	pointer-events: none;
}

.js .ba[data-ba] .ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	background-color: var(--white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f1f33' d='M9 6 3 12l6 6v-4.5h6V18l6-6-6-6v4.500H9z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
	border: 3px solid var(--accent);
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(11, 22, 38, 0.35);
}

.js .ba[data-ba] .ba__range:focus-visible + .ba__handle::after {
	outline: 3px solid var(--white);
	outline-offset: 3px;
	box-shadow: 0 0 0 9px var(--ink);
}

@media (min-width: 760px) {
	.projects {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}
}

/* 8. Testimonials
   ========================================================================== */
.testimonial {
	position: relative;
	margin: 0 0 28px;
	padding: 28px 22px 24px;
	background: var(--stone);
	border-left: 6px solid var(--accent);
}

.testimonial__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
}

.testimonial__sub {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.testimonial blockquote {
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}

.testimonial blockquote p:last-child {
	margin-bottom: 0;
}

.testimonial-cards {
	display: grid;
	gap: 20px;
}

.testimonial--card {
	margin: 0;
	padding: 30px 24px 26px;
	border-left: 0;
	border-top: 6px solid var(--accent);
}

.testimonial--card::before {
	content: "\201C";
	display: block;
	height: 34px;
	margin-bottom: 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4.5rem;
	line-height: 1;
	color: var(--navy);
}

.testimonial--card .testimonial__title {
	font-size: 1.2rem;
}

@media (min-width: 768px) {
	.testimonial {
		padding: 36px 36px 32px;
	}

	.testimonial--card {
		padding: 30px 26px 28px;
	}
}

@media (min-width: 900px) {
	.testimonial-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

/* 9. Estimate form
   ========================================================================== */
.estimate {
	--focus: #0f1f33;
	padding: 26px 20px 24px;
	background: var(--white);
	border-top: 6px solid var(--accent);
	border-radius: var(--radius);
	color: var(--text);
	box-shadow: var(--shadow);
	scroll-margin-top: 96px;
}

.contact__form .estimate {
	border: 1px solid var(--line);
	border-top: 6px solid var(--accent);
}

.estimate__title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	color: var(--navy);
}

.estimate__intro {
	margin: 0 0 18px;
	font-weight: 600;
	color: var(--muted);
}

.estimate-form {
	margin-top: 20px;
}

.field {
	margin: 0 0 14px;
}

.field-row {
	display: grid;
	gap: 0 14px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--navy);
}

.req {
	color: #a4261c;
}

.field input,
.field select,
.field textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 10px 14px;
	background: var(--white);
	border: 2px solid #7d8590;
	border-radius: var(--radius);
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

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

.field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f1f33' d='M7 9.500 12 14.500l5-5 1.400 1.400L12 17.300 5.600 10.900z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px 20px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 3px solid var(--accent);
	outline-offset: 0;
	border-color: var(--navy);
}

.field [aria-invalid="true"] {
	border-color: #a4261c;
	background-color: #fff7f6;
}

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

.estimate__note {
	margin: 12px 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--muted);
}

.notice {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-left: 6px solid;
	border-radius: var(--radius);
	font-size: 0.9875rem;
}

.notice strong {
	display: block;
}

.notice ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

.notice--success {
	background: #e6f4ea;
	border-color: #1c7a3a;
	color: #0f4a22;
}

.notice--error {
	background: #fdecea;
	border-color: #a4261c;
	color: #6f1a13;
}

@media (min-width: 520px) {
	.estimate {
		padding: 32px 30px 30px;
	}

	.field-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 10. Inner pages
   ========================================================================== */
.entry-content {
	font-size: 1.0625rem;
}

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

.entry-content h2 {
	margin: 2.4em 0 0.6em;
	padding-top: 22px;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
	background: linear-gradient(var(--accent), var(--accent)) left top / 56px 5px no-repeat;
}

.entry-content h3 {
	margin: 1.8em 0 0.5em;
	font-size: 1.3rem;
}

.entry-content .lead {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--navy);
}

.entry-content strong {
	color: var(--navy);
}

.entry-content ul:not(.checklist),
.entry-content ol:not(.steps) {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content .checklist {
	margin: 0 0 1.6em;
	padding: 8px 22px;
	background: var(--stone);
	border-left: 6px solid var(--accent);
}

.entry-content .checklist li {
	margin: 0;
}

.entry-content .steps {
	margin: 0 0 1.6em;
}

.entry-content .step__title {
	margin: 0 0 6px;
	font-size: 1.125rem;
}

.entry-content .testimonial__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
}

.entry-content .btn-row {
	margin: 24px 0 8px;
}

.entry-content .stone-photos {
	margin: 28px 0 8px;
	max-width: 560px;
}

.entry-content img {
	border-radius: var(--radius);
}

.signature {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 40px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--line);
}

.signature__name {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--navy);
}

.signature__role {
	color: var(--muted);
	font-weight: 600;
}

.signature__tag {
	margin-top: 10px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--navy);
}

.about {
	display: grid;
	gap: 40px;
}

.about__aside {
	max-width: 420px;
}

.about__card {
	padding: 22px 24px 24px;
	background: var(--navy);
	border-bottom: 6px solid var(--accent);
	color: rgba(255, 255, 255, 0.86);
}

.about__name {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--white);
}

.about__role {
	margin: 2px 0 14px;
	font-size: 0.9375rem;
}

.about__facts {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.about__facts li {
	padding: 9px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact {
	display: grid;
	gap: 40px;
}

.contact__area {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 28px 0 0;
	padding: 16px 18px;
	background: var(--stone);
	border-left: 6px solid var(--accent);
	font-weight: 700;
	color: var(--navy);
}

.post-item {
	margin-bottom: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.post-item__title {
	font-size: 1.6rem;
}

.post-item__date {
	font-size: 0.875rem;
	color: var(--muted);
}

.post-item__media {
	margin-bottom: 28px;
}

@media (min-width: 900px) {
	.about {
		grid-template-columns: 340px minmax(0, 1fr);
		gap: 72px;
		align-items: start;
	}

	.about__aside {
		position: sticky;
		top: 112px;
	}

	.contact {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 72px;
		align-items: start;
	}
}

/* 11. CTA band and footer
   ========================================================================== */
.cta-band {
	--focus: var(--accent-contrast);
	padding: 56px 0;
	background: var(--accent);
	color: var(--accent-contrast);
}

.cta-band__inner {
	display: grid;
	gap: 28px;
	align-items: center;
}

.cta-band__title {
	margin: 0 0 8px;
	font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem);
	color: inherit;
}

.cta-band__lead {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 800;
}

.cta-band__text {
	max-width: 60ch;
	margin: 0;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cta-band .btn--dark {
	background: var(--accent-contrast);
	border-color: var(--accent-contrast);
	color: var(--accent);
}

.cta-band .btn--dark:hover {
	filter: brightness(1.25);
}

.cta-band .btn--ghost {
	border-color: currentColor;
	color: inherit;
}

.cta-band .btn--ghost:hover {
	background: var(--accent-contrast);
	border-color: var(--accent-contrast);
	color: var(--accent);
}

.site-footer {
	--focus: #ffffff;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9875rem;
}

.site-footer__grid {
	display: grid;
	gap: 36px;
	padding-top: 56px;
	padding-bottom: 44px;
}

.site-footer a {
	color: var(--white);
	text-decoration: none;
}

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

.brand--footer {
	margin: 0 0 18px;
	color: var(--white);
}

.site-footer__tagline {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--white);
}

.site-footer__area {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.site-footer__heading {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.footer-menu,
.site-footer__nav .menu,
.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a,
.site-footer__nav .menu a,
.contact-list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 4px 0;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	padding: 18px 0;
	font-size: 0.875rem;
}

.site-footer__bottom p {
	margin: 0;
}

@media (min-width: 560px) {
	.footer-menu {
		columns: 2;
		column-gap: 32px;
	}
}

@media (min-width: 900px) {
	.cta-band {
		padding: 72px 0;
	}

	.cta-band__inner {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
		gap: 56px;
	}

	.cta-band__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.site-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr;
		gap: 56px;
	}
}

/* 12. Sticky mobile bar
   ========================================================================== */
.sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: flex;
	background: var(--ink);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-bottom: env(safe-area-inset-bottom, 0);
	box-shadow: 0 -6px 20px rgba(11, 22, 38, 0.25);
}

.sticky-bar__btn {
	--focus: #ffffff;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 60px;
	padding: 6px 4px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--white);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.sticky-bar__btn:first-child {
	border-left: 0;
}

.sticky-bar__btn:focus-visible {
	outline-offset: -4px;
}

.sticky-bar__btn--accent {
	flex-grow: 1.5;
	background: var(--accent);
	border-left: 0;
	color: var(--accent-contrast);
}

/* When Estimate is the only button, lay it out as one wide button. */
.sticky-bar__btn--accent:only-child {
	flex-direction: row;
	gap: 10px;
	font-size: 1rem;
	letter-spacing: 0;
}

body {
	padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

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

	body {
		padding-bottom: 0;
	}
}

/* 13. WordPress bits
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption,
.wp-block-image {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.875rem;
	color: var(--muted);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 6px 12px;
	border: 2px solid var(--navy);
	border-radius: var(--radius);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--navy);
	color: var(--white);
}

/* 14. Motion and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-header,
	.sticky-bar,
	.cta-band,
	.filters,
	.nav-toggle {
		display: none !important;
	}

	body {
		padding-bottom: 0;
	}
}
