/* ==========================================================================
   Upgrade Home Services — theme styles
   Layout concept: Apple-style product page. Big centered type, generous
   white space, alternating white / mist / navy-night bands, rounded media
   tiles, pill buttons. Brand navy + safety orange from the UHS logo.
   ========================================================================== */

:root {
	/* Color */
	--navy: #02168a;        /* logo navy */
	--night: #070d2e;       /* dark tiles */
	--orange: #fc5000;      /* logo orange (accents, highlights) */
	--orange-btn: #c23e00;  /* button fill — 5.3:1 with white text (WCAG AA) */
	--orange-ink: #c23e00;  /* orange text on white */
	--ink: #0b1020;
	--ink-2: #4a5068;
	--ink-3: #5b6178;        /* 5.6:1 on mist, 6.1:1 on white */
	--paper: #ffffff;
	--mist: #f3f4f8;
	--line: #e2e4ee;
	--on-night: #f5f6fb;
	--on-night-2: #a9b0cc;

	/* Type */
	--font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

	--fs-display: clamp(3rem, 8.2vw, 6.5rem);
	--fs-display-sm: clamp(2.2rem, 5.2vw, 4rem);
	--fs-headline: clamp(2rem, 4.4vw, 3.4rem);
	--fs-headline-sm: clamp(1.75rem, 3.2vw, 2.5rem);
	--fs-lede: clamp(1.1rem, 1.6vw, 1.35rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;

	/* Shape + space */
	--radius-lg: 28px;
	--radius-md: 20px;
	--radius-sm: 12px;
	--pill: 999px;
	--max: 1200px;
	--section-y: clamp(4.5rem, 10vw, 8rem);
	--header-h: 68px;
	--shadow: 0 1px 2px rgba(7, 13, 46, .06), 0 12px 32px rgba(7, 13, 46, .08);
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container {
	width: 100%;
	max-width: calc(var(--max) + 48px);
	margin-inline: auto;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
	.container {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--pill);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type helpers ---------- */
.eyebrow {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-small);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--orange-ink);
	margin-bottom: 14px;
}
.display {
	font-size: var(--fs-display);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -0.045em;
}
.display-sm {
	font-size: var(--fs-display-sm);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
}
.headline {
	font-size: var(--fs-headline);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.035em;
}
.headline-sm {
	font-size: var(--fs-headline-sm);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
}
.lede {
	font-size: var(--fs-lede);
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 38em;
}
.accent { color: var(--orange); }
.muted { color: var(--ink-3); }

/* ---------- Buttons + links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	padding: 15px 26px;
	border-radius: var(--pill);
	border: 1.5px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn-primary { background: var(--orange-btn); color: #fff; }
.btn-primary:hover { background: #b83a00; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--mist); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--night); }

.text-link {
	display: inline-flex; align-items: center; gap: .2em;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link.on-dark { color: #ffb48f; }

/* ---------- Utility bar ---------- */
.utility-bar {
	background: var(--night);
	color: var(--on-night-2);
	font-size: .8125rem;
}
.utility-inner {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 38px;
}
.utility-inner .sep { margin-inline: .6em; opacity: .5; }
.utility-right { display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 720px) { .utility-right { display: none; } .utility-inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
	display: flex; align-items: center; gap: 28px;
	height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.primary-nav { margin-inline: auto; }
.nav-list { display: flex; gap: 28px; }
.nav-list a {
	font-size: .9375rem;
	font-weight: 500;
	color: var(--ink-2);
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s ease;
}
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--ink); }
.nav-mobile-ctas { display: none; }
.header-ctas { display: flex; align-items: center; gap: 16px; flex: none; }
.call-link {
	display: inline-flex; align-items: center; gap: .45em;
	font-family: var(--font-display); font-weight: 700; font-size: .9375rem;
	color: var(--navy); text-decoration: none;
}
.menu-toggle {
	display: none;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: var(--ink); cursor: pointer;
	align-items: center; justify-content: center;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }

