/* Dave's Home Theater — screening-room palette: theater velvet, a lit screen, brass fixtures. */

:root {
	--velvet: #2b1a33;
	--velvet-deep: #1b1021;
	--velvet-soft: #3d2847;
	--screen: #eef1f5;
	--paper: #f7f8fa;
	--white: #ffffff;
	--ink: #1e2230;
	--muted: #586072;
	--rule: #d8dce3;
	--brass: #c49a50;
	--brass-deep: #84601f;
	--on-dark: #efe7f2;
	--on-dark-muted: #c2b3c9;
	--surface: #ffffff;
	--heading: #2b1a33;

	--display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
	--body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.6rem;
	--step-3: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
	--step-4: clamp(2.6rem, 1.5rem + 5vw, 5.4rem);

	--gutter: clamp(16px, 4vw, 40px);
	--max: 1200px;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

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

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 16px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons and text links ---------- */

.button, .dht-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0.7rem 1.4rem;
	background: var(--brass); color: var(--velvet-deep);
	border: 2px solid var(--brass); border-radius: var(--radius);
	font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.button:hover, .dht-button:hover { background: #d6ae66; border-color: #d6ae66; color: var(--velvet-deep); }
.button--ghost-light { background: transparent; color: var(--ink); border-color: currentColor; }
.button--ghost-light:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button--light { background: var(--white); border-color: var(--white); color: var(--velvet-deep); }
.button--light:hover { background: var(--screen); border-color: var(--screen); }

.textlink { font-weight: 700; color: var(--heading); }
.textlink--light { color: var(--brass); }
.textlink--light:hover { color: var(--white); }

/* ---------- Top line and header ---------- */

.topline { background: var(--velvet-deep); color: var(--on-dark-muted); font-size: 0.875rem; }
.topline__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topline p { margin: 0; }
.topline__phone { color: var(--brass); font-weight: 700; text-decoration: none; white-space: nowrap; }
.topline__phone:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--heading); line-height: 1; margin-right: auto; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.85rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand__tag { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.brand__logo { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.75rem; }
.button--quote { white-space: nowrap; }
.site-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.25rem; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a {
	display: block; white-space: nowrap; padding: 0.6rem 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.site-nav .menu > li > a:hover, .site-nav .menu > li:focus-within > a { color: var(--brass-deep); }
.site-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 270px; margin: 0; padding: 0.5rem 0; list-style: none;
	background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--brass);
	box-shadow: 0 18px 40px rgba(27, 16, 33, 0.16);
	visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.site-nav .sub-menu a { display: block; padding: 0.45rem 1.1rem; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus { background: var(--paper); color: var(--heading); }
.submenu-toggle { display: none; }

.nav-toggle { display: none; }

@media (max-width: 1340px) {
	.site-header__inner { min-height: 64px; }
	.brand__name { font-size: 1.55rem; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem;
		background: none; border: 2px solid var(--heading); border-radius: var(--radius); color: var(--heading);
		font: 700 0.95rem var(--body); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
	}
	.nav-toggle__bars::before { position: absolute; top: -6px; }
	.nav-toggle__bars::after { position: absolute; top: 6px; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		max-height: calc(100vh - 100px); overflow-y: auto;
		background: var(--surface); border-bottom: 3px solid var(--brass); padding: 0.5rem var(--gutter) 1.25rem;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--rule); }
	.site-nav .menu > li > a { flex: 1; padding: 0.85rem 0; font-size: 1.05rem; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
		background: none; border: 0; color: var(--heading); cursor: pointer;
	}
	.submenu-toggle::before {
		content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
	}
	.submenu-toggle[aria-expanded="true"]::before { transform: rotate(225deg) translate(-2px, -2px); }
	.site-nav .sub-menu {
		position: static; flex-basis: 100%; display: none; min-width: 0; padding: 0 0 0.75rem 0.75rem;
		border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none;
	}
	.site-nav .sub-menu.is-open { display: block; }
	.site-nav .sub-menu a { padding: 0.5rem 0; }
	.button--quote { margin-top: 1rem; }
}

/* ---------- Hero: Dave's own dedicated theater ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--velvet-deep); min-height: clamp(460px, 62vh, 680px); display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; animation: lamp-on 1.6s ease-out 0.1s both; }
.hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(27, 16, 33, 0.92) 0%, rgba(27, 16, 33, 0.78) 34%, rgba(27, 16, 33, 0.15) 70%, rgba(27, 16, 33, 0) 100%),
		linear-gradient(0deg, rgba(27, 16, 33, 0.85) 0%, rgba(27, 16, 33, 0) 45%);
}
.hero__inner { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(36px, 6vw, 72px); }
.hero__title {
	margin: 0; max-width: 13ch; color: var(--white);
	font-family: var(--display); font-weight: 800; font-size: var(--step-4); line-height: 0.92;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero__sub { margin: 1.1rem 0 0; max-width: 52ch; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero .button--ghost-light { color: var(--white); }
.hero .button--ghost-light:hover { background: var(--white); color: var(--velvet-deep); border-color: var(--white); }

@keyframes lamp-on {
	0%   { filter: brightness(0.15); transform: scale(1.03); }
	60%  { filter: brightness(0.9); }
	100% { filter: brightness(1); transform: scale(1); }
}
@media (max-width: 700px) {
	.hero { min-height: 0; display: block; }
	.hero__img { position: relative; inset: auto; height: 240px; z-index: 0; }
	.hero__shade { display: none; }
	.hero__inner { padding-top: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__img { animation: none; }
	* { scroll-behavior: auto !important; transition: none !important; }
}

.credits { background: var(--velvet); color: var(--on-dark-muted); font-size: 0.95rem; }
.credits__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.credits p { margin: 0; }
.credits strong { color: var(--white); font-weight: 600; }
.credits__badge { color: var(--brass); font-weight: 600; }

/* ---------- Section basics ---------- */

.section-title {
	margin: 0 0 0.75rem; font-family: var(--display); font-weight: 800; font-size: var(--step-3);
	line-height: 1; letter-spacing: 0.005em; color: var(--heading); max-width: 22ch;
}
.section-intro { margin: 0 0 2rem; max-width: 62ch; color: var(--muted); font-size: 1.1rem; }

/* What we install: photo tiles */
.lineup { padding: clamp(48px, 7vw, 96px) 0; background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.tile { display: flex; flex-direction: column; background: var(--paper); border-top: 4px solid var(--brass); }
.tile__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--velvet-deep); }
.tile__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .4s ease; }
.tile:hover .tile__img { transform: scale(1.04); }
.tile__body { padding: 1.1rem 1.25rem 1.25rem; }
.tile__title { margin: 0 0 0.5rem; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.tile__title a, .tile__title span { color: var(--heading); text-decoration: none; }
.tile__title a:hover { color: var(--brass-deep); }
.tile__links { list-style: none; margin: 0; padding: 0; }
.tile__links li { border-top: 1px solid var(--rule); }
.tile__links a, .tile__links span { display: block; padding: 0.6rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.tile__links a:hover { color: var(--brass-deep); }
.lineup__more { margin: 2rem 0 0; color: var(--muted); max-width: 80ch; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile__photo { aspect-ratio: 16 / 9; } }

/* Recent work gallery */
.work { padding: clamp(48px, 7vw, 96px) 0; background: var(--velvet-deep); color: var(--on-dark); }
.work .section-title { color: var(--white); margin: 0; }
.work__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.work__head .textlink { color: var(--brass); }
.work__head .textlink:hover { color: var(--white); }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 220px); gap: 10px; }
.work__item { position: relative; margin: 0; overflow: hidden; background: #000; }
.work__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__item--wide { grid-column: span 2; grid-row: span 2; }
.work__item--tall { grid-row: span 2; }
.work__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.8rem 0.6rem;
	background: linear-gradient(0deg, rgba(20, 12, 25, 0.85), transparent); color: var(--white); font-size: 0.88rem; font-weight: 600;
}
@media (max-width: 700px) {
	.work__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
	.work__item--wide { grid-column: span 2; grid-row: span 2; }
}

