/* ===========================================================================
   Brocks Renovations — one stylesheet, phone first.
   Palette is deliberately unlike the other trade demos in this estate:
   limewash bone, olive, and a plaster-blush tint. No brass, no clay, no navy,
   no teal, no black-and-yellow.
   ======================================================================== */

:root {
  --bone:      #F7F4EF;   /* the page */
  --blush:     #E7D7C6;   /* alternating sections — plaster tint, deepened */
  --blush-dp:  #D3BBA3;   /* chips, rules on blush */
  --ink:       #1A1C19;   /* text, and the dark band */
  --ink-soft:  #252823;
  --olive:     #41601F;   /* the accent: buttons, rules, small caps. 7.4:1 on bone */
  --olive-dk:  #2C4313;
  --olive-lt:  #BFDE8C;   /* the accent on the dark band. 9.8:1 on ink */
  --muted:     #57574C;   /* 6.9:1 on bone, 5.6:1 on blush */
  --line:      #CEC4B4;
  --radius:    2px;       /* square. the other demos are all rounded */
  --wrap:      1180px;
  --font:      'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif:     'Instrument Serif', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-x: hidden;           /* belt and braces; nothing should overflow */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dk); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 11vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 7.5vw, 3rem); }
h3 { font-family: var(--font); font-weight: 600; font-size: 1.08rem; letter-spacing: -.005em; }
p  { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 54px 0; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

.eyebrow {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--olive); margin: 0 0 .7em;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.note { font-size: .95rem; color: var(--muted); max-width: 52ch; }
.sec-head { margin-bottom: 26px; }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-olive { background: var(--olive); color: #fff; box-shadow: 0 2px 0 var(--olive-dk); }
.btn-olive:hover { background: var(--olive-dk); box-shadow: 0 2px 0 #1F310C; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bone); }
.btn-sm { padding: 10px 15px; font-size: .9rem; }
.btn-wide { width: 100%; padding: 16px; font-size: 1.05rem; }

/* ---- header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--bone); border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.brand-type { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.05; }
.brand-sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; }
.head-call { display: none; }
.burger {
  width: 42px; height: 38px; display: grid; place-content: center; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--ink); }
.nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bone); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
}
.nav a {
  padding: 12px 0; text-decoration: none; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }

/* ---- hero -------------------------------------------------------------- */
.hero { padding-top: 40px; padding-bottom: 0; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { color: var(--olive); }
.hero .eyebrow {
  display: inline-block; background: var(--olive); color: #fff;
  padding: 6px 11px; border-radius: var(--radius); letter-spacing: .14em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 34px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-shot { margin: 28px 0 0; }
.hero-shot img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; object-position: 55% 50%; }
.facts-band { background: var(--ink); margin-top: 44px; padding: 30px 0; }
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
}
.facts li { border-top: 2px solid var(--olive-lt); padding-top: 12px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; line-height: 1.1; color: var(--bone); }
.facts span { font-size: .9rem; color: #BDBDAE; }
.facts .stars { display: inline-block; margin-left: .35em; font-size: .85rem; color: var(--olive-lt); letter-spacing: .06em; }

/* ---- section tints ----------------------------------------------------- */
.blush { background: var(--blush); }
.blush + section:not(.blush):not(.dark),
.facts-band + section { border-top: 0; }
section + section:not(.blush):not(.dark) { border-top: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--bone); }
.dark .eyebrow { color: var(--olive-lt); }
.dark .note, .dark .lede { color: #B4B4A6; }

/* ---- split ------------------------------------------------------------- */
.split { display: grid; gap: 30px; }

/* ---- the job list ------------------------------------------------------ */
.jobs { list-style: none; counter-reset: j; margin: 26px 0 0; padding: 0; }
.jobs li {
  counter-increment: j; padding: 18px 0 18px 46px; position: relative;
  border-top: 1px solid var(--blush-dp);
}
.jobs li:last-child { border-bottom: 1px solid var(--blush-dp); }
.jobs li::before {
  content: counter(j, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  font: 600 .78rem/1 var(--font); letter-spacing: .08em; color: var(--olive);
}
.jobs li.ask-li::before { content: "?"; font-size: 1rem; }
.jobs p { margin: .35em 0 0; color: var(--muted); font-size: 1rem; }
.work-shot { margin: 0; }

/* ---- gallery ----------------------------------------------------------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal button {
  padding: 0; border: 0; background: var(--blush); cursor: pointer; overflow: hidden;
  border-radius: var(--radius); display: block;
}
.gal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.gal button:hover img { transform: scale(1.04); }

/* ---- reviews ----------------------------------------------------------- */
.revs { display: grid; gap: 18px; }
.rev {
  margin: 0; padding: 24px; background: var(--ink-soft);
  border-left: 3px solid var(--olive-lt); border-radius: var(--radius);
}
.rev .stars { color: var(--olive-lt); letter-spacing: .14em; font-size: .95rem; margin-bottom: 10px; }
.rev p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; margin: 0 0 14px; }
.rev cite { font-style: normal; font-size: .85rem; color: #9C9C8E; }
.rev-foot { margin: 22px 0 0; font-size: .95rem; color: #B4B4A6; max-width: 52ch; }

/* ---- where / map ------------------------------------------------------- */
.map { margin: 0; }
.map iframe {
  width: 100%; height: 300px; border: 0; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.map figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; }

/* ---- form -------------------------------------------------------------- */
.form-grid { display: grid; gap: 24px; }
.contact-side { display: grid; gap: 18px; align-content: start; }
.cline { display: flex; gap: 12px; align-items: flex-start; }
.cline svg { flex: none; margin-top: 3px; }
.cline .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cline .v { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.cline .v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--olive); }
.cline .s { font-size: .88rem; color: var(--muted); }

.contact-card { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 12px 13px; font: 400 1rem var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 110px; resize: vertical; }
.field :focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }
.field-2 { display: grid; gap: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: .92rem; font-weight: 500; cursor: pointer;
}
.radios input { accent-color: var(--olive); }
.radios label:has(input:checked) { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: .95rem; }
.form-msg.ok  { background: #E7EEDD; border: 1px solid var(--olive); }
.form-msg.bad { background: #F6E3DE; border: 1px solid #B4543C; color: #7A2F1D; }

/* ---- footer ------------------------------------------------------------ */
.site-foot { background: var(--ink); color: #B4B4A6; padding: 44px 0 26px; font-size: .95rem; }
.foot-grid { display: grid; gap: 28px; }
.brand-foot { color: var(--bone); margin-bottom: 12px; }
.site-foot h4 { margin: 0 0 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-lt); font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--bone); text-decoration: none; border-bottom: 1px solid #3A3D36; word-break: break-word; }
.site-foot a:hover { border-color: var(--olive-lt); }
.foot-bot {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid #32352E;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: .82rem;
}

/* ---- page head (privacy) ----------------------------------------------- */
.pagehead h1 { font-size: clamp(2rem, 8vw, 3rem); }
.pagehead h2 { font-family: var(--font); font-weight: 600; }

/* ---- lightbox ---------------------------------------------------------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 90; background: rgba(16,17,15,.94);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; border-radius: var(--radius); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: var(--radius);
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #D8D4C8; font-size: .9rem; padding: 0 20px; }

/* ---- reveal ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================== 620px and up ============================== */
@media (min-width: 620px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .field-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-2 .field { margin-bottom: 0; }
  .revs { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(4, 1fr); }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* =========================== 900px and up ============================== */
@media (min-width: 900px) {
  section { padding: 76px 0; }
  .nav { display: flex; gap: 26px; margin-right: 22px; }
  .nav a { border: 0; padding: 0; font-size: .95rem; color: var(--ink); text-decoration: none; }
  .nav a:hover, .nav a[aria-current] { color: var(--olive); }
  .head-call { display: inline-flex; }
  .burger { display: none; }
  .hero { padding-top: 64px; padding-bottom: 0; }
  .facts-band { margin-top: 64px; }
  .hero-top { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; margin-bottom: 0; }
  .hero-top .eyebrow { margin-bottom: 1.2em; }
  .hero-copy .lede { max-width: 42ch; }
  .hero-actions { margin-bottom: 0; }
  .hero-shot { margin: 0; }
  .split { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .form-grid { grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
  .foot-grid { grid-template-columns: 1.4fr 1fr; gap: 60px; }
  .map iframe { height: 380px; }
  .contact-card { padding: 30px; }
}
