/* Red Hat, SIL Open Font License, latin subset self-hosted (scripts/fonts.sh) */
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/assets/fonts/red-hat-display.woff2) format('woff2-variations'), url(/assets/fonts/red-hat-display.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/red-hat-text.woff2) format('woff2-variations'), url(/assets/fonts/red-hat-text.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* avoid-ai-design-ignore: SD4 (the one uppercase kicker repeats "BUILD • REMODEL • RENOVATE" exactly as the logo sets it) */
/* CRJ Home Improvement: navy and gold of the logo, cedar of the job. Direction in DESIGN.md. */
:root {
  --navy: #0f1f44; --navy-2: #172d5c; --ink: #13182a; --gold: oklch(0.80 0.16 82); --gold-deep: oklch(0.68 0.15 75);
  --cedar: #b4643a; --paper: #f3f5f9; --line: #d9dee8; --muted: #575d6e;
  --display: "Red Hat Display", system-ui, sans-serif; --text: "Red Hat Text", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --pad: clamp(18px, 4vw, 56px); --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--paper); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.01em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* top bar: solid white with the gold ring of the logo as its bottom edge */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 10px var(--pad);
  background-color: #fff; border-bottom: 3px solid var(--gold); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 6px 24px rgb(15 31 68 / .12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name { font: 900 22px/1 var(--display); color: var(--navy); }
.brand-name small { display: block; font: 600 13px/1.3 var(--text); color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--navy); padding: 10px 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover { background-size: 100% 3px; }
.top-call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 16px var(--display); color: #fff; background: var(--navy); white-space: nowrap; min-height: 46px; padding: 0 18px; border-radius: 4px; box-shadow: 0 3px 0 var(--gold-deep); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.top-call:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
.top-call:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.top-call svg, .btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.top-call svg { stroke: var(--gold); }

/* hero: split (copy left, the framed job reel right) over a full-bleed job photo with a navy overlay */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 8vw, 110px) max(var(--pad), calc((100vw - var(--max)) / 2)); color: #fff;
  background: linear-gradient(90deg, rgb(15 31 68 / .95) 0%, rgb(15 31 68 / .82) 42%, rgb(15 31 68 / .25) 100%), url(/assets/photos/hero-bg-1800.webp) 65% 40% / cover, var(--navy); }
.hero-copy { position: relative; z-index: 1; }