/* Photo + text split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--reverse .split__photo { order: 2; }
.split__photo { overflow: hidden; border-radius: 2px; box-shadow: 0 24px 60px rgba(27, 16, 33, 0.25); }
.split__photo img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }
@media (max-width: 860px) {
	.split, .split--reverse { grid-template-columns: 1fr; }
	.split--reverse .split__photo { order: 0; }
	.split__photo img { max-height: 380px; }
}

/* Smart home brands */
.smart { padding: clamp(48px, 7vw, 96px) 0; background: var(--paper); }
.brands { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.split .brand-col__name { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.7rem); }
.brand-col { padding: 1.75rem clamp(16px, 2.5vw, 32px) 0.5rem; border-left: 1px solid var(--rule); }
.brand-col:first-child { border-left: 0; padding-left: 0; }
.brand-col__name {
	margin: 0 0 0.6rem; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem);
	line-height: 0.95; color: var(--heading);
}
.brand-col p { margin: 0 0 1rem; color: var(--muted); }
@media (max-width: 860px) {
	.brands { grid-template-columns: 1fr; }
	.brand-col, .brand-col:first-child { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; }
}

/* Lighting */
.lighting { padding: clamp(48px, 7vw, 96px) 0; background: var(--surface); }

/* LTS security */
.security { padding: clamp(48px, 7vw, 96px) 0; background: var(--velvet); color: var(--on-dark); }
.security .section-title { color: var(--white); }
.security .section-intro { color: var(--on-dark-muted); }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-bottom: 1.75rem; }
.feature {
	display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem 1.75rem 1.9rem;
	background: var(--velvet-deep); border-left: 4px solid var(--brass); color: var(--on-dark); text-decoration: none;
}
.feature:hover { background: var(--velvet-soft); color: var(--white); }
.feature__spec { color: var(--brass); font-weight: 700; font-size: 0.95rem; }
.feature__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; color: var(--white); }
.feature__text { color: var(--on-dark-muted); }
@media (max-width: 760px) { .feature-pair { grid-template-columns: 1fr; } }

