/* OwnLead client-site template. Brand colours arrive as CSS variables set per
   client in <head>; nothing here is client-specific.
   Rule: the accent is a FILL (buttons, bars, markers) with --accent-ink on it.
   It is never used as text colour on paper, because many trade brand colours
   (yellows, light greens) fail contrast as text. */

@font-face {
  font-family: "Archivo";
  src: url("/demo/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 36px);
  --section: clamp(64px, 9vw, 112px);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --card: color-mix(in srgb, var(--paper) 55%, #fff);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; padding-bottom: 72px; }
@media (min-width: 761px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.h2 { font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; }
.sub { margin-top: 14px; color: var(--muted); max-width: 60ch; font-size: 1.125rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(0.95); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 14px; height: 28px; background: var(--accent); border-radius: 3px; }
.nav { margin-left: auto; display: flex; gap: 22px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.top-call { min-height: 44px; padding: 0 16px; }
@media (max-width: 760px) { .nav { display: none; } .top-call { margin-left: auto; } }
@media (max-width: 520px) { .top-num { display: none; } .brand { font-size: 1.15rem; } }
.top-call, .brand { white-space: nowrap; }

/* Hero: headline left, the call panel right — trades win on the phone */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trade { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.trade::before { content: ""; width: 26px; height: 4px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin-top: 18px; font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 14ch; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.callpanel { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.callpanel .label { font-weight: 600; color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
.callpanel .number { display: block; margin-top: 6px; font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; text-decoration: none; color: var(--paper); }
.callpanel .number:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.callpanel .hours { margin-top: 10px; font-size: 0.95rem; color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
.callpanel .btn { margin-top: 20px; width: 100%; }
.facts { margin-top: 22px; display: grid; gap: 10px; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); padding-top: 18px; }
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.98rem; }
.facts li::before { content: ""; margin-top: 7px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Services: a ruled list, price where confirmed */
.services { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-list { margin-top: 40px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; column-gap: 32px; }
.svc { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 12px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc h3 { font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.svc p { color: var(--muted); }
.price { font-weight: 700; white-space: nowrap; padding: 4px 10px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; font-size: 0.95rem; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } .svc { grid-template-columns: 1fr; } .price { justify-self: start; } }

/* Instant quote builder */
.quote { background: var(--ink); color: var(--paper); }
.quote .sub { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.quote-box { background: var(--paper); color: var(--ink); border-radius: 16px; padding: clamp(20px, 3.5vw, 32px); }
.qb-js { display: grid; gap: 14px; }
.qb-result { margin: 4px 0 2px; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
.qb-vat { display: block; margin-top: 4px; white-space: nowrap; font-size: 1rem; font-weight: 600; color: var(--muted); }
.btn-block { width: 100%; }
.qb-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.qb-table th, .qb-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.qb-table td:last-child, .qb-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.svc-prices { margin-top: 28px; max-width: 520px; }
.svc-prices caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* Trust */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.about p + p { margin-top: 14px; }
.about p:first-of-type { font-size: 1.2rem; font-weight: 500; }
.creds { margin-top: 24px; display: grid; gap: 12px; }
.creds li { padding: 16px 18px; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 10px; background: var(--card); }
.creds strong { display: block; }
.creds span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* Areas */
.areas-list { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.areas-list li { padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; }

/* FAQ */
.faq-list { margin-top: 32px; border-top: 2px solid var(--ink); max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Enquiry form */
.enquire { background: var(--ink); color: var(--paper); }
.enquire .sub { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.enquire-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.enquire-alt { margin-top: 22px; font-weight: 600; }
.enquire-alt a { color: var(--paper); }
.form { background: var(--paper); color: var(--ink); border-radius: 16px; padding: clamp(20px, 3.5vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, var(--paper)); border-radius: 8px; padding: 11px 13px; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.field [aria-invalid="true"] { border-color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.status { margin-top: 10px; font-weight: 700; }
.status.ok { color: #15603A; }
.status.err { color: #B42318; }
.form.sent > div:not(:last-child), .form.sent .fine { display: none; }
@media (max-width: 860px) { .enquire-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Service page */
.page-head { padding: clamp(40px, 6vw, 72px) 0 32px; }
.crumbs { font-size: 0.95rem; color: var(--muted); }
.crumbs a { color: inherit; }
.page-head h1 { margin-top: 12px; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.detail-list { margin-top: 28px; display: grid; gap: 12px; max-width: 640px; }
.detail-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.detail-list li::before { content: ""; margin-top: 6px; width: 14px; height: 8px; border: solid var(--ink); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.prose { max-width: 70ch; }
.prose h2 { font-weight: 800; font-size: 1.4rem; margin-top: 36px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }

/* Footer + mobile call bar */
.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; font-size: 0.95rem; }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 14px 32px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot .small { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) { .foot-row { grid-template-columns: 1fr; } }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 48px; padding: 0 12px; }
@media (min-width: 761px) { .callbar { display: none; } }

.staging-banner { background: repeating-linear-gradient(-45deg, #FFE08A 0 14px, #FFD24D 14px 28px); color: #141414; text-align: center; font-weight: 700; padding: 8px 16px; font-size: 0.9rem; }

/* Chat assistant */
.chat { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 45; }
@media (min-width: 761px) { .chat { right: 24px; bottom: 24px; } }
.chat-open { min-height: 48px; padding: 0 20px; border: 2px solid var(--paper); border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
.chat-panel { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 80vh; background: var(--paper); border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgb(0 0 0 / 0.2); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 761px) { .chat-panel { left: auto; right: 24px; bottom: 24px; width: 380px; max-height: min(600px, 80vh); border: 1px solid var(--line); border-radius: 14px; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-close { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.cm { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 0.98rem; line-height: 1.45; white-space: pre-wrap; }
.cm.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.cm.me { align-self: flex-end; background: var(--ink); color: var(--paper); }
.cm.wait { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px 16px 0; }
.chat-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 10px; font: inherit; background: #fff; color: #141414; }
.chat-form .btn { min-height: 48px; padding: 0 16px; }
.chat-fine { padding: 8px 16px 14px; font-size: 0.85rem; color: var(--muted); }

/* Photos */
.work-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-grid figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.work-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--card); }
.work-grid figcaption { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.work-feature { grid-column: span 2; grid-row: span 2; }
.work-feature img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .work-feature { grid-column: 1 / -1; grid-row: auto; }
  .work-feature img { flex: none; aspect-ratio: 4 / 3; }
}
.about-photo { margin-top: 20px; width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 4px solid var(--accent); }
@media (min-width: 861px) { .about-photo { width: 220px; height: 220px; } }

/* OwnLead credit: links every client site back to OwnLead */
.foot .credit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.85rem; color: var(--muted); }
.foot .credit a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.foot .credit a:hover strong { text-decoration: underline; text-decoration-color: #FF7A00; }
@media (max-width: 640px) { .foot .credit > span { display: none; } }
