/* JT Paint · site styles (multi-page, 2026-10-11)
   Pattern modeled on the references Jarbas sent (Vision Painting, Paint Pros MA, CertaPro Nashua):
   dark hero with the estimate form beside the headline, trust strip right under it, strong sans,
   uppercase buttons, phone always visible. Photos only when they are his. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; color: inherit; }
h1 { font-size: var(--text-hero); font-weight: 800; }
h2 { font-size: var(--text-3xl); font-weight: 800; }
h3 { font-size: var(--text-lg); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: var(--space-md); }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--white); padding: var(--space-xs) var(--space-md); z-index: 99; }
.skip:focus-visible { left: var(--space-md); top: var(--space-md); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-navy :focus-visible, .hero :focus-visible, .nav :focus-visible, .footer :focus-visible { outline-color: var(--white); }

/* ---- eyebrow + section heads ---- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: var(--space-md); }
.eyebrow::before { content: ''; width: 2.25rem; height: 3px; background: currentColor; transform-origin: left center; }
.on-navy .eyebrow, .hero .eyebrow { color: #ff4d55; }
.head { max-width: 48rem; margin-bottom: var(--space-xl); }
.head h2 { margin-bottom: var(--space-md); }
.lede { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; margin-top: var(--space-sm); }
.prose li + li { margin-top: var(--space-2xs); }
.prose h3 { margin: var(--space-lg) 0 var(--space-xs); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 3.1rem; padding: 0 var(--space-lg); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); }
.btn--red:active { background: var(--red-press); }
.btn--ghost { border-color: rgb(255 255 255 / 0.55); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 0.08); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--red); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link svg { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out); }
.link:hover svg { transform: translateX(3px); }
.link:active { color: var(--red-press); }
.on-navy .link { color: var(--white); }

/* ---- top bar + nav ---- */
.topbar { background: var(--navy-950); color: var(--on-navy-2); font-size: var(--text-xs); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 2.4rem; }
.topbar a { color: var(--white); font-family: var(--font-display); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.topbar span { display: none; }
@media (min-width: 640px) { .topbar span { display: inline; } }
.nav { position: sticky; top: 0; z-index: 30; background: var(--navy-900); color: var(--on-navy); border-bottom: 1px solid var(--navy-line); }
.nav__row { display: flex; align-items: center; gap: var(--space-lg); min-height: 5.25rem; }
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand img { height: 4.25rem; width: auto; }
.nav__links { display: none; list-style: none; gap: var(--space-lg); margin-left: auto; align-items: center; }
.nav__links > li { position: relative; }
.nav__links a, .nav__links summary { color: var(--on-navy-2); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; cursor: pointer; transition: color var(--dur-fast) var(--ease-out); }
.nav__links a:hover, .nav__links summary:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links summary { list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.nav__links summary::-webkit-details-marker { display: none; }
.nav__links summary svg { width: 0.85rem; height: 0.85rem; transition: transform var(--dur-fast) var(--ease-out); }
.nav__links details[open] summary svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 1.1rem); left: -1rem; min-width: 17rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-xs); list-style: none; animation: drop var(--dur) var(--ease-out); }
.menu a { display: block; color: var(--ink); padding: var(--space-sm) var(--space-md); border-radius: var(--radius); font-weight: 600; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--gray-100); color: var(--red); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__cta { display: none; align-items: center; gap: var(--space-md); }
.nav__tel { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--white); font-family: var(--font-display); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav__tel svg { width: 1.1rem; height: 1.1rem; color: #ff4d55; }
.nav__mobile { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.nav__burger { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; background: transparent; border: 1px solid var(--navy-line); border-radius: var(--radius); color: var(--white); cursor: pointer; }
.nav__burger:active { background: var(--navy-800); }
.nav__burger svg { width: 1.3rem; height: 1.3rem; }
.nav__sheet { display: none; border-top: 1px solid var(--navy-line); padding: var(--space-sm) 0 var(--space-lg); }
.nav__sheet ul { list-style: none; display: grid; gap: 2px; }
.nav__sheet a { display: block; padding: var(--space-sm) 0; color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.nav__sheet .sub a { padding-left: var(--space-md); color: var(--on-navy-2); font-weight: 500; }
.nav[data-open="true"] .nav__sheet { display: block; }
@media (min-width: 1040px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__mobile { display: none; }
  .nav[data-open="true"] .nav__sheet { display: none; }
}

/* ---- hero ---- */
.hero { position: relative; background: var(--navy-950); color: var(--on-navy); overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(4 13 24 / 0.94) 0%, rgb(4 13 24 / 0.78) 48%, rgb(4 13 24 / 0.55) 100%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -1; color: var(--navy-700); opacity: 0.55; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; }
.hero__grid { display: grid; gap: var(--space-xl); align-items: center; padding: var(--space-2xl) 0 var(--space-3xl); }
.hero__text > * { animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
.hero h1 { max-width: 17ch; margin-bottom: var(--space-lg); }
.hero h1 span { color: #ff4d55; }
.hero .lede { color: var(--on-navy-2); margin-bottom: var(--space-xl); max-width: 54ch; }
.hero .eyebrow::before { animation: stroke var(--dur-slow) var(--ease-out) 200ms both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes stroke { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); padding: var(--space-3xl) 0; }
}
.hero--inner .hero__grid { padding: var(--space-2xl) 0; }
.hero--inner h1 { font-size: var(--text-3xl); max-width: 22ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; font-size: var(--text-xs); color: var(--on-navy-2); margin-bottom: var(--space-lg); }
.crumbs a { color: var(--on-navy-2); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: '/'; margin-right: var(--space-xs); opacity: 0.5; }

/* ---- estimate form card ---- */
.estimate { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow); border-top: 5px solid var(--red); }
@media (min-width: 700px) { .estimate { padding: var(--space-xl); } }
.estimate h2 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.estimate > p { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-lg); }
.field { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-md); }
.field label { font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 2.9rem; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(168 0 10 / 0.18); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--gray-100); color: var(--muted); cursor: not-allowed; }
.field__error { display: none; color: var(--red); font-size: var(--text-xs); font-weight: 600; }
.field[data-invalid="true"] input { border-color: var(--red); }
.field[data-invalid="true"] .field__error { display: block; }
.field--row { display: grid; gap: 0 var(--space-md); }
@media (min-width: 480px) { .field--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.estimate .btn { width: 100%; margin-top: var(--space-xs); }
.estimate .btn[data-state="loading"] { opacity: 0.75; cursor: progress; }
.estimate__note { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--muted); text-align: center; }
.estimate__done { display: none; margin-top: var(--space-md); padding: var(--space-md); background: var(--gray-50); border-left: 3px solid var(--red); font-size: var(--text-sm); }
.estimate[data-done="true"] .estimate__done { display: block; }

