/* JonWorks 247 — site styles
   Brand: Charcoal Black #0F1112 · Warm Cream #F4EDE3 · Coastal Blue #6B8FA7 · Stone Gray #A7A7A7
   No external fonts or services: system font stacks only. */

:root {
  --black: #0F1112;
  --black-raised: #181B1D;
  --cream: #F4EDE3;
  --cream-deep: #E9DFD1;
  --blue: #6B8FA7;
  --blue-deep: #3F6178;      /* Coastal Blue darkened for text on cream (AA contrast) */
  --stone: #A7A7A7;
  --stone-dark: #5E5E5C;
  --line-dark: rgba(244, 237, 227, 0.14);
  --line-light: rgba(15, 17, 18, 0.14);

  --font-display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --font-label: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", sans-serif-condensed, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-script: "Brush Script MT", "Segoe Script", "Bradley Hand", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 4px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--black); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.h1 { font-size: clamp(3rem, 11vw, 7.5rem); }
.h2 { font-size: clamp(2rem, 7vw, 4.75rem); }
.h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1; }
.label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }
.muted { color: var(--stone); }
.on-cream .muted { color: var(--stone-dark); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.on-dark { background: var(--black); color: var(--cream); }
.on-cream { background: var(--cream); color: var(--black); }
.grain { isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: 0.07; mix-blend-mode: screen;
}
.on-cream.grain::before { mix-blend-mode: multiply; opacity: 0.12; filter: invert(1); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 0; }

/* Wave rule: the logo's underline stroke, reused as the one decorative device */
.wave { width: clamp(120px, 18vw, 200px); height: 16px; color: var(--blue); }
.wave path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-label); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--black); }
.btn-primary:hover { background: var(--cream); }
.on-cream .btn-primary:hover { background: var(--black); color: var(--cream); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.on-cream .btn-ghost:hover { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--blue); }
.on-cream .text-link:hover { color: var(--blue-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,17,18,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: block; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a:not(.btn) { font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--cream); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 0.82rem; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--cream); font-family: var(--font-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; padding: 10px 0; cursor: pointer; }
.menu-btn .bars { width: 22px; height: 14px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.menu-btn .bars::before { top: 2px; }
.menu-btn .bars::after { top: 10px; }
.menu-open .menu-btn .bars::before { top: 6px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 6px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 72px 0 0 0; background: var(--black); z-index: 49; padding: 32px var(--gutter) 40px; overflow-y: auto; display: none; }
.menu-open .mobile-menu { display: flex; flex-direction: column; }
.mobile-menu ul { list-style: none; border-top: 1px solid var(--line-dark); }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu a.big { display: block; padding: 16px 0; font-family: var(--font-display); text-transform: uppercase; font-size: 2.4rem; line-height: 1; text-decoration: none; }
.mobile-menu a.big[aria-current="page"] { color: var(--blue); }
.mobile-menu .menu-meta { margin-top: auto; padding-top: 32px; }
.mobile-menu .menu-meta img { width: 220px; height: auto; margin-bottom: 20px; }
@media (min-width: 960px) {
  .nav { display: block; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-logo { width: min(100%, 460px); margin-bottom: clamp(32px, 5vw, 48px); }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 8px; }
.hero .serving { color: var(--stone); margin-bottom: 32px; }
.hero-feature figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; color: var(--stone); font-size: .95rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1.h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }

.facts { border-top: 1px solid var(--line-dark); }
.facts .wrap { display: grid; gap: 4px 32px; padding-top: 22px; padding-bottom: 22px; }
.facts div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: .95rem; }
.facts .label { color: var(--blue); font-size: .72rem; }
@media (min-width: 760px) { .facts .wrap { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ---------- Before / After ---------- */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--black-raised); --pos: 50%; user-select: none; }
.ba img, .ba .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--cream); box-shadow: 0 2px 10px rgba(0,0,0,.35);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M16 14l-6 6 6 6M24 14l6 6-6 6' fill='none' stroke='%230F1112' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type=range]:focus-visible + .handle::after { outline: 2px solid var(--blue); outline-offset: 3px; }
.ba .tag { position: absolute; top: 12px; padding: 5px 10px; background: rgba(15,17,18,.82); color: var(--cream); border-radius: 2px; pointer-events: none; font-size: .68rem; }
.ba .tag-before { left: 12px; }
.ba .tag-after { right: 12px; background: var(--blue); color: var(--black); }

/* Placeholder panels — clearly marked until real photos are added */
.ph { display: grid; place-items: center; text-align: center; padding: 24px; }
.ph-before { background: repeating-linear-gradient(135deg, #1d2124 0 14px, #171a1c 14px 28px); color: var(--stone); }
.ph-after { background: repeating-linear-gradient(135deg, #2b3a45 0 14px, #26343e 14px 28px); color: var(--cream); }
.ba .ph-after > div { margin-left: 50%; }
.ba .ph-before > div { margin-right: 50%; }
.ph span { font-family: var(--font-label); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.ph small { display: block; margin-top: 6px; font-size: .8rem; opacity: .85; letter-spacing: 0; text-transform: none; font-family: var(--font-body); font-weight: 400; }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: thin; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-light); background: transparent; color: inherit; font-family: var(--font-label); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.on-dark .chip { border-color: var(--line-dark); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--cream); border-color: var(--black); }
.on-dark .chip[aria-pressed="true"] { background: var(--blue); color: var(--black); border-color: var(--blue); }
.project-grid { display: grid; gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); }
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid.three { grid-template-columns: repeat(3, 1fr); } }
.project-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin: 16px 0 4px; }
.project-card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--stone-dark); font-size: .9rem; margin-bottom: 6px; }
.on-dark .project-card .meta { color: var(--stone); }
.project-card p { font-size: .98rem; margin: 0; }
.project-card.is-placeholder h3 { color: var(--stone-dark); }
.on-dark .project-card.is-placeholder h3 { color: var(--stone); }
.project-note { margin-top: 28px; font-size: .92rem; }

