/* Lake County Quality Contractor — "the job ticket"
   Tokens first; every color and face below derives from these. */
:root {
  --steel: #e4e6e3;        /* galvanized ground */
  --steel-2: #d5d8d4;      /* recessed panels, rules */
  --ink: #151515;          /* brand black */
  --ink-2: #4a4f4c;        /* secondary text, AA on steel */
  --safety: #f26722;       /* logo orange — surfaces with ink text */
  --safety-deep: #b8430c;  /* orange as text on light grounds */
  --canary: #f7e48a;       /* carbonless ticket paper */
  --canary-rule: #d9c25a;
  --ballpoint: #23408e;    /* handwriting on the ticket */
  --paper: #fbfbf9;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-hand: "Reenie Beanie", "Bradley Hand", "Comic Sans MS", cursive;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ballpoint); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .callbar :focus-visible, .why :focus-visible { outline-color: var(--safety); }
.callbar :focus-visible { outline-offset: -6px; outline-color: var(--ink); }
.callbar a:last-child:focus-visible { outline-color: var(--safety); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--canary); padding: .6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }

/* Placeholders the client must fill before launch — loud on purpose */
.todo {
  background: repeating-linear-gradient(-45deg, #ffe9e0 0 6px, #ffd9c8 6px 12px);
  color: #7a2400; font: 600 .78em/1.3 var(--f-mono);
  padding: .1em .35em; border: 1px dashed #b8430c; border-radius: 2px;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: .005em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.label { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 1.05rem/1 var(--f-body); text-decoration: none;
  padding: 1rem 1.35rem; border-radius: var(--radius); border: 2px solid var(--ink);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn-call { background: var(--safety); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-call:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--steel); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 132px; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav .links { display: contents; }
.nav a { text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--safety); }
.nav .btn-call { padding: .7rem 1rem; box-shadow: none; border-color: var(--safety); }
@media (max-width: 760px) { .nav .links { display: none; } .brand img { width: 104px; } }
@media (max-width: 420px) { .nav .btn-call .num { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 9.5vw, 7.4rem); line-height: .86; }
.hero h1 em { font-style: normal; color: var(--safety-deep); }
.hero .lede { margin: 1.4rem 0 0; }
.phone-big {
  display: block; margin-top: 1.8rem; text-decoration: none;
  font: 800 clamp(2.4rem, 6.4vw, 4.4rem)/1 var(--f-display); letter-spacing: .01em;
}
.phone-big span { display: block; font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.phone-big:hover strong { color: var(--safety-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- THE TICKET (signature) ---------- */
.ticket {
  position: relative; background: var(--canary); color: var(--ink);
  border-radius: 2px; padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 1px 0 #c9b24c, 0 18px 40px -18px rgba(21,21,21,.45);
  /* perforated top edge */
  -webkit-mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 0 0 / 18px 100% repeat-x;
}
.hero .ticket { transform: rotate(1.6deg); max-width: 36rem; padding: 1.8rem 2rem 2rem; justify-self: end; width: 100%; }
@media (max-width: 880px) { .hero .ticket { justify-self: start; transform: rotate(-.8deg); } }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .7rem; }
.ticket-head .t-title { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.ticket-head .t-sub { font: 500 .72rem/1.35 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.ticket-no { font: 600 .9rem/1 var(--f-mono); color: #b3261e; white-space: nowrap; }
.hero .ticket-no { margin-right: 6.5rem; }
@media (max-width: 420px) { .hero .ticket-no, .hero .stamp { display: none; } .hero .ticket { padding: 1.4rem 1.2rem 1.5rem; } }
.t-row { display: grid; grid-template-columns: 6.2rem 1fr; align-items: end; gap: .6rem; border-bottom: 1px solid var(--canary-rule); padding: .55rem 0 .15rem; min-height: 2.8rem; }
.t-row > span:first-child { font: 500 .7rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; padding-bottom: .35rem; }
.hand { font: 400 clamp(1.9rem, 3vw, 2.5rem)/1 var(--f-hand); color: var(--ballpoint); }
.t-check { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .7rem 0 .2rem; font: 500 .72rem/1.2 var(--f-mono); text-transform: uppercase; }
.t-check span::before { content: ""; display: inline-block; width: .85em; height: .85em; border: 1.5px solid var(--ink); margin-right: .35em; vertical-align: -.1em; }
.t-check span.on::before { background: linear-gradient(45deg, transparent 42%, var(--ballpoint) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--ballpoint) 42% 58%, transparent 58%); }
.t-foot { margin-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 500 .7rem/1.3 var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.stamp {
  position: absolute; right: 1.6rem; top: 1.5rem; transform: rotate(-9deg);
  border: 3px solid rgba(184, 67, 12, .75); color: rgba(184, 67, 12, .8);
  font: 800 1.6rem/1 var(--f-display); padding: .3rem .7rem; background: rgba(247,228,138,.6); text-transform: uppercase; letter-spacing: .06em;
  border-radius: 4px; pointer-events: none;
}
/* the handwriting wipe — the page's one orchestrated motion */
.writing .hand { animation: write .9s steps(18, end) both; }
.writing .t-row:nth-of-type(2) .hand { animation-delay: .25s; }
.writing .t-row:nth-of-type(3) .hand { animation-delay: .7s; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .writing .hand { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head p { max-width: 30em; margin: 0; color: var(--ink-2); }

/* services — a parts counter, four bins */
.services { background: var(--paper); border-block: 2px solid var(--ink); }
.bins { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.bin { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.bin .tag { justify-self: start; background: var(--safety); border: 2px solid var(--ink); font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: .35rem .55rem; }
.bin p { margin: 0; }
.bin ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.bin-link { justify-self: start; margin-top: .3rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--safety); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bin-link:hover { color: var(--safety-deep); }
.reach-hint { margin: .5rem 0 0; font: 500 .8rem/1.4 var(--f-mono); color: var(--ink-2); }
.bin li { font: 500 .8rem/1 var(--f-mono); border: 1px solid var(--ink-2); border-radius: 99px; padding: .4rem .65rem; color: var(--ink-2); }
@media (max-width: 720px) { .bins { grid-template-columns: 1fr; } }

/* how it works — a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 6px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font: 800 4.5rem/1 var(--f-display); color: var(--safety-deep); }
.steps h3 { margin: .4rem 0 .5rem; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* why me */
.why { background: var(--ink); color: var(--paper); }
.why .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why h2 { color: var(--paper); }
.why .label { color: #b9bdb9; }
.why figure { margin: 0; position: relative; }
.why figure img { border: 2px solid var(--paper); aspect-ratio: 1; object-fit: cover; width: 100%; }
.why figcaption { font: 500 .72rem/1.4 var(--f-mono); color: #b9bdb9; margin-top: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.promises { margin: 1.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.2rem; }
.promises li { border-left: 4px solid var(--safety); padding-left: 1rem; }
.promises strong { display: block; font: 800 1.45rem/1.05 var(--f-display); text-transform: uppercase; }
.promises span:not(.todo) { color: #d4d7d4; }
@media (max-width: 820px) { .why .wrap { grid-template-columns: 1fr; } .why figure { max-width: 26rem; } }

/* work photos */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work-grid figure { margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: .6rem .6rem .8rem; }
.work-grid img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.work-grid figcaption { font: 500 .75rem/1.35 var(--f-mono); margin-top: .6rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* service area */
.area .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.map { background: var(--paper); border: 2px solid var(--ink); padding: 1rem; }
.map svg { width: 100%; height: auto; display: block; }
.map .county { fill: var(--steel); stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; stroke-dasharray: 5 3; }
.map .lake { fill: #9fb8c9; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.map .county-name { font: 800 22px var(--f-display); fill: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; }
.map .dot { fill: var(--safety); stroke: var(--ink); stroke-width: 1.5; }
.map text { paint-order: stroke; stroke: var(--steel); stroke-width: 3.5px; stroke-linejoin: round; font: 600 13.5px var(--f-mono); fill: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.map .lake-name { font: 400 16px var(--f-hand); fill: #10273a; text-transform: none; letter-spacing: 0; }
.map .lake-name, .map .note { stroke: none; }
.map .note { font-size: 10.5px; fill: var(--ink-2); text-decoration: underline; }
.towns { columns: 2; gap: 2rem; padding: 0; margin: 1.5rem 0; list-style: none; }
.towns li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--steel-2); font-weight: 700; }
@media (max-width: 820px) { .area .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--paper); border-top: 2px solid var(--ink); }
.faq .wrap { max-width: 52rem; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font: 800 clamp(1.3rem, 2.6vw, 1.7rem)/1.1 var(--f-display); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 2rem/1 var(--f-mono); color: var(--safety-deep); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; max-width: 40em; }

/* contact — the ticket again, this time you fill it in */
.contact .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.direct { display: grid; gap: 1.4rem; margin-top: 2rem; }
.direct a { text-decoration: none; display: block; }
.direct .big { font: 800 clamp(1.9rem, 4vw, 2.8rem)/1 var(--f-display); word-break: break-word; }
.direct .email { font: 700 clamp(1rem, 2.2vw, 1.2rem)/1.3 var(--f-body); word-break: break-all; text-decoration: underline; text-decoration-color: var(--safety); text-underline-offset: 4px; text-decoration-thickness: 2px; }
form.ticket { transform: rotate(-.6deg); }
.direct .label { display: block; margin-bottom: .3rem; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } form.ticket { transform: none; } }
.field { display: grid; gap: .2rem; padding: .7rem 0 .35rem; }
.field label { font: 500 .7rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; }
.field label .req { color: #b3261e; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--ink-2); background-color: rgba(255,255,255,.4); padding: .2rem .4rem; border-radius: 2px 2px 0 0;
  font: 400 1.9rem/1.1 var(--f-hand); color: var(--ballpoint);
}
.field select { font-size: 1.7rem; appearance: none; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right .4rem center / 7px 7px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / 7px 7px no-repeat, rgba(255,255,255,.4); padding-right: 1.4rem; }
.field textarea { resize: vertical; min-height: 5.5rem; background-image: repeating-linear-gradient(transparent 0 2.05rem, var(--canary-rule) 2.05rem 2.1rem); line-height: 2.1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: rgba(255,255,255,.7); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ballpoint); box-shadow: 0 2px 0 var(--ballpoint); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 480px) { .field-pair { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-status { font: 500 .8rem/1.4 var(--f-mono); }
.field input:user-invalid { box-shadow: inset 0 -2px 0 #b3261e; }

/* footer */
.site-footer { background: var(--ink); color: #c9ccc9; padding-block: 3rem calc(3rem + 4.5rem); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer a { color: var(--paper); }
.site-footer ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.site-footer .label { color: #9ea39f; }
@media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }

/* mobile call bar — the phone number within thumb reach, always */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr; background: var(--ink); border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
.callbar a { text-align: center; padding: 1rem .5rem; font: 800 1.25rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.callbar a:first-child { background: var(--safety); color: var(--ink); }
.callbar a:last-child { color: var(--paper); }
@media (min-width: 761px) { .callbar { display: none; } }
/* Keep keyboard focus clear of the pinned call bar on phones (WCAG 2.4.11). */
@media (max-width: 760px) { html { scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); } }

/* legal pages */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.7rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { max-width: 40em; }

/* Round 6 — scroll entrances. Paper being laid down: a short rise and settle.
   Hidden-before-reveal only applies when motion is allowed AND the script has run (html.js). */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition: opacity .55s cubic-bezier(.2, .7, .2, 1), translate .55s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal]:not(.in) { opacity: 0; translate: 0 26px; }
  .js [data-reveal]:focus-within { opacity: 1; translate: none; transition: none; }
}

/* ---------- Design D: original line-art tools (C's spirit), B's copy ---------- */
.acc { stroke: var(--safety); }
/* each card: copy on the left, a tall tool drawing standing on the right */
.bin { grid-template-columns: 1fr auto; column-gap: clamp(1rem, 3vw, 2rem); }
.bin > *, .bin-top > .tag { grid-column: 1; }
.bin-top { display: contents; }
.bin .tool { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: clamp(58px, 9vw, 84px); height: auto; aspect-ratio: 64 / 112; color: var(--ink); stroke-width: 1.4; }
.bins-note { margin: 1.6rem 0 0; color: var(--ink-2); }

.why-lede { color: #d4d7d4; margin: 1rem 0 0; max-width: 34em; }
.why-art { display: flex; justify-content: center; }
.toolbox-art { width: 100%; max-width: 22rem; height: auto; color: var(--paper); }
.why .toolbox-art .acc { stroke: var(--safety); }

.work-up { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.work-up figure { margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: .6rem; }
.work-up img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.work-up .lede { margin: 1rem 0 1.2rem; }
@media (max-width: 760px) { .work-up { grid-template-columns: 1fr; } .work-up figure { max-width: 24rem; } }

.form-note { flex-basis: 100%; margin: .2rem 0 0; font: 500 .8rem/1.45 var(--f-mono); color: var(--ink-2); }
.site-footer .tagline { margin: .2rem 0 0; color: var(--paper); font-weight: 700; }

/* Phone numbers never break across lines (tester D7-4). */
a[href^="tel:"] { white-space: nowrap; }

/* Service area: two counties, two matching maps and two town groups. */
.maps { display: grid; gap: 1.2rem; }
.towns-head { font: 600 .78rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 1.4rem 0 0; }
.towns-head + .towns { margin-top: .4rem; }

/* Unified Lake + Mendocino map: full width under the town lists. Wide rendering labels every town;
   phones get the same map with dots only (the town lists sit right above it). */
.area .wrap { grid-template-columns: 1fr; }
.town-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.map-unified { max-width: 56rem; width: 100%; justify-self: center; }
.map .leader { stroke: var(--ink); stroke-width: .8; fill: none; }
.map .map-phone { display: none; }
@media (max-width: 760px) {
  .town-groups { grid-template-columns: 1fr; }
  .map .map-wide { display: none; }
  .map .map-phone { display: block; }
}

/* "Home repairs, up close": the to-do list illustration replaces the photo. */
.work-up .todo-art { display: block; width: 100%; height: auto; }