@media (max-width: 1200px) {
	.call-link span { display: none; }
	.call-link { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--mist); }
	.nav-list { gap: 20px; }
}
@media (max-width: 1020px) {
	.menu-toggle { display: inline-flex; }
	.header-ctas .btn { display: none; }
	.header-ctas { margin-left: auto; gap: 8px; }
	.primary-nav {
		/* The header's backdrop-filter makes it the containing block, so this
		   panel hangs directly below the header bar. */
		position: fixed;
		top: var(--header-h); left: 0; right: 0;
		height: calc(100dvh - var(--header-h));
		background: var(--paper);
		padding: 24px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px));
		overflow-y: auto;
		display: none;
		flex-direction: column;
		gap: 28px;
	}
	.nav-open .primary-nav { display: flex; }
	.nav-open .menu-toggle .icon-menu { display: none; }
	.nav-open .menu-toggle .icon-close { display: block; }
	.nav-open body { overflow: hidden; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a {
		display: block; padding: 14px 0;
		font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink);
		border-bottom: 1px solid var(--line);
	}
	.nav-mobile-ctas { display: grid; gap: 12px; }
	.brand img { height: 32px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .headline { max-width: 16em; }
.section-head.center { text-align: center; }
.section-head.center .headline, .section-head.center .lede { margin-inline: auto; }
.section-head.center .lede { margin-top: 18px; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3.5rem, 9vw, 7rem); text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero .lede { margin-top: 26px; }
.hero-actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
	margin-top: 36px;
}
.hero-actions.center, .hero .hero-actions { justify-content: center; }
.hero-actions .text-link { font-size: 1.0625rem; }
.review-badges {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
	margin-top: 36px;
}
.review-badges img { height: 44px; width: auto; }
.review-badges a { display: block; border-radius: 8px; transition: transform .2s ease; }
.review-badges a:hover { transform: translateY(-2px); }
.review-note { font-size: var(--fs-small); color: var(--ink-3); }

