/* Preview site for Workman Roofing and Building Ltd.
   Draughtsman / title-block look, distinct from the batch 1 previews.
   IBM Plex Sans (SIL OFL), self-hosted in /fonts/. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-700.woff2") format("woff2");
}

:root {
  --paper: #e4e1d8;
  --sheet: #f6f4ee;
  --ink: #161513;
  --muted: #5a554c;
  --rule: #1a1916;
  --line: #c9c3b6;
  --brass: #8a4f1f;
  --brass-dark: #6c3c16;
  --error: #8a1f1f;
  --focus: #8a4f1f;
  --max: 68rem;
  --pad: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--sheet);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }

/* Preview ribbon */
.preview {
  background: var(--rule);
  color: var(--sheet);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem var(--pad);
}
.preview a { color: #f0d2b0; }

/* Title-block header */
.site-header {
  background: var(--sheet);
  border-bottom: 6px solid var(--rule);
}
.header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0 0.5rem;
}
.brand img { width: 88px; height: 88px; }
.meta-block {
  text-align: right;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-block strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.call {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brass);
}
.call:hover { color: var(--brass); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.nav li { border-right: 1px solid var(--line); }
.nav li:first-child { border-left: 1px solid var(--line); }
.nav a {
  display: block;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--sheet);
}

/* Hero: photo with a sheet title panel, not a solid colour band */
.hero {
  position: relative;
  background: var(--rule);
}
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.hero-panel {
  background: var(--sheet);
  border-top: 6px solid var(--rule);
  padding: 1.5rem 0 1.75rem;
}
.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin: 0 0 0.6rem; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 0.7rem; font-weight: 700; }
h3 { font-size: 1.125rem; margin: 0 0 0.4rem; font-weight: 700; }
.lead { font-size: 1.125rem; max-width: 42rem; margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.btn, button.btn, input.btn {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  border: 2px solid var(--brass);
  border-radius: 0;
  cursor: pointer;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--sheet); }

.section { padding: 2.25rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.band {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 1.5rem;
}
.crumbs { font-size: 0.875rem; margin: 0 0 0.5rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.3rem; color: var(--muted); }
.prose p, .prose ul, .prose ol { margin: 0 0 0.9rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }

/* Service index: tight ledger rows, not numbered cards */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { border-bottom: 1px solid var(--rule); }
.ledger a, .ledger .row {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 0;
  text-decoration: none;
  color: inherit;
}
.ledger a:hover { background: var(--sheet); }
.ledger strong { font-weight: 700; }
.ledger p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
.split img { width: 100%; border: 1px solid var(--line); }
.svc { padding-block: 1.75rem; }
.svc + .svc { border-top: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 0.5rem; padding: 0; }
.chips a {
  display: block;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.chips a:hover { background: var(--ink); color: var(--sheet); }

.quotes { display: grid; gap: 1rem; }
blockquote.quote {
  margin: 0;
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--sheet);
  border-left: 4px solid var(--brass);
}
blockquote.quote p { margin: 0 0 0.6rem; }
blockquote.quote footer { font-size: 0.9rem; color: var(--muted); }
.source { font-size: 0.9rem; color: var(--muted); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 0.5rem 0 0; }

.notice {
  background: var(--sheet);
  border-left: 4px solid var(--rule);
  padding: 0.7rem 0.9rem;
}

/* Form */
form.enquiry { display: grid; gap: 0.85rem; max-width: 36rem; }
label { display: block; font-weight: 600; }
label span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.65rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
}
textarea { min-height: 8rem; resize: vertical; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.mt { margin-top: 1.25rem; }
.muted, .fine { color: var(--muted); font-size: 0.9rem; }

.contact-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
}
.contact-card p { margin: 0.3rem 0; }
.contact-card a { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brass); }
.contact-card a:hover { color: var(--brass); }

.site-footer {
  background: var(--ink);
  color: #efece5;
  padding: 2rem 0 2.5rem;
  margin-top: 0;
}
.site-footer a { color: #f0d2b0; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.6rem; }
.cols { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 1.5rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 0.3rem; }
.preview-note { margin: 1.4rem 0 0; font-size: 0.875rem; color: #c9c3b6; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.7rem; }
.footer-brand img { width: 72px; height: auto; }
.footer-brand p { margin: 0; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }

/* Areas: a simple radius statement, not a fake town grid */
.area-box {
  border: 2px solid var(--rule);
  background: var(--sheet);
  padding: 1.1rem 1.2rem;
  max-width: 40rem;
}
.area-box p { margin: 0 0 0.6rem; }
.area-box p:last-child { margin: 0; }

@media (max-width: 800px) {
  .split, .cols, .ledger a, .ledger .row, .form-grid { grid-template-columns: 1fr; }
  .header-block { align-items: flex-start; }
  .brand img { width: 72px; height: 72px; }
  .nav li, .nav li:first-child { border: 0; }
  .nav { border-top: 0; gap: 0.15rem; padding: 0.2rem 0 0.7rem; }
  .nav a { padding: 0.55rem 0.7rem; border: 1px solid var(--line); }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .meta-block { font-size: 0.68rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (min-width: 801px) {
  .hero img {
    max-height: 26rem;
    aspect-ratio: auto;
  }
}
