/*  CO House Painters: one stylesheet for every city site.
    Colors come from the logo: navy for the brand, orange for the one thing we want clicked.
    Deliberately not the Wild Fox look.

    Type scale (the only sizes used):
      h1  clamp(2.35rem, 5.4vw, 3.75rem)  Plus Jakarta Sans 800
      h2  clamp(1.7rem, 3.3vw, 2.4rem)    Plus Jakarta Sans 800
      h3  1.1875rem                       Inter 700
      lead 1.1875rem · body 1.0625rem · small .9375rem · fine .875rem

    Contrast: white on --action is 4.8:1, --body on --canvas 9:1, --muted on --canvas 5.3:1.
    --orange is decoration only (strokes, icons, stars); never put small text on it.          */

:root {
    --accent: #0b2d5b;            /* brand navy; a site's JSON can override it */
    --orange: #f75302;
    --action: #c8460a;
    --action-hover: #a83a07;
    --canvas: #fbfaf7;
    --tint: #f0f4f9;
    --warm: #fef1e6;
    --surface: #ffffff;
    --ink: #101d33;
    --body: #364358;
    --muted: #5b677a;
    --line: #dfe5ee;
    --error: #a3271c;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 1px 2px rgba(11, 45, 91, .06), 0 14px 34px -14px rgba(11, 45, 91, .22);
    --shadow-lg: 0 2px 4px rgba(11, 45, 91, .08), 0 30px 60px -24px rgba(11, 45, 91, .35);
    --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 400 1.0625rem/1.65 var(--text); }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.35rem, 5.4vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); line-height: 1.12; margin-bottom: .5em; }
h3, .h3 { font-family: var(--text); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -.005em; margin: 0 0 .35em; text-wrap: balance; }
.h2-gap { margin-top: 1.6em; }

.wrap { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
/* Narrow text columns keep the page's left edge; only the measure is capped. */
.narrow > * { max-width: 780px; }
.narrow-head > * { max-width: 680px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: .5rem; top: .5rem; }

.eyebrow {
    display: flex; align-items: center; gap: .55rem;
    font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; border-radius: 3px; background: var(--orange); flex: none; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--body); max-width: 34em; }
.sub { color: var(--muted); max-width: 40em; }
.fine { font-size: .875rem; color: var(--muted); }

/* The city in a headline sits on a brush stroke, the same gesture as the logo. */
.brush {
    white-space: nowrap; padding-bottom: .08em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M2 12C60 5 150 3 298 7c-40 1-150 3-236 9-30 2-48 1-60-4z' fill='%23f75302'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .22em;
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 700 1.0625rem/1.2 var(--text); text-decoration: none; cursor: pointer;
    padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 10px 22px -10px rgba(200, 70, 10, .7); }
.btn-primary:hover { background: var(--action-hover); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--warm); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-small { padding: .7rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: " \2192"; white-space: nowrap; }
a.link-arrow:hover, a:hover .link-arrow { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: 1.7rem; }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.25rem; padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand img { height: 60px; width: auto; }
.brand-city {
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
    font-size: .875rem; font-weight: 700; color: var(--accent);
    background: var(--tint); border-radius: 999px; padding: .35rem .75rem .35rem .55rem;
}
.brand-city svg { width: 15px; height: 15px; color: var(--orange); }
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.top-actions { display: flex; align-items: center; gap: 1.1rem; }

