/* ================================
   Valuation — Conversational page
   ================================ */

.header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header::before { opacity: 0 !important; }

.val-main { padding-top: 74px; }

/* ── HERO ─────────────────────── */
.val-top {
  display: flex;
  min-height: 72vh;
}

.val-top-left {
  background: var(--bg);
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(7rem, 12vw, 10rem) clamp(3rem, 6vw, 6rem) clamp(5rem, 8vw, 7rem);
}

.val-top-right {
  position: relative;
  overflow: hidden;
}

.val-top-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.val-top-inner {
  max-width: 520px;
  margin: 0;
}

.val-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.656vw, 88px);
  font-weight: 300;
  line-height: .935;
  letter-spacing: -.2vw;
  color: var(--cream);
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.val-h1 em { font-style: italic; color: var(--gold); letter-spacing: -.2vw; }
.val-h1 .text-wrap {
  display: block;
  overflow: hidden;
  padding: .1em 0;
  margin: -.1em 0;
}

.val-sub {
  font-size: var(--fs-sm);
  color: var(--cream-dim);
  line-height: 1.75;
  max-width: 460px;
  margin: 0;
}

.val-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap var(--fast);
}
.val-hero-cta:hover { gap: .85rem; }

/* ── TRUST STRIP ─────────────── */
.val-trust {
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.val-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.val-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 0 clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.val-trust-num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -.02em;
  line-height: 1;
}

.val-trust-label {
  font-family: var(--sans);
  font-size: var(--fs-2xs);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.val-trust-sep {
  width: 1px;
  height: 2.8rem;
  background: var(--border);
  flex-shrink: 0;
}

/* ── CHAT SECTION ─────────────── */
.val-chat-section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
}

.val-chat-intro {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.val-chat-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.992vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.15vw;
  color: var(--cream);
}

.val-chat-h2 .text-wrap {
  display: block;
  overflow: hidden;
  padding: .1em 0;
  margin: -.1em 0;
}

.val-chat-h2 em {
  font-style: italic;
  color: var(--gold);
}

.val-chat-sub {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--cream-dim);
}

.chat-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* message list */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  height: clamp(320px, 54vh, 500px);
  overflow-y: scroll;
  scrollbar-width: none;
  padding: 2rem 0 .25rem;
  margin-bottom: 1.75rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 14%, black 26%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 14%, black 26%);
}
.chat-messages::-webkit-scrollbar { display: none; }

/* ── Chat progress indicator ─── */
.chat-progress {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.chat-progress-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.chat-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width .4s ease;
  width: 0%;
}
.chat-progress-label {
  font-size: var(--fs-2xs);
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: right;
}

/* individual message row */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  animation: msgIn .45s cubic-bezier(.22,.68,0,1.2) both;
}
.chat-msg--agent { justify-content: flex-start; }
.chat-msg--user  { justify-content: flex-end; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* bubbles */
.chat-bubble {
  max-width: 78%;
  padding: .9rem 1.25rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  border-radius: 2px;
}
.chat-msg--agent .chat-bubble {
  background: rgba(240,235,224,.05);
  color: var(--cream);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0;
}
.chat-msg--user .chat-bubble {
  background: var(--gold);
  color: var(--bg);
  font-weight: 400;
  border-bottom-right-radius: 0;
}

/* typing indicator */
.chat-typing-row {
  display: flex;
  align-items: flex-end;
  animation: msgIn .25s ease both;
}
.chat-typing {
  display: inline-flex;
  gap: .3rem;
  align-items: center;
  padding: .85rem 1.1rem;
  background: rgba(240,235,224,.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0;
}
.chat-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: typeDot .9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typeDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* quick-reply options */
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chat-opt {
  padding: .55rem 1.15rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: .05em;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
  border-radius: 2px;
}
.chat-opt:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.chat-opt.is-selected {
  border-color: var(--gold);
  color: var(--gold);
  pointer-events: none;
}
.chat-opt--send {
  border-color: var(--gold);
  color: var(--gold);
  margin-top: .5rem;
}
.chat-opt--send:hover {
  background: var(--gold);
  color: var(--bg);
}
.chat-opt:disabled { opacity: .5; cursor: default; }

/* text input row */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .55rem;
  transition: border-color var(--fast);
}
.chat-input-row:focus-within { border-color: var(--gold); }

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: max(16px, var(--fs-sm));
  color: var(--cream);
  outline: none;
  min-width: 0;
}
.chat-input::placeholder { color: rgba(240,235,224,.2); }
.chat-input.is-required { animation: shake .3s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

.chat-send-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: .2rem;
  display: flex;
  align-items: center;
  opacity: .4;
  transition: opacity var(--fast);
}
.chat-send-btn:hover,
.chat-input-row:focus-within .chat-send-btn { opacity: 1; }