/* ---------- Services index (homepage) ---------- */
.svc-index { list-style: none; border-top: 1px solid var(--line-dark); }
.svc-index li { border-bottom: 1px solid var(--line-dark); }
.svc-index a { display: grid; gap: 8px 32px; padding: clamp(20px, 3vw, 30px) 0; text-decoration: none; transition: padding-left .2s ease; }
.svc-index a:hover { padding-left: 10px; }
.svc-index a:hover .h3 { color: var(--blue); }
.svc-index .h3 { transition: color .2s ease; }
.svc-index p { margin: 0; color: var(--stone); }
@media (min-width: 860px) { .svc-index a { grid-template-columns: minmax(280px, 1fr) 1.4fr; align-items: baseline; } }

.scope-note { margin-top: 32px; padding: 18px 20px; border-left: 3px solid var(--blue); background: var(--black-raised); font-size: .95rem; color: var(--stone); max-width: 860px; }
.on-cream .scope-note { background: var(--cream-deep); color: var(--black); }
.scope-note p { margin: 0; max-width: none; }
.scope-note strong { color: var(--cream); }
.on-cream .scope-note strong { color: var(--black); }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 80px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } }
.check-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.on-dark .check-list { border-color: var(--line-dark); }
.check-list li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line-light); position: relative; }
.on-dark .check-list li { border-color: var(--line-dark); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 2px; background: var(--blue); }
.on-cream .check-list li::before { background: var(--blue-deep); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 2.6rem; line-height: .9; color: var(--blue); }
.on-cream .steps li::before { color: var(--blue-deep); }
.steps h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; margin: 2px 0 4px; }
.steps p { margin: 0; }

/* ---------- About ---------- */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--black-raised); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { height: 100%; }

/* ---------- CTA band ---------- */
.cta-band .wrap { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.3fr 1fr; } }
.hours { list-style: none; display: grid; gap: 6px; }
.hours li { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-light); padding: 8px 0; }
.on-dark .hours li { border-color: var(--line-dark); }
.hours span:first-child { font-weight: 600; }
.hours span:last-child { text-align: right; white-space: nowrap; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 18px 0 22px; }
.jump { position: sticky; top: 72px; z-index: 20; background: var(--cream); color: var(--black); border-bottom: 1px solid var(--line-light); }
.jump .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.jump a { flex: none; text-decoration: none; }

/* ---------- Services page ---------- */
.svc-block { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line-light); }
.svc-block:last-of-type { border-bottom: 0; }
.svc-block .split { margin-bottom: clamp(28px, 4vw, 44px); }
.svc-block .h2 { margin-bottom: 14px; }
.scope { margin-top: 20px; font-size: .93rem; color: var(--stone-dark); }
.scope strong { color: var(--black); }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--stone-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem;
  color: var(--black); background: #FBF7F1; border: 1.5px solid #CFC4B5; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(107,143,167,.35); }
.field [aria-invalid="true"] { border-color: #A1342B; }
.field .err { display: none; color: #A1342B; font-size: .88rem; margin-top: 4px; }
.field [aria-invalid="true"] ~ .err { display: block; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #DDE7EE; border-left: 4px solid var(--blue-deep); }
.form-status.bad { display: block; background: #F3DCD8; border-left: 4px solid #A1342B; }
.form-fine { font-size: .88rem; color: var(--stone-dark); }
.form-card { background: var(--cream); color: var(--black); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); }
.cf-turnstile { min-height: 65px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding: clamp(56px, 8vw, 88px) 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid img { width: 240px; height: auto; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.footer-grid .label { color: var(--blue); display: block; margin-bottom: 14px; font-size: .72rem; }
.disclosure { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--stone); font-size: .88rem; }
.disclosure p { max-width: 92ch; }

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(15,17,18,.96); border-top: 1px solid var(--line-dark); }
.action-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: .82rem; }
body { padding-bottom: 76px; }
@media (min-width: 960px) { .action-bar { display: none; } body { padding-bottom: 0; } }
.page-contact .action-bar .estimate-link { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Service icons: single-weight line marks in Coastal Blue ---------- */
.svc-icon, .chip-icon { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svc-name { display: flex; align-items: center; gap: 18px; }
.svc-index .svc-icon { width: 54px; height: 54px; stroke-width: 2; color: var(--blue); transition: transform .25s ease; }
.svc-index a:hover .svc-icon { transform: rotate(-6deg); }
.svc-icon-lg { width: 64px; height: 64px; color: var(--blue-deep); margin-bottom: 18px; stroke-width: 2; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip-icon { width: 18px; height: 18px; stroke-width: 2.6; color: var(--blue-deep); }
@media (prefers-reduced-motion: reduce) { .svc-index a:hover .svc-icon { transform: none; } }
