/* Template: TRADES (electrician, plumber, roofer, joiner, cleaner)
   Brand tokens are at the top. Swap them per client; the layout follows. */

@font-face { font-family: "Barlow SC"; src: url("bsc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("bsc-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brand: #0f2238;        /* main colour: header, hero, footer */
  --brand-2: #1b3553;
  --accent: #ffd23f;       /* call buttons and highlights */
  --accent-ink: #0f2238;
  --alert: #c8102e;        /* emergency only */
  --bg: #f4f3ee;
  --card: #fcfcf9;
  --ink: #0f2238;
  --muted: #4a5868;
  --line: rgba(15, 34, 56, 0.14);
  --head: "Barlow SC", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, sans-serif;
  --max: 74rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 1.9rem + 3.6vw, 4.7rem); }
h2 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); }
h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Demo notice (remove for real clients) */
.demo-bar { background: #000; color: #fff; font-size: 0.9rem; padding: 0.5rem var(--pad); text-align: center; }
.demo-bar a { color: var(--accent); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.85rem 1.3rem; border: 2px solid transparent; border-radius: 4px; font: 600 1.1rem/1.1 var(--body); text-decoration: none; cursor: pointer; }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--call { background: var(--accent); color: var(--accent-ink); font-family: var(--head); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; }
.btn--call:hover { background: #ffdf6e; }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: rgba(255, 255, 255, 0.08); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-2); }

/* Header */
.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.top__inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo svg { width: 2.5rem; height: 2.5rem; }
.logo b { display: block; font: 800 1.6rem/0.9 var(--head); letter-spacing: 0.04em; }
.logo small { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; margin-top: 0.2rem; }
.top nav { margin-left: auto; display: flex; gap: 1.6rem; }
.top nav a { text-decoration: none; font-weight: 600; opacity: 0.9; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }
.top .btn--call { font-size: 1.15rem; padding: 0.6rem 1rem; }
@media (max-width: 60rem) { .top nav { display: none; } .top .btn--call { margin-left: auto; } }
@media (max-width: 26rem) { .top .btn--call span { display: none; } }

/* Hero */
.hero { background: var(--brand); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 mark { background: none; color: var(--accent); }
.hero__lead { font-size: 1.25rem; max-width: 33em; color: rgba(255, 255, 255, 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.emergency { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; border: 2px solid rgba(255, 255, 255, 0.25); border-left: 6px solid var(--alert); border-radius: 4px; padding: 1rem 1.2rem; max-width: 34rem; }
.emergency .pulse { grid-row: span 2; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(200, 16, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }
.emergency p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 1rem; }
.emergency a { font: 800 1.35rem/1.2 var(--head); letter-spacing: 0.03em; color: #fff; text-decoration: none; }
.emergency a:hover { color: var(--accent); }
@media (max-width: 60rem) { .hero__grid { grid-template-columns: 1fr; } }

/* Quote form */
.quote { background: var(--card); color: var(--ink); border-radius: 6px; padding: clamp(1.25rem, 3vw, 1.9rem); box-shadow: 0 0 0 4px var(--accent); }
.quote h2 { font-size: 2rem; }
.quote__sub { color: var(--muted); margin: 0.4rem 0 1.2rem; }
.q { border: 0; padding: 0; margin: 0 0 1.1rem; }
.q legend, .q > label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.q legend span, .q > label span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: 0.45rem; background: var(--brand); color: #fff; border-radius: 50%; font: 800 0.95rem/1 var(--head); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips label span { display: inline-block; padding: 0.45rem 0.8rem; border: 2px solid var(--line); border-radius: 99px; font-size: 1rem; font-weight: 600; cursor: pointer; background: #fff; }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.quote input[type="text"], .quote input[type="tel"] { width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.quote input[type="text"]:focus, .quote input[type="tel"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.two label { font-weight: 600; font-size: 0.98rem; display: grid; gap: 0.35rem; }
.quote .btn--dark { width: 100%; margin-top: 1rem; font-size: 1.15rem; padding: 1rem; }
.quote__note { font-size: 0.9rem; color: var(--muted); margin: 0.75rem 0 0; }
.quote__done { display: none; padding: 1rem; background: #eef6e9; border-radius: 4px; margin-top: 1rem; }
.quote.is-sent .quote__done { display: block; }

/* Credentials strip */
.creds { border-bottom: 1px solid var(--line); background: var(--card); }
.creds ul { list-style: none; margin: 0 auto; padding: 1.1rem var(--pad); max-width: calc(var(--max) + var(--pad) * 2); display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem 2rem; }
.creds li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.creds svg { width: 1.4rem; height: 1.4rem; flex: none; }
.stars { color: #e0a800; letter-spacing: 0.05em; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; border-top: 3px solid var(--ink); }
.service { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.service p { margin: 0; color: var(--muted); grid-column: 1; }
.service .from { grid-column: 2; grid-row: 1 / span 2; text-align: right; font: 800 1.7rem/1 var(--head); white-space: nowrap; }
.service .from small { display: block; font: 600 0.8rem/1.4 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 52rem) { .services { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font: 800 3.2rem/1 var(--head); color: var(--brand); margin-bottom: 0.5rem; -webkit-text-stroke: 0; }
.steps p { margin: 0.5rem 0 0; color: var(--muted); }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.review { margin: 0; }
.review blockquote { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.5; }
.review { border-top: 4px solid var(--accent); padding-top: 1.1rem; }
.review .stars { display: block; margin-bottom: 0.6rem; }
.review figcaption { font-weight: 600; }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); }
.more { margin-top: 2.5rem; font-weight: 600; }
@media (max-width: 60rem) { .reviews { grid-template-columns: 1fr; max-width: 40rem; } }

.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area__map { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.postcodes { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.postcodes li { border: 1.5px solid var(--line); border-radius: 4px; padding: 0.15rem 0.55rem; font-weight: 600; font-size: 0.95rem; background: #fff; }
@media (max-width: 52rem) { .area { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__img { border-radius: 6px; overflow: hidden; background: #dfe6ee; }
.about__img figcaption { font-size: 0.9rem; color: var(--muted); padding: 0.6rem 0.9rem; background: var(--card); }
@media (max-width: 52rem) { .about { grid-template-columns: 1fr; } }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.6rem/1 var(--head); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); }

.cta { background: var(--brand); color: #fff; text-align: left; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { max-width: 16em; }
.cta p { color: rgba(255, 255, 255, 0.85); margin: 1rem 0 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

footer { background: #0a1828; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; padding: 2.5rem 0 6rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
footer a { color: #fff; }
footer p { margin: 0.3rem 0; }

/* Sticky call bar on phones */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.6rem; background: rgba(15, 34, 56, 0.97); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2); }
.callbar .btn { padding: 0.85rem 0.5rem; font-size: 1.1rem; }
@media (max-width: 48rem) { .callbar { display: grid; } footer { padding-bottom: 6.5rem; } }

@media (prefers-reduced-motion: reduce) { .emergency .pulse { animation: none; } html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