/* Licensed contractor */
.licensed { padding: clamp(48px, 7vw, 96px) 0; background: var(--surface); }
.licensed__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.licensed__inner p { max-width: 64ch; }
.licensed__badge {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: clamp(170px, 20vw, 230px); aspect-ratio: 1; border: 3px solid var(--heading); border-radius: 50%;
	box-shadow: inset 0 0 0 6px var(--surface), inset 0 0 0 8px var(--brass);
	text-align: center; color: var(--heading);
}
.licensed__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; }
.licensed__label { font-size: 0.8rem; font-weight: 600; margin-top: 0.4rem; max-width: 12ch; line-height: 1.25; }
@media (max-width: 700px) { .licensed__inner { grid-template-columns: 1fr; } }

/* Areas */
.areas { padding: clamp(40px, 6vw, 72px) 0; background: var(--paper); border-top: 1px solid var(--rule); }
.areas__regions { font-size: 1.2rem; font-weight: 600; max-width: 70ch; margin: 0 0 1rem; }
.areas__cities { color: var(--muted); font-size: 0.92rem; max-width: 110ch; margin: 0; }

/* Old home page text */
.home-extra { padding: 0 0 clamp(40px, 6vw, 72px); background: var(--paper); }
.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--heading); }
.more[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }

/* Call band and footer */
.callband { background: var(--velvet-deep); color: var(--on-dark-muted); padding: clamp(40px, 6vw, 72px) 0; }
.callband__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.callband__title { margin: 0 0 0.6rem; font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--white); max-width: 18ch; }
.callband p { margin: 0; max-width: 60ch; }
.callband__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.callband .button--ghost-light { color: var(--white); }
.callband .button--ghost-light:hover { background: var(--white); color: var(--velvet-deep); border-color: var(--white); }
@media (max-width: 800px) { .callband__inner { grid-template-columns: 1fr; } .callband__actions { justify-content: flex-start; } }