/* ── Hero ── */
.hero { padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--tint) 0%, var(--canvas) 100%); }
.hero-page { padding-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { margin-bottom: 1.2rem; }
.hero-page h1 { margin-bottom: 1rem; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-page .hero-photo img { aspect-ratio: 16 / 11; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .7rem; }
.crumbs { font-size: .9375rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin-top: 1.6rem; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--action); }

/* The rating card that sits on the corner of the hero photo. */
.rating-card {
    position: absolute; left: -1.25rem; bottom: 2.6rem; max-width: 15.5rem;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .9rem 1.1rem;
}
.rating-card strong { display: block; color: var(--ink); font-size: 1.0625rem; line-height: 1.3; }
.rating-card span { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.stars { display: flex; gap: 2px; color: var(--orange); margin-bottom: .35rem; }
.stars svg { width: 18px; height: 18px; }

/* ── Bands ── */
.band { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.band-tint { background: var(--tint); }
.band-note { padding: 0 0 clamp(1.5rem, 3vw, 2.2rem); }
.note { margin: 0; background: var(--warm); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--ink); }
.band-dark { background: var(--accent); color: #d5e0ef; }
.band-dark h2 { color: #fff; }
.band-dark .eyebrow { color: #fff; }
.band-dark a:not(.btn) { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-form { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split-form > :first-child { position: sticky; top: 6rem; }

/* ── Facts ── */
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.facts li {
    display: flex; align-items: center; gap: .85rem; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.35; font-size: .9375rem;
}
.icon-chip { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--warm); color: var(--action); }
.icon-chip svg { width: 22px; height: 22px; }

/* ── Service cards ── */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--body); overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media-plain { display: grid; place-items: center; background: var(--warm); color: var(--action); }
.card-media-plain svg { width: 4.5rem; height: 4.5rem; }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1.6rem 1.6rem; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.card p { margin-bottom: 1rem; }
.card .link-arrow { margin-top: auto; }

/* ── Steps ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.2rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; }
.step-n { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.03em; color: var(--orange); margin-bottom: .9rem; }
.step p { margin: 0; font-size: 1rem; }

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Local notes ── */
.areas { font-size: .9375rem; color: var(--muted); margin-top: 1.3rem; }
.areas strong { color: var(--ink); }
.points { display: grid; gap: 1rem; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.point p { margin: 0; font-size: 1rem; }

/* ── Who does the work ── */
.operator { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.6rem); box-shadow: var(--shadow); }
.operator .stars { margin-bottom: .8rem; }
.operator .stars svg { width: 22px; height: 22px; }

/* ── Lists ── */
.ticks { list-style: none; display: grid; gap: .7rem; margin: .5rem 0 1.2rem; }
.ticks li { position: relative; padding-left: 2.1rem; text-wrap: pretty; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: var(--warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8460a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / .85rem no-repeat;
}
.ticks-light li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.next { margin: .7rem 0 1.7rem 1.25rem; display: grid; gap: .8rem; }
.next li { padding-left: .3rem; }
.next li::marker { color: var(--action); font-weight: 700; }
.next strong { color: var(--ink); }

/* ── Warranty table ── */
.table-wrap { overflow-x: auto; margin: 1.3rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.terms { width: 100%; border-collapse: collapse; min-width: 30rem; }
.terms th, .terms td { text-align: left; padding: .95rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms thead th { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
.terms tbody th { color: var(--ink); font-weight: 700; }
.terms tbody tr:last-child th, .terms tbody tr:last-child td { border-bottom: 0; }
.terms-years { white-space: nowrap; font-weight: 700; color: var(--action); }

/* ── FAQ ── */
.faqs { display: grid; gap: .75rem; margin-top: 1.4rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, box-shadow .18s ease; }
.faq[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer; list-style: none; position: relative; padding: 1.1rem 3.4rem 1.1rem 1.3rem;
    font-weight: 700; color: var(--ink); font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 1rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--warm); color: var(--action); font-size: 1.3rem; font-weight: 500; line-height: 1;
}
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0; padding: 0 1.3rem 1.25rem; max-width: 46em; }

/* ── Closing call ── */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; }

/* ── Form ── */
.form-card { background: var(--surface); color: var(--body); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2.1rem); box-shadow: var(--shadow-lg); }
.form-card-plain { border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: .45rem; padding: 0; }
.req { font-weight: 500; font-size: .8125rem; color: var(--muted); margin-left: .3rem; }
.hint { display: block; font-weight: 400; font-size: .9375rem; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #b8c2d1; border-radius: 12px; padding: .8rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11, 45, 91, .18); }
.choices, .checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.field .choice, .field .check {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer;
    font-weight: 600; border: 1.5px solid #b8c2d1; border-radius: 999px; padding: .6rem 1.05rem .6rem .85rem; background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}
.field .choice:hover, .field .check:hover { border-color: var(--accent); }
.field .choice:has(input:checked), .field .check:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.choice input, .check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }
.field-error { margin: .4rem 0 0; color: var(--error); font-weight: 600; font-size: .9375rem; }
.field-error::before { content: "! "; font-weight: 700; }
.form-alert { margin: 0; padding: .9rem 1.05rem; border: 1.5px solid var(--error); border-left-width: 5px; border-radius: 12px; color: var(--error); background: #fdf3f1; }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); }
[hidden] { display: none !important; }

.status-ok { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--action); background: var(--warm); border-radius: 999px; padding: .4rem .9rem; margin-bottom: 1.1rem; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }

/* ── Footer ── */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot-logo { height: 62px; width: auto; margin-bottom: .9rem; }
.foot-head { font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.foot ul { list-style: none; display: grid; gap: .45rem; }
.foot a { color: var(--body); }
.foot-legal { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.foot-legal p { margin: 0; }

/* A thumb-reach estimate button on phones. Left off the form's own pages. */
.sticky-cta { display: none; }

/* ── Smaller screens ── */
@media (max-width: 960px) {
    .hero-grid, .split, .split-form { grid-template-columns: 1fr; }
    .split-form > :first-child { position: static; }
    .rating-card { left: .9rem; bottom: 2.9rem; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery figure:last-child { grid-column: 1 / -1; }
    .gallery figure:last-child img { aspect-ratio: 16 / 9; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    html { scroll-padding-top: 7.5rem; }
    .top-row { flex-wrap: wrap; gap: .35rem 1rem; padding: .5rem 0 .3rem; }
    .top-actions { display: none; }
    .brand { width: 100%; justify-content: space-between; }
    .nav { order: 3; width: 100%; margin: 0; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: .2rem; }
    .brand img { height: 44px; }
    .cards, .steps { grid-template-columns: 1fr; }
    .sticky-cta {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(11, 45, 91, .5);
    }
    .sticky-cta .btn { width: 100%; }
    body.has-sticky-cta { padding-bottom: 5rem; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
    .gallery, .facts { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .actions .btn, .cta .btn { width: 100%; }
    .rating-card { position: static; max-width: none; margin-top: .9rem; box-shadow: var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .card:hover, .btn:hover { transform: none; }
}
