/* ==========================================================================
   Home quote form — one visible, non-stepped enquiry form.
   Home-page only: loaded by index.php after the shared Material stylesheet.
   ========================================================================== */

/* ---------- Hero scene --------------------------------------------------
   The owner's Brisbane verandah artwork runs full-bleed behind the copy and
   the quote card, as it does on brisbanebestmovers.com.au. The pale left wall
   is the text bed; a light surface wash keeps contrast without flattening the
   illustration into a solid colour block. */
.page-home .hero--scene {
  isolation: isolate;
  min-height: clamp(680px, 78vh, 840px);
  padding-block: clamp(42px, 5vw, 70px) clamp(42px, 4.5vw, 64px);
}

.page-home .hero__scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #f4efe2;
  pointer-events: none;
}

.page-home .hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 48%;
}

.page-home .hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 249, 244, .76) 0%, rgba(251, 249, 244, .58) 26%, rgba(251, 249, 244, .16) 52%, rgba(251, 249, 244, 0) 70%),
    linear-gradient(180deg, rgba(251, 249, 244, .1) 0%, rgba(251, 249, 244, 0) 16%, rgba(251, 249, 244, 0) 74%, var(--surface) 100%);
}

/* The decorative peach circle belonged to the old SVG panel. */
.page-home .hero__visual::before {
  content: none;
}

.page-home .hero__visual--quote {
  display: grid;
  align-content: end;
  padding-top: clamp(16px, 4vw, 54px);
}

/* Opaque Material surface, matching the quote page card language. */
.home-quote-card {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--outline-variant);
  border-radius: 30px;
  background: var(--surface-lowest);
  box-shadow: var(--shadow-3);
}

/* The shared enhancement layer draws a multi-colour bar that reads as a
   two-step flow. This form is deliberately a single step, so keep the card
   edge quiet rather than implying a process that no longer exists. */
.page-home .home-quote-card::before {
  content: none;
}

.home-quote-card__head {
  margin-bottom: 18px;
}

.home-quote-card__head .eyebrow {
  margin-bottom: 7px;
  font-size: 10.5px;
}

.home-quote-card__head h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.home-quote-card__lede {
  margin-top: 7px;
  color: var(--on-surface-variant);
  font-size: 12.5px;
  line-height: 1.45;
}

.home-quote-card__lede .req {
  color: var(--tertiary);
  font-weight: 800;
}

.home-quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

.home-quote-form .field {
  gap: 4px;
}

.home-quote-form .field label {
  font-size: 12px;
  line-height: 1.3;
}

.home-quote-form .field label .req {
  color: var(--tertiary);
}

.home-quote-form .field input {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-low);
  font-size: 15px;
}

.home-quote-form .field__hint {
  font-size: 11px;
  line-height: 1.35;
}

.home-quote-form .field-error {
  display: none;
  margin-top: 5px;
  color: var(--error);
  font-size: 11.5px;
  line-height: 1.4;
}

.home-quote-form .field-error.show {
  display: block;
}

.home-quote-form .field input.invalid {
  border-color: var(--error);
}

.home-quote-form .hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.home-quote-form__foot {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.home-quote-form__foot .btn {
  width: 100%;
  min-height: 52px;
}

/* Busy state while the native POST is in flight. */
.home-quote-form__foot .btn[disabled] {
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
  color: var(--on-surface-variant);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.home-quote-form__foot .form-note {
  font-size: 11px;
  line-height: 1.45;
}

.home-quote-form__foot .form-note a {
  font-weight: 650;
}

.home-quote-form__foot .form-status {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.home-quote-form__foot .form-status strong {
  font-size: 12.5px;
}

/* ---------- Homepage image storytelling --------------------------------- */

/* The feature card carries the live site's Queenslander artwork. */
.page-home .service-card__art {
  position: relative;
}

.page-home .area-band__media figcaption,
.page-home .process-art figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-1);
  color: var(--on-surface-variant);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .01em;
}

.page-home .service-card__art img {
  display: block;
}

/* Process: artwork beside a single column of steps, matching the live
   site's "your move, step by step" composition. */
.page-home .process-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: stretch;
  margin-top: clamp(24px, 3vw, 38px);
}

.page-home .process-art {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  border-radius: 38px 38px 12px 38px;
  background: var(--surface-low);
  box-shadow: var(--shadow-2);
}

