/* YourHouseFix house look: warm stone page, white cards, slate for weight, brick for the one
   thing we want you to press. Palette and fonts from BRAND.md. Used by the static pages
   (search, join, claim, login, logout, app, manage, my-jobs, admin). */

:root {
  --slate: #1f2b36;
  --slate-d: #141d25;
  --brick: #c9502b;
  --brick-d: #a63f20;
  --brick-soft: #fbe9e1;
  --stone: #f4efe7;
  --paper: #faf7f1;
  --card: #ffffff;
  --ink: #1c2128;
  --muted: #5f6670;
  --line: #e3dccf;
  --verified: #1f7a4a;
  --verified-soft: #e6f4ea;
  --wait: #8a6a00;
  --wait-soft: #fff6e0;
  --problem: #b03030;
  --problem-soft: #fdecea;
  --sky: #2f6fb3;

  /* older names still used by some static pages, mapped onto the new palette */
  --accent: var(--brick);
  --accent-dark: var(--brick-d);
  --accent-ink: #ffffff;
  --green: var(--brick);
  --green-d: var(--brick-d);
  --gold: var(--brick);
  --gold-soft: var(--brick-soft);
  --gold-ink: #ffffff;
  --plate: var(--brick);
  --cream: var(--stone);
  --pale: var(--paper);

  --radius: 18px;
  --shadow: 0 14px 34px rgba(28, 33, 40, 0.08);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button { cursor: pointer; font-family: inherit; }

html, body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brick); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.015em; line-height: 1.12; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brick); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
  color: var(--slate); text-decoration: none; letter-spacing: -0.015em;
}
.wordmark .dot { color: var(--brick); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brick); }
.nav-signin {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  background: #fff; font-weight: 600;
}

/* ---------- hero ---------- */
.hero {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; text-align: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.08; color: var(--slate);
}
.hero-sub {
  margin: 18px auto 34px; max-width: 480px;
  color: var(--muted); font-size: 1.08rem;
}

/* the search: postcode plus trade, the one thing on the page */
.find { max-width: 620px; margin: 0 auto; }
.find-row { display: flex; gap: 10px; margin-top: 14px; }
.find-row input {
  flex: 1 1 auto; min-width: 130px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; padding: 15px 16px; font-size: 1.05rem;
  text-transform: uppercase; outline: none; color: var(--ink); font-family: inherit;
}
.find-row input:focus { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(31, 43, 54, 0.08); }
.find-service {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px 14px; font-size: 1.05rem; color: var(--ink); outline: none; cursor: pointer;
  flex: 0 0 auto; font-family: inherit;
}
.find-service:focus { border-color: var(--slate); }
.btn-go {
  border: 0; border-radius: 14px; cursor: pointer;
  background: var(--brick); color: #fff;
  font-size: 1.05rem; font-weight: 700; padding: 14px 22px;
  transition: background 0.15s ease;
}
.btn-go:hover { background: var(--brick-d); }
.find-msg { min-height: 1.4em; margin-top: 10px; color: var(--brick); font-size: 0.95rem; }

.hero-trust { margin-top: 26px; color: var(--muted); font-size: 0.9rem; }

/* trust strip: plain reassurance in pills */
.trust-strip {
  max-width: 820px; margin: 34px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 0.88rem; color: var(--ink); font-weight: 500;
}
.trust-item .tick { color: var(--verified); font-weight: 800; }
.trust-item .count { color: var(--brick-d); background: var(--brick-soft); border-radius: 6px; padding: 1px 7px; font-weight: 700; }

/* ---------- steps ---------- */
.steps {
  max-width: 1000px; margin: 30px auto 60px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; min-width: 0; box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--slate); color: #fff; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 10px;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- buttons (shared) ---------- */
