/* Kind: family-run plumber, St Albans; sells call-outs and plumbing jobs to local homeowners; main action: Call Shaun
   Direction: Swiss utility. Solid, legible, a trade van rather than a brochure.
   Palette: ground #ffffff / #f1f4f8, ink #0b1b33 (navy), accent #0052da (the old site's brand blue), signal #ffb703 (call and emergency)
   Type: Archivo expanded 800 for headings, tight / Archivo 17px body; small-caps labels
   Signature: the amber phone pill and a fact strip of real figures (12 years, 24-hour, £60, £70); pipe-elbow rule above section labels
   Visual: one branded photo per page with the phone and domain in the corner; the old site's tap logo */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0b1b33;
  --ink-2: #33445f;
  --paper: #ffffff;
  --paper-2: #f1f4f8;
  --line: #d9e0ea;
  --accent: #0052da;
  --accent-dark: #003c9e;
  --signal: #ffb703;
  --signal-dark: #e29e00;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Archivo", "Arial", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 99; }

/* Emergency strip */
.topbar { background: var(--ink); color: #fff; font-size: 0.92rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--signal); font-weight: 700; text-decoration: none; }
.topbar .muted-light { color: #b9c4d6; }
@media (max-width: 640px) {
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand small { display: none; }
  .brand span { font-size: 1.05rem; }
}

/* Header: brand | links | call, never wrapping the call button */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand span { font-stretch: 115%; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; }
.brand small { display: block; font-weight: 500; font-stretch: 100%; font-size: 0.75rem; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }
.nav { justify-self: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a, .nav summary { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--accent); }
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav details ul { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(11,27,51,.12); min-width: 290px; z-index: 50; }
.nav details a { font-weight: 500; }
.call-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--signal); color: var(--ink); text-decoration: none;
  font-weight: 800; font-stretch: 108%; padding: 12px 18px; border-radius: 999px;
  white-space: nowrap; transition: background .15s, transform .15s;
}
.call-btn:hover { background: var(--signal-dark); color: var(--ink); transform: translateY(-1px); }
.call-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 1020px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; justify-self: end; }
  .site-header .call-btn { display: none; }
  .nav { display: none; grid-column: 1 / -1; justify-self: stretch; padding-bottom: 14px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav details ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .brand img { height: 44px; }
}
@media (max-width: 640px) { .brand small { display: none; } }

/* Breadcrumbs */
.crumbs { font-size: 0.88rem; color: var(--ink-2); padding: 14px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa7ba; }
.crumbs a { color: var(--ink-2); }

/* Hero */
.hero { padding: 34px 0 46px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 12px; border-left: 4px solid var(--accent); border-bottom: 4px solid var(--accent); border-bottom-left-radius: 8px; transform: translateY(-3px); }
.hero h1 span { display: block; font-size: 0.5em; font-stretch: 100%; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); margin-top: 10px; }
.answer {
  background: var(--paper-2); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 20px 0 24px; font-size: 1.05rem;
}
.answer p:last-child { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: #fff; border: 2px solid var(--accent); transition: background .15s, transform .15s; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--paper-2); color: var(--accent-dark); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: var(--ink); }
.hero-img { position: relative; }
.hero-img img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 24px 50px rgba(11,27,51,.18); }
.hero-img .tag-24 {
  position: absolute; left: -16px; bottom: -18px; background: var(--ink); color: #fff; border-radius: 12px;
  padding: 12px 16px; font-weight: 800; font-stretch: 110%; line-height: 1.1; box-shadow: 0 10px 24px rgba(11,27,51,.25);
}
.hero-img .tag-24 b { color: var(--signal); display: block; font-size: 1.5rem; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-img .tag-24 { left: 12px; }
}

