/* Doncaster Roofworks: slate and stone, one clay accent for actions. */
:root {
  --ink: #1D2329;
  --night: #26313B;
  --slate: #2F3A44;
  --slate-2: #4A5866;
  --muted: #56616B;
  --stone: #F3F1EC;
  --line: #DDD8CF;
  --field: #B9B2A6;
  --clay: #C2502B;
  --clay-d: #A8411F;
  --clay-t: #F6E3DA;
  --clay-light: #F2A07F;
  --on-dark: #D3DAE0;
  --on-dark-2: #AEB8C1;
  --error: #B3261E;
  --radius: 6px;
  --head: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--head);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--clay-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 7.4vw, 66px); }
h2 { font-size: clamp(30px, 4.6vw, 42px); }
h3 { font-size: 22px; line-height: 1.15; }
[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.hero :focus-visible, .page-hero :focus-visible, .dark :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .mobile-bar :focus-visible { outline-color: var(--clay-light); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 820px; }
.split { display: grid; gap: 32px; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 4px;
  font: 700 17px/1.1 var(--head); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--clay); color: #fff; }
.btn-call:hover { background: var(--clay-d); color: #fff; }
.btn-call:disabled { opacity: .45; cursor: not-allowed; background: var(--clay); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-line-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
@media (max-width: 519px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo span { display: flex; flex-direction: column; font-stretch: 75%; font-weight: 800; font-size: 23px; line-height: .95; text-transform: uppercase; }
.logo small { font-size: 12.5px; font-stretch: 100%; font-weight: 700; letter-spacing: .26em; color: var(--clay-d); margin-top: 3px; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: var(--clay-light); }

.nav { display: none; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; font-stretch: 90%; white-space: nowrap; }
.nav a:hover { color: var(--clay-d); }
.nav a[href="/contact/"] { display: none; }
.header-phone { display: none; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; font-stretch: 85%; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--clay); }
.header-cta { display: none; min-height: 44px; padding: 0 16px; font-size: 15.5px; white-space: nowrap; }
.header-call { min-height: 42px; padding: 0 14px; font-size: 15.5px; }
.header-call svg { width: 18px; height: 18px; }
.menu-btn { width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; cursor: pointer; position: relative; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .2s, opacity .2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 720px) {
  .header-phone, .header-cta { display: inline-flex; }
  .header-call { display: none; }
}
@media (min-width: 1180px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .logo { margin-right: 8px; }
  .nav { margin-right: auto; }
}

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 66px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 20px; columns: 1; }
.mobile-nav li { break-inside: avoid; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
@media (min-width: 640px) { .mobile-nav ul { columns: 2; column-gap: 32px; } }
@media (min-width: 1180px) { .mobile-nav, .mobile-nav.open { display: none; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 12px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--field); }
.crumbs a { color: var(--muted); }

/* ---------- Heroes ---------- */
.hero, .page-hero { background: var(--night); color: #fff; position: relative; }
.hero { padding: 44px 0 96px; overflow: hidden; }
.page-hero { padding: 40px 0 46px; border-bottom: 5px solid var(--clay); }
.page-hero h1 { font-size: clamp(36px, 6.4vw, 56px); max-width: 18ch; }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-light); margin-bottom: 12px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--on-dark); max-width: 40em; }
.leak { font-weight: 700; color: var(--clay-light); }
.micro { font-size: 14px; color: var(--on-dark-2); margin: 0; }
.micro a { color: var(--on-dark); }
.hero-grid { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 15ch; }
.hero-form { display: none; }
.roofline { position: absolute; left: 0; bottom: -1px; width: 100%; height: 72px; fill: #fff; display: block; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 132px; }
  .roofline { height: 108px; }
  .hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
  .hero-form { display: block; background: #fff; color: var(--ink); border-radius: 8px; padding: 26px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .hero-form .quote { border: 0; padding: 0; }
  .hero-book { display: none; }
}
.urgent { margin: 22px 0 6px; }

/* ---------- Promise strip ---------- */
.promises { border-bottom: 1px solid var(--line); background: #fff; }
.promises ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.promises li { display: flex; gap: 12px; align-items: flex-start; }
.promises svg { width: 28px; height: 28px; flex: none; color: var(--clay); margin-top: 2px; }
.promises strong { display: block; font-size: 16px; line-height: 1.25; }
.promises span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.promises .tenant { align-items: center; font-weight: 700; }
@media (min-width: 900px) { .promises ul { grid-template-columns: repeat(4, 1fr); padding: 28px 0; } }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.stone { background: var(--stone); }
.dark { background: var(--ink); color: #fff; }
.dark p { color: var(--on-dark); }
.intro { font-size: 18px; color: var(--muted); max-width: 46em; margin-bottom: 28px; }
.dark .intro { color: var(--on-dark); }
.mt { margin-top: 52px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--clay-d); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow.light { color: var(--clay-light); }
.link-arrow.light:hover { color: #fff; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--clay); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,35,41,.08); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--clay-d); font-weight: 700; font-size: 15px; }
.card .more svg { width: 16px; height: 16px; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; background: var(--slate); color: #fff; font: 800 20px/42px var(--head); text-align: center; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { display: block; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 58px 0 0; }
  .steps li::before { top: 0; }
}

.cta-band { background: var(--slate); color: #fff; padding: 36px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; }
.cta-band p { margin: 0; font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; font-stretch: 75%; line-height: 1.1; max-width: 22em; }
.cta-band .btn-row { margin: 14px 0 0; }
@media (min-width: 900px) { .cta-band .btn-row { margin: 0; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table-wrap th { text-align: left; background: var(--slate); color: #fff; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.table-wrap td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.prose .table-wrap td { font-size: 16px; }
.prices td:last-child { font-weight: 700; white-space: nowrap; }
.source { font-size: 14px; color: var(--muted); margin-top: 10px; }

.dodgy { display: grid; gap: 26px; margin: 8px 0 30px; }
.dodgy > div { border-top: 3px solid var(--clay); padding-top: 14px; }
.dodgy h3 { font-size: 21px; margin-bottom: 8px; }
.dodgy p { font-size: 16px; line-height: 1.55; margin: 0; }
@media (min-width: 720px) { .dodgy { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .dodgy { grid-template-columns: repeat(4, 1fr); } }
.prose .dodgy p { color: var(--muted); }

.area-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.area-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.area-list a:hover { border-color: var(--clay); color: var(--ink); }
.area-list span { font-size: 13.5px; color: var(--muted); font-weight: 500; }

.faqs { border-top: 1px solid var(--line); margin-bottom: 22px; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 18px; line-height: 1.35; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 26px; font-weight: 500; color: var(--clay); }
.faqs details[open] summary::after { content: '–'; }
.faqs details p { color: var(--muted); margin: -4px 0 18px; max-width: 46em; }

/* ---------- Long-form content ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .table-wrap { margin: 8px 0 4px; }
.ticks { list-style: none; padding: 0 !important; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .42em; width: 7px; height: 13px; border: solid var(--clay); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ticks.small li { font-size: 16px; margin-bottom: 6px; }
.big-phone { font-size: 24px; font-weight: 800; font-stretch: 80%; }
.big-phone a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--clay); }

/* ---------- Quote form ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
@media (min-width: 720px) { .quote { padding: 28px; } }
.quote[data-step="1"] .q-2, .quote[data-step="2"] .q-1 { display: none; }
.q-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-d); margin-bottom: 6px; }
.q-back { border: 0; background: none; padding: 0; color: var(--clay-d); font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; cursor: pointer; }
.q-title { font-size: 26px; font-weight: 800; font-stretch: 75%; line-height: 1.1; margin-bottom: 14px; }
.q-label { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 15px; border: 1.5px solid var(--field); border-radius: 999px; background: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--slate); border-color: var(--slate); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }
.chips-sm .chip span { padding: 8px 13px; font-size: 14.5px; }
.compact .chip span { font-size: 14.5px; padding: 8px 13px; }
.q-next, .quote [type="submit"] { width: 100%; margin-top: 20px; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 4px; font: 17px var(--head); color: var(--ink); background: #fff; }
.field input:focus { border-color: var(--clay); outline: 3px solid var(--clay-t); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--error); background: #FDF3F2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.q-small { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.q-error { color: var(--error); font-weight: 700; margin: 12px 0 0; }
.q-error a { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 52px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h3 { font-size: 13.5px; font-stretch: 100%; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: var(--on-dark-2); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.f-blurb { margin-top: 16px; max-width: 26em; }
.f-phone a { color: #fff; font-size: 24px; font-weight: 800; font-stretch: 80%; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-small { display: grid; gap: 6px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; line-height: 1.5; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(29,35,41,.97); transform: translateY(115%); transition: transform .25s ease; }
.mobile-bar.show { transform: none; }
.mobile-bar .btn { flex: 1 1 0; min-height: 48px; padding: 0 10px; font-size: 16px; }
@media (max-width: 899px) { body { padding-bottom: 70px; } }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-bar, .card, .link-arrow svg { transition: none; } }
