/* ══════════════════════════════════════════════════════════════════════════
   webkit — the one stylesheet every client site uses.

   The look is meant to read as a working trade business, not a software
   company: heavy utilitarian type, square corners, thick rules, and the phone
   number treated as a display element rather than a link buried in a sentence.
   Rounded cards and soft shadows make a plumber look like a startup, which is
   not the impression that gets someone to call.

   Deliberately light-only. A plumber's customers aren't looking for a dark
   theme, and a site that changes appearance based on a setting nobody set is a
   support call waiting to happen.

   Everything brand-specific comes through --accent and --display, set inline
   per client, so one stylesheet serves every site.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --accent: #B4530A;                /* overridden per client */
  --ink: #16181A;
  --ink-dim: #52585C;
  --ink-faint: #868D92;
  --paper: #FFFFFF;
  --paper-2: #F3F4F5;               /* cool grey, not cream */
  --rule: #E2E5E7;
  --rule-hard: #16181A;
  --display: inherit;               /* a client may swap in one display face */
  --maxw: 1120px;
  --r: 3px;                         /* trade businesses do not have 16px radii */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
body, .card p, address, blockquote p, .lede { overflow-wrap: break-word; }
a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--display); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(40px, 8vw, 78px); font-weight: 800; line-height: .98; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-dim); margin: 0 0 30px; max-width: 46ch; }
.meta { color: var(--ink-faint); font-size: 15px; }

/* ── Demo marker ─────────────────────────────────────────────────────────────
   Only rendered for sample sites. Quiet enough not to spoil the demonstration,
   plain enough that nobody arriving cold mistakes it for a real business. */
.demo-note {
  background: var(--ink); color: var(--paper);
  font-size: 12.5px; letter-spacing: .04em; text-align: center;
  padding: 8px 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head { border-bottom: 2px solid var(--rule-hard); position: sticky; top: 0; background: var(--paper); z-index: 50; }
.head-row { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
@media (max-width: 900px) { .nav { display: none; } }
.head-row .brand { min-width: 0; overflow-wrap: anywhere; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}
.nav a:hover { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 14px 22px; border-radius: var(--r);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; white-space: nowrap;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { filter: brightness(.92); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-call { background: var(--accent); color: #fff; padding: 10px 16px; font-size: 15px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(52px, 9vw, 104px) 0 clamp(44px, 7vw, 76px); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,.85fr); gap: 56px; align-items: start; }
.hero h1 { max-width: 19ch; margin-bottom: .3em; }

/* Hours beside the call button. Most small businesses have no photo worth
   putting here, so the hero has to hold on type and useful facts alone. */
.hero-panel { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px 24px 24px; }
.hp-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em;
            color: var(--ink-faint); margin-bottom: 12px; }
.hero-panel .hours { width: 100%; margin-bottom: 18px; }
.hp-call { width: 100%; font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

/* Trust facts. A trade business is hired on licence, insurance and how long
   they've been around — so those get their own row rather than being buried. */
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.trust li {
  list-style: none; font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-dim);
}
.trust { margin: 0; padding-left: 0; }

/* ── Hero variants ───────────────────────────────────────────────────────────
   The single biggest reason five sites read as one template is that they all
   open the same way. These are genuinely different openings, not spacing
   tweaks. */

/* banner — short and tight, for a site whose real content (a menu, a price
   list) sits immediately below. A full-height hero there just gets scrolled
   past. */
.hero-banner { padding: clamp(34px, 4.5vw, 56px) 0 clamp(28px, 3.5vw, 40px); }
.hero-banner h1 { max-width: 22ch; font-size: clamp(32px, 5vw, 52px); }
.hero-banner .lede { max-width: 60ch; margin-bottom: 22px; }
.hero-banner .trust { margin-top: 20px; }

/* centered — brand-led, for businesses where the name and the feel do the
   selling before any list of services does. */
.hero-centered { padding: clamp(56px, 9vw, 108px) 0 clamp(44px, 6vw, 72px); text-align: center; }
.hero-centered h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero-centered .lede { max-width: 54ch; margin-left: auto; margin-right: auto; }
.hero-centered .hero-cta { justify-content: center; }
.hero-centered .trust { justify-content: center; border-top: 0; padding-top: 6px; }

/* ── Bands ──────────────────────────────────────────────────────────────── */
.band { padding: clamp(48px, 7vw, 84px) 0; border-top: 2px solid var(--rule-hard); }
.band.alt { background: var(--paper-2); }
.band > .wrap > h2 { margin-bottom: 1em; }

/* Services as a ruled grid, not floating cards — closer to a price list on a
   wall than to a SaaS feature section. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
        column-gap: 56px; border-top: 1px solid var(--rule); }
.card { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-dim); font-size: 16.5px; }

/* ── Gallery ─────────────────────────────────────────────────────────────────
   For a maker, this section is the entire pitch. Client photos arrive from a
   phone in a dozen different shapes, so every tile is a fixed square with
   object-fit: cover — a ragged grid reads as amateur no matter how good the
   individual photos are. */
.gal-note { margin-top: -.4em; margin-bottom: 26px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.tile { margin: 0; }
.tile img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r); background: var(--paper-2);
}
.tile figcaption {
  margin-top: 9px; font-size: 14.5px; color: var(--ink-dim); line-height: 1.4;
}

/* ── Price list / menu ───────────────────────────────────────────────────────
   Leader dots between name and price, the way a printed menu sets it. Prices
   are tabular so the column lines up even at ragged name lengths. */
.pl-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
             column-gap: 56px; row-gap: 34px; }
.pl-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
               color: var(--ink-faint); padding-bottom: 10px; margin-bottom: 14px;
               border-bottom: 1px solid var(--rule); }
.pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.pl li { display: flex; align-items: baseline; gap: 8px; }
.pl-name { font-weight: 650; }
.pl-note { display: block; font-weight: 400; font-size: 14.5px; color: var(--ink-dim); }
.pl-dots { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-3px); min-width: 14px; }
.pl-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Before / after pairs ────────────────────────────────────────────────── */
.tiles-pair { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba { position: relative; display: block; }
.ba img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.ba b {
  position: absolute; left: 8px; bottom: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 8px; border-radius: 2px;
}

/* ── Services layouts ────────────────────────────────────────────────────── */
/* list — one per row, title and body side by side. Reads like a rate card
   rather than a feature grid. */
.grid-list { grid-template-columns: 1fr; column-gap: 0; }
.grid-list .card { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 14fr); gap: 30px; align-items: baseline; }
.grid-list .card h3 { margin: 0; }