/* Fact strip */
.facts { background: var(--ink); color: #fff; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts dl > div { padding: 24px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.facts dl > div:last-child { border-right: 0; }
.facts dd { margin: 0; font-size: 2rem; font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; color: var(--signal); line-height: 1.1; }
.facts dt { font-size: 0.92rem; color: #c9d3e3; margin-top: 6px; }
.facts dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div:nth-child(2) { border-right: 0; }
  .facts dl > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .facts dd { font-size: 1.6rem; }
}

/* Sections */
.section { padding: 64px 0; }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.service:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,27,51,.08); color: var(--ink); }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 14px; flex: 1; }
.service .more { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.service--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.service--featured p { color: #c9d3e3; }
.service--featured .more { color: var(--signal); }
a.service--featured:hover { color: #fff; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num { font-weight: 800; font-stretch: 110%; font-size: 1.25rem; white-space: nowrap; }
th small { display: block; font-weight: 400; color: var(--ink-2); }

/* Cards: rates, callouts */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--ink a:not(.btn) { color: var(--signal); }
.card--ink .muted { color: #c9d3e3; }
.muted { color: var(--ink-2); }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 18px; }
.rate { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--paper); }
.rate b { display: block; font-size: 2.2rem; font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; line-height: 1; }
.rate span { color: var(--ink-2); font-size: 0.95rem; }
.rate--night { background: var(--ink); color: #fff; border-color: var(--ink); }
.rate--night b { color: var(--signal); }
.rate--night span { color: #c9d3e3; }
@media (max-width: 480px) { .rates { grid-template-columns: 1fr; } }

/* Steps and checklists */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2em; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 14px; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(45deg); }
.card--ink .ticks li::before { border-color: var(--signal); }

/* Figures */
.figure img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.review .stars { color: var(--signal-dark); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; flex: 1; font-size: 1.02rem; }
.review figcaption { font-weight: 700; }
.review figcaption span { font-weight: 400; color: var(--ink-2); }
@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; } }
.review-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; background: var(--paper); border: 2px dashed var(--accent); border-radius: var(--radius); padding: 18px 22px; }
.review-cta p { margin: 0; font-weight: 600; }

/* Tools: quiz and calculator */
.tool { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 26px; box-shadow: 8px 8px 0 var(--ink); }
.tool h3 { font-size: 1.35rem; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.tool legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; transition: all .15s; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.choice label:hover span { border-color: var(--accent); }
.result { margin-top: 6px; padding: 18px; border-radius: var(--radius); background: var(--paper-2); border-left: 5px solid var(--accent); }
.result.is-urgent { background: #fff6dd; border-left-color: var(--signal-dark); }
.result h4 { margin: 0 0 6px; font-size: 1.15rem; font-stretch: 108%; }
.result p:last-child { margin-bottom: 0; }
.calc-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calc-row label { font-weight: 600; }
.calc-row label small { display: block; font-weight: 400; color: var(--ink-2); }
.calc-row input { font: inherit; font-size: 1.1rem; width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; text-align: right; }
.calc-row input:focus { outline: none; border-color: var(--accent); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.calc-total b { font-size: 2.4rem; font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; }
.small { font-size: 0.9rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq summary h3 { display: inline; font-size: inherit; font-stretch: 100%; letter-spacing: 0; }

/* Areas */
.towns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.towns li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.towns li b { display: block; }
.towns li span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 640px) { .towns { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a, .chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* Placeholder for content Shaun still has to supply: must be filled or removed before launch */
.placeholder { border: 2px dashed #d13c3c; background: #fff3f3; color: #8a1f1f; border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.placeholder b { display: block; margin-bottom: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.contact-list a { font-size: 1.25rem; font-weight: 700; text-decoration: none; word-break: break-word; }
form.enquiry { display: grid; gap: 14px; }
form.enquiry label { font-weight: 600; display: grid; gap: 6px; }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: none; border-color: var(--accent); }
form.enquiry .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form.enquiry .row2 { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #dce6fb; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d3e3; padding: 54px 0 100px; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h2 { font-size: 1rem; color: #fff; font-stretch: 105%; letter-spacing: 0.02em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { height: 56px; width: auto; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-base a { color: var(--signal); font-weight: 600; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11,27,51,.1); }
  .callbar a { text-align: center; padding: 13px 10px; border-radius: 999px; font-weight: 800; text-decoration: none; }
  .callbar .c { background: var(--signal); color: var(--ink); }
  .callbar .t { background: var(--ink); color: #fff; }
}

/* 404 */
.notfound { text-align: center; padding: 90px 0; }
