/* ==========================================================================
   "Trades" Quick Start template by Redwater Digital
   For plumbers, HVAC, electricians, welders, mechanics, contractors.

   RE-SKIN HERE: change the brand colours and fonts below and the whole site
   follows. Business details (name, phone, towns, hours, licence number) are
   in the HTML, marked with <!-- EDIT: ... --> comments; search for "EDIT".
   Contrast note: --accent is used as a BACKGROUND under --accent-ink text,
   never as text on white. Keep that pair at 4.5:1 or better.
   ========================================================================== */
:root {
  /* Brand colours */
  --dark: #10202f;          /* header text, hero and footer background */
  --dark-2: #1a3147;        /* hero stripes, cards on dark */
  --accent: #f4a51c;        /* safety amber: buttons, highlights */
  --accent-dark: #d98c06;   /* button hover */
  --accent-ink: #111820;    /* text on --accent */
  --link: #1b4f8a;          /* links on light backgrounds */
  --steel: #5d7083;         /* icon strokes, rules */
  --bg: #ffffff;
  --bg-alt: #eef2f5;        /* alternating sections */
  --ink: #16212c;           /* body text */
  --ink-soft: #445364;      /* secondary text */
  --on-dark: #e9eff5;       /* text on --dark */
  --on-dark-soft: #b9c7d4;
  --line: #d5dde4;
  --radius: 6px;

  /* Fonts (system only, nothing to download) */
  --font-head: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
  padding-bottom: 72px; /* room for the mobile call bar */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); text-transform: uppercase; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); text-transform: uppercase; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.15rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Demo banner (delete for a real client) */
.demo-bar { background: #000; color: #fff; font-size: 1rem; text-align: center; padding: .35rem 1rem; }
.demo-bar a { color: #ffd27a; display: inline-block; padding: .55rem .25rem; min-height: 44px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em;
  text-decoration: none; text-transform: uppercase; cursor: pointer; line-height: 1.15;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-call { background: var(--accent); color: var(--accent-ink); }
.btn-call:hover { background: var(--accent-dark); }
.btn-ghost { border-color: currentColor; color: var(--on-dark); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-big { font-size: 1.3rem; min-height: 60px; padding: .9rem 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(16,32,47,.08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--dark); min-height: 44px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 1; font-size: 1.05rem; }
.brand-name small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--ink-soft); margin-top: .2rem; }
.nav { display: none; }
.header-call { display: none; }
.header-call-sm { padding: .5rem .8rem; font-size: 1rem; }

/* Hero */
.hero {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(255,255,255,.025) 26px 52px),
    linear-gradient(160deg, var(--dark-2), var(--dark) 60%);
  color: var(--on-dark); padding: 2.5rem 0 3rem;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--on-dark); max-width: 34em; }
