/* ==========================================================================
   TRADES — exhibit styles

   One block per exhibit. Exhibits are the only place a per-trade accent may
   appear; every shared surface stays black, white and safety yellow.

   Each exhibit is the tradesman's CUSTOMER's screen. He is watching over her
   shoulder — not "look what we can build", but "look what she'd do with this,
   and what it puts in your calendar."
   ========================================================================== */

/* --------------------------------------------------------------------------
   ENQUIRY — the generic one. Homepage hero.

   Not tied to a trade, because the homepage greets all of them. It shows the
   machine itself: an enquiry arrives, gets routed, gets an answer, and turns
   into a booking without anyone waiting on a callback.
   -------------------------------------------------------------------------- */
.xq { min-height: 340px; display: grid; }
@media (min-width: 620px) { .xq { min-height: 392px; } }
.xq-panel { padding: 1.4rem 1.2rem; display: flex; flex-direction: column; justify-content: center; gap: .85rem; }
.xq-panel[hidden] { display: none; }

/* .xq-phone labels the customer's screen in the simulation. .xq-kicker
   names the SUBJECT of a question — same type, different job. */
.xq-phone, .xq-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.xq-q {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.3rem, 1rem + 1.7vw, 1.75rem); line-height: 1.18; letter-spacing: -.015em;
}
.xq-sub { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

.xq-opts { display: grid; gap: .55rem; margin-top: .2rem; }
.xq-opt {
  display: block; width: 100%; min-height: 56px; padding: .8rem 1rem; text-align: left;
  border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--ground);
  cursor: pointer; transition: background .16s, transform .14s var(--ease);
}
.xq-opt:hover { background: var(--hi); transform: translateY(-2px); }
.xq-opt b { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.xq-opt span { display: block; font-size: .85rem; color: var(--ink-3); }
.xq-opt:hover span { color: var(--on-hi); }

/* Answer panels. Yellow ground, black type — 13:1, and the same language as
   the tape. No third colour enters the system. */
.xq-answer { background: var(--hi); color: var(--on-hi); }
.xq-answer .xq-q, .xq-answer .xq-sub { color: var(--on-hi); }
.xq-answer .xq-sub { opacity: .82; }
.xq-live { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.xq-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--on-hi); animation: xqpulse 1.3s infinite; }
@keyframes xqpulse { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .xq-live i { animation: none; opacity: 1; } }

.xq-big {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(1.9rem, 1.1rem + 3.3vw, 2.8rem); color: var(--on-hi);
  text-decoration: none; display: block;
}
.xq-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .9rem; }
.xq-meta b { font-variant-numeric: tabular-nums; }

/* The reply she gets. A plate on the yellow, so it reads as a separate
   surface without introducing a colour. */
.xq-msg {
  background: var(--ground); border: 2px solid var(--on-hi); border-radius: var(--r-sm);
  padding: .8rem .9rem; font-size: .92rem; line-height: 1.45; color: var(--ink-2);
}
.xq-msg b { color: var(--ink); }
.xq-stamp { display: block; margin-top: .4rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.xq-back {
  align-self: flex-start; margin-top: .1rem; background: none; border: 0; cursor: pointer;
  color: var(--on-hi); font-size: .87rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: .4rem 0;
}

/* --------------------------------------------------------------------------
   REPAINT — painters only.

   Kept off the homepage on purpose: five paint swatches in the hero put a
   spread of colour in front of a visitor before anything else, which fights
   the two-colour system everywhere else. On a painter's page colour IS the
   product, so it belongs there and nowhere else.
   -------------------------------------------------------------------------- */
.xr-stage {
  position: relative; user-select: none; touch-action: pan-y; cursor: ew-resize;
  aspect-ratio: 4 / 3; background: #D8CFC0;
}
@media (min-width: 620px) { .xr-stage { aspect-ratio: 16 / 11; } }
/* Each layer must be a real, full-size box. A bare wrapper around an
   absolutely-positioned SVG collapses to zero height, and a clip-path on a
   zero-height box clips the whole layer away. */
.xr-layer { position: absolute; inset: 0; }
.xr-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The painted layer sits to the RIGHT of the handle, so the slider reads
   before-on-the-left like every other comparison slider. */
.xr-after { clip-path: inset(0 0 0 var(--wipe, 46%)); }
.xr-hand {
  position: absolute; top: 0; bottom: 0; left: var(--wipe, 46%); width: 3px;
  background: #fff; box-shadow: 0 0 0 1px rgba(17,19,21,.3); transform: translateX(-1px);
  pointer-events: none;
}
.xr-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink);
}
.xr-knob svg { position: static; width: 24px; height: 24px; }
.xr-tag {
  position: absolute; bottom: .7rem; font-size: .67rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--ink);
  padding: .36rem .65rem; border-radius: 3px; border: 1px solid var(--ink); pointer-events: none;
}
.xr-tag.is-a { left: .7rem; }
.xr-tag.is-b { right: .7rem; }

.xr-swatches { display: flex; flex-wrap: wrap; gap: .45rem; padding: .8rem; background: var(--ground); border-top: 1px solid var(--rule); }
.xr-sw {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .45rem .85rem .45rem .5rem; border: 2px solid var(--rule); border-radius: var(--r-sm);
  background: transparent; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.xr-sw[aria-pressed="true"] { border-color: var(--ink); background: var(--ground-2); }
.xr-sw i { width: 20px; height: 20px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(17,19,21,.22); }

/* --- Enquiry: capture + grading ------------------------------------------
   The three lanes are graded without adding a colour. Hazard tape for
   URGENT, solid yellow for PRIORITY, plain outline for JUST BROWSING — a
   three-step hierarchy built from the two colours already in the system.
   -------------------------------------------------------------------------- */
.xq-field { display: block; margin-bottom: .6rem; }
.xq-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.xq-field input {
  width: 100%; min-height: var(--tap);
  /* 16px or iOS Safari zooms the page on focus and the layout jumps. */
  font-size: 16px; padding: .7rem .85rem;
  border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--ground);
}
.xq-field input:focus { outline: none; box-shadow: 0 0 0 4px var(--hi); }
.xq-send { width: 100%; }
.xq-note { font-size: .82rem; color: var(--ink-3); }

/* His phone. The payoff panel — what the tradesman actually receives. */
.xq-lead { background: var(--ground); border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.xq-lead-top {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .5rem .7rem; border-bottom: 2px solid var(--ink);
}
.xq-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .28em .6em; border-radius: 3px; color: var(--on-hi); background: var(--hi);
}
/* Three steps of urgency out of two colours: inverted, solid, outline.
   The tape ring tried first was too subtle to separate urgent from priority
   at tag size. */
.xq-tag.is-urgent   { background: var(--ink); color: var(--hi); }
.xq-tag.is-browsing { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); color: var(--ink-3); }
.xq-when { margin-left: auto; font-size: .74rem; color: var(--ink-3); }
.xq-lead-body { padding: .7rem; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.xq-lead-body b { color: var(--ink); }
.xq-lead-row { display: block; }
.xq-lead-row + .xq-lead-row { margin-top: .3rem; }
.xq-acts { display: flex; gap: .4rem; padding: 0 .7rem .7rem; flex-wrap: wrap; }
.xq-act {
  flex: 1 1 auto; min-height: 42px; padding: .5rem .8rem; border-radius: var(--r-sm);
  border: 2px solid var(--ink); background: var(--ground); color: var(--ink);
  font-size: .86rem; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.xq-act.is-primary { background: var(--hi); }