.hero-media { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-figure {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 8;
	max-width: 100%;
	background: var(--mist);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.trust-chips {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
	margin: -28px auto 0; position: relative; z-index: 1;
	width: fit-content; max-width: calc(100% - 32px);
	padding: 10px;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border-radius: var(--pill);
	box-shadow: var(--shadow);
}
.trust-chips li {
	display: inline-flex; align-items: center; gap: .45em;
	padding: 8px 14px;
	font-family: var(--font-display); font-weight: 700; font-size: .9rem;
	color: var(--ink);
}
.trust-chips .icon { color: var(--orange); width: 1.1em; height: 1.1em; }
@media (max-width: 720px) {
	.hero-figure { aspect-ratio: 4 / 3; }
	.trust-chips { border-radius: var(--radius-md); display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: calc(100% - 32px); }
	.trust-chips li { font-size: .8125rem; padding: 8px 10px; }
}

/* ---------- Services: four soft cards (icon, title, one line, Explore) ---------- */
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eef1fb; color: var(--navy); flex: none; }
.tile-icon .icon { width: 26px; height: 26px; }
.svc-soft { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-soft-card { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px 26px; border-radius: var(--radius-lg); background: var(--mist); color: var(--ink); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.svc-soft-card:hover { background: #e9ecf6; transform: translateY(-2px); }
.svc-soft-card .tile-icon { background: var(--paper); margin-bottom: 8px; }
.svc-soft-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.svc-soft-text { color: var(--ink-2); font-size: .975rem; line-height: 1.5; }
.svc-soft-more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--navy); }
.svc-soft-more .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.svc-soft-card:hover .svc-soft-more .icon { transform: translateX(3px); }
.svc-more { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: .95rem; }
.svc-more a { color: var(--navy); font-weight: 600; }
.svc-more span { margin-inline: .6em; color: var(--ink-3); }
@media (max-width: 900px) { .svc-soft { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .svc-soft { grid-template-columns: 1fr; } }

/* ---------- Homepage Updates slider (inside the hero photo) ---------- */
.update-slider { position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.update-slider.is-dragging { cursor: grabbing; }
.update-slider a, .update-slider button { cursor: pointer; }
.update-slide { display: none; position: absolute; inset: 0; }
.update-slide.is-active { display: block; }
.update-slider .update-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.update-card {
	position: absolute; left: 24px; bottom: 56px; max-width: 22rem;
	padding: 18px 20px; border-radius: var(--radius-md);
	background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	box-shadow: var(--shadow); text-align: left;
}
.card-right .update-card { left: auto; right: 24px; }
.update-slider:has(.card-right.is-active) .update-controls { right: auto; left: 16px; }
.update-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.update-title { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.update-text { margin-top: 6px; font-size: .95rem; color: var(--ink-2); }
.update-card .text-link { display: inline-flex; margin-top: 10px; }
.update-controls { position: absolute; right: 16px; bottom: 44px; z-index: 2; display: flex; gap: 2px; padding: 0 6px; border-radius: var(--pill); background: rgba(7, 13, 46, .55); }
.update-controls[hidden] { display: none; }
.update-dot, .update-pause { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; display: inline-grid; place-items: center; }
.update-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.update-dot[aria-current="true"]::before { background: #fff; }
.update-pause .pause-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.update-pause[aria-pressed="true"] .pause-icon { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 720px) {
	.update-slider { aspect-ratio: auto; display: grid; }
	.update-slide { position: static; }
	.update-slider .update-img { aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
	.card-right .update-card { right: auto; }
	.update-slider:has(.card-right.is-active) .update-controls { left: 50%; }
	.update-card { position: static; max-width: none; margin-top: -12px; box-shadow: none; background: var(--mist); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding-bottom: 96px; }
	.update-controls { bottom: 42px; right: auto; left: 50%; transform: translateX(-50%); background: var(--night); }
}

/* ---------- Services ---------- */
.services { padding-top: calc(var(--section-y) * .9); }

/* ---------- About (dark) ---------- */
.about { background: var(--night); color: var(--on-night); }
.about .eyebrow { color: #ff8a52; }
.about .lede { color: var(--on-night-2); margin-top: 22px; }
.about .muted { color: var(--on-night-2); }
.about-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 7 / 6.4; max-width: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { min-width: 0; }
.stat-row {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px; margin: 36px 0 32px;
	padding-block: 24px; border-block: 1px solid rgba(255, 255, 255, .14);
}
.stat-row dt { font-size: .8125rem; color: var(--on-night-2); order: 2; }
.stat-row div { display: flex; flex-direction: column; gap: 4px; }
.stat-row dd {
	margin: 0; order: 1;
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1;
	font-variant-numeric: tabular-nums;
}
.value-list { display: grid; gap: 12px; margin-bottom: 30px; color: var(--on-night-2); }
.value-list strong { color: var(--on-night); font-family: var(--font-display); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 4 / 3; } }

/* ---------- Go electric + zoning ---------- */
.feature-pair { background: var(--mist); }
/* Go electric: one wide card, photo fills the left half (whole unit in frame), copy on the right */
.electric-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; }
.electric-photo { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; object-position: center 60%; }
.electric-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.electric-copy p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); max-width: 32em; }
.electric-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.electric-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.electric-points .icon { width: 20px; height: 20px; color: var(--navy); flex: none; }
.electric-links { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.zoning-note { margin-top: 16px; display: flex; align-items: center; gap: 18px; padding: 20px 26px; background: var(--paper); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.zoning-note:hover { transform: translateY(-2px); }
.zoning-text { flex: 1; color: var(--ink-2); }
.zoning-text strong { color: var(--ink); }
.zoning-note .svc-soft-more { margin: 0; padding: 0; white-space: nowrap; }
.zoning-note:hover .svc-soft-more .icon { transform: translateX(3px); }
@media (max-width: 800px) {
	.electric-card { grid-template-columns: 1fr; }
	.electric-photo { min-height: 0; max-height: none; aspect-ratio: 1; object-position: center bottom; }
	.zoning-note { flex-wrap: wrap; }
	.zoning-text { flex-basis: calc(100% - 66px); }
}

/* ---------- Comfort Club ---------- */
.plan-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px; max-width: 900px; margin-inline: auto;
}
.plan {
	position: relative;
	display: flex; flex-direction: column;
	padding: 36px 32px 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--paper);
}
.plan.is-featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.plan-flag {
	position: absolute; top: -14px; left: 32px;
	background: var(--navy); color: #fff;
	font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
	padding: 6px 12px; border-radius: var(--pill);
}
.plan h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-for { color: var(--ink-3); font-size: .9375rem; margin-top: 4px; }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--ink-3); font-weight: 600; }
.plan-alt { color: var(--ink-2); font-size: .9375rem; margin-top: 6px; }
.check-list { display: grid; gap: 10px; margin: 26px 0 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .975rem; }
.check-list .icon { color: var(--orange); width: 1.15em; height: 1.15em; margin-top: .2em; }
.plan .btn { margin-top: auto; }
.fine-print { text-align: center; color: var(--ink-3); font-size: var(--fs-small); margin-top: 24px; }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--mist); }
.review-links { display: flex; gap: 10px; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review {
	background: var(--paper);
	border-radius: var(--radius-lg);
	padding: 34px 30px 28px;
	display: flex; flex-direction: column; gap: 26px;
}
.review blockquote { margin: 0; }
.review blockquote p {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.25rem, 1.9vw, 1.5rem);
	line-height: 1.3;
	letter-spacing: -0.02em;
}
.review figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .9375rem; }
.review figcaption span { color: var(--ink-3); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project {
	display: flex; flex-direction: column;
	text-decoration: none;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--mist);
	transition: transform .3s ease, box-shadow .3s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.project-meta { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 24px; }
.project-place { display: inline-flex; align-items: center; gap: .35em; color: var(--orange-ink); font-size: .8125rem; font-weight: 600; }
.project-title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
@media (max-width: 900px) { .project-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Service area ---------- */
.area { padding-top: 0; }
.area-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.area-copy { min-width: 0; }
.area .lede { margin-top: 18px; }
.city-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.city-list li {
	padding: 6px 12px; border-radius: var(--pill);
	background: var(--mist); font-size: .875rem; font-weight: 500; color: var(--ink-2);
}
.city-list li:first-child { background: var(--navy); color: #fff; }
.area-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1696 / 1100; max-width: 100%; }
.area-map img { width: 100%; height: 100%; object-fit: cover; }
.area-map figcaption {
	position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content;
	display: inline-flex; align-items: center; gap: .4em;
	padding: 10px 14px; border-radius: var(--pill);
	background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-weight: 600; font-size: .875rem; box-shadow: var(--shadow);
}
.area-map figcaption .icon { color: var(--orange); }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Brands ---------- */
.brands { padding-block: clamp(3rem, 6vw, 4.5rem); border-block: 1px solid var(--line); }
.brands-title {
	text-align: center; font-size: 1.125rem; font-weight: 700; color: var(--ink-2);
	letter-spacing: -0.01em; margin-bottom: 28px;
}
.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
	display: flex; align-items: center; gap: 56px; width: max-content;
	animation: uhs-marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; max-width: none; }
@keyframes uhs-marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- FAQ ---------- */
.faq-grid {
	display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.faq-head p:not(.eyebrow) { color: var(--ink-2); margin-top: 18px; }
.faq-head a { color: var(--navy); font-weight: 700; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; gap: 20px; align-items: center;
	padding: 24px 0;
	font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
	content: ""; flex: none; width: 14px; height: 14px;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
	transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 24px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
	background:
		radial-gradient(120% 140% at 50% 120%, rgba(252, 80, 0, .35) 0%, rgba(252, 80, 0, 0) 55%),
		var(--navy);
	color: #fff;
	text-align: center;
	padding-block: clamp(4.5rem, 10vw, 7.5rem);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band .lede { color: rgba(255, 255, 255, .78); margin-top: 20px; }
.cta-hours { margin-top: 26px; font-size: var(--fs-small); color: rgba(255, 255, 255, .65); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); color: var(--ink-2); font-size: .9375rem; padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 48px;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 26em; }
.footer-col h2 { font-size: .8125rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-contact p + p { margin-top: 8px; }
.footer-base {
	display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
	padding-block: 22px;
	border-top: 1px solid var(--line);
	font-size: .8125rem; color: var(--ink-3);
}
.footer-social, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { text-decoration: underline; text-underline-offset: .2em; }
.footer-social a { text-decoration: underline; text-underline-offset: .2em; }
.footer-social a:hover { color: var(--ink); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.mobile-call-bar { display: none; }
@media (max-width: 720px) {
	/* Keep keyboard focus from landing under the fixed call bar (WCAG 2.4.11) */
	html { scroll-padding-bottom: 96px; }
	.mobile-call-bar {
		display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
		padding: 6px; border-radius: var(--pill);
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
		box-shadow: 0 10px 30px rgba(7, 13, 46, .18);
	}
	.mobile-call-bar a {
		display: flex; align-items: center; justify-content: center; gap: .45em;
		padding: 13px 16px; border-radius: var(--pill);
		font-family: var(--font-display); font-weight: 800; text-decoration: none;
	}
	.mcb-call { background: var(--navy); color: #fff; }
	.mcb-quote { background: var(--orange-btn); color: #fff; }
	.site-footer { padding-bottom: 84px; }
}

/* ---------- Basic content pages ---------- */
.prose { max-width: 760px; }
.prose .headline { margin-bottom: 28px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul { list-style: disc; padding-left: 1.3em; }

/* ---------- Service pages (page-service.php) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); background: var(--mist); }
.page-hero .rank-math-breadcrumb { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 22px; }
.page-hero .rank-math-breadcrumb a { color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; }
.page-hero .rank-math-breadcrumb a:hover { color: var(--ink); }
.page-hero .rank-math-breadcrumb .separator { margin-inline: .45em; }
.page-hero h1 { max-width: 15em; margin-top: 10px; }
.page-hero .answer-first { margin-top: 22px; max-width: 40em; color: var(--ink-2); }
.page-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: var(--fs-small); color: var(--ink-2); }
.page-facts li { display: inline-flex; align-items: center; gap: .4em; }
.page-facts .icon { width: 1.1em; height: 1.1em; color: var(--orange); }

.child-services { padding-bottom: 0; }
.child-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.child-grid a {
	display: flex; flex-direction: column; gap: 8px; height: 100%;
	padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md);
	text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.child-grid a:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.child-grid strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.child-grid span { color: var(--ink-2); font-size: .95rem; }

.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: var(--fs-headline-sm); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 2.2em; }
.entry h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 1.8em; }
.entry h2 + *, .entry h3 + * { margin-top: .7em; }
.entry p, .entry li { color: var(--ink-2); }
.entry strong { color: var(--ink); }
.entry a { color: var(--navy); font-weight: 600; }
.service-photo { margin: 0 0 2rem; }
/* Show the whole photo (never crop the equipment): tall photos shrink to fit instead of being cut off */
.service-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; margin-inline: auto; border-radius: var(--radius-md); }
/* Links inside text are underlined so they don't rely on color alone (WCAG 1.4.1) */
p a:not(.btn):not(.text-link), .entry li a:not(.btn), .entry td a { text-decoration: underline; text-underline-offset: .18em; }
.entry a.btn-primary, .cta-box a.btn-primary { color: #fff; }
.entry ol { list-style: decimal; padding-left: 1.3em; }
.entry li + li { margin-top: .35em; }
.entry .wp-block-table { overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry th, .entry td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.entry thead th { background: var(--mist); color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.entry .wp-block-quote { margin-block: 2em; padding: 24px 28px; border-left: 4px solid var(--orange); background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry .wp-block-quote p { color: var(--ink); font-size: 1.15rem; }
.entry .wp-block-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: var(--fs-small); color: var(--ink-3); }
.entry .key-takeaway { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.entry .uhs-faq { margin-top: 2.6em; border-top: 1px solid var(--line); }
.entry .uhs-faq > h2 { margin-top: 1.2em; }
.entry .uhs-faq details { border-bottom: 1px solid var(--line); }
.entry .uhs-faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; gap: 20px; align-items: center;
	padding: 20px 0;
	font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--ink);
}
.entry .uhs-faq summary::-webkit-details-marker { display: none; }
.entry .uhs-faq summary::after {
	content: ""; flex: none; width: 14px; height: 14px;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
	transition: transform .25s ease;
}
.entry .uhs-faq details[open] summary::after { transform: rotate(45deg); }
.entry .uhs-faq details p { padding-bottom: 20px; }
.entry .related-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.entry .related-links li { margin: 0; }
.entry .related-links a:not(.btn) { text-decoration: none; }
.entry .related-links a {
	display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--pill);
	font-weight: 600; text-decoration: none; color: var(--ink);
}
.entry .related-links a:hover { border-color: var(--ink); }

/* ---------- Specials ---------- */
.specials { background: var(--mist); }
.special-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.special {
	display: flex; flex-direction: column; gap: 10px;
	padding: 26px 22px 22px; border-radius: var(--radius-md); background: var(--paper);
}
.special-price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.special h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.special h3 a { text-decoration: none; }
.special h3 a:hover { text-decoration: underline; }
.special-note { color: var(--ink-2); font-size: .9rem; }
.special .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) {
	.special-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%);
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
		margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
	}
	.special { scroll-snap-align: start; }
}

/* WordPress's table block adds borders on every cell; keep the theme's light row lines. */
.entry .wp-block-table table, .entry .wp-block-table th, .entry .wp-block-table td { border-left: 0; border-right: 0; border-top: 0; }
.entry .wp-block-table thead { border-bottom: 1px solid var(--line); }

/* ---------- Google rating badge ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: .35em; color: inherit; text-decoration: none; }
.rating-badge .icon { width: 1.05em; height: 1.05em; color: #f5a623; }
.rating-badge strong { color: var(--ink); }
.rating-badge:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Plain pages ---------- */
.page-hero-sm { padding-bottom: clamp(2rem, 5vw, 3rem); }

/* ---------- Quote form ---------- */
.quote-form-wrap { margin-block: 1.5em 2.5em; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.quote-form label { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink); }
.quote-form .req { color: var(--orange-ink); }
.quote-form .form-note { margin: 0 0 14px; font-size: var(--fs-small); color: var(--ink-2); }
.quote-form input, .quote-form select, .quote-form textarea {
	width: 100%; font: inherit; color: var(--ink);
	padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.form-foot span { font-size: var(--fs-small); color: var(--ink-3); }
.form-notice { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.form-notice.is-success { background: #e9f7ef; color: #14532d; }
.form-notice.is-error { background: #fdecea; color: #7f1d1d; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Office map ---------- */
.office-map { margin-block: 1.5em; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.office-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Listing cards (HVAC Tips, Recent Projects) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease; }
.card a:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.card img, .card-noimg { width: 100%; aspect-ratio: 16 / 10; display: block; }
/* Project photos are shown whole (letterboxed on a light panel), never cropped */
.card img { object-fit: contain; background: var(--mist); }
.card-noimg { background: linear-gradient(160deg, var(--navy), var(--night)); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.card-date { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.card-excerpt { color: var(--ink-2); font-size: .95rem; }

/* ---------- Blog and project posts ---------- */
.byline { margin-top: 22px; font-size: var(--fs-small); color: var(--ink-3); }
.cta-box { margin-top: 2.6em; padding: 26px 28px; border-radius: var(--radius-md); background: var(--mist); }
.cta-box-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.cta-box-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.project-cover { margin-bottom: 1.6em; border-radius: var(--radius-md); overflow: hidden; }
.project-cover { background: var(--mist); }
.project-cover img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.project-video { margin-top: 2em; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--night); }
.project-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.project-facts { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.project-facts dl { display: grid; gap: 12px; }
.project-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.project-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .project-layout { grid-template-columns: 1fr; } .project-facts { position: static; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Rebate program cards (/rebates): official logo or name, area served, link to the program */
.entry ul.program-grid, .program-grid { list-style: none; padding: 0; margin: 1.5rem 0 .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.entry .program-grid li { margin: 0; }
.program-link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-2); text-decoration: none; font-weight: 400; }
.entry .program-grid a.program-link { text-decoration: none; font-weight: 400; color: var(--ink-2); }
.program-link:hover { border-color: var(--navy); }
.program-logo { display: flex; align-items: center; height: 64px; }
.program-logo img { max-height: 60px; max-width: 170px; width: auto; height: auto; }
.program-logo img[src$=".svg"] { max-height: 42px; }
.program-name-badge { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.program-area { font-size: var(--fs-small); }
.program-visit { margin-top: auto; font-size: var(--fs-small); font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
.program-note { font-size: var(--fs-small); color: var(--ink-2); }

/* Print: one clean copy of each page (header not repeated, no call bar or video frames) */
@media print {
	.site-header, .project-facts { position: static; }
	.mobile-call-bar, .skip-link, .project-video { display: none !important; }
	.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
	details { break-inside: avoid; }
	details > *:not(summary) { display: block; }
}
