/*
Theme Name: Window Replacement San Diego
Theme URI: https://windowreplacementsandiego.com/
Author: Site Team
Description: Custom theme. Dark architectural design: ink-navy and warm off-white bands, sunset-amber accents, Cabinet Grotesk + General Sans.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wrsd
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--ink: #0f1c24;
	--ink-deep: #0b1316;
	--ink-2: #16252e;
	--bg: #f5f3ef;
	--surface: #ffffff;
	--line: #dcd8cf;
	--line-dark: rgba(255, 255, 255, 0.14);
	--muted: #5b6166;
	--muted-dark: #b9c0c4;
	--accent: #d18a2e;
	--accent-btn: #a5621a;
	--accent-btn-hover: #8f5516;
	--accent-text: #9a5a12;
	--stone: #a0896d;
	--white: #ffffff;

	--font-display: "Cabinet Grotesk", "Arial Narrow", Arial, sans-serif;
	--font-body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(64px, 8vw, 96px);
	--radius: 4px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.6vw, 5.5rem); line-height: 0.98; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon { width: 24px; height: 24px; flex: none; }

.band-ink { background: var(--ink); color: var(--white); }
.band-light { background: var(--bg); color: var(--ink); }

/* ---------------------------------------------------------------- buttons */
.btn,
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-ghost .wp-block-button__link,
.wp-block-button.btn-ink .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), transform 0.25s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary, .wp-block-button.btn-primary .wp-block-button__link { background: var(--accent-btn); color: var(--white); }
.btn-primary:hover, .wp-block-button.btn-primary .wp-block-button__link:hover { background: var(--accent-btn-hover); }
.btn-ghost, .wp-block-button.btn-ghost .wp-block-button__link { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.btn-ghost:hover, .wp-block-button.btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ink, .wp-block-button.btn-ink .wp-block-button__link { background: var(--ink); color: var(--white); }
.btn-ink:hover, .wp-block-button.btn-ink .wp-block-button__link:hover { background: var(--ink-deep); }
.site-cta-hover:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .site-cta-hover:hover { transform: none; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; font-size: 0.9375rem; }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }

/* ----------------------------------------------------------------- header */
.site-header { background: var(--ink); color: var(--white); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand-mark { width: 48px; height: 48px; color: var(--accent); stroke-width: 1.75; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.01em; }
.nav-list { list-style: none; display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 1.0625rem; color: var(--white); padding: 8px 0; }
.nav-list a:hover { color: var(--accent); }
.nav-list .current-menu-item > a { color: var(--accent); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }
.primary-nav { margin-right: clamp(0px, 4vw, 60px); }

@media (max-width: 960px) {
	.header-inner { min-height: 64px; gap: 12px; }
	.brand-name { font-size: 1rem; }
	.brand-mark { width: 34px; height: 34px; }
	.header-cta { display: none; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; padding: 0; background: transparent; color: var(--white);
		border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
	}
	.nav-toggle .icon { width: 24px; height: 24px; }
	.nav-toggle .when-open, .nav-toggle[aria-expanded="true"] .when-closed { display: none; }
	.nav-toggle[aria-expanded="true"] .when-open { display: block; }
	.primary-nav {
		position: absolute; inset: 100% 0 auto 0; margin: 0;
		background: var(--ink); border-top: 1px solid var(--line-dark);
		padding: 12px var(--gutter) 24px; display: none;
	}
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line-dark); }
	.nav-cta-mobile { display: flex; width: 100%; margin-top: 20px; }
}

/* ------------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; color: var(--white); min-height: clamp(520px, 44vw, 640px); display: flex; align-items: center; overflow: hidden; background: var(--ink-deep); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 70% 50%; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(90deg, rgba(11, 19, 22, 0.72) 0%, rgba(11, 19, 22, 0.45) 32%, rgba(11, 19, 22, 0.04) 58%, rgba(11, 19, 22, 0) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 72px; }
.hero h1 { max-width: 7.2em; margin-bottom: 0.3em; letter-spacing: -0.03em; }
.hero-sub { font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 22em; color: rgba(255, 255, 255, 0.92); margin-bottom: 28px; }
@media (max-width: 700px) {
	.hero { min-height: 0; align-items: flex-end; }
	.hero-media img { object-position: 75% 50%; }
	.hero::after { background: linear-gradient(180deg, rgba(11, 19, 22, 0.35) 0%, rgba(11, 19, 22, 0.88) 55%, rgba(11, 19, 22, 0.95) 100%); }
	.hero-content { padding-block: 200px 44px; }
	.hero .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- promise */
