/* ==========================================================================
   Flat Roofs Durham
   Palette: ink and graphite for the membrane, amber for the torch flame,
   sedum green for the green-roof accents.
   Signature element: the membrane lap seam band under every header block.
   ========================================================================== */

:root {
  --ink: #1b2124;
  --ink-soft: #262e32;
  --graphite: #333d42;
  --slate: #5a676d;
  --mist: #8b979d;
  --line: #dfe3e5;
  --paper: #ffffff;
  --paper-tint: #f5f7f7;
  --paper-warm: #faf7f3;

  --amber: #d4791f;
  --amber-dark: #8a4a0c;
  --amber-light: #f0a560;
  --amber-wash: #fdf3e7;
  --sedum: #3c7a52;
  --sedum-dark: #2a5c3c;
  --danger: #a32a1c;
  --danger-wash: #fdeeec;

  --text: #22282b;
  --text-soft: #4d585d;
  --on-dark: #e9ecee;
  --on-dark-soft: #b2bcc1;

  --seam-under: #222a2e;
  --seam-over: var(--amber);
  --seam-weld: #8f4e14;

  --mark-bg: #1b2124;
  --mark-sheet: #e9ecee;
  --mark-accent: #d4791f;

  --dw-sky: #eef1f2;
  --dw-deck: #9aa4a8;
  --dw-vcl: #6d797e;
  --dw-insul: #f2e3cd;
  --dw-insul-line: #d9bf98;
  --dw-memb: #333d42;
  --dw-epdm: #2b3236;
  --dw-grp: #c3cacd;
  --dw-liquid: #d4791f;
  --dw-seam: #141a1d;
  --dw-wall: #b9ada0;
  --dw-coping: #8d8276;
  --dw-trim: #8a8f92;
  --dw-outlet: #5a676d;
  --dw-water: #2f6f93;
  --dw-fault: #a32a1c;
  --dw-glass: #bcd6e2;
  --dw-label: #2b3337;
  --dw-accent: #d4791f;

  --font-head: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 33, 36, .08), 0 2px 8px rgba(27, 33, 36, .06);
  --shadow: 0 2px 6px rgba(27, 33, 36, .1), 0 12px 28px rgba(27, 33, 36, .1);
  --focus: 3px solid #0b63a5;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.15em; }
p { max-width: 68ch; }
img, svg, iframe, video { max-width: 100%; }
img { height: auto; }