.site-footer { background: #140c19; color: var(--on-dark-muted); font-size: 0.95rem; padding-top: clamp(40px, 6vw, 64px); border-top: 3px solid var(--brass); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--brass); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer__brand { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--white); margin: 0 0 0.5rem; line-height: 1; }
.site-footer__head { font-size: 1rem; color: var(--white); margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer__base { margin-top: 2.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.mobile-call { display: none; }
@media (max-width: 640px) {
	.mobile-call {
		display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
		min-height: 52px; background: var(--brass); color: var(--velvet-deep); font-weight: 700; text-decoration: none;
		border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	}
	body { padding-bottom: 76px; }
	.topline p { display: none; }
	.topline__inner { justify-content: flex-end; }
}

/* ---------- Inner pages ---------- */

.page-head {
	position: relative; color: var(--on-dark); padding: clamp(48px, 8vw, 110px) 0 clamp(28px, 4vw, 48px);
	background:
		linear-gradient(90deg, rgba(27, 16, 33, 0.94) 0%, rgba(27, 16, 33, 0.8) 45%, rgba(27, 16, 33, 0.45) 100%),
		var(--page-photo, none) center 40% / cover no-repeat,
		var(--velvet-deep);
}
.page-head__crumb { margin: 0 0 0.5rem; font-size: 0.95rem; }
.page-head__crumb a { color: var(--brass); font-weight: 600; text-decoration: none; }
.page-head__crumb a:hover { color: var(--white); }
.page-head__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); line-height: 0.98; color: var(--white); max-width: 22ch; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-body--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page-body { grid-template-columns: 1fr; } }

.page-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-card { position: sticky; top: 100px; padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--brass); }
.aside-card__title { margin: 0 0 0.4rem; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--heading); }
.aside-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.aside-card .button { width: 100%; margin-bottom: 0.75rem; }
.aside-card__small { margin: 0.9rem 0 0 !important; font-size: 0.85rem !important; }
@media (max-width: 900px) { .aside-card { position: static; } }
.aside-nav__title { font-weight: 700; margin: 0 0 0.5rem; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.aside-nav li { border-bottom: 1px solid var(--rule); }
.aside-nav a { display: block; padding: 0.55rem 0; text-decoration: none; color: var(--ink); }
.aside-nav a[aria-current="page"] { color: var(--brass-deep); font-weight: 700; }

/* Body copy */
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1.05; color: var(--heading); margin: 2.4rem 0 0.75rem; font-size: 2.1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.prose h1 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose img { display: block; margin: 1.25rem 0; border-radius: 2px; }
.page-photo { margin-bottom: 1.5rem; }

.dht-lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink); }
.dht-note { font-size: 0.9rem; color: var(--muted); }
.dht-model { font-weight: 700; color: var(--brass-deep); font-size: 0.95rem; margin: 0 !important; }

.dht-checklist { list-style: none; padding: 0; }
.dht-checklist li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--rule); }
.dht-checklist li::before {
	content: ""; position: absolute; left: 2px; top: 1.05rem; width: 10px; height: 6px;
	border-left: 2px solid var(--brass-deep); border-bottom: 2px solid var(--brass-deep); transform: rotate(-45deg);
}

.dht-steps { list-style: none; padding: 0; counter-reset: step; }
.dht-steps li { counter-increment: step; position: relative; padding: 0.6rem 0 0.6rem 3rem; border-bottom: 1px solid var(--rule); }
.dht-steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0.45rem;
	font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--brass-deep);
}

.dht-specs, .dht-compare { width: 100%; border-collapse: collapse; margin: 0 0 0.75rem; font-size: 0.98rem; background: var(--surface); }
.dht-specs th, .dht-specs td, .dht-compare th, .dht-compare td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--rule); }
.dht-specs th { width: 36%; color: var(--muted); font-weight: 600; }
.dht-compare thead th { background: var(--velvet); color: var(--white); }
.dht-compare tbody th { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
	.dht-compare thead { display: none; }
	.dht-compare tr { display: block; border-bottom: 2px solid var(--rule); padding: 0.4rem 0; }
	.dht-compare th, .dht-compare td { display: block; border: 0; padding: 0.25rem 0.9rem; }
	.dht-specs th { width: 42%; }
}

.dht-products { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.5rem; }
.dht-product { padding: 1.25rem 1.25rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--brass); }
.dht-product h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.dht-product p { margin: 0 0 0.75rem; }
@media (max-width: 640px) { .dht-products { grid-template-columns: 1fr; } }

.dht-callout { margin: 2.25rem 0 0; padding: 1.25rem 1.4rem; background: var(--velvet); color: var(--on-dark); border-radius: var(--radius); }
.dht-callout p { margin: 0; }
.dht-callout a { color: var(--brass); font-weight: 700; }
.dht-callout a:hover { color: var(--white); }