.promise { padding-block: 56px; border-top: 1px solid var(--line-dark); }
.promise-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.promise-item { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 10px 12px; font-weight: 600; font-size: 1.25rem; }
.promise-item + .promise-item { border-left: 1px solid var(--line-dark); }
.promise-item .icon { width: 84px; height: 84px; color: var(--accent); stroke-width: 1.35; }
@media (max-width: 800px) {
	.promise-list { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
	.promise-item:nth-child(odd) { border-left: 0; }
	.promise-item:last-child { grid-column: 1 / -1; }
	.promise-item:last-child { border-left: 0; }
}

/* --------------------------------------------------------------- services */
.services { padding-block: 48px 72px; }
.services .container { width: min(100% - 2 * var(--gutter), 1320px); }
.services h2 { margin-bottom: 28px; }
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s var(--ease), transform 0.3s var(--ease); }
.service-card:hover { border-color: var(--stone); transform: translateY(-2px); }
.service-card:hover .text-link .icon { transform: translateX(3px); }
.service-card img { aspect-ratio: 1 / 1.05; object-fit: cover; width: 100%; }
.service-body { padding: 16px 14px 18px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.4375rem; margin-bottom: 8px; }
.service-body h3 a { text-decoration: none; }
.service-body h3 a::after { content: ""; position: absolute; inset: 0; }
.service-body p { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); margin-bottom: 14px; }
.service-body .text-link { margin-top: auto; font-size: 0.9375rem; }
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .service-body p { display: none; } }

