/* template-parts/section/homebuyer_features.php */
/* ----------------------------------------------------------
   HOMEBUYER FEATURES  (white bg | px 150px | py 80px)
   "Help homebuyers understand every design choice early"
---------------------------------------------------------- */
.homebuyer-features {
  background-color: var(--color-white);
  padding: var(--section-py) var(--section-px);
}

.homebuyer-features__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.homebuyer-features__intro {
  display: flex;
  align-items: center;
  gap: 64px;
  height: 352px;
}

.homebuyer-features__intro-copy {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.homebuyer-features__heading {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: var(--lh-2xl);
  letter-spacing: -0.2px;
  color: var(--color-text-dark);
}

.homebuyer-features__body {
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text-dark);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.homebuyer-features__intro-image {
  flex: 1 0 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.homebuyer-features__video,
.homebuyer-features__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 2 rows × 3 columns feature grid */
.homebuyer-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hf-card {
  background-color: var(--color-card-bg);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;

  transition: background-color 0.3s ease;
}

.hf-card:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.hf-card__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hf-card__icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hf-card__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

.hf-card__title {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: var(--lh-lg);
  color: var(--color-text-dark);
}

.hf-card__body {
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-md);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 1024px) {
  /* keep 150px horizontal padding, grid stays 3-col */
  .homebuyer-features {
    padding: var(--section-py) var(--section-px);
  }
  .homebuyer-features__heading {
    font-size: 32px;
    line-height: 34px;
    text-align: center;
  }
  .homebuyer-features__intro {
    flex-direction: column;
    height: auto;
    gap: 48px;
  }
  .homebuyer-features__intro-image {
    width: 100%;
    height: 370px;
    flex: none;
  }
  .homebuyer-features__grid {
    gap: 8px;
  }
  .hf-card {
    gap: 8px;
    padding: 30px;
  }
  .hf-card__header {
    gap: 8px;
  }
  .hf-card__title {
    font-size: var(--fs-md);
    line-height: var(--lh-md);
  }
  .hf-card__body {
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
  }
}

@media (max-width: 767.9px) {
  /* override tablet's 150px padding */
  .homebuyer-features {
    padding: var(--section-py) var(--section-px);
  }
  .homebuyer-features__container {
    gap: 24px;
  }
  .homebuyer-features__heading {
    font-size: 24px;
    line-height: 34px;
  }
  .homebuyer-features__intro {
    gap: 24px;
  }
  .homebuyer-features__intro-image {
    height: 217px;
  }
  .homebuyer-features__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hf-card {
    padding: 30px;
    gap: 16px;
  }
  .hf-card__title {
    font-size: var(--fs-md);
    line-height: var(--lh-md);
  }
  .hf-card__body {
    font-size: var(--fs-xs);
    line-height: var(--lh-xs);
  }
}