/* Forms */
.dht-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; background: var(--surface); border: 1px solid var(--rule); padding: clamp(16px, 3vw, 28px); }
.dht-form__field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.dht-form__field--wide, .dht-form__actions { grid-column: 1 / -1; }
.dht-form label { font-weight: 600; font-size: 0.95rem; }
.dht-form__opt { font-weight: 400; color: var(--muted); }
.dht-form input, .dht-form select, .dht-form textarea {
	width: 100%; min-height: 46px; padding: 0.6rem 0.75rem; font: inherit; color: var(--ink);
	background: var(--paper); border: 1px solid #b9bfca; border-radius: var(--radius);
}
.dht-form input:focus, .dht-form select:focus, .dht-form textarea:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--heading); }
.dht-form__actions { margin: 0.25rem 0 0; }
.dht-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dht-form__notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
.dht-form__notice--ok { background: #e6f4ea; color: #1d5a2c; border: 1px solid #a8d5b3; }
.dht-form__notice--err { background: #fbeaea; color: #8a1f1f; border: 1px solid #e5b3b3; }
@media (max-width: 640px) { .dht-form form { grid-template-columns: 1fr; } }

.entry { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }

/* ---------- Forum (bbPress) ---------- */

#bbpress-forums { font-size: 1rem; font-family: var(--body); color: var(--ink); }
#bbpress-forums div.bbp-breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
#bbpress-forums div.bbp-breadcrumb a { color: var(--heading); }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
	border: 1px solid var(--rule); border-radius: 0; font-size: 1rem; margin-bottom: 1.5rem;
}
#bbpress-forums li.bbp-header {
	background: var(--velvet); color: var(--white); border-top: 0; padding: 0.7rem 1rem; font-weight: 700;
}
#bbpress-forums li.bbp-footer { background: var(--paper); border-top: 1px solid var(--rule); }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic {
	border-top: 1px solid var(--rule); padding: 0.9rem 1rem; background: var(--surface);
}
#bbpress-forums li.bbp-body ul.topic.sticky, #bbpress-forums li.bbp-body ul.topic.super-sticky { background: #fbf6ec; }
#bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink {
	font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; color: var(--heading); text-decoration: none;
}
#bbpress-forums a.bbp-forum-title:hover, #bbpress-forums a.bbp-topic-permalink:hover { color: var(--brass-deep); }
#bbpress-forums .bbp-forum-content, #bbpress-forums .bbp-forum-info .bbp-forum-content { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header { background: var(--paper); border-top: 1px solid var(--rule); }
#bbpress-forums div.odd, #bbpress-forums ul.odd { background: var(--surface); }
#bbpress-forums div.even, #bbpress-forums ul.even { background: var(--paper); }
#bbpress-forums .bbp-reply-content, #bbpress-forums .bbp-topic-content { font-size: 1rem; line-height: 1.6; }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--rule); background: var(--surface); padding: 1rem 1.25rem; }
#bbpress-forums fieldset.bbp-form legend { font-weight: 700; padding: 0 0.4rem; }
#bbpress-forums input[type="text"], #bbpress-forums input[type="password"], #bbpress-forums input[type="email"], #bbpress-forums textarea, #bbpress-forums select {
	width: 100%; min-height: 44px; padding: 0.55rem 0.7rem; font: inherit; border: 1px solid #b9bfca; border-radius: var(--radius); background: var(--paper);
}
#bbpress-forums button[type="submit"], #bbpress-forums .button.submit, .bbp-login-form .button {
	min-height: 44px; padding: 0.6rem 1.2rem; background: var(--brass); color: var(--velvet-deep); border: 0; border-radius: var(--radius); font-weight: 700; cursor: pointer;
}
#bbpress-forums div.bbp-template-notice { border-radius: var(--radius); background: #fbf6ec; border-color: #e6d3ad; }
#bbpress-forums .bbp-search-form { margin-bottom: 1rem; }
@media (max-width: 640px) {
	#bbpress-forums li.bbp-forum-info, #bbpress-forums li.bbp-topic-title { width: 100%; }
	#bbpress-forums li.bbp-forum-topic-count, #bbpress-forums li.bbp-forum-reply-count,
	#bbpress-forums li.bbp-topic-voice-count, #bbpress-forums li.bbp-topic-reply-count,
	#bbpress-forums li.bbp-forum-freshness, #bbpress-forums li.bbp-topic-freshness { display: none; }
}

