/* Palette: the web-builder sets these from assets-needed.md */
:root {
  --primary: #1f6feb;
  --primary-dark: #174ea6;
  --accent: #f2a541;
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --radius: 10px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primary); }

.demo-banner { background: #222; color: #fff; text-align: center; font-size: 14px; padding: 6px 16px; }

.site-header { border-bottom: 1px solid #eee; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.logo { font-weight: 700; font-size: 20px; }
nav a { margin-left: 16px; text-decoration: none; color: var(--text); }

/* Hero: uses assets/hero.jpg if present, otherwise the gradient fallback shows */
.hero { color: #fff; padding: 72px 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), var(--hero-img), linear-gradient(135deg, var(--primary), var(--primary-dark)); background-size: cover; background-position: center; }
.hero h1 { font-size: clamp(28px, 6vw, 48px); margin: 0 0 8px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.btn { display: inline-block; background: var(--accent); color: #111; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.btn-alt { background: #25d366; }

section { padding: 40px 0; }
section.wrap { padding-top: 40px; padding-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid #eee; border-radius: var(--radius); padding: 16px; }
.card h3 { margin-top: 0; }

footer { padding: 24px 16px; color: var(--muted); border-top: 1px solid #eee; }

/* Concept palette for the plumber example */
:root { --primary: #0b5cad; --primary-dark: #073b70; --accent: #ffb703; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; opacity: .95; }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.about p { max-width: 720px; }