/* ── Seller testimonial ──────────── */
.val-testi {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}
.val-testi-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.val-testi-quote {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  quotes: none;
}
.val-testi-cite {
  font-family: var(--sans);
  font-size: var(--fs-2xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* skip link */
.chat-skip {
  display: inline-block;
  margin-top: .8rem;
  font-size: var(--fs-2xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--fast);
}
.chat-skip:hover { color: var(--cream-dim); }

.chat-restart-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
}
.chat-restart-btn {
  font-size: var(--fs-2xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  padding: 0 0 2px;
  transition: color var(--fast), border-color var(--fast);
}
.chat-restart-btn:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.chat-restart-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ── Responsive ──────────────── */
@media (max-width: 600px) {
  .val-trust-inner {
    flex-direction: column;
    gap: 1.6rem;
  }
  .val-trust-sep {
    width: 2.5rem;
    height: 1px;
  }
}

/* Google Places autocomplete dropdown */
.pac-container {
  z-index: 99999 !important;
  background: #1a1a14;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  font-family: var(--sans);
}
.pac-item {
  padding: .55rem 1rem;
  font-size: var(--fs-xs);
  color: var(--cream-dim);
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.pac-item:hover,
.pac-item-selected { background: rgba(240,235,224,.06); }
.pac-item-query { color: var(--cream); font-size: var(--fs-xs); }
.pac-matched { color: var(--gold); }
.pac-icon { display: none; }
.pac-logo::after { display: none; }

/* ── Agent avatar ─────────────── */
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.chat-avatar span {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 400;
  color: var(--bg);
  letter-spacing: .04em;
}

/* ── Direct contact strip ─────── */
.val-direct {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 0;
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.val-direct-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
.val-direct-label {
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  color: var(--cream-dim);
}
.val-direct-link {
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  color: var(--cream);
  transition: color var(--fast);
  text-decoration: none;
}
.val-direct-link:hover { color: var(--gold); }
.val-direct-sep {
  color: var(--border);
}

/* ── Trust strip sup ──────────── */
.val-trust-num sup {
  font-size: .45em;
  color: var(--gold);
  vertical-align: super;
}

/* ── WHY SELL WITH ME ─────────── */
.val-why {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
}

.val-why-head {
  text-align: left;
  max-width: 960px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.val-why-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-2xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.val-why-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.992vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.15vw;
  color: var(--cream);
}
.val-why-h2 .text-wrap {
  display: block;
  overflow: hidden;
  padding: .1em 0;
  margin: -.1em 0;
}
.val-why-h2 em {
  font-style: italic;
  color: var(--gold);
}

.val-why-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(3rem, 6vw, 5rem);
}

.val-why-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}

.val-why-item--full {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}
.val-why-item--full .val-why-text {
  color: var(--cream);
}

.val-why-num {
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  color: var(--gold);
  letter-spacing: .12em;
  flex-shrink: 0;
  width: 2rem;
  padding-top: .1em;
}

.val-why-text {
  font-family: var(--sans);
  font-size: var(--fs-md);
  color: var(--cream-dim);
  line-height: 1.65;
  margin: 0;
}

/* ── Mobile ───────────────────── */
@media (max-width: 767px) {
  /* Hero: stack vertically — photo on top, text below */
  .val-top {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .val-top-left {
    order: 2;
    padding: 3.5rem 1.5rem 3rem;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .val-top-right {
    order: 1;
    height: 70vw;
    max-height: 420px;
  }

  .val-top-right img { object-position: center 20%; }

  .val-top-inner {
    max-width: 100%;
    text-align: center;
  }

  .val-sub { margin: 0 auto; }

  /* Why: single column */
  .val-why-list {
    grid-template-columns: 1fr;
  }

  .val-why-item--full {
    max-width: 100%;
  }

  /* Chat window: slightly shorter on small phones */
  .chat-messages { height: clamp(260px, 50vh, 380px); }

  /* Chat section: less vertical padding */
  .val-chat-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
  }

  /* Hero headline — clamp() handles scaling automatically */
  .val-h1 { font-size: clamp(32px, 9vw, 56px); }
}