.kicker { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; color: var(--accent); margin-bottom: .75rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.hero-actions .btn { flex: 1 1 15rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.checks li { display: flex; gap: .55rem; align-items: center; }
.checks svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* Photo placeholders (swap for the client's real photos: <img src alt> inside .ph) */
.ph { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #c9d4de; aspect-ratio: 4 / 3; }
.ph svg { width: 100%; height: 100%; }
.ph figcaption, .ph .tag {
  position: absolute; left: .6rem; bottom: .6rem; background: rgba(16,32,47,.88); color: #fff;
  font-size: .85rem; padding: .25rem .6rem; border-radius: 4px;
}
.hero .ph { box-shadow: 0 18px 40px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.08); }

/* Trust strip */
.strip { background: var(--accent); color: var(--accent-ink); }
.strip ul { list-style: none; margin: 0; padding: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.strip li { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; line-height: 1.15; font-size: 1rem; }
.strip b { display: block; font-size: 1.6rem; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 1rem; color: var(--link); margin-bottom: .4rem; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 4px; background: var(--accent); vertical-align: middle; margin-right: .55rem; }

/* Services */
.services { display: grid; gap: 1rem; }
.service { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--dark); border-radius: var(--radius); padding: 1.35rem 1.25rem; }
.service svg { width: 44px; height: 44px; color: var(--dark); margin-bottom: .75rem; }
.service h3 { margin-bottom: .35rem; }
.service p { margin: 0; color: var(--ink-soft); }

/* Emergency band */
.emergency { background: var(--dark); color: var(--on-dark); padding: 2.5rem 0; border-top: 6px solid var(--accent); }
.emergency-in { display: grid; gap: 1.25rem; align-items: center; }
.emergency h2 { color: #fff; margin-bottom: .3rem; }
.emergency p { margin: 0; color: var(--on-dark-soft); font-size: 1.1rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; border-radius: 50%;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Work gallery */
.work { display: grid; gap: 1rem; }
.work figure { margin: 0; }

/* Reviews */
.reviews { display: grid; gap: 1rem; }
.review { margin: 0; background: #fff; border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 2px 8px rgba(16,32,47,.06); }
.stars { color: #9a5b00; font-size: 1.1rem; letter-spacing: .1em; margin-bottom: .4rem; }
.review blockquote { margin: 0 0 .75rem; font-size: 1.05rem; }
.review figcaption { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }

/* Service area */
.area { display: grid; gap: 1.75rem; align-items: center; }
.towns { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.towns li { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; font-weight: 600; }
.towns svg { width: 18px; height: 18px; color: var(--link); flex: none; }
.area-map { border-radius: var(--radius); overflow: hidden; background: #dfe7ee; }
.area-map svg { width: 100%; height: auto; }

/* Quote */
.quote-grid { display: grid; gap: 2rem; }
.quote-form { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 1.35rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid #8a99a8; border-radius: var(--radius); padding: .7rem .8rem; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; }
.form-note { font-size: 1rem; color: var(--ink-soft); margin: .75rem 0 0; }
.quote-form .btn { width: 100%; }
.contact-card { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { color: #fff; }
.contact-card .btn { width: 100%; margin: .25rem 0 1.25rem; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.contact-card dt { font-weight: 700; color: var(--accent); }
.contact-card dd { margin: 0; }

/* Footer */
.site-footer { background: #0a141e; color: var(--on-dark-soft); padding: 2.5rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 1.5rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: var(--on-dark-soft); }
.foot-h { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; color: #fff; margin: 0 0 .4rem; letter-spacing: .06em; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-block; padding: .55rem 0; min-height: 44px; }
.legal { border-top: 1px solid #22364a; margin-top: 2rem; padding-top: 1.25rem; font-size: 1rem; }
.legal a { display: inline-block; padding: .6rem 0; }
.legal p { margin: 0 0 .35rem; }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 14px rgba(0,0,0,.2); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 1.1rem; }
.callbar svg { width: 22px; height: 22px; }
.callbar .cb-call { background: var(--accent); color: var(--accent-ink); }
.callbar .cb-quote { background: var(--dark); color: #fff; }

/* Thanks page */
.thanks { padding: 4rem 0; text-align: center; }
.thanks .wrap { max-width: 40rem; }
.thanks svg.big-check { width: 84px; height: 84px; margin: 0 auto 1rem; color: #1f7a3d; }
.thanks .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .services, .work, .reviews { grid-template-columns: 1fr 1fr; }
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .towns { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .header-call-sm { display: none; }
  .header-call { display: inline-flex; }
  .header-in { min-height: 76px; }
  .brand svg { width: 46px; height: 46px; }
  .brand-name { font-size: 1.25rem; }
  .nav { display: flex; gap: .25rem; margin-left: auto; margin-right: .75rem; }
  .nav a { color: var(--dark); text-decoration: none; font-weight: 600; padding: .65rem .7rem; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav a:hover { background: var(--bg-alt); }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .hero-actions .btn { flex: 0 1 auto; }
  .section { padding: 4.5rem 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .work, .reviews { grid-template-columns: repeat(3, 1fr); }
  .emergency-in { grid-template-columns: 1fr auto; }
  .area { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .quote-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