/* ---- trust strip ---- */
.trust { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust li { padding: var(--space-lg) var(--space-md); border-left: 1px solid var(--gray-100); }
.trust li:nth-child(odd) { border-left: 0; padding-left: 0; }
.trust b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--ink); line-height: 1.1; }
.trust span { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust li, .trust li:nth-child(odd) { padding: var(--space-xl) var(--space-lg); border-left: 1px solid var(--gray-100); }
  .trust li:first-child { border-left: 0; padding-left: 0; }
}

/* ---- sections ---- */
.section { padding: var(--space-3xl) 0; }
.section--gray { background: var(--gray-50); }
.on-navy { background: var(--navy-900); color: var(--on-navy); }
.on-navy .lede, .on-navy p, .on-navy li { color: var(--on-navy-2); }
.split { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split__sticky { position: sticky; top: 8rem; }
}

/* service rows: each service is a row that links to its page */
.rows { list-style: none; border-top: 1px solid var(--gray-300); }
.rows li { border-bottom: 1px solid var(--gray-300); }
.rows a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 1.5rem; gap: var(--space-md); align-items: start; padding: var(--space-lg) 0; text-decoration: none; color: inherit; transition: background-color var(--dur) var(--ease-out); }
.rows a:hover { background: linear-gradient(90deg, rgb(168 0 10 / 0.05), transparent 70%); }
.rows a:active { background: rgb(168 0 10 / 0.08); }
.rows__num { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: var(--text-sm); padding-top: 0.35rem; font-variant-numeric: tabular-nums; }
.rows h3 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); transition: color var(--dur-fast) var(--ease-out); }
.rows p { color: var(--ink-2); font-size: var(--text-sm); max-width: 60ch; }
.rows svg { width: 1.4rem; height: 1.4rem; color: var(--red); margin-top: 0.35rem; transition: transform var(--dur) var(--ease-out); }
.rows a:hover h3 { color: var(--red); }
.rows a:hover svg { transform: translateX(4px); }

