/* SMB Pipeline Batch 001 — shared trade one-pager kit
   Mobile-first, honest, conversion-oriented. en-ZA. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #5a6270;
  --border: #e2e5eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(26, 29, 35, 0.08), 0 8px 24px rgba(26, 29, 35, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 42rem;
  --topbar-h: 3.5rem;
  /* defaults = electrician navy/amber */
  --brand: #1e3a5f;
  --brand-2: #c47a1a;
  --brand-soft: #e8eef5;
  --cta: #1e3a5f;
  --cta-text: #ffffff;
  --wa: #128c7e;
  --accent-line: #c47a1a;
}

/* Electrician variants */
.theme-elec-navy {
  --brand: #1e3a5f;
  --brand-2: #c47a1a;
  --brand-soft: #e8eef5;
  --cta: #1e3a5f;
  --accent-line: #c47a1a;
}
.theme-elec-slate {
  --brand: #243447;
  --brand-2: #d97706;
  --brand-soft: #eef2f6;
  --cta: #243447;
  --accent-line: #d97706;
}
.theme-elec-ink {
  --brand: #0f2744;
  --brand-2: #b45309;
  --brand-soft: #e6edf5;
  --cta: #0f2744;
  --accent-line: #b45309;
}
.theme-elec-steel {
  --brand: #1a365d;
  --brand-2: #eab308;
  --brand-soft: #ebf0f7;
  --cta: #1a365d;
  --accent-line: #eab308;
}
.theme-elec-deep {
  --brand: #172554;
  --brand-2: #f59e0b;
  --brand-soft: #e8eefc;
  --cta: #172554;
  --accent-line: #f59e0b;
}

/* Plumber variants */
.theme-plumb-teal {
  --brand: #0f4c5c;
  --brand-2: #0d9488;
  --brand-soft: #e6f4f4;
  --cta: #0f4c5c;
  --accent-line: #0d9488;
  --wa: #128c7e;
}
.theme-plumb-blue {
  --brand: #0c4a6e;
  --brand-2: #0284c7;
  --brand-soft: #e8f4fb;
  --cta: #0c4a6e;
  --accent-line: #0284c7;
}
.theme-plumb-ocean {
  --brand: #155e75;
  --brand-2: #06b6d4;
  --brand-soft: #e7f6f9;
  --cta: #155e75;
  --accent-line: #06b6d4;
}
.theme-plumb-navy {
  --brand: #164e63;
  --brand-2: #14b8a6;
  --brand-soft: #e8f5f4;
  --cta: #164e63;
  --accent-line: #14b8a6;
}
.theme-plumb-slate {
  --brand: #1e3a4c;
  --brand-2: #0891b2;
  --brand-soft: #eaf3f7;
  --cta: #1e3a4c;
  --accent-line: #0891b2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }

/* DEMO banner — required on every page */
.demo-banner {
  background: #7c2d12;
  color: #fff7ed;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.demo-banner a { color: #fed7aa; }

/* Top bar */
.topbar {
  position: sticky;
  top: 2.1rem; /* below demo banner */
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  min-height: var(--topbar-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.topbar-brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--brand-soft);
}
.topbar-brand .mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.topbar-name {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-call {
  background: var(--cta);
  color: var(--cta-text);
}
.btn-call:hover { filter: brightness(1.08); color: var(--cta-text); }
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover { filter: brightness(1.08); color: #fff; }
.btn-email {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--border);
}
.btn-email:hover { color: var(--brand); background: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border);
}
.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 0.9375rem;
  width: 100%;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  /* Extra top padding so sticky demo banner + topbar don't clip the H1 */
  padding: 2.75rem 0 2rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-2);
  margin-bottom: 0.5rem;
}
.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-meta strong { color: var(--text); font-weight: 650; }
.hero-visual {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-soft);
  aspect-ratio: 16 / 10;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual.logo-hero {
  aspect-ratio: auto;
  padding: 2rem;
  display: grid;
  place-items: center;
}
.hero-visual.logo-hero img {
  max-height: 6rem;
  width: auto;
  object-fit: contain;
}
.hero-solid {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, var(--brand-2)) 100%);
  color: #fff;
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-solid .solid-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}
.hero-solid .solid-name {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

/* Sections */
section {
  padding: 2rem 0;
}
section + section {
  border-top: 1px solid var(--border);
}
.section-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.section-sub {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.services li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent-line);
  font-size: 0.95rem;
}
.services li strong {
  display: block;
  color: var(--brand);
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}
.services li span {
  color: var(--muted);
  font-size: 0.875rem;
}

.grid-2 {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 520px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hero-cta .btn-lg { width: auto; flex: 1; min-width: 10rem; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--brand);
}
.card p, .card ul {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card ul {
  padding-left: 1.1rem;
}
.card a { font-weight: 600; word-break: break-word; }

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--text); font-weight: 600; }
.hours-list .time { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--brand-soft);
}
.gallery.gallery-3 {
  grid-template-columns: 1fr 1fr;
}
.gallery.gallery-3 img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.proof {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}
.proof-stat {
  font-size: 1.5rem;
  font-weight: 750;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.proof-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.proof a { font-weight: 650; }

.review-shots {
  display: grid;
  gap: 0.65rem;
}
.review-shots img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 2rem 0;
  border-top: none;
}
.cta-band .section-title { color: #fff; }
.cta-band .section-sub { color: rgba(255,255,255,0.82); }
.cta-band .btn-call {
  background: #fff;
  color: var(--brand);
}
.cta-band .btn-wa { background: var(--wa); }
.cta-band .btn-email {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
@media (min-width: 520px) {
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-actions .btn-lg { width: auto; flex: 1; }
}

.soft-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

footer.site-foot {
  padding: 1.5rem 0 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
footer.site-foot a { color: var(--muted); }

/* Index page */
.index-body { background: #f0f2f5; }
.index-header {
  background: #1a1d23;
  color: #fff;
  padding: 2rem 0 1.5rem;
}
.index-header h1 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.index-header p { margin: 0; opacity: 0.8; font-size: 0.95rem; }
.demo-grid {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0 2.5rem;
}
.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow);
  color: inherit;
}
.demo-card .badge {
  display: inline-block;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}
.demo-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #1a1d23;
}
.demo-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.demo-card .trade-tag {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
@media (min-width: 640px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
}

.mention-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.mention-list li { margin-bottom: 0.25rem; }
