/* Back Valley Starter
   Brand tokens come from Site Settings (printed in <head>); these are fallbacks.
   Layout: full-bleed photo hero with a roof-pitch gable into the next band; sturdy condensed
   headings; cards and bands that read like a contractor's yard sign, built for phones first. */

:root {
	--c-primary: #2f4a3a;
	--c-dark: #1b231e;
	--c-accent: #e3a33b;
	--c-bg: #f5f3ee;
	--c-white: #ffffff;
	--c-ink: #1e2420;
	--c-muted: #5c655f;
	--c-line: #ddd8cd;
	--f-heading: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(20, 28, 22, .08), 0 14px 32px -14px rgba(20, 28, 22, .28);
	--shadow-lg: 0 2px 4px rgba(20, 28, 22, .1), 0 28px 60px -20px rgba(20, 28, 22, .45);
	--wrap: 1200px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--f-heading); font-weight: 700; line-height: 1.02; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: normal; color: var(--c-accent); }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .82rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--c-primary); }
.eyebrow::before { content: ""; width: 18px; height: 10px; background: currentColor; clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 34%, 18% 100%); }
.lead { font-size: 1.2rem; color: var(--c-muted); max-width: 60ch; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-dark); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1 var(--f-body); letter-spacing: .02em; padding: 15px 24px; border-radius: var(--radius); text-decoration: none; border: 2px solid var(--c-dark); background: var(--c-dark); color: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-dark); }
.btn.accent:hover { background: color-mix(in srgb, var(--c-accent) 88%, #fff); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn.big { padding: 18px 28px; font-size: 1.08rem; }

/* notice + top bar + header */
.notice-bar { background: var(--c-accent); color: var(--c-dark); text-align: center; font-size: .86rem; font-weight: 600; padding: 8px 16px; }
.notice-bar a { color: inherit; }
.topbar { background: var(--c-dark); color: rgba(255, 255, 255, .78); font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a strong { color: var(--c-accent); margin-left: 4px; }
header.site { position: sticky; top: 0; z-index: 30; background: var(--c-white); box-shadow: 0 1px 0 var(--c-line), 0 8px 24px -18px rgba(0, 0, 0, .35); }
.admin-bar header.site { top: 32px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-dark); }
.brand .mark { width: 44px; height: 36px; color: var(--c-primary); }
.brand span { display: grid; line-height: 1; }
.brand b { font: 700 1.6rem/1 var(--f-heading); text-transform: uppercase; letter-spacing: .02em; }
.brand i { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); margin-top: 4px; }
.brand img { max-height: 52px; width: auto; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
nav.main .menu a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
nav.main .menu a:hover, nav.main .current-menu-item > a { color: var(--c-primary); box-shadow: inset 0 -2px 0 var(--c-accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--c-dark); padding: 6px; cursor: pointer; }
@media (max-width: 1140px) {
	.nav-toggle { display: block; }
	nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--c-white); padding: 8px 24px 22px; box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .35); }
	nav.main.open { display: flex; }
	nav.main .menu { flex-direction: column; gap: 0; }
	nav.main .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
	nav.main .btn { margin-top: 18px; }
}

/* sections */
.sec { position: relative; padding-block: 96px; }
.bg-light { background: var(--c-bg); }
.bg-white { background: var(--c-white); }
.bg-dark, .bg-primary { color: #fff; }
.bg-dark { background-color: var(--c-dark); }
.bg-primary { background-color: var(--c-primary); }
/* shingle texture on dark bands: staggered courses, barely there */
.sec.bg-dark, .sec.bg-primary {
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 26px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 44px);
}
.bg-dark h2, .bg-primary h2, .bg-dark h3, .bg-primary h3 { color: #fff; }
.bg-dark .eyebrow, .bg-primary .eyebrow { color: var(--c-accent); }
.bg-dark .lead, .bg-primary .lead, .bg-dark p, .bg-primary p { color: rgba(255, 255, 255, .82); }
.head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: 48px; }
.head.center { text-align: center; justify-items: center; margin-inline: auto; }