.kicker { display: flex; align-items: center; gap: 10px; font: 700 13px var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); font-weight: 900; color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.hero h1 span { color: var(--gold); }
.hero .lede { color: #dbe1ee; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; background: var(--navy); color: #fff; text-decoration: none;
  font: 800 17px var(--display); border-radius: 4px; box-shadow: 0 4px 0 var(--gold-deep); transition: transform .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--gold-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.link { font-weight: 600; color: var(--navy); white-space: nowrap; }
.hero .btn { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-deep), 0 14px 30px -10px rgb(0 0 0 / .5); }
.hero .link { color: #fff; }
.hero-reel { margin: 0; position: relative; z-index: 1; }

.hero-reel img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 6px solid #fff; outline: 2px solid var(--gold); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); background: var(--navy); }
.hero-reel figcaption { position: absolute; left: -22px; bottom: 26px; max-width: 250px; background: var(--navy); color: #fff; padding: 10px 14px; font-size: 14px; line-height: 1.4; border-left: 4px solid var(--gold); }
.hero-reel figcaption b { display: block; font: 800 15px var(--display); color: var(--gold); }

/* services */
.services { background: #fff; padding: clamp(56px, 8vw, 110px) var(--pad); border-top: 1px solid var(--line); }
.sec-head { max-width: var(--max); margin: 0 auto 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.sec-head h2, .faq h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; color: var(--navy); }
.sec-head p { color: var(--muted); margin: 0; }
.svc { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.svc li { padding: 26px 22px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.svc li:nth-child(4n) { border-right: 0; }
.svc svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.svc li:hover svg { stroke: var(--cedar); }
.svc h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* the job: the shingle roof is the signature */
.job { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 110px) var(--pad); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.job > * { max-width: 620px; }
.job .kicker { color: var(--gold); }
.job h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; }
.job-copy > p { color: #c9d1e4; }
.job-steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; }
.job-steps li { counter-increment: s; padding: 14px 0 14px 52px; position: relative; border-top: 1px solid rgb(255 255 255 / .14); color: #c9d1e4; }
.job-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 900 22px var(--display); color: var(--gold); }
.job-steps b { display: block; color: #fff; font-family: var(--display); font-size: 18px; }
.roof svg { width: 100%; height: auto; overflow: visible; }
.stills { grid-column: 1 / -1; list-style: none; padding: 0; margin: 24px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--max); width: 100%; }
.stills img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 85%; border-radius: 4px; transition: transform .5s var(--ease); }
.stills li { overflow: hidden; border-radius: 4px; }
.stills li:hover img { transform: scale(1.04); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--pad); }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 800 20px var(--display); color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* estimate band */
.estimate { position: relative; overflow: hidden; background: var(--gold); color: var(--navy); text-align: center; padding: clamp(60px, 9vw, 120px) var(--pad); }
.estimate h2 { font-size: clamp(34px, 5.4vw, 70px); font-weight: 900; }
.estimate h2 span { display: block; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 2px 0 var(--navy); }
.contact-lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; margin: 30px 0 10px; }
.contact-lines a { font: 800 clamp(18px, 2vw, 24px) var(--display); text-decoration: none; border-bottom: 3px solid var(--navy); padding-bottom: 2px; overflow-wrap: anywhere; }
.estimate .small { margin: 14px 0 0; font-weight: 600; }
.hammer { position: absolute; right: 4%; top: 12%; width: clamp(80px, 12vw, 160px); fill: var(--navy); opacity: .12; transform-origin: 80% 80%; }

/* footer */
.foot { background: var(--ink); color: #b9bfcc; padding: 48px var(--pad) 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center; font-size: 15px; }
.foot b { color: #fff; } .foot a { color: #fff; }
.foot p { margin: 0; }
.foot-legal, .sig { grid-column: 2 / -1; font-size: 13.5px; }
.sig a { color: var(--gold); }

/* reveal (JS adds .js on html) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }

@media (max-width: 900px) {
  .nav { display: none; }
  .top-call { margin-left: auto; }
  /* phone: the vertical reel itself is the background */
  .hero { grid-template-columns: 1fr; background: linear-gradient(180deg, rgb(15 31 68 / .93) 0%, rgb(15 31 68 / .8) 55%, rgb(15 31 68 / .55) 100%), url(/assets/photos/hero-bg-1800.webp) 60% 30% / cover, var(--navy); }
  .hero-reel { max-width: 420px; justify-self: center; width: 100%; }
  .hero-reel figcaption { left: 12px; }
  .sec-head { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; }
  /* cards never stack on the phone: horizontal rail with snap */
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .rail::-webkit-scrollbar { display: none; }
  .rail > li { flex: 0 0 72%; scroll-snap-align: start; }
  .svc { border-top: 0; }
  .svc li { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; background: var(--paper); }
  .svc li:nth-child(4n) { border-right: 1px solid var(--line); }
  .stills > li { flex-basis: 62%; }
  .foot { grid-template-columns: 1fr; }
  .foot-legal, .sig { grid-column: auto; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .top-call { padding: 0 12px; font-size: 15px; }
  .cta { gap: 12px; } .btn { padding: 0 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- multi-page (21/11/2026): links on cards, inner-page hero, prose, steps, tables, facts, towns, menu, form ---- */
.svc li a { display: block; height: 100%; text-decoration: none; color: inherit; }
.svc li a:hover h3 { color: var(--cedar); }
.svc li { position: relative; }
.also { max-width: var(--max); margin: 22px auto 0; color: var(--muted); font-size: 15px; }
.sec-head p a, .prose a, .faq p a, .town i { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.on-dark { color: var(--gold); font-weight: 700; }

/* inner-page hero: navy band, copy left, a real photo or a drawn profile right */
.phero { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 48px) max(var(--pad), calc((100vw - var(--max)) / 2)) clamp(48px, 7vw, 90px); }
.phero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero h1 { font-size: clamp(38px, 5.4vw, 70px); font-weight: 900; }
.phero h1 span { color: var(--gold); }
.phero .lede { color: #dbe1ee; }
.phero .btn { background: var(--gold); color: var(--navy); }
.phero .link { color: #fff; }
.phero-short h1 { max-width: 16em; }
.phero-short .ticks a { color: #fff; }
.phero-img { width: 100%; max-width: 420px; justify-self: end; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid #fff; outline: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); }
.phero-art { width: 100%; max-width: 420px; justify-self: end; }
.phero-art .pr { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.phero-art text { fill: #c9d1e4; font: 600 13px var(--text); }
.crumbs { font-size: 14px; color: #aab4cc; margin-bottom: clamp(22px, 3vw, 40px); }
.crumbs a { color: #fff; } .crumbs span { margin: 0 6px; color: var(--gold); }

.prose { max-width: 900px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--pad) 0; }
.prose h2, .steps-sec h2, .facts h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; color: var(--navy); margin: 0 0 18px; }
.prose h2 + p, .prose p { color: var(--ink); }
.prose > * + h2 { margin-top: 40px; }
.legal { padding-bottom: 80px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards3 > * { display: block; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; color: var(--muted); font-size: 15.5px; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.cards3 b { display: block; font: 800 19px/1.2 var(--display); color: var(--navy); margin-bottom: 6px; }
.cards3 a:hover { border-top-color: var(--gold); transform: translateY(-2px); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 6px; border: solid var(--gold-deep); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.phero .ticks li { border-color: rgb(255 255 255 / .14); }

.steps-sec { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(48px, 7vw, 90px); padding: clamp(48px, 7vw, 90px) var(--pad); }
.steps-sec h2 { max-width: var(--max); margin-left: auto; margin-right: auto; }
.steps { list-style: none; counter-reset: s; max-width: var(--max); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.steps li { counter-increment: s; padding: 20px 18px 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 900 26px var(--display); color: var(--gold-deep); margin-bottom: 8px; }
.steps b { display: block; font: 800 18px/1.2 var(--display); color: var(--navy); margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin: 8px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 800 15px var(--display); color: var(--navy); border-bottom: 2px solid var(--navy); }
td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* built-in story: six real photos, numbered */
.build-story { background: #fff; padding: clamp(56px, 8vw, 100px) var(--pad); border-bottom: 1px solid var(--line); }
.story { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.story img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }
.story b { display: block; font: 900 18px var(--display); color: var(--navy); }
.story span { color: var(--muted); font-size: 15px; }

/* town facts */
.facts { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--pad) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 2px solid var(--navy); }
.stats div { padding: 18px 16px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font: 700 13px var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 6px 0 0; font: 900 clamp(36px, 4.4vw, 56px)/1 var(--display); color: var(--navy); }
.src { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.towns { padding: clamp(56px, 8vw, 100px) var(--pad); }
.town-cards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.town { display: grid; gap: 8px; padding: 28px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 4px; text-decoration: none; color: var(--muted); transition: transform .25s var(--ease), box-shadow .25s; }
.town b { font: 900 34px var(--display); color: var(--navy); }
.town i { font-style: normal; font-weight: 700; text-decoration: underline; }
.town:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgb(15 31 68 / .4); }

/* menu: phone and tablet */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; border: 2px solid var(--navy); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .25s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 56px; width: min(300px, 86vw); display: grid; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 20px 40px -16px rgb(15 31 68 / .35); padding: 6px 0; }
.menu nav a { padding: 12px 18px; text-decoration: none; font-weight: 600; color: var(--navy); min-height: 44px; }
.menu nav a:hover, .nav a[aria-current], .menu nav a[aria-current] { color: var(--cedar); }
.nav a[aria-current] { background-size: 100% 3px; }

/* estimate: copy left, form right on the gold band */
.estimate { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; text-align: left; padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2)); }
.estimate-copy { position: relative; z-index: 1; }
.estimate h2 span { display: block; }
.estimate .contact-lines { justify-content: flex-start; }
.form { position: relative; z-index: 1; display: grid; gap: 14px; background: #fff; padding: clamp(18px, 3vw, 30px); border-radius: 6px; box-shadow: 0 24px 50px -24px rgb(15 31 68 / .55); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--navy); border: 0; padding: 0; margin: 0; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c1d2; border-radius: 4px; background: #fff; color: var(--ink); font: 400 16px var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-deep); outline-offset: 0; border-color: var(--gold-deep); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.field-inline legend { padding: 0; margin-bottom: 6px; }
.field-inline label { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 400; color: var(--ink); }
.field-inline input[type=radio] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-send { justify-self: start; border: 0; cursor: pointer; }
.form-status { min-height: 1.4em; margin: 0; font-size: 15px; }
.form-status.is-ok { color: #1d6b3a; } .form-status.is-err { color: #b3261e; }
.dms-pref { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* footer with link columns */
.foot { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; gap: 28px 32px; }
.foot-id { display: flex; gap: 16px; align-items: flex-start; }
.foot-id img { flex: none; }
.foot .small { color: #8f97a9; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links b { font: 800 16px var(--display); color: var(--gold); }
.foot-links a { text-decoration: none; } .foot-links a:hover { text-decoration: underline; }
.foot-legal, .sig { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
  .top-call { margin-left: auto; }
}
@media (max-width: 900px) {
  .phero-grid { grid-template-columns: 1fr; }
  .phero-img, .phero-art { justify-self: center; max-width: 360px; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; }
  .steps li::before { grid-row: span 2; }
  .story { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .story::-webkit-scrollbar { display: none; }
  .story > li { flex: 0 0 74%; scroll-snap-align: start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .town-cards { grid-template-columns: 1fr; }
  .estimate { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-id { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cards3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* housing-stock bar (town pages): census eras as one stacked board, like courses of trim */
.eras { margin: 0; }
.eras-med { font: 600 18px var(--text); color: var(--muted); margin: 0 0 14px; }
.eras-med b { font: 900 clamp(40px, 5vw, 64px)/1 var(--display); color: var(--navy); margin-left: 6px; vertical-align: -4px; }
.eras-bar { display: flex; min-height: 92px; border-radius: 4px; overflow: hidden; border: 2px solid var(--navy); }
.era { flex: 0 0 var(--w); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 10px; font-size: 13.5px; line-height: 1.25; color: #fff; min-width: 0; overflow: hidden; }
.era b { font: 900 24px var(--display); }
.e0 { background: var(--navy); } .e1 { background: var(--navy-2); } .e2 { background: var(--cedar); } .e3 { background: var(--gold); color: var(--navy); }
.eras figcaption { margin-top: 14px; color: var(--ink); }
@media (max-width: 700px) {
  .eras-bar { flex-direction: column; min-height: 0; }
  .era { flex-basis: auto; flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 12px; min-height: calc(var(--w) * 3 + 28px); }
}

/* phone: the top bar fits in 360 px (logo carries the name), the text link wraps beside the button instead of pushing the page */
@media (max-width: 520px) {
  .top { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand-name { display: none; }
  .top-call { padding: 0 12px; font-size: 15px; }
  .cta { gap: 14px; }
  .cta .link { white-space: normal; line-height: 1.3; }
  .phero { padding-left: 18px; padding-right: 18px; }
}

/* six service cards: 3 x 2, no hole in the grid; footer on the same column as the content */
@media (min-width: 901px) {
  .svc { grid-template-columns: repeat(3, 1fr); }
  .svc li:nth-child(4n) { border-right: 1px solid var(--line); }
  .svc li:nth-child(3n) { border-right: 0; }
}
.foot { padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2)); }
.phero-img { aspect-ratio: 4 / 5; max-width: 360px; max-height: 450px; }
.kicker { flex-wrap: wrap; white-space: nowrap; row-gap: 4px; }
