/* bradcity skin — brad_city_service (see backend/bradcity_renderer.py).
   Palette tokens (--accent/--accent-dark/--base/--surface/--text/
   --text-muted/--border) are set inline in page.html's <head> from the
   property's brand palette or DEFAULT_PALETTE — this file only consumes
   them. One fixed light palette, no dark-mode variant: these are ordinary
   public marketing sites for an end customer's business, not a themed
   app UI — every other skin in backend/templates/ ships one fixed look
   the same way. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
p { margin: 0 0 1em; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 24px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 19px; text-decoration: none; color: var(--text); margin-right: auto; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--text-muted); }
.site-nav a:hover { color: var(--accent); }
.call-btn {
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.call-btn:hover { background: var(--accent-dark); }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--surface), var(--base)); }
.hero-inner { max-width: 780px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.hero-dek { font-size: 18px; color: var(--text-muted); max-width: 62ch; }
.cta-btn {
  display: inline-block; margin-top: 8px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 14px 28px; border-radius: 10px;
}
.cta-btn:hover { background: var(--accent-dark); }

.page-hero { padding: 48px 0 12px; }

/* ---- stats band ---- */
.stats-band { background: var(--text); color: #fff; padding: 28px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; text-align: center; }
.stat-n { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-l { display: block; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; margin-top: 2px; }

/* ---- sections ---- */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section.narrow .wrap { max-width: 760px; }

.prose p { color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.2em; }

.benefits, .process { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 10px; }
.benefits li, .process li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 15px;
}
.process { counter-reset: step; }
.process li { position: relative; padding-left: 44px; }
.process li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---- card grid (services / cities with an image slot) ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card-title { padding: 14px 16px 4px; font-weight: 700; font-size: 15.5px; }
.card-sub { padding: 0 16px 14px; font-size: 12.5px; color: var(--text-muted); }

/* ---- chip grid (plain text link lists — cities/services cross-links) ---- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; background: var(--base); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---- CTA band ---- */
.cta-band { background: var(--accent); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-inner .cta-btn { background: #fff; color: var(--accent-dark); }
.cta-inner .cta-btn:hover { background: var(--base); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0 80px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; margin: 0 0 4px; }
.footer-line { color: var(--text-muted); font-size: 14px; margin: 0 0 6px; }
.footer-tel { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; align-content: flex-start; }
.footer-nav a { text-decoration: none; font-size: 14px; color: var(--text-muted); font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }

/* ---- mobile call bar ---- */
.mobile-call { display: none; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .mobile-call {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 15px;
    padding: 14px; text-decoration: none;
  }
  .site-footer { padding-bottom: 88px; }
}
