@font-face {
    font-family: 'Radio Canada';
    src: url('fonts/radio-canada.woff2') format('woff2-variations'), url('fonts/radio-canada.woff2') format('woff2');
    font-weight: 300 700;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

:root {
    /* from the logo and the job: primer, can rim, process blue, brush yellow, drop cloth */
    --primer: #f7f7f3;
    --white: #ffffff;
    --ink: #1d1f22;
    --muted: #575b61;
    --process: #0186c9;
    --process-deep: #0b5a86;
    --brush: #fed001;
    --cloth: #dcdad2;

    --max-width: 1180px;
    --radius-s: 4px;
    --radius-m: 8px;
    --gutter: clamp(18px, 4vw, 40px);
    --section: clamp(72px, 10vw, 132px);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }

body {
    margin: 0;
    background: var(--primer);
    color: var(--ink);
    font-family: 'Radio Canada', 'Segoe UI', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
    padding-bottom: 64px; /* room for the draft bar */
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--process-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--process); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 4.2vw, 3.7rem); font-stretch: 75%; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-stretch: 75%; }
h3 { font-size: 1.3rem; font-stretch: 85%; line-height: 1.15; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 22px;
    font-family: inherit; font-size: 1.05rem; font-weight: 700; font-stretch: 85%;
    border-radius: var(--radius-s); border: 2px solid transparent;
    text-decoration: none; cursor: pointer; line-height: 1.1;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-call { background: var(--brush); color: var(--ink); border-color: var(--brush); }
.btn-call:hover { background: #ffdf3d; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* top bar */
.topbar { background: var(--ink); color: #e9e8e3; font-size: .92rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar p { margin: 0; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.tb-hours { color: #b9b8b2; margin-right: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--cloth); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 0 rgba(29,31,34,.06); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand img { width: 150px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { text-decoration: underline; text-decoration-color: var(--process); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-call { min-height: 44px; padding: 10px 18px; }
.nav-toggle { display: none; font-family: inherit; font-size: 1rem; font-weight: 600; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-s); min-height: 44px; padding: 8px 16px; cursor: pointer; }

/* hero */
.hero { padding: clamp(28px, 4vw, 52px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero-copy { padding-top: 0; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.18rem; max-width: 38ch; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hours { margin-top: 18px; color: var(--muted); font-size: .98rem; }

/* the picker */
.picker { position: relative; min-width: 0; }
.picker-title { font-size: 1.35rem; font-stretch: 80%; margin-bottom: 0; }
.house-wrap { margin: 0 0 14px; }
.house { width: 100%; }
.layer-old, .layer-new { --siding: #4f6b58; --trim: #f2f1ec; --door: #f2c230; --deck: #b9783f; }
.roller { opacity: 0; }
.roller-cover { fill: var(--brush); }

.parts { display: flex; gap: 0; border-bottom: 2px solid var(--cloth); margin-bottom: 16px; }
.part {
    font-family: inherit; font-size: 1rem; font-weight: 600; font-stretch: 90%;
    background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent;
    margin-bottom: -2px; padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.part:hover { color: var(--ink); }
.part.is-on { color: var(--ink); border-bottom-color: var(--ink); }

/* chips look like a paint strip: colour on top, name printed under it */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-bottom: 14px; }
.chip {
    font-family: inherit; text-align: left; cursor: pointer;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--cloth); border-radius: var(--radius-s);
    padding: 0 0 8px; overflow: hidden; min-height: 44px;
}
.chip-swatch { display: block; height: 40px; border-bottom: 1px solid rgba(0,0,0,.08); }
.chip-name { display: block; font-size: .78rem; line-height: 1.2; padding: 6px 7px 0; font-weight: 500; }
.chip:hover { border-color: #b4b2aa; }
.chip[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chip[aria-checked="true"] .chip-name { font-weight: 700; }

.combo { font-weight: 600; margin-bottom: 6px; min-height: 1.6em; }
.picker-note { font-size: .92rem; color: var(--muted); margin: 0; }

/* photos */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-s); }
.photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* services */
.services { padding: var(--section) 0; border-top: 1px solid var(--cloth); }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-side { position: sticky; top: calc(var(--header-h) + 32px); }
.services-side > p { max-width: 30ch; margin: 16px 0 28px; color: var(--muted); }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--cloth); }
.service-list li:last-child { border-bottom: 1px solid var(--cloth); }
.service-list p { margin: 0; }

/* how a room gets painted */
.how { padding: var(--section) 0; background: var(--white); border-top: 1px solid var(--cloth); border-bottom: 1px solid var(--cloth); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 12px 0 12px 56px; border-top: 1px solid var(--cloth); }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 8px;
    font-size: 1.9rem; font-weight: 700; font-stretch: 75%; line-height: 1; color: var(--process);
}
.steps strong { font-weight: 700; }

/* reviews */
.reviews { padding: var(--section) 0; background: var(--process-deep); color: var(--white); }
.reviews h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 80px); }
.reviews blockquote { margin: 0; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.35); }
.reviews blockquote p { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; margin-bottom: 14px; }
.reviews blockquote footer { font-weight: 600; color: #cfe3ee; }
.reviews blockquote footer::after { content: ', Google review'; font-weight: 400; }

/* faq */
.faq { padding: var(--section) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-item { border-top: 1px solid var(--cloth); }
.faq-item:last-child { border-bottom: 1px solid var(--cloth); }
.faq-item summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 22px 48px 22px 0; font-size: 1.2rem; font-weight: 600; font-stretch: 90%;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
    border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
    transform: rotate(45deg); transition: transform .3s ease, margin .3s ease;
}
.faq-item.is-open summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item.is-open summary { color: var(--process-deep); }
.faq-answer { overflow: hidden; margin: 0; padding: 0 48px 22px 0; max-width: 62ch; }

/* contact */
.contact { padding: var(--section) 0; background: var(--white); border-top: 1px solid var(--cloth); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.big-phone { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; font-stretch: 75%; line-height: 1; margin: 28px 0 14px; }
.big-phone a { color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--brush); }
.big-phone a:hover { border-color: var(--ink); }

.quote { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
input[type="text"], input[type="tel"], textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--primer);
    border: 1px solid #b9b7af; border-radius: var(--radius-s); padding: 12px 14px; min-height: 48px;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--process); outline-offset: 1px; border-color: var(--ink); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b9b7af; border-radius: var(--radius-s); padding: 9px 14px; min-height: 44px; cursor: pointer; background: var(--primer); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--ink); }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.quote .btn { justify-self: start; }
.form-error { color: #a32116; font-weight: 600; margin: 0; }
.form-status {
    justify-self: start; margin: 0; padding: 6px 14px; font-weight: 700; font-stretch: 75%; font-size: 1.3rem;
    color: #a32116; border: 3px solid #a32116; border-radius: var(--radius-s); transform: rotate(-3deg);
}
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* footer */
.site-footer { background: var(--ink); color: #d6d5cf; padding: 48px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer strong { color: var(--white); }
.site-footer a { color: #e9e8e3; }
.footer-links { display: flex; gap: 20px; margin: 0; }

/* draft bar */
.draft-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    background: var(--ink); color: var(--white); padding: 10px 16px; font-size: .92rem;
    border-top: 3px solid var(--brush);
}
.draft-bar p { margin: 0; }
.draft-btn { background: var(--brush); color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-s); white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.draft-btn:hover { background: #ffdf3d; color: var(--ink); }

/* tablet and down */
@media (max-width: 960px) {
    .hero-grid, .services-grid, .how-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .services-side { position: static; }
    .services-side .photo { display: none; }
    .hero h1 { max-width: 16ch; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; align-items: center; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); border-bottom: 1px solid var(--cloth); padding: 8px var(--gutter) 20px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--cloth); }
    .nav-call { margin-top: 14px; }
    .header-in { position: relative; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; padding-bottom: 56px; }
    :root { --header-h: 64px; }
    .brand img { width: 118px; }
    .tb-hours { display: none; }
    .lede { font-size: 1.08rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .house-wrap { margin: 12px calc(var(--gutter) * -1) 14px; }
    .chips { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
    .chips { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
    .chip { flex: 0 0 88px; scroll-snap-align: start; }
    .part { padding: 10px 12px; flex: 1; }
    .service-list li { grid-template-columns: 1fr; gap: 8px; }
    .review-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .draft-bar { font-size: .82rem; gap: 10px; padding: 8px 12px; justify-content: space-between; }
    .draft-bar p { line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
