/* Buy a Home — aligned with spec pages */

/* ——— Hero ——— */
.buy-house-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.buy-house-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.buy-house-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.12) 38%,
    rgba(255, 255, 255, 0.55) 82%,
    #ffffff 100%
  );
}

.buy-house-hero__inner,
.buy-house-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 7rem 2rem 4rem;
  text-align: center;
  margin: 0 auto;
}

.buy-house-hero .spec-kicker,
.buy-house-hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.85rem;
}

.buy-house-hero-title,
.buy-house-hero__title {
  font-family: 'Alliance No.2', 'Alliance 2.0', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #fff;
  max-width: none;
}

.buy-house-hero__lead {
  max-width: 58ch;
  margin: 0 auto 1.75rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.buy-house-hero__cta {
  display: inline-flex;
}

/* ——— Service band ——— */
.buy-service {
  background: #fff;
}

.buy-service .spec-scenario:last-of-type {
  border-bottom: 0;
}

.spec-scenario--reverse {
  direction: rtl;
}

.spec-scenario--reverse > * {
  direction: ltr;
}

.buy-service__img--partners img {
  object-position: center 35%;
}

.buy-service__cta {
  margin-top: 2.5rem;
  gap: 0.65rem 1rem;
}

.buy-service__cta .offers-actions__sep {
  font-size: 0.85rem;
  font-weight: 300;
  color: #999;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.buy-call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  padding-bottom: 0.15rem;
  color: #4a4640;
  border-bottom: 1px solid rgba(6, 40, 28, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.buy-call-link:hover {
  color: #06281C;
  border-bottom-color: #06281C;
}

/* ——— Contact form ——— */
.buy-contact {
  background: #f7f5f0;
}

.buy-contact .spec-form {
  max-width: 820px;
  margin: 0 auto;
}

.buy-contact .spec-form-group input,
.buy-contact .spec-form-group select,
.buy-contact .spec-form-group textarea {
  background-color: transparent !important;
}

.buy-contact .spec-form-group input.lg-underline-field,
.buy-contact .spec-form-group select.lg-underline-field,
.buy-contact .spec-form-group textarea.lg-underline-field {
  background-image:
    linear-gradient(var(--lg-field-line), var(--lg-field-line)),
    linear-gradient(var(--lg-field-line-focus), var(--lg-field-line-focus)) !important;
  background-size: 100% 1px, var(--lg-fill, 0%) 2px !important;
  background-position: 0 100%, 0 100% !important;
  background-repeat: no-repeat !important;
}

.buy-contact .spec-form-actions {
  justify-content: center;
  margin-top: 0.5rem;
}

.buy-form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.buy-form-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.buy-form-consent label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.buy-form-consent a {
  color: #06281C;
  text-decoration: underline;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .spec-scenario--reverse {
    direction: ltr;
  }
}

@media (max-width: 720px) {
  .buy-house-hero__inner,
  .buy-house-hero-content {
    padding: 6.5rem 1.25rem 3rem;
  }

  .buy-service__cta {
    flex-direction: column;
    align-items: center;
  }

  .buy-service__cta .spec-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
