/* AB24 — homepage-specific composition */

/* =========================================================
   Hero + property search
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(5, 14, 31, 0.92) 0%,
    rgba(7, 28, 60, 0.72) 32%,
    rgba(7, 28, 60, 0.28) 58%,
    rgba(7, 28, 60, 0.05) 78%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: var(--space-3xl) var(--space-2xl);
}

.hero__content .eyebrow {
  color: var(--ab24-blue-400);
}

.hero__title {
  font-size: clamp(1.9rem, 2.2vw + 0.8rem, 2.5rem);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-block: var(--space-sm);
  color: var(--color-text-inverse);
}

.hero__subhead {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--ab24-blue-400);
  margin-bottom: var(--space-sm);
}

.hero__desc {
  font-size: var(--fs-lg);
  color: var(--color-text-inverse-muted);
  max-width: 34rem;
  margin-bottom: var(--space-lg);
}

/* Search widget anchored to the bottom edge of the hero — pulled up less
   than the hero's own bottom padding, so there's still breathing room
   between the CTA row and the card instead of the two touching. */
.hero__search-anchor {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--space-xl) * -1);
}

@media (max-width: 1100px) {
  .hero__search-anchor {
    margin-top: calc(var(--space-lg) * -1);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--space-2xl);
  }

  .hero__media img {
    object-position: 68% center;
  }

  .hero__content {
    padding-block: var(--space-2xl) var(--space-lg);
  }

  .hero__title {
    font-size: clamp(1.15rem, 6vw, 1.6rem);
  }

  .hero__desc {
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.94);
  }

  .hero__search-anchor {
    margin-top: var(--space-lg);
  }
}

/* =========================================================
   Trust bar spacing when it directly follows the hero search
   ========================================================= */
.trust-bar {
  margin-top: var(--space-lg);
}

@media (max-width: 720px) {
  .trust-bar {
    margin-top: var(--space-md);
  }
}

/* =========================================================
   Numbers That Build Confidence
   ========================================================= */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.stat__icon {
  display: inline-flex;
  color: var(--ab24-blue-400);
}

.stat__icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: var(--fs-3xl);
  color: var(--color-text-inverse);
  line-height: 1;
}

.stat__label {
  margin-top: 0.15rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse-muted);
}

/* =========================================================
   Gallery teaser copy alignment
   ========================================================= */
.gallery-teaser__head p.lead {
  max-width: 44rem;
}
