/* ContractorSiteCrew client template. Theme colors come from --primary/--accent set per client. */
:root {
  --primary: #0b4f8a;
  --accent: #f2a900;
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 10px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 64px; /* room for the mobile call bar */
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.preview-bar {
  background: #111827; color: #f9fafb; font-size: .9rem; text-align: center; padding: 8px 16px;
}
.preview-bar a { color: #fcd34d; margin-left: 6px; }
.emergency-bar { background: #b91c1c; color: #fff; text-align: center; font-weight: 600; padding: 6px 16px; font-size: .95rem; }
.emergency-bar a { color: #fff; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius); font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-call { background: var(--primary); color: #fff; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #111; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { background: var(--primary); background-image: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0)); color: #fff; padding: 48px 0 40px; }
.hero a:not(.btn) { color: #fff; }
.hero-sm { padding: 32px 0; }
/* Client home hero: the client's stock or own photo (--hero-lg/--hero-sm, set in the layout) under
   a wash of their primary color, solid on the left where the text sits. */
.hero.has-photo {
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 96%, #000) 0%, color-mix(in srgb, var(--primary) 86%, transparent) 50%, color-mix(in srgb, var(--primary) 25%, transparent) 100%),
    var(--hero-lg);
  background-size: cover; background-position: center;
  padding: 64px 0 56px;
}
.hero.has-photo h1, .hero.has-photo .lede, .hero.has-photo .rating { text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 700; opacity: .9; margin-bottom: .4em; }
.lede { font-size: 1.15rem; max-width: 640px; opacity: .95; }
.rating { font-size: 1.05rem; }
.stars { color: var(--accent); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.badges { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }

.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.card p { color: var(--muted); margin-bottom: .6em; }
.card .more { color: var(--primary); font-weight: 600; font-size: .95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.area-list { columns: 2; padding-left: 1.1em; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; padding: 4px 24px 4px 0; font-weight: 600; }
.hours td { padding: 4px 0; }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: .3em; }
.link-list { padding-left: 1.2em; }

.quote { background: var(--bg-alt); }
.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%; padding: 12px; font: inherit; border: 1px solid #b9c3cf; border-radius: 8px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
.has-error input, .has-error textarea { border-color: #b91c1c; }
.field-error { color: #b91c1c; font-size: .9rem; margin: 4px 0 0; }
.notice { background: #fff7e0; border: 1px solid #f2d27a; padding: 10px 14px; border-radius: 8px; }
.notice.error { background: #fde8e8; border-color: #f0a3a3; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { background: #111827; color: #d1d5db; padding: 32px 0 8px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.credit { font-size: .85rem; color: #9ca3af; margin-top: 24px; }

.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; display: none; text-align: center; padding: 16px;
  background: var(--accent); color: #111; font-weight: 800; text-decoration: none; font-size: 1.1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
@media (max-width: 720px) {
  .call-bar { display: block; }
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .btn-call { padding: 8px 12px; font-size: .9rem; }
  .hero, .hero.has-photo { padding: 32px 0; }
  .hero.has-photo {
    background-image: linear-gradient(color-mix(in srgb, var(--primary) 84%, transparent), color-mix(in srgb, var(--primary) 84%, transparent)), var(--hero-sm);
  }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (min-width: 721px) {
  body { padding-bottom: 0; }
}