.btn, .btn-primary {
  display: inline-block; background: var(--brick); color: #fff; text-decoration: none;
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 0.98rem; cursor: pointer;
  font-family: inherit; transition: background 0.15s ease;
}
.btn:hover, .btn-primary:hover { background: var(--brick-d); }
.btn-slate { background: var(--slate); }
.btn-slate:hover { background: var(--slate-d); }
.btn-accent { background: var(--brick); color: #fff; }
.btn-accent:hover { background: var(--brick-d); }
.btn-sm { padding: 8px 12px; font-size: 0.88rem; border-radius: 10px; }
.btn-ghost {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--slate); background: var(--paper); }
.btn-accept { background: var(--verified); color: #fff; }
.btn-accept:hover { background: #165f39; }
.btn-decline { background: #fff; color: var(--problem); border: 1px solid var(--line); }
.btn-decline:hover { background: var(--problem-soft); }
button:disabled, .btn:disabled, .btn-primary:disabled { opacity: 0.6; cursor: default; }

/* ---------- status pills ---------- */
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line);
}
.pill-ok, .st-accepted { background: var(--verified-soft); color: var(--verified); border-color: transparent; }
.pill-wait, .st-pending { background: var(--wait-soft); color: var(--wait); border-color: transparent; }
.pill-problem { background: var(--problem-soft); color: var(--problem); border-color: transparent; }
.pill-info { background: #eaf1fb; color: var(--sky); border-color: transparent; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 26px 24px; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; text-align: left; max-width: 720px; margin: 0 auto 20px; }
.foot-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 8px; font-weight: 800; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 3px 0; }
.foot-col a:hover { color: var(--brick); }
.muted-foot { color: var(--muted); font-size: 0.84rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .find, .hero-trust { animation: rise 0.5s ease both; }
  .hero-sub { animation-delay: 0.08s; }
  .find { animation-delay: 0.16s; }
  .hero-trust { animation-delay: 0.24s; }
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .find-row { flex-direction: column; }
  .btn-go { width: 100%; }
}

/* ---------- results page ---------- */
.muted { color: var(--muted); }
.stars { color: #f5b301; letter-spacing: 1px; }
.btn-book {
  display: inline-block; background: var(--brick); color: #fff; text-decoration: none;
  border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 0.98rem; cursor: pointer;
}
.btn-book:hover { background: var(--brick-d); }
.g-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--slate); color: #fff; border-radius: 5px; padding: 2px 7px; vertical-align: middle;
}
.g-badge-v { background: var(--verified-soft); color: var(--verified); }
.g-badge-founding { background: var(--brick); color: #fff; }
.g-badge-quality { background: #eaf1fb; color: var(--sky); }
.g-badge[title] { cursor: help; }
.rc-legend { margin: 22px 0 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 0.88rem; color: var(--muted); }
.rc-legend strong { display: block; color: var(--ink); margin-bottom: 8px; }
.rc-legend ul { margin: 0; padding: 0; list-style: none; }
.rc-legend li { margin: 7px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rc-legend .g-badge { flex-shrink: 0; }

/* search summary bar (the one slate moment on the results page) */
.search-bar { background: var(--slate); color: #fff; }
.search-bar-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.veh { display: flex; align-items: center; gap: 12px; min-width: 0; }
.veh-plate {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px;
  font-weight: 700; letter-spacing: 0.04em; font-size: 0.95rem; padding: 5px 12px; text-transform: uppercase;
}
.veh-info { font-size: 0.98rem; opacity: 0.96; }
.veh-info .muted { color: rgba(255, 255, 255, 0.7); }
.veh-mot { background: rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 2px 8px; margin-left: 6px; font-size: 0.85rem; }
.edit-form { display: flex; gap: 8px; }
.edit-form select, .edit-form input {
  border: 0; border-radius: 10px; padding: 9px 12px; font-size: 0.95rem; background: #fff; color: var(--ink);
  text-transform: uppercase; font-family: inherit;
}
.edit-form .btn-go { border: 0; border-radius: 10px; background: var(--brick); color: #fff; font-weight: 700; padding: 9px 16px; cursor: pointer; }

/* layout: filters + results */
.results-layout { max-width: 1040px; margin: 0 auto; padding: 22px 22px 60px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.filters { align-self: start; position: sticky; top: 16px; min-width: 0; }
.filter-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.filter-block h3 { font-family: var(--serif); font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; padding: 4px 0; cursor: pointer; }

.results-main { min-width: 0; }
.results-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -0.015em; line-height: 1.12; color: var(--slate); }
.results-sub { color: var(--muted); margin-top: 5px; font-size: 0.98rem; }
.results-list { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.loading { color: var(--muted); padding: 20px 0; }
.results-empty { color: var(--muted); padding: 24px 0; }

/* the listing card */
.rc { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 3px rgba(28, 33, 40, 0.04); transition: box-shadow 0.2s ease; }
.rc:hover { box-shadow: var(--shadow); }
.rc-left { flex: 0 0 auto; }
.rc-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.rc-logo-fallback { display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff; background: var(--slate); }
.rc-mid { flex: 1; min-width: 0; }
.rc-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-title a { color: var(--ink); text-decoration: none; }
.rc-title a:hover { color: var(--brick); }
.rc-addr { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.rc-facts { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.rc-fact { font-size: 0.9rem; }
.rc-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; text-align: right; min-width: 130px; }
.rc-price { line-height: 1.1; }
.rc-price-label { display: block; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.rc-price-val { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--slate); }
.rc-nopay { font-size: 0.76rem; color: var(--muted); }

@media (max-width: 860px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .filter-block { margin-bottom: 0; }
}
@media (max-width: 620px) {
  .filters { grid-template-columns: 1fr; }
  .rc { flex-wrap: wrap; }
  .rc-right { width: 100%; text-align: left; flex-direction: row; justify-content: space-between; align-items: center; }
  .rc-right .btn-book { flex: 0 0 auto; }
  .search-bar-inner { gap: 10px; }
  .edit-form { width: 100%; }
  .edit-form input { flex: 1; min-width: 0; }
}

/* ---------- business page ---------- */
.g-page { max-width: 760px; margin: 0 auto; padding: 20px 20px 60px; }
.claim-bar {
  background: var(--brick-soft); border: 1px solid #f0cdbf; border-radius: var(--radius);
  padding: 14px 16px; font-size: 0.95rem; margin-bottom: 20px;
}
.btn-claim {
  display: inline-block; margin-left: 8px; background: var(--brick); color: #fff;
  text-decoration: none; border-radius: 10px; padding: 7px 14px; font-weight: 700; font-size: 0.9rem;
}
.g-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.015em; color: var(--slate); }
.g-hero-flex { display: flex; gap: 18px; align-items: flex-start; }
.gh-logo-wrap { flex: 0 0 auto; }
.gh-logo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); background: #fff; display: block; }
.gh-logo-fallback { display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: #fff; background: var(--slate); }
.gh-main { flex: 1; min-width: 0; }
.g-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-photo { width: 100%; height: 130px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.reviews-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reviews-score { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; color: var(--slate); }
.faq { padding: 10px 0; border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq p { color: var(--muted); margin-top: 4px; }
.g-hero-meta { color: var(--muted); margin-top: 6px; }
.g-hero-rating { margin-top: 6px; }
.g-hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.g-sec { margin-top: 30px; }
.g-sec h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 12px; }
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.src-note { color: var(--muted); font-size: 0.85rem; margin-top: 8px; font-style: italic; }
.veh-banner {
  background: var(--slate); color: #fff; border-radius: 12px; padding: 12px 16px;
  margin-bottom: 12px; font-size: 1rem;
}
.veh-banner .veh-mot { background: rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 2px 8px; }
.cf-turnstile { margin-bottom: 12px; }
.g-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.g-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.g-map-addr { color: var(--muted); margin: 10px 0; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours-list li:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; }
.book-note { background: var(--brick-soft); border: 1px solid #f0cdbf; border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; color: var(--ink); margin-bottom: 14px; }
.req { color: var(--problem); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.req-hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.book-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; color: var(--muted); min-width: 0; }
.book-form .fl { display: block; }
.book-form label.full { grid-column: 1 / -1; }
.book-form input, .book-form select, .book-form textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 1rem;
  background: #fff; color: var(--ink); outline: none; font-family: inherit;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(31, 43, 54, 0.08); }
.book-form .btn-book { grid-column: 1 / -1; border: 0; cursor: pointer; text-align: center; }
.book-msg { grid-column: 1 / -1; min-height: 1.3em; color: var(--brick); font-size: 0.95rem; }
@media (max-width: 560px) { .book-form { grid-template-columns: 1fr; } }

/* ---------- inline feedback after an action ---------- */
.msg-ok { background: var(--verified-soft); color: var(--verified); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; }
.msg-err { background: var(--problem-soft); color: var(--problem); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; }
.msg-wait { background: var(--paper); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; }

/* checkboxes must never stretch (house CSS gotcha) */
input[type="checkbox"], input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--brick);
}