a { color: var(--amber-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap.narrow { max-width: 42rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 200;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- the seam */

.seam {
  display: block;
  width: 100%;
  height: 14px;
  margin: 0;
}
.header-seam, .hero-seam, .cta-seam { height: 16px; }
.card-seam { height: 10px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.9rem;
  padding: .7rem 1.25rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: #1b1206; border-color: var(--amber); }
.btn-primary:hover { background: #b9661600; background-color: #b96616; border-color: #b96616; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--graphite); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-lg { min-height: 3.25rem; padding: .85rem 1.6rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* The ghost button is dark text on nothing, so on any dark background it has
   to be inverted or it disappears. The hero was missing from this list and its
   second button was invisible. */
.band-dark .btn-ghost, .cta-section .btn-ghost, .hero .btn-ghost,
.page-hero .btn-ghost, .estimate-handoff .btn-ghost, .site-footer .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.band-dark .btn-ghost:hover, .cta-section .btn-ghost:hover, .hero .btn-ghost:hover,
.page-hero .btn-ghost:hover, .estimate-handoff .btn-ghost:hover,
.site-footer .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* ---------------------------------------------------------------- header */

.site-header { background: var(--ink); color: var(--on-dark); position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: .65rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; }
.brand-logo { width: auto; max-height: 3rem; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1.05; }
.brand-top { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.brand-bottom { font-size: .9rem; font-weight: 600; color: var(--amber-light); letter-spacing: .06em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.nav-bars { position: relative; display: block; width: 1.1rem; height: 2px; background: currentColor; }
.nav-bars::before, .nav-bars::after {
  content: ""; position: absolute; left: 0; width: 1.1rem; height: 2px; background: currentColor;
}
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block;
  padding: .55rem .7rem;
  color: var(--on-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border-radius: var(--radius);
}
.nav-list a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--amber); }
.nav-cta a { color: #1b1206; }
.nav-cta a:hover { color: #fff; }

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: .3rem .25rem;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}
.header-phone-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: var(--amber-light); font-weight: 600; }
.header-phone-number { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; }
.header-phone:hover .header-phone-number { color: var(--amber-light); }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
    background: var(--ink-soft);
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .85rem .5rem; font-size: 1.05rem; border-radius: 0; }
  .nav-list li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav-cta { padding-top: .75rem; }
  .nav-cta a { text-align: center; }
}
@media (max-width: 34rem) {
  .header-phone { display: none; }
}

/* ---------------------------------------------------------------- hero */

.hero { background: var(--ink); color: var(--on-dark); position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: start;
  padding-block: 3rem 3.5rem;
}
.hero h1 { color: #fff; }
.hero-intro { font-size: 1.1rem; color: var(--on-dark-soft); }
.hero-intro p { max-width: 50ch; }
.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: .6rem;
}
.hero-points { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.hero-points li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; color: var(--on-dark); }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .85rem;
  height: .45rem;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-side { position: relative; }

@media (max-width: 62rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.25rem 2.5rem; }
}

/* ---------------------------------------------------------------- page hero */

.page-hero { background: var(--ink); color: var(--on-dark); position: relative; padding-top: 1.5rem; }
.page-hero > .wrap { padding-bottom: 2.25rem; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero-intro { font-size: 1.08rem; color: var(--on-dark-soft); }
.page-hero-intro p { max-width: 62ch; margin-bottom: .6em; }
.page-hero-intro p:last-child { margin-bottom: 0; }
.page-hero a { color: var(--amber-light); }

/* Breadcrumbs live inside the page hero, deliberately not in a strip of
   their own: a separate strip leaves a stray band under the header. */
.crumbs { margin-bottom: 1rem; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: .5rem; color: var(--on-dark-soft); }
.crumbs li + li::before { content: "/"; color: var(--slate); }
.crumbs a { color: var(--on-dark-soft); display: inline-flex; align-items: center; min-height: 1.5rem; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: #fff; }

/* ---------------------------------------------------------------- layout */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2.5rem 3rem;
}
@media (max-width: 64rem) {
  .page-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.page-aside { position: sticky; top: 1.25rem; display: grid; gap: 1.25rem; }
@media (max-width: 64rem) {
  .page-aside { position: static; }
}

.band { padding-block: 3rem; }
.band-tint { background: var(--paper-tint); }
.band-warm { background: var(--paper-warm); }
.band-dark { background: var(--ink); color: var(--on-dark); padding-block: 3.25rem; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: var(--amber-light); }
.band-title { margin-bottom: .5rem; }
.band-lead { font-size: 1.08rem; color: var(--text-soft); max-width: 60ch; margin-bottom: 1.75rem; }
.band-dark .band-lead { color: var(--on-dark-soft); }
.band-more { margin-top: 1.75rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- prose */

.prose { min-width: 0; }
.prose-wide p { max-width: 74ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; max-width: 68ch; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 4px solid var(--amber);
  color: var(--text-soft);
  font-size: 1.08rem;
}
/* Tables are wrapped in .table-scroll by Clean::html, so a wide table scrolls
   inside its own box instead of pushing the page sideways on a phone. */
/* A link that is the whole of its paragraph is a target in its own right, so
   WCAG 2.2's exception for links inside a sentence does not cover it. */
.prose p > a:only-child, .link-arrow, .band p > a:only-child {
  display: inline-flex; align-items: center; min-height: 1.5rem;
}

/* Radio buttons and checkboxes are the whole of the cost calculator, so they
   get the full 24 pixel target rather than a browser's smaller default. */
input[type="radio"], input[type="checkbox"] { width: 1.5rem; height: 1.5rem; accent-color: var(--amber-dark); }

.table-scroll { position: relative; overflow-x: auto; margin: 0 0 1.15em; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.table-scroll > table { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose .table-scroll th, .prose .table-scroll td { white-space: normal; min-width: 7rem; }
.prose th, .prose td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--paper-tint); font-family: var(--font-head); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }

.prose-figure { margin: 1.75rem 0; }
.prose-figure img, .figure-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--dw-sky);
}
.prose-figure figcaption { margin-top: .6rem; font-size: .92rem; color: var(--text-soft); }

.visual-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.visual-split-reverse .visual-figure { order: 2; }
@media (max-width: 58rem) {
  .visual-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .visual-split-reverse .visual-figure { order: 0; }
}
.band-visual { padding-block: 3rem; }

.systems-figure { margin-bottom: 2rem; }
.system-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.75rem; }
.system-notes h3 { margin-top: 0; }
.system-notes p { font-size: .98rem; color: var(--on-dark-soft); }
.system-notes p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- services */

.service-group { margin-bottom: 2.5rem; }
.service-group:last-child { margin-bottom: 0; }
.service-group-title { padding-bottom: .5rem; border-bottom: 2px solid var(--line); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-card > a {
  display: grid;
  gap: .4rem;
  height: 100%;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.service-card > a:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-icon { display: block; color: var(--amber-dark); }
.service-icon .ico { width: 1.75rem; height: 1.75rem; }
.service-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.service-short { font-size: .95rem; color: var(--text-soft); }
.service-more { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--amber-dark); }
.service-more::after { content: " →"; }
.band-tint .service-card > a { background: #fff; }

/* ---------------------------------------------------------------- chips */

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.chip-list li { margin: 0; }
.chip-list a, .chip-list span {
  display: inline-block;
  padding: .45rem .8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text);
}
.chip-list a:hover { border-color: var(--amber); background: var(--amber-wash); color: var(--ink); }
.chip-list span { color: var(--text-soft); border-style: dashed; }
.chip-list-wide a, .chip-list-wide span { padding: .55rem 1rem; }
.nearby-note { font-size: .95rem; color: var(--text-soft); }

/* ---------------------------------------------------------------- forms */

.qform { display: grid; gap: .9rem; }
.qform-title { font-size: 1.2rem; margin: 0; }
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Children use margin-inline plus a calculated width: width:100% with a
   margin overflows the card. */
.quote-card > .qform, .contact-card > * {
  margin-inline: 1.15rem;
  width: calc(100% - 2.3rem);
}
.quote-card > .qform { margin-top: 1.2rem; margin-bottom: 1.2rem; }
.quote-card-full > .qform { margin-inline: 1.5rem; width: calc(100% - 3rem); }
.hero-side .quote-card { margin-bottom: -4rem; position: relative; z-index: 5; }
@media (max-width: 62rem) {
  .hero-side .quote-card { margin-bottom: -1.75rem; }
}

.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .9rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .hint { font-weight: 400; font-size: .85rem; color: var(--text-soft); margin: 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"],
input[type="number"], input[type="password"], input[type="url"], input[type="date"],
select, textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
}
textarea { min-height: 6rem; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a676d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: .7rem;
  padding-right: 2.25rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }

.field-check label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: .95rem; line-height: 1.5; }
.field-check input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin-top: .05rem; flex: 0 0 auto; accent-color: var(--amber-dark); }

.field-error { margin: 0; font-size: .9rem; font-weight: 600; color: var(--danger); }
.form-error {
  margin: 0;
  padding: .75rem .9rem;
  background: var(--danger-wash);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  font-size: .95rem;
  color: #7a1f14;
}
.form-error p { margin: 0 0 .4em; max-width: none; }
.form-error p:last-child { margin-bottom: 0; }
.qform-note { margin: 0; font-size: .88rem; color: var(--text-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.search-form { margin-bottom: 2rem; }
.search-form label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: .35rem; }
.search-row { display: flex; gap: .5rem; max-width: 30rem; }
.search-row input { flex: 1 1 auto; }

/* ---------------------------------------------------------------- aside */

.aside-call {
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
}
.aside-call-label { margin: 0 0 .2rem; font-size: .9rem; color: var(--on-dark-soft); }
.aside-call-number { margin: 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.aside-call-number a { color: #fff; text-decoration: none; }
.aside-call-number a:hover { color: var(--amber-light); }
.aside-call-alt { margin: .35rem 0 0; font-size: .92rem; color: var(--on-dark-soft); }
/* A phone number on a line of its own is something people tap, so it gets a
   24 pixel target even though it follows the word "Mobile:". */
.aside-call-alt a { color: var(--amber-light); display: inline-flex; align-items: center; min-height: 1.5rem; }

.aside-links {
  padding: 1.1rem 1.25rem;
  background: var(--paper-tint);
  border-radius: var(--radius-lg);
}
.aside-links h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.aside-links ul { list-style: none; margin: 0; padding: 0; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: .5rem 0; font-size: .97rem; text-decoration: none; font-weight: 600; }
.aside-links a:hover { color: var(--amber-dark); text-decoration: underline; }

/* ---------------------------------------------------------------- lists */

.tick-list, .step-list { list-style: none; padding-left: 0; }
.tick-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .5em;
  width: .85rem;
  height: .45rem;
  border-left: 3px solid var(--sedum);
  border-bottom: 3px solid var(--sedum);
  transform: rotate(-45deg);
}
.step-list { counter-reset: step; }
.step-list li { position: relative; padding-left: 2.6rem; margin-bottom: .9rem; counter-increment: step; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .05em;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
}

.link-list { list-style: none; padding-left: 0; }
.link-list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.link-list a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.link-list li:first-child { border-top: 0; }
.link-list > li > a { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.link-desc { display: block; margin-top: .2rem; font-size: .95rem; color: var(--text-soft); }
.link-group { margin-bottom: 2.5rem; }

/* ---------------------------------------------------------------- faqs */

.faqs { margin: 2.5rem 0; }
.faq-list { display: grid; gap: .6rem; }
.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  padding: .9rem 2.5rem .9rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  list-style: none;
  min-height: 2.9rem;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq[open] summary { background: var(--paper-tint); }
.faq-answer { padding: .25rem 1rem 1rem; }
.faq-answer p { margin-bottom: .75em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- reviews */

.reviews { margin: 2.5rem 0; }
.reviews-empty p { color: var(--text-soft); }
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.review-list-full { grid-template-columns: 1fr; }
.review {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}
.review blockquote { margin: 0 0 .75rem; padding: 0; border: 0; font-size: 1rem; color: var(--text); }
.review blockquote p { margin: 0; }
.review-by { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .92rem; color: var(--text-soft); }
.review-by span { font-weight: 600; color: var(--ink); }
.review-service, .review-date { font-weight: 400 !important; color: var(--text-soft) !important; }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.05rem; }

.stars { display: inline-flex; gap: .1rem; }
.star { width: 1rem; height: 1rem; fill: var(--line); }
.star.on { fill: var(--amber); }

.review-form-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--line); }

/* ---------------------------------------------------------------- map */

.map { margin: 1.5rem 0; }
.map iframe { width: 100%; height: 22rem; border: 1px solid var(--line); border-radius: var(--radius-lg); display: block; }
.map figcaption { margin-top: .6rem; font-size: .92rem; color: var(--text-soft); }
.map-load { margin-bottom: 0; }

/* ---------------------------------------------------------------- areas */

.area-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 2rem; }
.area-cols ul { list-style: none; margin: 0; padding: 0; }
.area-cols li { padding: .5rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.area-cols li:first-child { border-top: 0; }
.area-cols a { font-weight: 600; text-decoration: none; }
.area-cols a:hover { text-decoration: underline; }
.area-postcode { font-size: .85rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.typical-jobs .jobs-note { font-size: .95rem; color: var(--text-soft); }
.job-list { display: grid; gap: 1.25rem; }
.job { padding: 1.1rem 1.25rem; background: var(--paper-tint); border-radius: var(--radius); }
.job h3 { margin-top: 0; margin-bottom: .5rem; font-size: 1.1rem; }
.job p { margin-bottom: .5em; font-size: .98rem; }
.job p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- blog */

.blog-main { min-width: 0; }
.blog-cats { margin-bottom: 1.75rem; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.post-item > a {
  display: block;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.post-item > a:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.post-item img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 1rem; }
.post-item h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.post-meta { margin: 0 0 .5rem; font-size: .9rem; color: var(--text-soft); }
.post-excerpt { margin-bottom: .6rem; }
.post-more { font-weight: 700; color: var(--amber-dark); font-size: .95rem; }
.post-more::after { content: " →"; }
.post-standfirst { font-size: 1.1rem; color: var(--text-soft); }

.post-strip { margin: 0; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.post-card > a {
  display: grid;
  gap: .4rem;
  height: 100%;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
}
.post-card > a:hover { border-color: var(--amber); }
.post-card img { width: 100%; height: auto; border-radius: var(--radius); }
.post-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.post-card-excerpt { font-size: .93rem; color: var(--text-soft); }
.post-card-date { font-size: .85rem; color: var(--text-soft); margin-top: auto; }

.post-cta {
  margin: 2.5rem 0 0;
  padding: 1.4rem 1.5rem;
  background: var(--amber-wash);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}
.post-cta h2 { margin-top: 0; font-size: 1.2rem; }
.post-cta p:last-child { margin-bottom: 0; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { font-family: var(--font-head); font-weight: 700; }
.pager-pos { font-size: .92rem; color: var(--text-soft); }

/* ---------------------------------------------------------------- calculator */

.calc { display: grid; gap: 1.5rem; margin: 2rem 0; }
.calc-title { margin: 0; }
.calc-lead { margin: -1rem 0 0; color: var(--text-soft); }
.calc-step { margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.calc-step legend {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.step-num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--amber);
  color: #1b1206;
  border-radius: 50%;
  font-size: .95rem;
}
.radio-grid, .check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .7rem;
  margin-bottom: .5rem;
}
.radio-card, .check-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "input label" ". note";
  gap: .2rem .6rem;
  padding: .75rem .85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.radio-card:hover, .check-card:hover { border-color: var(--amber); background: var(--amber-wash); }
.radio-card input, .check-card input {
  grid-area: input;
  width: 1.15rem;
  height: 1.15rem;
  margin: .2rem 0 0;
  accent-color: var(--amber-dark);
}
.radio-card:has(input:checked), .check-card:has(input:checked) {
  border-color: var(--amber);
  border-width: 2px;
  background: var(--amber-wash);
  padding: calc(.75rem - 1px) calc(.85rem - 1px);
}
.radio-label { grid-area: label; font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink); }
.radio-note { grid-area: note; font-size: .87rem; color: var(--text-soft); }
.calc-disclaimer { font-size: .9rem; color: var(--text-soft); margin: 0; }

.estimate {
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
}
.estimate h2, .estimate h3 { color: #fff; }
.estimate h2 { margin-top: 0; }
.estimate-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  margin: 0 0 .4rem;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
}
.estimate-to { font-size: 1rem; font-weight: 600; color: var(--on-dark-soft); }
.estimate-vat { margin: 0 0 1rem; font-size: .95rem; color: var(--on-dark-soft); }
.estimate-note { padding: .7rem .9rem; background: rgba(255, 255, 255, .08); border-radius: var(--radius); font-size: .95rem; }
.estimate-breakdown summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; padding: .5rem 0; min-height: 2.75rem; display: flex; align-items: center; }
.estimate-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.estimate-table caption { text-align: left; padding-bottom: .5rem; font-size: .9rem; color: var(--on-dark-soft); }
.estimate-table th, .estimate-table td { padding: .5rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; font-weight: 400; }
.estimate-table thead th { font-family: var(--font-head); font-weight: 700; color: #fff; }
.estimate-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.estimate-next { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.estimate-next label { color: #fff; }
.estimate-next .hint { color: var(--on-dark-soft); }
.estimate-handoff { display: grid; gap: .9rem; }
.estimate-handoff .field-check label { color: var(--on-dark); }

/* ---------------------------------------------------------------- contact */

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: start; padding-block: 2.5rem 3rem; }
@media (max-width: 64rem) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 1.25rem; }
.contact-card {
  padding-block: 1.25rem;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-card h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.contact-card p a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 1.5rem; }
.contact-card h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: .35rem; }
.contact-card > .seam { margin-inline: 0; width: 100%; margin-bottom: -1.25rem; }
.big-phone { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin: 0 0 .5rem; }
.big-phone a { text-decoration: none; color: var(--ink); }
.big-phone a:hover { color: var(--amber-dark); text-decoration: underline; }

/* ---------------------------------------------------------------- notices */

.notice { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--paper-tint); border-left: 4px solid var(--slate); }
.notice h2 { margin-top: 0; font-size: 1.15rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-warn { background: var(--amber-wash); border-left-color: var(--amber); }
.notice-plain { background: var(--paper-tint); }

/* ---------------------------------------------------------------- cta */

.cta-section { background: var(--ink-soft); color: var(--on-dark); position: relative; }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding-block: 2.75rem; }
.cta-section h2 { color: #fff; margin-bottom: .4rem; }
.cta-section p { color: var(--on-dark-soft); margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 58rem) {
  .cta-inner { grid-template-columns: 1fr; padding-block: 2.25rem; }
}

/* ---------------------------------------------------------------- sitemap */

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.sitemap-grid ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.sitemap-grid li { padding: .35rem 0; }
.sitemap-grid h3 { font-size: 1rem; margin-top: 1.25rem; }
.sitemap-note { margin-top: 2rem; font-size: .95rem; color: var(--text-soft); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-top: 3rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 64rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-col h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .25rem 0; }
/* WCAG 2.2 asks for a 24 by 24 pixel target. These are lists of links rather
   than links inside a sentence, so the exception does not apply to them. */
.footer-col a { color: var(--on-dark-soft); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; min-height: 1.5rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-mark { width: 2.5rem; height: 2.5rem; margin-bottom: .6rem; }
.footer-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-about p { font-size: .95rem; max-width: 34ch; }
.footer-contact a { color: var(--amber-light); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 1.5rem; }
.footer-contact a:hover { text-decoration: underline; }
.social-list { display: flex; gap: 1rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.social-list a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-bottom p { margin: 0; font-size: .88rem; }
.footer-small a { color: var(--amber-light); display: inline-flex; align-items: center; min-height: 1.5rem; }

/* ---------------------------------------------------------------- mobile bar */

.mobile-bar { display: none; }
@media (max-width: 48rem) {
  .mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 -2px 12px rgba(27, 33, 36, .25);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: .5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
  }
  .mobile-bar-call { background: var(--amber); color: #1b1206; }
  .mobile-bar-msg { background: var(--ink); color: #fff; }
  body { padding-bottom: 3.3rem; }
}

/* ---------------------------------------------------------------- plain pages */

.plain-page { display: grid; place-items: center; min-height: 70vh; }
.plain-page main { padding-block: 3rem; }

@media print {
  .site-header, .site-footer, .mobile-bar, .page-aside, .cta-section, .seam, .nav-toggle { display: none !important; }
  body { padding: 0; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