/* roof-pitch gable into the next band */
.pitch { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; pointer-events: none; z-index: 2; }
.pitch svg { width: 100%; height: 100%; display: block; }
.pitch.to-light path { fill: var(--c-bg); }
.pitch.to-white path { fill: var(--c-white); }
.pitch.to-dark path { fill: var(--c-dark); }
.pitch.to-primary path { fill: var(--c-primary); }

/* hero */
.hero, .page-header { position: relative; overflow: hidden; background: var(--c-dark); color: #fff; }
.hero-img { position: absolute; inset: 0; will-change: transform; }
.hero-img img { width: 100%; height: 115%; object-fit: cover; object-position: center 40%; }
.hero::before, .page-header::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 24, 20, .9) 0%, rgba(18, 24, 20, .72) 42%, rgba(18, 24, 20, .18) 100%), linear-gradient(0deg, rgba(18, 24, 20, .55), rgba(18, 24, 20, 0) 45%); }
.hero-inner { position: relative; z-index: 2; padding-block: 120px 170px; display: grid; gap: 26px; justify-items: start; }
.hero h1 { max-width: 13ch; }
.hero .eyebrow, .page-header .eyebrow { color: var(--c-accent); }
.hero .lead, .page-header .lead { color: rgba(255, 255, 255, .88); font-size: 1.28rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.badges { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; font-size: .96rem; }
.badges li { display: flex; align-items: center; gap: 8px; }
.badges svg { width: 18px; height: 18px; color: var(--c-accent); }
.page-header .wrap { position: relative; z-index: 2; padding-block: 104px 140px; display: grid; gap: 20px; justify-items: start; }
.page-header h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 16ch; }

/* trust bar */
.trust-bar { padding-block: 26px; }
.trust-bar ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.trust-bar li { display: flex; align-items: center; gap: 10px; font: 700 1.15rem/1.1 var(--f-heading); text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.trust-bar svg { width: 26px; height: 26px; color: var(--c-accent); flex: none; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; border-top: 4px solid var(--c-accent); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img { overflow: hidden; }
.card-body { padding: 24px 24px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--c-muted); }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--c-primary); }
.card .num { font: 800 2.4rem/1 var(--f-heading); color: var(--c-accent); }
.bg-dark .card, .bg-primary .card { background: rgba(255, 255, 255, .06); box-shadow: none; }
.bg-dark .card p, .bg-primary .card p { color: rgba(255, 255, 255, .78); }
@media (max-width: 1000px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* checklists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 14px; height: 8px; border-left: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent); transform: rotate(-45deg); }
.checks.big { font-size: 1.08rem; gap: 12px; }

/* text + photo */
.tm { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.img-left .tm-img { order: -1; }
.no-img .tm { grid-template-columns: minmax(0, 780px); }
.tm-copy { display: grid; gap: 22px; justify-items: start; }
.tm-copy .head { margin-bottom: 0; }
.tm-copy .body { display: grid; gap: 14px; color: var(--c-muted); max-width: 60ch; }
.bg-dark .tm-copy .body, .bg-primary .tm-copy .body { color: rgba(255, 255, 255, .82); }
.tm-img { margin: 0; position: relative; }
.tm-img::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; background: var(--c-accent); clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%); opacity: .9; border-radius: var(--radius); }
.img-left .tm-img::before { inset: -14px -14px 14px 14px; }
.tm-img img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .tm { grid-template-columns: 1fr; gap: 44px; } .img-left .tm-img { order: 0; } }

/* steps */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; position: relative; }
.step-list::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--c-accent) 0 10px, transparent 10px 18px); opacity: .7; }
.step-list li { position: relative; display: grid; gap: 10px; align-content: start; }
.step-list .n { width: 56px; height: 56px; display: grid; place-items: center; font: 800 1.6rem/1 var(--f-heading); background: var(--c-accent); color: var(--c-dark); clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%); }
.step-list p { color: var(--c-muted); }
.bg-dark .step-list p, .bg-primary .step-list p { color: rgba(255, 255, 255, .8); }
@media (max-width: 900px) { .step-list { grid-template-columns: 1fr 1fr; } .step-list::before { display: none; } }
@media (max-width: 560px) { .step-list { grid-template-columns: 1fr; } }