/* numbered steps / commitments */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--space-md); }
.steps li { counter-increment: step; position: relative; padding: var(--space-lg) var(--space-lg) var(--space-lg) 4.25rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: var(--space-lg); top: var(--space-lg); font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: var(--text-lg); line-height: 1.1; }
.steps h3 { margin-bottom: var(--space-2xs); }
.steps p { color: var(--ink-2); font-size: var(--text-sm); }
.on-navy .steps li { background: var(--navy-800); border-color: var(--navy-line); }
.on-navy .steps h3 { color: var(--white); }
@media (min-width: 760px) { .steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 2200px) { .steps--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* checklist */
.checks { list-style: none; display: grid; gap: var(--space-sm); }
.checks li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat; }
.on-navy .checks li { color: var(--on-navy-2); }
@media (min-width: 760px) { .checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); } }

/* data table (evidence) */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
caption { text-align: left; padding: var(--space-md) var(--space-lg); font-family: var(--font-display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--gray-300); }
th, td { text-align: left; padding: var(--space-sm) var(--space-lg); border-bottom: 1px solid var(--gray-100); vertical-align: top; }
thead th { font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--gray-50); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.source { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--muted); max-width: var(--measure); }

/* contractors band */
.band { display: grid; gap: var(--space-xl); }
@media (min-width: 960px) { .band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }

/* coverage */
.coverage { display: grid; gap: var(--space-md); }
.coverage figure { margin: 0; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.coverage figcaption { padding: var(--space-md) var(--space-lg); font-size: var(--text-sm); color: var(--muted); border-top: 1px solid var(--gray-100); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--gray-300); }
.faq details:first-child { border-top: 1px solid var(--gray-300); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--red); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq .answer { padding: 0 0 var(--space-lg); color: var(--ink-2); max-width: var(--measure); }
.faq .answer ul { padding-left: 1.2rem; margin-top: var(--space-xs); }

/* CTA band */
.cta { background: var(--red); color: var(--white); padding: var(--space-2xl) 0; }
.cta .wrap { display: grid; gap: var(--space-lg); align-items: center; }
.cta h2 { font-size: var(--text-2xl); }
.cta p { color: rgb(255 255 255 / 0.85); max-width: 52ch; margin-top: var(--space-xs); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.cta .btn--white { background: var(--white); color: var(--red); }
.cta .btn--white:hover { background: var(--gray-100); }
.cta .btn--white:active { background: var(--gray-300); }
@media (min-width: 960px) { .cta .wrap { grid-template-columns: minmax(0, 1fr) auto; } }

/* updated stamp */
.updated { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-lg); }
.on-navy .updated, .hero .updated { color: var(--on-navy-2); }

/* ---- footer ---- */
.footer { background: var(--navy-950); color: var(--on-navy-2); padding: var(--space-2xl) 0 var(--space-lg); font-size: var(--text-sm); }
.footer__grid { display: grid; gap: var(--space-xl); }
.footer__brand img { height: 4.5rem; width: auto; margin-bottom: var(--space-md); }
.footer__brand p { max-width: 38ch; }
.footer h3 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-md); }
.footer ul { list-style: none; display: grid; gap: var(--space-xs); }
.footer a { color: var(--on-navy-2); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--navy-line); font-size: var(--text-xs); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* ---- reveal on scroll: one per section block, children stagger by index ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal [data-i] { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-in [data-i] { opacity: 1; transform: none; }

/* large monitors: spare width becomes columns, not bigger cards */
@media (min-width: 1800px) {
  .hero h1 { max-width: 18ch; }
  .head { max-width: 56rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > *, .hero .eyebrow::before, .menu { animation: none; }
  .reveal, .reveal [data-i] { transition: opacity 150ms linear; transform: none; transition-delay: 0ms; }
  .btn, .btn svg, .link svg, .rows a, .rows svg, .faq summary svg { transition: none; }
}