/* ------------------------------------------------------------------ split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.split-panel { padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.split-panel h2 { color: var(--white); font-size: clamp(2rem, 2.9vw, 2.625rem); }
.split-panel p { color: var(--muted-dark); font-size: 1.1875rem; max-width: 26em; margin: 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- honest */
.honest .split-visual { position: relative; padding: 28px clamp(16px, 3vw, 40px) 0; display: flex; align-items: flex-end; }
.honest .split-visual img { width: 100%; max-height: 560px; object-fit: contain; object-position: bottom; }
.legend { list-style: none; position: absolute; z-index: 1; top: 28px; left: clamp(16px, 3vw, 40px); display: grid; gap: 8px; font-size: 0.875rem; font-weight: 500; }
.legend li { display: flex; align-items: center; gap: 10px; }
.swatch { width: 14px; height: 14px; border-radius: 2px; }
.swatch-now { background: var(--accent); }
.swatch-wait { background: #8d9194; }

/* ------------------------------------------------------------------ quote */
.quote { padding-block: clamp(64px, 7vw, 96px); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote-copy h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.quote-copy p { color: var(--ink); font-size: 1.25rem; max-width: 22em; }
.quote-paper {
	position: relative; margin: 0; background: #fbf8f2; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 28px 40px 36px;
	box-shadow: 0 18px 40px -24px rgba(15, 28, 36, 0.35);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.quote-paper::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px;
	background: linear-gradient(135deg, #e9e5dc 50%, transparent 50%);
}
.quote-paper figcaption { text-align: center; color: var(--accent-text); font-weight: 600; font-size: 1.125rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.quote-paper dl { margin: 0; }
.quote-paper dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
.quote-paper dt { color: var(--ink); }
.quote-paper dd { margin: 0; font-weight: 600; white-space: nowrap; }
.quote-paper .total { border-bottom: 0; border-top: 1.5px solid var(--ink); margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; padding-top: 16px; }
.blank { display: inline-block; width: 1.1em; height: 2px; background: currentColor; vertical-align: middle; margin-left: 2px; }
@media (max-width: 800px) { .quote-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ steps */
.steps { padding-block: 72px; }
.step-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { display: grid; grid-template-columns: auto auto minmax(11em, 1fr); align-items: center; gap: 14px; padding: 10px clamp(14px, 2vw, 28px); }
.step + .step { border-left: 1px solid var(--line-dark); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
.step-icon { width: 112px; height: 112px; mix-blend-mode: lighten; }
.steps .container { width: min(100% - 2 * var(--gutter), 1360px); }
.step h3 { font-size: 1.5rem; text-wrap: balance; margin-bottom: 4px; color: var(--white); }
.step p { margin: 0; font-size: 1rem; color: var(--muted-dark); line-height: 1.45; }
@media (max-width: 1100px) {
	.step { grid-template-columns: auto 1fr; }
	.step-icon { grid-row: span 2; width: 88px; height: 88px; }
	.step-num { grid-column: 1; }
}
@media (max-width: 900px) {
	.step-list { grid-template-columns: 1fr; }
	.step + .step { border-left: 0; border-top: 1px solid var(--line-dark); }
	.step { padding-inline: 0; padding-block: 18px; }
}

/* ---------------------------------------------------------------- reviews */
.reviews { padding-block: clamp(64px, 7vw, 96px); }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr); gap: 40px; align-items: center; }
.reviews h2 { margin: 0; }
.review-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px 30px 32px; }
.review-label { font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 10px; }
.review-text { color: var(--muted); font-size: 1.125rem; margin-bottom: 24px; }
.review-town { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 0.9375rem; }
.review-town .icon { width: 22px; height: 22px; fill: var(--ink); stroke: var(--surface); }
@media (max-width: 960px) { .reviews-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .review-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- area */
.area-panel { justify-content: center; }
.area-map { position: relative; background: #e9e4d6; }
.area-map img { width: 100%; height: 100%; object-fit: cover; }
.area-towns { list-style: none; }
@media (min-width: 801px) {
	.area-map { aspect-ratio: 1400 / 933; }
	.area-map img { position: absolute; inset: 0; }
	.area-towns li {
		position: absolute; left: var(--x); top: var(--y); transform: translate(-6px, -100%);
		display: flex; align-items: center; gap: 4px;
		font-size: 1.0625rem; font-weight: 600; color: var(--ink); white-space: nowrap;
		text-shadow: 0 0 4px #f1ede3, 0 0 8px #f1ede3;
	}
	.area-towns .icon { width: 26px; height: 26px; color: var(--ink); fill: var(--ink); stroke: #f1ede3; }
}
@media (max-width: 800px) {
	.area-map img { aspect-ratio: 3 / 2; height: auto; position: static; }
	.area-towns { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px var(--gutter) 28px; background: var(--bg); }
	.area-towns li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; font-weight: 500; }
	.area-towns .icon { width: 16px; height: 16px; color: var(--accent-text); }
}

/* -------------------------------------------------------------------- faq */
.faq { padding-block: clamp(64px, 7vw, 88px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: 32px; align-items: start; }
.faq h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.faq-list details, .wp-block-details { border: 1px solid var(--line); background: var(--surface); }
.faq-list details + details { border-top: 0; }
.faq-list summary, .wp-block-details summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 24px; cursor: pointer; list-style: none; font-weight: 400; font-size: 1.25rem;
}
.faq-list summary::-webkit-details-marker, .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 26px; height: 26px; stroke-width: 2.25; transition: transform 0.25s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p, .wp-block-details > p { padding: 0 24px 20px; margin: 0; color: var(--muted); }
.faq-list summary:hover { color: var(--accent-text); }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------------------------------------------------------- final CTA/footer */
.final-cta { background: var(--accent-btn); color: var(--white); padding-block: 68px; }
.final-cta-inner { display: flex; align-items: center; gap: 28px; }
.final-cta-icon { width: 96px; height: 96px; color: var(--white); stroke-width: 1.5; }
.final-cta h2 { margin: 0 auto 0 0; font-size: clamp(2rem, 4.6vw, 4rem); color: var(--white); }
.final-cta .btn { min-width: 280px; min-height: 64px; font-size: 1.1875rem; }
@media (max-width: 700px) {
	.final-cta-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
	.final-cta-icon { display: none; }
	.final-cta .btn { width: 100%; }
}
.site-footer { background: var(--ink); color: var(--white); padding-block: 52px 28px; font-size: 1.1875rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.footer-phone .icon { color: var(--accent); width: 28px; height: 28px; }
.footer-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 3vw, 40px); }
.footer-list a { text-decoration: none; color: var(--white); }
.footer-list a:hover { color: var(--accent); }
.footer-license { margin: 0; color: var(--muted-dark); font-size: 1rem; flex-basis: 100%; text-align: center; order: 3; }
.copyright { text-align: center; margin: 14px 0 0; font-size: 0.8125rem; color: var(--muted-dark); }
@media (max-width: 800px) { .footer-row { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------- inner pages (blocks) */
.page-shell { padding-block: 0 var(--section); }
.entry-content > *:not(.alignfull):not(section) { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.entry-content > .alignwide { width: min(100% - 2 * var(--gutter), var(--container)); }
.entry-content > section.wp-block-group { margin-block: 0; }
.page-header-simple { background: var(--ink); color: var(--white); padding-block: 56px; margin-bottom: 48px; }
.page-header-simple h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin: 0; }

/* ------------------------------------------------ service page (blocks) */
.entry-content > section.wp-block-group { width: 100%; max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.entry-content > section.wp-block-group > * { max-width: none; margin-inline: 0; }
.entry-content .wp-block-heading { margin-block: 0 0.5em; }
.entry-content p { margin-block: 0 1em; }

/* hero */
.svc-hero { position: relative; isolation: isolate; color: var(--white); background: var(--ink-deep); min-height: clamp(460px, 38vw, 560px); display: flex; flex-direction: column; justify-content: center; padding-block: 56px; overflow: hidden; }
.svc-hero .hero-bg { position: absolute; inset: 0; margin: 0; z-index: -1; }
.svc-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.svc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 19, 22, 0.8) 0%, rgba(11, 19, 22, 0.5) 34%, rgba(11, 19, 22, 0.05) 62%, rgba(11, 19, 22, 0) 100%); }
.svc-hero h1 { max-width: 8em; color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1; margin-bottom: 0.3em; }
.svc-hero .wp-block-button__link { min-height: 58px; padding: 14px 30px; font-size: 1.125rem; }
.svc-hero .breadcrumb { font-size: 1.0625rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 14px; }
.svc-hero .breadcrumb a { color: var(--white); text-decoration: none; }
.svc-hero .breadcrumb a:hover { text-decoration: underline; }
.svc-hero .hero-sub { max-width: 23em; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); color: rgba(255, 255, 255, 0.92); margin-bottom: 26px; }
@media (max-width: 700px) {
	.svc-hero { justify-content: flex-end; padding-block: 180px 40px; }
	.svc-hero::after { background: linear-gradient(180deg, rgba(11, 19, 22, 0.3) 0%, rgba(11, 19, 22, 0.9) 60%); }
	.svc-hero .wp-block-button, .svc-hero .wp-block-button__link { width: 100%; }
}

/* problem cards */
.svc-problem { background: var(--bg); padding-block: clamp(48px, 5vw, 72px); }
.svc-cards { gap: 22px; margin: 26px 0 0; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 28px 136px; isolation: isolate; position: relative; height: 100%; }
.svc-card::before { content: ""; position: absolute; left: 24px; top: 26px; width: 88px; height: 88px; background: var(--ic) center / contain no-repeat; }
.icon-slider { --ic: url("assets/images/icon-prob-slider.png"); }
.icon-fog { --ic: url("assets/images/icon-prob-fog.png"); }
.icon-noise { --ic: url("assets/images/icon-prob-noise.png"); }
.svc-card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.svc-card p { margin: 0; color: #3f474c; font-size: 1.125rem; line-height: 1.5; }

/* options table */
.svc-options { background: #0c1a23; color: var(--white); padding-block: clamp(48px, 5vw, 72px); }
.svc-options h2 { color: var(--white); }
.compare-table { margin: 18px 0 30px; overflow-x: auto; }
.compare-table table { border-collapse: collapse; width: 100%; }
.compare-table th, .compare-table td { border: 0; border-bottom: 1px solid var(--line-dark); padding: 16px 18px; text-align: center; font-size: 1.1875rem; }
.compare-table th { font-weight: 600; font-size: 1.25rem; }
.compare-table td:first-child { text-align: left; font-weight: 600; }
.compare-table th + th, .compare-table td + td { border-left: 1px solid var(--line-dark); }
.brand-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; margin: 0; }
.brand-chips li { border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 10px 22px; font-weight: 600; font-size: 1.0625rem; }

/* process */
.svc-process { background: var(--bg); padding-block: clamp(56px, 6vw, 80px); }
.svc-process-cols { gap: clamp(32px, 5vw, 64px); align-items: center !important; }
.process-label { color: var(--accent-text); font-size: clamp(1.75rem, 2.8vw, 2.375rem); }
.step-rows { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-rows li { counter-increment: step; display: grid; grid-template-columns: 44px 84px 1fr; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; }
.step-rows li:last-child { border-bottom: 0; }
.step-rows li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; grid-column: 1; }
.step-rows li::after { content: ""; grid-column: 2; grid-row: 1; width: 80px; height: 80px; background: var(--ic) center / contain no-repeat; }
.step-rows li:nth-child(1) { --ic: url("assets/images/icon-proc-walk.png"); }
.step-rows li:nth-child(2) { --ic: url("assets/images/icon-proc-quote.png"); }
.step-rows li:nth-child(3) { --ic: url("assets/images/icon-proc-install.png"); }
.step-rows strong { grid-column: 3; grid-row: 1; font-family: var(--font-display); font-weight: 800; }
.entry-content .quote-paper { max-width: none; background: #fbf8f2; border: 1px solid var(--line); padding: 30px 40px 38px; box-shadow: 0 22px 44px -22px rgba(15, 28, 36, 0.45); }
.quote-paper .quote-title { color: var(--accent-text); font-weight: 600; font-size: 1.625rem; margin-bottom: 6px; }
.quote-lines { margin: 0; }
.quote-lines table { width: 100%; border-collapse: collapse; }
.quote-lines td { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 1.3125rem; }
.quote-lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; width: 6em; }
.quote-lines tr:last-child td { border-bottom: 0; border-top: 1.5px solid var(--ink); font-family: var(--font-display); font-size: 2rem; padding-top: 18px; }

/* nearby */
.svc-nearby { padding-inline: 0 !important; background: var(--bg); }
.svc-nearby-cols { gap: 0; margin: 0; }
.svc-nearby-cols > .wp-block-column:first-child { flex: 0 0 32% !important; background: var(--ink); color: var(--white); padding: clamp(40px, 5vw, 60px) clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.svc-nearby-cols > .wp-block-column:first-child h2 { color: var(--white); }
.svc-nearby-cols > .wp-block-column:first-child h2::after { content: ""; display: block; width: 150px; height: 150px; margin-top: 20px; background: url("assets/images/icon-nearby.png") center / contain no-repeat; }
.svc-nearby-cols > .wp-block-column:last-child { padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px); }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; margin: 0 0 24px; }
.area-chips a { display: inline-block; min-width: 170px; font-size: 1.0625rem; text-align: center; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.area-chips a:hover { border-color: var(--accent-btn); color: var(--accent-text); }
.entry-content .review-card { max-width: none; background: var(--surface); }
.review-card .review-town::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; background: var(--ink); -webkit-mask: url("assets/icons/pin.svg") center / contain no-repeat; mask: url("assets/icons/pin.svg") center / contain no-repeat; }
@media (max-width: 781px) { .svc-nearby-cols > .wp-block-column:first-child { flex-basis: 100% !important; } }

.svc-nearby .review-card .review-label { text-transform: none; letter-spacing: 0; font-size: 1.25rem; }
@media (max-width: 600px) {
	.data-table table { min-width: 520px; }
	.compare-table th, .compare-table td { padding: 12px 8px; font-size: 0.9375rem; }
	.svc-card { padding-left: 100px; }
	.svc-card::before { width: 72px; height: 72px; }
	.step-rows li { grid-template-columns: 36px 56px 1fr; font-size: 1.1875rem; }
	.step-rows li::after { width: 52px; height: 52px; }
	.entry-content .quote-paper { padding: 22px 20px 28px; }
	.area-chips a { min-width: 0; }
}

/* faq */
.svc-faq { background: var(--bg); padding-block: clamp(48px, 5vw, 72px); }
.svc-faq .wp-block-details + .wp-block-details { border-top: 0; }
.svc-faq .wp-block-details summary { font-size: 1.125rem; }
.entry-content .wp-block-details summary::after, .svc-faq .wp-block-details summary::after { content: ""; width: 22px; height: 22px; flex: none; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.25s var(--ease); }
.entry-content .wp-block-details[open] summary::after { transform: rotate(180deg); }
.page-shell:has(.page-hero) { padding-bottom: 0; }

/* ------------------------------------------------------- articles (blocks) */
.entry-content > h2 { margin-top: 1.6em; font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.entry-content > h3 { margin-top: 1.2em; }
.entry-content > p, .entry-content > ul, .entry-content > ol { font-size: 1.125rem; line-height: 1.7; }
.entry-content > ul, .entry-content > ol { padding-left: 1.3em; margin-block: 0 1.3em; }
.entry-content td, .entry-content th { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.entry-content .svc-hero .breadcrumb a { color: var(--white); }
.entry-content .svc-nearby a, .entry-content .area-chips a { color: var(--ink); }
.entry-content li + li { margin-top: 0.35em; }
.entry-content a:not(.wp-block-button__link) { color: var(--accent-text); text-underline-offset: 3px; }
.entry-content .article-lede { font-size: 1.3125rem; line-height: 1.55; color: var(--ink); }
.quick-answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-btn); border-radius: var(--radius); padding: 20px 24px; margin-block: 8px 28px; }
.quick-answer p { margin: 0; font-size: 1.125rem; }
.quick-answer .qa-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.quote-cta { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 24px 28px; margin-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.quote-cta p { margin: 0; flex: 1 1 320px; color: rgba(255, 255, 255, 0.92); }
.quote-cta p strong { color: var(--white); }
.data-table { margin-block: 12px 24px; overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 1rem; vertical-align: top; }
.data-table th { background: #ece8df; font-weight: 600; }
.link-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 2em !important; }
.link-grid li + li { margin-top: 0; }
@media (max-width: 600px) { .link-grid { grid-template-columns: 1fr 1fr; } .link-grid a { padding: 8px 10px; font-size: 0.9375rem; } }
.link-grid a { display: block; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 1rem; }
.link-list { list-style: none; padding: 0 !important; columns: 2 300px; column-gap: 32px; margin-bottom: 2em !important; }
.link-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.link-list a { text-decoration: none; font-weight: 500; }
.link-list a::after { content: " 92"; color: var(--accent-text); }
.related-links { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-block: 40px 0; }
.related-links h2 { font-size: 1.375rem; margin-top: 0; }
.related-links ul { margin: 0; padding-left: 1.2em; }
.entry-content > .wp-block-details { max-width: 760px; }
.entry-content > .wp-block-details + .wp-block-details { border-top: 0; }

.problem { padding-block: clamp(56px, 6vw, 80px) 8px; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; align-items: start; }
.problem h2 { margin: 0; }
.problem-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
.problem-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.125rem; line-height: 1.45; padding: 14px 0; border-bottom: 1px solid var(--line); }
.problem-list .icon { width: 26px; height: 26px; color: var(--accent-text); margin-top: 1px; }
.problem-close { margin: 24px 0 0; font-weight: 600; font-size: 1.1875rem; }
@media (max-width: 800px) { .problem-grid, .problem-list { grid-template-columns: 1fr; gap: 12px; } }

.steps-title { text-align: center; color: var(--accent); font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 28px; }
.final-closer { color: rgba(255, 255, 255, 0.9); margin: 10px auto 0; font-size: 0.9375rem; }

.mobile-bar { display: none; }
@media (max-width: 700px) {
	.mobile-bar {
		display: flex; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 50;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: var(--ink); border-top: 1px solid var(--line-dark);
	}
	.mobile-bar .btn { flex: 1; min-height: 50px; }
	a.mobile-bar-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 14px; color: var(--white); text-decoration: none; border: 1px solid var(--line-dark); border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem; }
	span.mobile-bar-call { display: none; }
	.mobile-bar-call .icon { color: var(--accent); width: 20px; height: 20px; }
	body { padding-bottom: 72px; }
}

/* quote form */
.quote-form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); max-width: 640px; }
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.quote-form legend { font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; margin-bottom: 16px; padding: 0; }
.form-progress { color: var(--accent-text); font-weight: 600; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--accent-btn); background: #fbf3e8; }
.choice input { accent-color: var(--accent-btn); width: 18px; height: 18px; margin: 0; }
.field { display: grid; gap: 6px; font-weight: 500; margin-bottom: 16px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1.5px solid #8d8a82; border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-btn); outline-offset: 1px; border-color: var(--accent-btn); }
.optional, .form-note { color: var(--muted); font-weight: 400; font-size: 0.9375rem; }
.form-nav { display: flex; gap: 12px; }
.form-nav [data-next], .form-nav [data-submit] { margin-left: auto; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.form-closer { margin: 18px 0 0; font-size: 0.9375rem; color: var(--muted); }
.form-error { background: #fbeceb; color: #8a2a21; border: 1px solid #e6b8b3; padding: 10px 14px; border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; }
.quote-form-done { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-btn); padding: 28px 32px; border-radius: var(--radius); max-width: 640px; }
.form-step[hidden] { display: none; }

/* ----------------------------------------------------------------- motion */
.site-motion-ready .site-fade-on-scroll:not(.is-in),
.site-motion-ready .site-stagger-children:not(.is-in) > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.site-motion-ready .site-fade-on-scroll:not(.is-in),
	.site-motion-ready .site-stagger-children:not(.is-in) > * { opacity: 1; }
	.service-card:hover { transform: none; }
}

@media (max-width: 800px) {
	.honest .split-visual { flex-direction: column; align-items: stretch; padding-top: 24px; }
	.legend { position: static; display: flex; gap: 20px; margin-bottom: 16px; }
}