.page-home .process-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.page-home .steps--side {
  grid-template-columns: 1fr;
  gap: 0;
}

.page-home .steps--side .step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
  align-content: start;
  padding-block: 20px;
  border-top: 1px solid var(--outline-variant);
}

.page-home .steps--side .step::before {
  width: 48px;
}

.page-home .steps--side .step:first-child {
  padding-top: 6px;
  border-top: 0;
}

.page-home .steps--side .step:first-child::before {
  display: none;
}

.page-home .steps--side .step__num {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  margin: 2px 0 0;
  font-size: 15px;
}

.page-home .steps--side .step h3 {
  font-size: 21px;
  margin-bottom: 5px;
}

.page-home .steps--side .step p {
  max-width: 48ch;
  font-size: 15px;
}

.page-home .steps--side .step__link {
  margin-top: 10px;
}

/* Service-area band: the route illustration fills the left plate. */
.page-home .area-band--visual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
}

.page-home .area-band__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface-lowest);
  box-shadow: var(--shadow-2);
}

.page-home .area-band__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .area-band__media figcaption {
  left: 14px;
  bottom: 14px;
}

.page-home .area-band--visual .area-chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Fleet cards use the live site's watercolour truck profiles. */
.page-home .truck-card__art {
  overflow: hidden;
  aspect-ratio: 1000 / 440;
  margin: -6px 0 2px;
  border-radius: 16px;
  background: #eef3f5;
}

.page-home .truck-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tablet: the form needs the full width, so let the hero stack early. */
@media (max-width: 980px) {
  .page-home .hero--scene {
    min-height: 0;
    padding-top: 34px;
  }

  .page-home .hero__scene {
    inset: 0 0 auto;
    height: clamp(500px, 74vw, 630px);
  }

  .page-home .hero__scene img {
    object-position: 62% 44%;
  }

  .page-home .hero__scene::after {
    background: linear-gradient(180deg, rgba(251, 249, 244, .12) 0%, rgba(251, 249, 244, .06) 40%, rgba(251, 249, 244, .72) 82%, rgba(251, 249, 244, .98) 100%);
  }

  .page-home .hero__visual--quote {
    align-content: start;
    padding-top: 0;
  }

  .page-home .hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .page-home .hero__visual--quote {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .page-home .home-quote-card {
    margin: 20px 0 0;
  }

  .page-home .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-home .process-art {
    max-width: 620px;
  }

  .page-home .process-art img {
    height: auto;
    min-height: 0;
    aspect-ratio: 12 / 7;
  }

  .page-home .area-band--visual {
    grid-template-columns: 1fr;
  }

  .page-home .area-band__media {
    max-width: 620px;
  }

  .page-home .area-band--visual .area-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phone: single-column fields keep labels and 48px targets intact. */
@media (max-width: 760px) {
  .page-home .hero__scene {
    height: clamp(540px, 128vw, 640px);
  }

  .page-home .hero__scene img {
    object-position: 60% 42%;
  }

  .page-home .home-quote-card {
    margin: 16px 0 0;
    padding: 18px;
    border-radius: 24px;
  }

  .home-quote-card__head h2 {
    font-size: 1.55rem;
  }

  .home-quote-form__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-quote-form .field--full {
    grid-column: auto;
  }

  .home-quote-form .field input {
    font-size: 16px;
  }

  .page-home .process-art {
    border-radius: 28px 28px 10px 28px;
  }

  .page-home .steps--side .step {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    padding-block: 17px;
  }

  .page-home .steps--side .step__num {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .page-home .area-band--visual {
    padding: 22px;
    border-radius: 30px;
  }

  .page-home .area-band__media {
    border-radius: 24px;
  }

  .page-home .area-band--visual .area-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .area-band--visual .chip {
    gap: 6px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .page-home .truck-card__art {
    margin: -4px 0 0;
  }
}

@media (max-width: 520px) {
  .page-home .home-quote-card {
    padding: 16px 14px;
  }

  .home-quote-card__lede {
    font-size: 12px;
  }
}

@media (prefers-contrast: more) {
  .home-quote-card {
    border: 2px solid var(--outline);
  }

  .home-quote-form__foot .btn[disabled] {
    border: 2px solid var(--outline);
  }
}
