/* ==========================================================================
   Home valuation: a one-screen tool.

   Rebuilt 6 October 2026 at John's direction, after two brochure layouts
   (photo hero, form panel, figures, essays) were rejected. The first screen
   is the ask and nothing else: the question, one line of why, and the
   address field. The rest of the form arrives a step at a time
   (assets/js/steps.js). Without JavaScript every step shows as one plain
   form, styled to read well that way too.

   Every colour, face and measure is a brand token from brand_css_vars().
   ========================================================================== */

.page-valuation { background: var(--c-paper); }

/* --- The tool --------------------------------------------------------------- */

.vtool {
  min-height: calc(100svh - 92px);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 6rem) var(--s-gutter);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--c-paper) 0%, var(--c-paper-alt) 100%);
}
.vtool__inner { width: min(640px, 100%); text-align: center; }

.vtool__title {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.06;
  color: var(--c-ink);
  text-wrap: balance;
}
.vtool__lede {
  margin: 0 auto clamp(2.2rem, 5vh, 3rem);
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-body);
}
.vtool__lede a { color: var(--c-ink); }
.vtool__sig {
  margin: 0 0 0.6rem;
  font-family: var(--f-script, var(--f-display));
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--c-ink);
}
.vtool__alert {
  margin: 0 auto 1.4rem;
  max-width: 48ch;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--c-error);
  background: var(--c-white);
  font-size: 0.9rem;
  text-align: left;
  color: var(--c-ink);
}

.vtool__form { text-align: left; }

/* Steps. Unstepped (no JavaScript) they stack with room between them. */
.vstep { margin: 0 0 2rem; padding: 0; border: 0; min-width: 0; }
.vtool__form.is-stepped .vstep { margin: 0; }
.vtool__form.is-stepped .vstep.is-current { animation: vstep-in .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vstep-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vtool__form.is-stepped .vstep.is-current { animation: none; }
}

.vstep__q {
  display: block;
  width: 100%;
  margin: 0 0 1.4rem;
  padding: 0;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  text-align: center;
  color: var(--c-ink);
}

/* Step one: the address, large, the same pill as the home page search. */
.vstep__address {
  display: flex;
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.8rem;
  box-shadow: 0 14px 44px rgba(1, 38, 57, 0.10);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.vstep__address:focus-within { border-color: var(--c-ink); box-shadow: 0 14px 44px rgba(1, 38, 57, 0.16); }
.vstep__address input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 1rem 0;
  font-family: var(--f-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-ink);
  outline: none;
}
.vstep__address input::placeholder { color: var(--c-muted); font-weight: 400; }
.vstep__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.vstep__go:hover { background: var(--c-slate); transform: translateX(2px); }
.vstep__address.is-bad { border-color: var(--c-error); }

/* Steps two and three: plain fields on the mist. */
.vfield { display: block; margin: 0 0 1.1rem; }
.vfield label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.vfield label span { color: var(--c-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.vfield input,
.vfield textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--s-radius);
  background: var(--c-white);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: border-color .15s ease;
}
.vfield input:focus, .vfield textarea:focus { border-color: var(--c-ink); outline: none; }
.vfield textarea { resize: vertical; min-height: 3.6rem; }
.vfield.is-bad input { border-color: var(--c-error); }
.vfield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.vfield--trap { position: absolute; left: -9999px; }

.vstep__error {
  display: block;
  margin: -0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--c-error);
}
.vstep__address + .vstep__error { margin: 0.8rem 0 0 1.8rem; }

/* Step three: timing as choices rather than a dropdown. */
.vchoices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
}
.vchoice { position: relative; cursor: pointer; }
.vchoice input { position: absolute; opacity: 0; pointer-events: none; }
.vchoice span {
  display: block;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.vchoice:hover span { border-color: var(--c-ink); }
.vchoice input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.vchoice input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.vstep__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.4rem 0 0;
}
.vstep__back {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  font: 500 0.9rem var(--f-body);
  color: var(--c-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vstep__back:hover { color: var(--c-ink); }
/* Unstepped, there is nothing to go back to. */
.vtool__form:not(.is-stepped) [data-back],
.vtool__form:not(.is-stepped) .vstep__nav .btn[data-next],
.vtool__form:not(.is-stepped) .vtool__progress { display: none; }

.vtool__progress {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.vtool__fine {
  margin: 1.2rem auto 0;
  max-width: 46ch;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* Under the tool: her reel and the phone, quietly. */
.vtool__aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin: clamp(2.2rem, 5vh, 3.2rem) 0 0;
  font-size: 0.9rem;
}
.vtool__aside a { color: var(--c-ink); text-underline-offset: 4px; }
.vtool__watch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  font: 500 0.9rem var(--f-body);
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color .18s ease;
}
.vtool__watch:hover { border-color: var(--c-ink); }
.vtool__sep { width: 1px; height: 1.1em; background: var(--c-line); }

/* --- The questions, below the fold ------------------------------------------ */

.vqs { padding: clamp(3.5rem, 8vw, 6rem) var(--s-gutter); background: var(--c-paper); }
.vqs__inner { width: min(760px, 100%); margin: 0 auto; }
.vqs__title {
  margin: 0 0 1.8rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--c-ink);
}
.vqs__item { border-top: 1px solid var(--c-line); }
.vqs__item:last-child { border-bottom: 1px solid var(--c-line); }
.vqs__item summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--c-ink);
}
.vqs__item summary::-webkit-details-marker { display: none; }
.vqs__item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-muted);
  transition: transform .25s ease;
}
.vqs__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.vqs__item p { margin: 0 0 1.1rem; max-width: 62ch; line-height: 1.85; color: var(--c-body); }

@media (max-width: 560px) {
  .vtool__sep { display: none; }
  .vfield-row { grid-template-columns: 1fr; }
  .vstep__address { padding-left: 1.2rem; }
  .vstep__address input { font-size: 1rem; }
}

/* --- Consultation pages (consultation.php), on the same tool ---------------- */

.vchoices__label {
  margin: 1.4rem 0 0.7rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.vchoices__label:first-of-type { margin-top: 0; }
.vagenda {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  counter-reset: agenda;
}
.vagenda li {
  counter-increment: agenda;
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--c-ink);
}
.vagenda li:last-child { border-bottom: 1px solid var(--c-line); }
.vagenda li::before {
  content: counter(agenda);
  min-width: 1.4rem;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-accent-deep);
}
.vagenda__note { margin: 0; line-height: 1.8; color: var(--c-body); }
.vagenda__note a { color: var(--c-ink); text-underline-offset: 4px; }

/* --- The form embedded under another page's own opening ----------------------
   partials/consult-form.php with titled => false (Calinoff Connection). */
.vtool--untitled { min-height: auto; padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.vtool__title--sub { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(1.8rem, 4vh, 2.4rem); }