/* numbered — for anything that genuinely is a sequence. Never decoration. */
.grid-numbered { counter-reset: svc; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-numbered .card { counter-increment: svc; }
.grid-numbered .card h3::before {
  content: counter(svc, decimal-leading-zero);
  display: block; font-size: 12px; letter-spacing: .12em; color: var(--accent);
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .grid-list .card { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Density ─────────────────────────────────────────────────────────────────
   A restaurant wants dense and busy; a restorer wants quiet and airy. Same
   components, different breathing room. */
body.d-tight .band { padding: clamp(34px, 4.5vw, 56px) 0; }
body.d-tight { font-size: 16px; }
body.d-airy .band { padding: clamp(60px, 9vw, 112px) 0; }
body.d-airy .wrap { max-width: 1000px; }

/* ── About ──────────────────────────────────────────────────────────────── */
.band .prose p { font-size: 18px; line-height: 1.62; max-width: 62ch; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 34px; }
blockquote { margin: 0; }
blockquote p { margin: 0 0 12px; font-size: 19px; line-height: 1.5; }
blockquote cite {
  font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .09em;
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 38px; }
.cblock h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); margin-bottom: 12px; }
.phone-lg { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.phone-sm { font-size: 20px; font-weight: 700; margin: 0 0 8px; word-break: break-word; }
.phone-sm a { display: inline-block; padding: 4px 0 8px; text-decoration: none; color: var(--ink); }
.phone-sm a:hover { color: var(--accent); }
.phone-lg a { display: inline-block; padding: 4px 0 8px; text-decoration: none; color: var(--ink); }
.phone-lg a:hover { color: var(--accent); }
address { font-style: normal; color: var(--ink-dim); margin-bottom: 16px; line-height: 1.5; }
.hours { border-collapse: collapse; font-size: 16px; }
.hours th { text-align: left; font-weight: 700; padding: 4px 24px 4px 0; }
.hours td { color: var(--ink-dim); padding: 4px 0; font-variant-numeric: tabular-nums; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 2px solid var(--rule-hard); padding: 28px 0 40px; }
.site-foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
                   justify-content: space-between; color: var(--ink-dim); font-size: 15px; }

/* ── The mobile call bar ────────────────────────────────────────────────────
   The single highest-value element on these sites. Someone whose water heater
   is leaking is on a phone, and the conversion is a call, not a form. */
.callbar { display: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-panel { max-width: 420px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .head-row { gap: 12px; min-height: 60px; }
  .brand { font-size: 17px; line-height: 1.1; }
  /* The number alone is unambiguous on a phone, and the word cost a line. */
  .btn-call .btn-call-label { display: none; }
  .btn-call { padding: 9px 13px; font-size: 14.5px; }
  .grid { column-gap: 0; }
  .hero h1 { max-width: 100%; }
  .card { padding-right: 0; }
  .callbar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 17.5px; padding: 18px 12px;
    box-shadow: 0 -2px 14px rgba(0,0,0,.16);
  }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