/* Imported old-site photos inside pages */
.prose img { max-width: 100%; height: auto; }
.prose p > img:only-child, .prose img[width] { border-radius: 2px; }
.prose p img + br, .prose p img { margin-right: 1rem; }
@media (min-width: 700px) {
	.prose img[width="128"], .prose img[width="150"], .prose img[width="160"], .prose img[width="200"], .prose img[width="250"] { float: right; margin: 0.25rem 0 1rem 1.25rem; }
}
.prose::after { content: ""; display: table; clear: both; }

/* Service areas */
.dht-cities { list-style: none; padding: 0; columns: 3 12rem; column-gap: 2rem; }
.dht-cities li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
.areas__cities { list-style: none; padding: 0; margin: 0 0 1rem; columns: 4 11rem; column-gap: 1.5rem; font-size: 0.95rem; }
.areas__cities li { padding: 0.2rem 0; break-inside: avoid; }
.areas__cities a { color: var(--ink); text-decoration: none; }
.areas__cities a:hover { color: var(--brass-deep); text-decoration: underline; }
.licensed__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Modern section on upgraded pages */
.dht-modern { margin-bottom: 2.5rem; }
.dht-modern__intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; margin-bottom: 1.5rem; }
.dht-modern__photo { margin: 0; overflow: hidden; border-radius: 2px; box-shadow: 0 18px 40px rgba(27, 16, 33, 0.18); }
.dht-modern__photo img { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: cover; margin: 0 !important; }
.dht-modern__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
@media (max-width: 760px) { .dht-modern__intro { grid-template-columns: 1fr; } .dht-modern__photo { order: -1; } }
.dht-checklist--cols { columns: 2 16rem; column-gap: 2rem; }
.dht-checklist--cols li { break-inside: avoid; }
.dht-faq details { border-bottom: 1px solid var(--rule); }
.dht-faq summary { cursor: pointer; padding: 0.85rem 0; font-weight: 700; color: var(--heading); }
.dht-faq details p { margin: 0 0 1rem; }
.dht-original { border-top: 4px solid var(--brass); padding-top: 0.5rem; margin-top: 2.5rem; }
.dht-related { margin-top: 2.5rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--rule); }
.dht-related h2 { margin-top: 0 !important; font-size: 1.6rem !important; }
.dht-related ul { list-style: none; padding: 0; margin: 0; columns: 3 12rem; column-gap: 1.5rem; }
.dht-related li { break-inside: avoid; padding: 0.3rem 0; }
.dht-related a { font-weight: 600; text-decoration: none; }
.dht-related a:hover { text-decoration: underline; }
.dht-related a[aria-current="page"] { color: var(--brass-deep); }
.dht-crumbs { font-size: 0.9rem; margin: 0 0 0.6rem; color: var(--on-dark-muted); }
.dht-crumbs a { color: var(--brass); text-decoration: none; font-weight: 600; }
.dht-crumbs a:hover { color: var(--white); }
.dht-crumbs span[aria-hidden] { margin: 0 0.4rem; }

/* Photo galleries */
.dht-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 1.5rem 0; }
.dht-gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--velvet-deep); }
.dht-gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; display: block; }

/* ---------- Home hero: one headline, two halves (businesses / homes) ---------- */
.hero { display: block; min-height: 0; background: var(--velvet-deep); }
.hero__band { background: radial-gradient(ellipse 70% 120% at 15% 0%, rgba(196, 154, 80, 0.14), transparent 60%), var(--velvet-deep); }
.hero__band .hero__inner { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero__band .hero__title { max-width: 20ch; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); }
.hero__band .hero__sub { max-width: 62ch; }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--velvet-deep); }
.pane { position: relative; isolation: isolate; min-height: clamp(260px, 30vw, 420px); display: flex; align-items: flex-end; overflow: hidden; }
.pane__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.pane::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 12, 25, 0.92) 0%, rgba(20, 12, 25, 0.55) 45%, rgba(20, 12, 25, 0.05) 100%); }
.pane:hover .pane__img { transform: scale(1.03); }
.pane__body { padding: clamp(18px, 3vw, 32px) max(16px, clamp(18px, 3vw, 40px)); color: var(--on-dark); max-width: 560px; }
.pane__title { margin: 0 0 0.4rem; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; }
.pane__title a, .pane__title span { color: var(--white); text-decoration: none; }
.pane__title a::after { content: ""; position: absolute; inset: 0; } /* whole pane is clickable */
.pane__title a:hover { color: var(--brass); }
.pane__body p { margin: 0; color: var(--on-dark); }
.pane:focus-within { outline: 3px solid var(--brass); outline-offset: -3px; }
@media (max-width: 760px) { .panes { grid-template-columns: 1fr; } .pane { min-height: 240px; } }
.work__tag { display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 3px; background: var(--brass); color: var(--velvet-deep); font-size: 0.75rem; font-weight: 700; }