/* reviews */
.summary { display: flex; align-items: center; gap: 12px; font-weight: 700; margin: -24px 0 36px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--c-line); }
.stars svg.on { fill: var(--c-accent); }
.review { margin: 0; background: var(--c-bg); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; border-left: 4px solid var(--c-primary); }
.bg-light .review { background: var(--c-white); box-shadow: var(--shadow); }
.review blockquote { margin: 0; font-size: 1.06rem; }
.review figcaption { color: var(--c-muted); font-size: .94rem; }

/* big number band */
.stat { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.big-num { display: grid; gap: 10px; }
.big-num .num { font: 800 clamp(5rem, 13vw, 9rem)/.9 var(--f-heading); color: var(--c-accent) !important; letter-spacing: -.02em; }
.big-num .num small { font-size: .32em; color: #fff; margin-left: 6px; letter-spacing: 0; }
.stat-copy { display: grid; gap: 18px; justify-items: start; }
.stat-copy .fine { font-size: .82rem; opacity: .75; }
@media (max-width: 800px) { .stat { grid-template-columns: 1fr; gap: 24px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-list { border-top: 2px solid var(--c-dark); }
.faq-list details { border-bottom: 1px solid var(--c-line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 700 1.3rem/1.2 var(--f-heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 1.8rem/1 var(--f-body); color: var(--c-primary); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 44px 22px 0; color: var(--c-muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } .faq-grid .head { position: static; } }

/* service area */
.areas-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.areas-grid .head { margin-bottom: 0; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.towns li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); font: 700 1.3rem/1 var(--f-heading); text-transform: uppercase; letter-spacing: .02em; }
.towns svg { width: 14px; height: 18px; color: var(--c-primary); flex: none; }
.areas .note { margin-top: 18px; color: var(--c-muted); }
@media (max-width: 860px) { .areas-grid { grid-template-columns: 1fr; gap: 28px; } }

/* CTA band */
.cta-band { padding-block: 72px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta > div:first-child { display: grid; gap: 10px; max-width: 60ch; }
.cta-actions { display: grid; gap: 12px; justify-items: center; }
.phone-link { color: #fff; text-decoration: none; }
.phone-link b { color: var(--c-accent); }

/* estimate form */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-grid.solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.contact-side dl { margin: 0; display: grid; gap: 18px; }
.contact-side dt { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); }
.contact-side dd { margin: 4px 0 0; font: 700 1.4rem/1.2 var(--f-heading); }
.contact-side dd a { color: inherit; text-decoration: none; }
form.estimate { background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 6px solid var(--c-accent); padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.estimate .full, form.estimate .notice, form.estimate .btn { grid-column: 1 / -1; }
form.estimate label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
form.estimate input, form.estimate select, form.estimate textarea { font: 400 1rem var(--f-body); padding: 13px 14px; border: 1px solid #cfcac0; border-radius: 4px; background: #fff; color: var(--c-ink); width: 100%; }
form.estimate textarea { min-height: 120px; resize: vertical; }
form.estimate .hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-left: 4px solid var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, #fff); }
.notice.err { border-color: #b4553a; background: #fbeee9; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { form.estimate { grid-template-columns: 1fr; padding: 24px; } }

/* footer */
footer.site { background: var(--c-dark); color: rgba(255, 255, 255, .75); padding-block: 64px 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 40px; }
.footer-grid > div, .footer-grid nav { display: grid; gap: 12px; align-content: start; justify-items: start; }
.f-brand { font: 700 1.8rem/1 var(--f-heading); text-transform: uppercase; color: #fff; }
footer.site .eyebrow { color: var(--c-accent); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a:not(.btn) { color: #fff; text-decoration: none; }
footer.site a:not(.btn):hover { text-decoration: underline; }
footer.site .small { font-size: .84rem; }
.footer-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* sticky call button on phones */
.call-fab { display: none; }
@media (max-width: 700px) {
	.call-fab { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 999px; background: var(--c-accent); color: var(--c-dark); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-lg); }
	.call-fab svg { width: 20px; height: 20px; fill: currentColor; }
	footer.site { padding-bottom: 96px; }
	.sec { padding-block: 64px; }
	.hero-inner { padding-block: 72px 120px; }
	.page-header .wrap { padding-block: 64px 100px; }
	.pitch { height: 36px; }
	.ctas .btn { width: 100%; }
	.towns { grid-template-columns: 1fr; }
	.head { margin-bottom: 32px; }
}

/* reveal on scroll (JS adds .reveal; content stays visible without JS) */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
	.reveal.in { opacity: 1; transform: none; }
}
.entry { display: grid; gap: 16px; max-width: 760px; }
@media (max-width: 700px) {
	.topbar .wrap > span { display: none; }
	.topbar .wrap { justify-content: center; padding-block: 6px; }
	.notice-bar { font-size: .78rem; padding: 6px 12px; }
	.brand b { font-size: 1.35rem; }
	.brand i { font-size: .62rem; }
}

/* ===================== Soft style (Site Settings → Overall style) ===================== */
.style-soft { --radius: 18px; }
.style-soft h1, .style-soft .page-header h1 { text-transform: none; letter-spacing: -.01em; font-weight: 600; }
.style-soft h1, .style-soft h2, .style-soft h3 { font-weight: 600; letter-spacing: -.01em; }
.style-soft .brand b { text-transform: none; letter-spacing: 0; font-weight: 600; }
.style-soft .f-brand { text-transform: none; }
.style-soft .eyebrow::before { width: 8px; height: 8px; border-radius: 50%; clip-path: none; }
.style-soft .btn { border-radius: 999px; }
.style-soft .card { border-top: 0; }
.style-soft .trust-bar li, .style-soft .towns li { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 600; font-size: 1.05rem; }
.style-soft .step-list .n { clip-path: none; border-radius: 50%; }
.style-soft .step-list::before { background: repeating-linear-gradient(90deg, var(--c-accent) 0 2px, transparent 2px 10px); }
.style-soft .tm-img::before { clip-path: none; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; inset: -18px 18px 18px -18px; opacity: .55; }
.style-soft .img-left .tm-img::before { inset: -18px -18px 18px 18px; }
.style-soft .review { border-left: 0; }
.style-soft .faq-list { border-top-width: 1px; }
.style-soft .faq-list summary { font-family: var(--f-heading); font-weight: 600; }
.style-soft form.estimate { border-top: 0; }
.style-soft .sec.bg-dark, .style-soft .sec.bg-primary { background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px); background-size: 22px 22px; }
.style-soft .hero::before, .style-soft .page-header::before { background: linear-gradient(90deg, color-mix(in srgb, var(--c-dark) 88%, transparent) 0%, color-mix(in srgb, var(--c-dark) 62%, transparent) 45%, color-mix(in srgb, var(--c-dark) 8%, transparent) 100%); }
.style-soft .notice { border-radius: 10px; }
.style-soft .call-fab { border-radius: 999px; }

/* ===================== Editorial style ===================== */
.style-editorial { --radius: 2px; }
.style-editorial h1, .style-editorial h2, .style-editorial h3, .style-editorial .page-header h1 { text-transform: none; font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
.style-editorial h1 em, .style-editorial h2 em { font-style: italic; }
.style-editorial .brand b { text-transform: none; letter-spacing: .01em; font-weight: 600; font-size: 1.7rem; }
.style-editorial .brand i { letter-spacing: .28em; }
.style-editorial .f-brand { text-transform: none; }
.style-editorial .eyebrow { letter-spacing: .28em; font-size: .74rem; }
.style-editorial .eyebrow::before { width: 28px; height: 1px; clip-path: none; }
.style-editorial .btn { border-radius: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; padding: 16px 26px; }
.style-editorial .btn.big { font-size: .86rem; padding: 19px 30px; }
.style-editorial .card { border-top: 0; box-shadow: none; border: 1px solid var(--c-line); }
.style-editorial .card:hover { box-shadow: var(--shadow); }
.style-editorial .trust-bar li { font-family: var(--f-body); font-weight: 600; font-size: .8rem; letter-spacing: .2em; }
.style-editorial .towns li { font-family: var(--f-heading); text-transform: none; font-weight: 500; font-size: 1.5rem; }
.style-editorial .step-list .n { clip-path: none; border-radius: 50%; background: transparent; border: 1px solid var(--c-accent); color: var(--c-accent); font-family: var(--f-heading); }
.style-editorial .step-list::before { height: 1px; background: var(--c-line); opacity: 1; }
.style-editorial .bg-dark .step-list::before, .style-editorial .bg-primary .step-list::before { background: rgba(255, 255, 255, .2); }
.style-editorial .tm-img::before { clip-path: none; background: transparent; border: 1px solid var(--c-accent); inset: 18px -18px -18px 18px; opacity: 1; }
.style-editorial .img-left .tm-img::before { inset: 18px 18px -18px -18px; }
.style-editorial .review { border-left: 0; border-top: 1px solid var(--c-accent); }
.style-editorial .review blockquote { font-family: var(--f-heading); font-size: 1.3rem; line-height: 1.4; }
.style-editorial .faq-list { border-top: 1px solid var(--c-dark); }
.style-editorial .faq-list summary { font-weight: 500; font-size: 1.45rem; }
.style-editorial form.estimate { border-top: 0; border: 1px solid var(--c-line); box-shadow: none; }
.style-editorial .sec.bg-dark, .style-editorial .sec.bg-primary { background-image: none; }
.style-editorial .big-num .num { font-weight: 500; }
.style-editorial .call-fab { border-radius: 0; }
[hidden] { display: none !important; }

/* QA: hover lift only on cards that go somewhere; long emails wrap instead of widening the column */
.card:not(:has(a)):hover { transform: none; box-shadow: var(--shadow); }
.card:not(:has(a)):hover .card-img img { transform: none; }
.contact-side, form.estimate { min-width: 0; }
.contact-side dd { overflow-wrap: anywhere; }

/* ===================== Layout variants ===================== */

/* concept / site notice as a small corner badge */
.notice-badge { position: fixed; z-index: 45; left: 16px; bottom: 16px; max-width: 320px; padding: 9px 14px; font-size: .78rem; line-height: 1.35; background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 999px; box-shadow: var(--shadow); }
.notice-badge a { color: inherit; font-weight: 700; }
/* On phones the corner badge would cover hero buttons, so the notice moves into the footer instead. */
.notice-foot { display: none; }
@media (max-width: 700px) { .notice-badge { display: none; } .notice-foot { display: block; margin-top: 14px; font-size: .8rem; opacity: .8; } .notice-foot a { color: inherit; } }

/* soft brand tint band */
.bg-tint { background: color-mix(in srgb, var(--c-primary) 9%, var(--c-bg)); color: var(--c-ink); }
.bg-tint .eyebrow { color: var(--c-primary); }
.bg-tint .lead, .bg-tint p { color: var(--c-muted); }
.trust-bar.bg-tint li { color: var(--c-ink); }
.trust-bar.bg-tint svg { color: var(--c-primary); }
.stat-band.bg-tint .big-num .num { color: var(--c-primary) !important; }
.stat-band.bg-tint .big-num .num small { color: var(--c-ink); }
.stat-band.bg-tint h2 { color: var(--c-ink); }
.cta-band.bg-tint h2 { color: var(--c-ink); }
.cta-band.bg-tint .phone-link { color: var(--c-ink); }
.cta-band.bg-tint .phone-link b { color: var(--c-primary); }
.pitch.to-tint path { fill: color-mix(in srgb, var(--c-primary) 9%, var(--c-bg)); }

/* header over the top photo */
.header-overlay header.site { position: fixed; left: 0; right: 0; top: 0; background: transparent; box-shadow: none; transition: background .3s, box-shadow .3s; }
.admin-bar.header-overlay header.site { top: 32px; }
.header-overlay header.site .brand, .header-overlay header.site .brand i, .header-overlay nav.main .menu a, .header-overlay .nav-toggle { color: #fff; }
.header-overlay header.site .brand .mark { color: #fff; }
.header-overlay header.site.scrolled { background: color-mix(in srgb, var(--c-dark) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.header-overlay .hero-inner { padding-top: 190px; }
.header-overlay .page-header .wrap { padding-top: 170px; }
@media (max-width: 1140px) { .header-overlay nav.main { background: var(--c-dark); } .header-overlay nav.main .menu a { border-color: rgba(255, 255, 255, .12); } }

/* hero: split (light, framed photo) */
.hero-split, .page-header-split { position: relative; background: var(--c-bg); color: var(--c-ink); overflow: hidden; }
.hero-split::before, .page-header-split::before { display: none; }
.hero-split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px 130px; }
.page-header-split .hero-split-grid { padding-block: 56px 110px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-split h1, .page-header-split h1 { color: var(--c-ink); text-transform: none; }
.hero-split .eyebrow, .page-header-split .eyebrow { color: var(--c-primary); }
.hero-split .lead, .page-header-split .lead { color: var(--c-muted); font-size: 1.2rem; }
.hero-split .badges li { color: var(--c-ink); }
.hero-split .badges svg { color: var(--c-primary); }
.hero-frame { margin: 0; position: relative; }
.hero-frame::before { content: ""; position: absolute; inset: -26px -26px 26px 26px; border-radius: 48% 52% 46% 54% / 54% 46% 54% 46%; background: color-mix(in srgb, var(--c-accent) 45%, var(--c-bg)); z-index: 0; }
.hero-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 40px; box-shadow: var(--shadow-lg); }
.hero-frame.small img { aspect-ratio: 4 / 3; }
.hero-chip { position: absolute; z-index: 2; left: -22px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--c-white); border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .95rem; color: var(--c-ink); }
.hero-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 4px rgba(63, 166, 107, .2); }
@media (max-width: 900px) { .hero-split-grid, .page-header-split .hero-split-grid { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 100px; } .hero-chip { left: 12px; } }

/* hero: centered, magazine cover */
.hero-centered { min-height: min(100vh, 980px); display: grid; align-items: center; }
.hero-centered .hero-inner { justify-items: center; text-align: center; padding-block: 200px 180px; }
.hero-centered h1 { max-width: 15ch; font-size: clamp(3rem, 8vw, 6.6rem); }
.hero-centered .lead { max-width: 52ch; }
.hero-centered .ctas, .hero-centered .badges { justify-content: center; }
.hero-centered::before, .page-header-centered::before { background: radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--c-dark) 55%, transparent), color-mix(in srgb, var(--c-dark) 85%, transparent)), linear-gradient(0deg, color-mix(in srgb, var(--c-dark) 70%, transparent), transparent 40%); }
.page-header-centered .wrap { justify-items: center; text-align: center; }
.page-header-centered .wrap h1 { margin-inline: auto; }
.scroll-cue { margin-top: 26px; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 20px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--c-accent); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* light footer */
footer.site.footer-light { background: color-mix(in srgb, var(--c-primary) 7%, var(--c-bg)); color: var(--c-muted); }
.footer-light .f-brand { color: var(--c-ink); }
.footer-light a:not(.btn) { color: var(--c-ink) !important; }
.footer-light .eyebrow { color: var(--c-primary) !important; }
.footer-light .footer-bottom { border-color: var(--c-line); }

/* ===================== Dark pages ===================== */
.surface-dark {
	--c-bg: #1d2421; --c-white: #252d29; --c-ink: #efe8da; --c-muted: #b9b2a3; --c-line: rgba(239, 232, 218, .14);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 30px 70px -24px rgba(0, 0, 0, .8);
	color-scheme: dark;
}
.surface-dark .bg-dark { background-color: #141a17; }
.surface-dark header.site { background: color-mix(in srgb, #141a17 94%, transparent); box-shadow: 0 1px 0 var(--c-line); }
.surface-dark nav.main .menu a, .surface-dark .brand { color: var(--c-ink); }
.surface-dark .btn:not(.accent):not(.ghost-light) { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.surface-dark form.estimate input, .surface-dark form.estimate select, .surface-dark form.estimate textarea { background: #1a201d; color: var(--c-ink); border-color: var(--c-line); }
.surface-dark .notice { background: rgba(255, 255, 255, .06); }
.surface-dark .review, .surface-dark .bg-light .review { background: var(--c-white); }
.surface-dark .faq-list { border-color: var(--c-ink); }
.surface-dark footer.site { background: #141a17; }
.surface-dark .stars svg { fill: rgba(255, 255, 255, .15); }
.surface-dark .stars svg.on { fill: var(--c-accent); }
.surface-dark .eyebrow { color: var(--c-accent); }
.surface-dark h1 em, .surface-dark h2 em { color: var(--c-accent); }
.surface-dark .notice-badge { background: #252d29; }

/* ===================== Gallery + lightbox ===================== */
.gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.gal-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gal-item:nth-child(6n + 4) { grid-column: span 2; }
.gal-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--c-line); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gal-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-open:hover img, .gal-open:focus-visible img { transform: scale(1.05); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; text-align: left; color: #fff; font-size: .92rem; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gal-open:hover .gal-cap, .gal-open:focus-visible .gal-cap { opacity: 1; transform: none; }
.gal-zoom { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--c-dark); opacity: 0; transition: opacity .25s; }
.gal-zoom svg { width: 18px; height: 18px; }
.gal-open:hover .gal-zoom, .gal-open:focus-visible .gal-zoom { opacity: 1; }
@media (hover: none) { .gal-cap, .gal-zoom { opacity: 1; transform: none; } }
@media (max-width: 860px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 520px) { .gal { grid-auto-rows: 140px; gap: 8px; } }

.lightbox { width: min(1200px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 11, .9); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #fff; font-size: 1rem; text-align: center; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; color: rgba(255, 255, 255, .7); font-size: .85rem; }
@media (max-width: 600px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } .lightbox .lb-count { bottom: 32px; } }

/* ===================== QA pass 10/9 ===================== */
/* Highlighted heading words: the brand accent can be too pale on light sections, so darken it there. Dark sections keep the bright accent. */
:root { --c-accent-ink: color-mix(in oklab, var(--c-accent) 50%, var(--c-dark)); }
.style-soft { --c-accent-ink: color-mix(in oklab, var(--c-accent) 50%, var(--c-primary)); }
h1 em, h2 em { color: var(--c-accent-ink); }
.bg-dark :is(h1, h2) em, .bg-primary :is(h1, h2) em, .hero-overlay h1 em, .page-header-overlay h1 em, .hero-centered h1 em, .page-header-centered h1 em, .surface-dark :is(h1, h2) em, footer.site :is(h1, h2) em { color: var(--c-accent); }
/* Comfortable tap targets for small text links */
.phone-link { display: inline-flex; align-items: center; min-height: 44px; }
.topbar a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 700px) { .topbar a { min-height: 44px; } }
/* Centered hero eyebrow: rule sits above the words so it stays centered when the label wraps */
.hero-centered .eyebrow, .page-header-centered .eyebrow { flex-direction: column; gap: 12px; }
/* Hide the sticky call button while the hero's own call button is on screen */
@media (max-width: 700px) { .call-fab { transition: transform .25s ease, opacity .25s ease; } .call-fab.tucked { transform: translateY(140%); opacity: 0; pointer-events: none; } }
/* Phones: every tap target at least 44px tall (Kristin's rule). Footer links grow for real; inline links get an invisible hit area so the layout doesn't move. */
@media (max-width: 700px) {
	footer.site ul { gap: 0; }
	footer.site li > a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
	.contact-side dd a, .notice-foot a { position: relative; }
	.contact-side dd a::before, .notice-foot a::before { content: ""; position: absolute; inset: -12px -4px; }
	.brand, .nav-toggle { min-height: 44px; }
	.nav-toggle { min-width: 44px; }
	.scroll-cue { height: 44px; }
}
