/* ============================================================
   HOME VALUATION PAGE
   Layout modeled on davidmagidhomes.com/home-valuation per Candy's
   request (2026-08-31): full-bleed hero with an inline address prompt,
   image+text intro, 3-column explainer grid, a dark mid-page CTA band,
   and two timeline sections (CMA vs. Appraisal; why get one) alternating
   light/dark backgrounds. Content stays Candy's own honest copy — the
   hero's address field isn't a live RPR widget (that's still pending),
   it's a real, functional shortcut into the /contact form with the
   typed address pre-filled (see page-contact.php's ?address= handling).
   ============================================================ */

/* ---- Hero — full-bleed photo + inline address-to-contact form ---- */
.valuation-hero {
  position: relative;
  height: clamp(480px, 46vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.valuation-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.valuation-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.valuation-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  padding-inline: var(--container-pad);
}

.valuation-hero__content .eyebrow {
  color: var(--color-gold-light);
}

.valuation-hero__content h1 {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  color: #fff;
  margin-bottom: var(--space-4);
}

.valuation-hero__content p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.valuation-hero__form {
  display: flex;
  gap: var(--space-3);
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-full);
  padding: var(--space-2);
  max-width: 560px;
  margin-inline: auto;
}

.valuation-hero__form input {
  flex: 1;
  border: none;
  background: none;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.valuation-hero__form input:focus {
  outline: none;
}

.valuation-hero__form button {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .valuation-hero__form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.97);
  }

  .valuation-hero__form button {
    width: 100%;
  }
}

/* ---- "What's Your Property Worth?" — image + text intro ---- */
.valuation-intro-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}

.valuation-intro-cta__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.valuation-intro-cta__text p {
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}

@media (max-width: 800px) {
  .valuation-intro-cta {
    grid-template-columns: 1fr;
  }
}

/* ---- 3-column explainer grid (What is / How calculated / Accuracy) ---- */
.valuation-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-10);
}

.valuation-grid-3__heading {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
}

.valuation-grid-3__text {
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
  font-size: var(--text-sm);
}

/* ---- Timeline sections (CMA/Appraisal; Why It Matters) — a connected
   vertical line with tag + heading + text pairs, alternates light/dark
   background via the wrapping .section--dark. ---- */
.valuation-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.valuation-timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.valuation-timeline__item:last-child {
  border-bottom: 1px solid var(--color-border-light);
}

.valuation-timeline__tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
}

.valuation-timeline__heading {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.valuation-timeline__text {
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
  font-size: var(--text-sm);
}

.valuation-timeline__link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-gold);
  text-decoration: underline;
}

/* Dark-background variant — inherited light text instead of the default
   dark-on-light palette, since .section--dark sets --color-text-inverse
   on the section but these classes hardcode their own colors above. */
.section--dark .valuation-timeline__item {
  border-color: rgba(255, 255, 255, 0.15);
}

.section--dark .valuation-timeline__heading {
  color: #fff;
}

.section--dark .valuation-timeline__text {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .valuation-timeline__link {
  color: var(--color-gold-light);
}

@media (max-width: 640px) {
  .valuation-timeline__item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