/* Call pop-up for computers, where a phone link has no app to open. */
.call-pop{position:fixed;right:1rem;bottom:1rem;z-index:1000;background:#2b1a33;color:#fff;border:1px solid #c49a50;border-radius:6px;padding:1rem 1.25rem;box-shadow:0 10px 30px rgba(0,0,0,.35);display:none;max-width:calc(100vw - 2rem)}
.call-pop.is-open{display:block}
.call-pop__label{margin:0;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#c49a50}
.call-pop__num{margin:.2rem 0 .8rem;font-size:1.6rem;font-weight:700;user-select:all}
.call-pop__btns{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.call-pop__dial,.call-pop__copy{background:#c49a50;color:#1b1021;border:0;border-radius:4px;padding:.55rem .9rem;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.call-pop__copy{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
.call-pop__close{background:none;border:0;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;margin-left:auto;padding:0 .25rem}

/* Section cards (lighting hub and other overview pages). */
.dht-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1.5rem 0 2rem}
.dht-card{display:block;padding:1.25rem 1.4rem;border:1px solid #e6d3ad;border-radius:6px;background:#fbf6ec;color:#2b1a33;text-decoration:none;transition:border-color .15s,transform .15s}
.dht-card:hover,.dht-card:focus-visible{border-color:#c49a50;transform:translateY(-2px)}
.dht-card__kicker{display:block;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:#8a6a2c;font-weight:700}
.dht-card__title{display:block;font-size:1.3rem;font-weight:700;margin:.2rem 0 .4rem}
.dht-card__text{display:block;color:#4a3d50;line-height:1.5}
.dht-cards > p { display: contents; }
.dht-cards > br { display: none; }


/* ---------- Dark mode: follows the visitor's device, or the sun/moon button ---------- */
.topline__end { display: flex; align-items: center; gap: 0.9rem; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; }
.theme-toggle:hover { border-color: var(--brass); color: var(--brass); }
.theme-toggle__sun { display: none; }

:root[data-theme="dark"] {
	--paper: #120c16; --surface: #1c1422; --screen: #2a2030;
	--ink: #ebe5ee; --muted: #b3a8ba; --rule: #3b2f43;
	--heading: #ead2a2; --velvet: #261830; --velvet-soft: #3a2846;
	--brass-deep: #e2bd78;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #120c16; --surface: #1c1422; --screen: #2a2030;
		--ink: #ebe5ee; --muted: #b3a8ba; --rule: #3b2f43;
		--heading: #ead2a2; --velvet: #261830; --velvet-soft: #3a2846;
		--brass-deep: #e2bd78;
	}
}

:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .button--ghost-light:hover { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .dht-card { background: var(--surface); border-color: var(--rule); color: var(--ink); }
:root[data-theme="dark"] .dht-card__kicker { color: var(--brass); }
:root[data-theme="dark"] .dht-card__text { color: var(--muted); }
:root[data-theme="dark"] .dht-form input, :root[data-theme="dark"] .dht-form select, :root[data-theme="dark"] .dht-form textarea, :root[data-theme="dark"] #bbpress-forums input, :root[data-theme="dark"] #bbpress-forums textarea, :root[data-theme="dark"] #bbpress-forums select { background: var(--paper); color: var(--ink); border-color: #4a3d52; }
:root[data-theme="dark"] .dht-form__notice--ok { background: #12301b; color: #b9e6c4; border-color: #2b6b3e; }
:root[data-theme="dark"] .dht-form__notice--err { background: #3a1414; color: #f3c0c0; border-color: #7a2a2a; }
:root[data-theme="dark"] #bbpress-forums li.bbp-body ul.topic.sticky, :root[data-theme="dark"] #bbpress-forums li.bbp-body ul.topic.super-sticky, :root[data-theme="dark"] #bbpress-forums div.bbp-template-notice { background: #2a2030; border-color: var(--rule); color: var(--ink); }
:root[data-theme="dark"] #bbpress-forums, :root[data-theme="dark"] #bbpress-forums a { color: var(--ink); }
/* Old imported pages carry fixed black text and white boxes; let them follow the theme. */
:root[data-theme="dark"] .prose font[color], :root[data-theme="dark"] .prose [style*="color"] { color: inherit !important; }
:root[data-theme="dark"] .prose [bgcolor], :root[data-theme="dark"] .prose [style*="background"] { background: transparent !important; }
:root[data-theme="dark"] .prose table, :root[data-theme="dark"] .prose td, :root[data-theme="dark"] .prose th { border-color: var(--rule); }
:root[data-theme="dark"] img { filter: brightness(.94); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
:root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
:root:not([data-theme="light"]) .button--ghost-light:hover { background: var(--ink); color: var(--paper); }
:root:not([data-theme="light"]) .dht-card { background: var(--surface); border-color: var(--rule); color: var(--ink); }
:root:not([data-theme="light"]) .dht-card__kicker { color: var(--brass); }
:root:not([data-theme="light"]) .dht-card__text { color: var(--muted); }
:root:not([data-theme="light"]) .dht-form input, :root:not([data-theme="light"]) .dht-form select, :root:not([data-theme="light"]) .dht-form textarea, :root:not([data-theme="light"]) #bbpress-forums input, :root:not([data-theme="light"]) #bbpress-forums textarea, :root:not([data-theme="light"]) #bbpress-forums select { background: var(--paper); color: var(--ink); border-color: #4a3d52; }
:root:not([data-theme="light"]) .dht-form__notice--ok { background: #12301b; color: #b9e6c4; border-color: #2b6b3e; }
:root:not([data-theme="light"]) .dht-form__notice--err { background: #3a1414; color: #f3c0c0; border-color: #7a2a2a; }
:root:not([data-theme="light"]) #bbpress-forums li.bbp-body ul.topic.sticky, :root:not([data-theme="light"]) #bbpress-forums li.bbp-body ul.topic.super-sticky, :root:not([data-theme="light"]) #bbpress-forums div.bbp-template-notice { background: #2a2030; border-color: var(--rule); color: var(--ink); }
:root:not([data-theme="light"]) #bbpress-forums, :root:not([data-theme="light"]) #bbpress-forums a { color: var(--ink); }
/* Old imported pages carry fixed black text and white boxes; let them follow the theme. */
:root:not([data-theme="light"]) .prose font[color], :root:not([data-theme="light"]) .prose [style*="color"] { color: inherit !important; }
:root:not([data-theme="light"]) .prose [bgcolor], :root:not([data-theme="light"]) .prose [style*="background"] { background: transparent !important; }
:root:not([data-theme="light"]) .prose table, :root:not([data-theme="light"]) .prose td, :root:not([data-theme="light"]) .prose th { border-color: var(--rule); }
:root:not([data-theme="light"]) img { filter: brightness(.94); }
}

/* Laptop widths: tighten the 8-section menu so it fits beside the logo. */
@media (min-width: 1341px) {
	.site-header .wrap { max-width: 1400px; }
	.site-header__inner { gap: 0.75rem; }
	.brand__name { font-size: 1.55rem; }
	.site-nav { gap: 0.5rem; }
	.site-nav .menu { gap: 0; }
	.site-nav .menu > li > a { padding: 0.6rem 0.42rem; font-size: 0.92rem; }
	.site-nav .menu-item-has-children > a::after { margin-left: 5px; }
	.button--quote { padding-left: 1rem; padding-right: 1rem; }
}
div.dht-card { cursor: default; }
div.dht-card:hover { transform: none; }
.dht-compare td, .dht-compare th { vertical-align: top; }
@media (max-width: 700px) { .dht-compare { display: block; overflow-x: auto; } }

/* Old pages' long city and ZIP lists, folded away. */
.dht-areas { margin: 1.5rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.dht-areas > summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 700; color: var(--heading); }
.dht-areas[open] > summary { border-bottom: 1px solid var(--rule); }
.dht-areas > :not(summary) { padding: 0 1rem; font-size: 0.9rem; color: var(--muted); }
