/* LJ Realty — Home page (index.ejs). Classes prefixed "hm-".
   The page is wrapped in .svc-page, so it shares tokens and the search/card
   components from services.css. */

.hm-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.hm-label--line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hm-label--line::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--sand);
}

.hm-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: var(--navy-deep);
  transition: color 0.25s, gap 0.25s var(--ease);
}

.hm-more svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hm-more:hover {
  color: var(--svc-gold);
  gap: 0.85rem;
}

.hm-more--light {
  color: var(--white-pure);
}

.hm-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--sand);
  color: var(--sand);
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.hm-btn-outline svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hm-btn-outline:hover {
  background: var(--sand);
  color: var(--navy-deep);
}

.hm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.1rem;
}

/* —— Hero —— */
.hm-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(34rem, 45vw, 41rem);
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white-pure);
}

.hm-hero__media {
  position: absolute;
  inset: 0;
}

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

.hm-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 17, 33, 0.94) 0%, rgba(4, 17, 33, 0.8) 30%, rgba(4, 17, 33, 0.25) 62%, rgba(4, 17, 33, 0.1) 100%);
}

.hm-hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 1rem) 0 3rem;
}

.hm-hero h1 {
  margin: 0 0 2rem;
  max-width: 19ch;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.7vw, 3.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.hm-hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  margin-top: 1.9rem;
  font-size: 0.8rem;
  color: var(--white-pure);
}

.hm-hero__scroll svg {
  width: 1rem;
  height: 1rem;
}

.hm-hero__scroll:hover {
  color: var(--sand);
}

/* —— Intro —— */
.hm-intro {
  padding: clamp(2.25rem, 4vw, 3rem) 0;
  background: #f3f2ef;
}

.hm-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-left: clamp(0rem, 5vw, 4.5rem);
}

.hm-intro__heading {
  margin: 0;
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 16ch;
  border-left: 2px solid var(--sand);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy-deep);
}

.hm-intro__copy {
  margin: 0;
  max-width: 24rem;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(5, 6, 6, 0.8);
}

/* —— Search —— */
.hm-search {
  padding: clamp(1.75rem, 3vw, 2.25rem) 0 1.5rem;
  background: #fbfaf8;
}

.hm-search .container {
  padding-inline: clamp(0rem, 2vw, 2rem);
}

.hm-search__title {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 400;
  color: var(--navy-deep);
}

.hm-tabs {
  max-width: none;
  margin-bottom: 0.9rem;
  border-bottom: 0;
}

.hm-tabs button {
  flex: 0 0 auto;
  margin-right: 1.25rem;
  padding: 0.35rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hm-tabs button[aria-selected="true"] {
  color: var(--navy-deep);
  font-weight: 700;
}

.hm-search__form {
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) auto;
  gap: 0.6rem;
}

.hm-search__form .svc-field select,
.hm-search__form .svc-field .autocomplete__input {
  min-height: 3rem;
  font-size: 0.74rem;
}

.hm-field--location .autocomplete__input {
  padding-left: 1.6rem;
}

.hm-field__pin {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  color: rgba(5, 6, 6, 0.6);
  transform: translateY(-50%);
  pointer-events: none;
}

.hm-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 5.5rem;
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hm-search__submit svg {
  width: 1rem;
  height: 1rem;
}

.hm-search__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  margin: 1.25rem 0 0;
  font-size: 0.74rem;
  color: rgba(5, 6, 6, 0.8);
}

.hm-search__note a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-search__note a svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* —— Services —— */
.hm-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0 clamp(0.75rem, 2.5vw, 2.25rem) 0.35rem;
  background: #fbfaf8;
}

.hm-service {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(16rem, 24vw, 21rem);
  overflow: hidden;
  color: var(--white-pure);
}

.hm-service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hm-service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 17, 33, 0.25) 0%, rgba(4, 17, 33, 0.45) 45%, rgba(4, 17, 33, 0.88) 100%);
}

.hm-service:hover img {
  transform: scale(1.05);
}

.hm-service__body {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 4rem 1.5rem 1.35rem;
}

.hm-service__title {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.hm-service__text {
  display: block;
  max-width: 9rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.hm-service__arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.4rem;
  z-index: 1;
  color: var(--sand);
  transition: transform 0.3s var(--ease);
}

.hm-service__arrow svg {
  width: 1.6rem;
  height: 1.6rem;
}

.hm-service:hover .hm-service__arrow {
  transform: translateX(4px);
}

/* —— What you can expect —— */
.hm-expect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35%;
  background: #f3f2ef;
}

.hm-expect__copy {
  align-self: center;
  padding: clamp(2rem, 3.5vw, 2.5rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 3.5vw, 2.5rem) var(--svc-gutter);
}

.hm-expect .hm-label {
  margin-bottom: 1rem;
}

.hm-expect__list {
  margin: 0;
  max-width: 46rem;
}

.hm-expect__list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
}

.hm-expect__list > div + div {
  border-top: 1px solid var(--svc-line);
}

.hm-expect__list dt {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: var(--navy-deep);
}

.hm-expect__list dd {
  margin: 0;
  max-width: 17rem;
  font-size: 0.74rem;
  line-height: 1.7;
  color: rgba(5, 6, 6, 0.78);
}

.hm-expect__media {
  position: relative;
  min-height: 22rem;
}

.hm-expect__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Featured properties —— */
.hm-featured {
  padding: clamp(1.5rem, 2.5vw, 2rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white-pure);
}

.hm-featured .svc-slider {
  position: relative;
}

.svc-card--overlay {
  position: relative;
  display: block;
  min-height: clamp(13rem, 17vw, 15rem);
  overflow: hidden;
  border: 0;
  background: var(--navy-deep);
  color: var(--white-pure);
}

.svc-card--overlay > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.svc-card--overlay:hover > img {
  transform: scale(1.05);
}

.svc-card--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 17, 33, 0) 35%, rgba(4, 17, 33, 0.82) 100%);
}

.svc-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem 1rem 0.95rem;
}

.svc-card__pill {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--white-pure);
  color: var(--navy-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.svc-card__place {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
}

.svc-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  font-size: 0.72rem;
}

.svc-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.svc-card__facts svg {
  width: 1rem;
  height: 1rem;
}

/* —— Testimonial —— */
.hm-review {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white-pure);
}

.hm-review__media {
  position: absolute;
  inset: 0 0 0 55%;
}

.hm-review__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hm-review__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(4, 17, 33, 0.55) 40%, rgba(4, 17, 33, 0.1) 100%);
}

.hm-review__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(2.25rem, 4vw, 3rem) 0 clamp(2rem, 3.5vw, 2.5rem);
}

.hm-review__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 8vw, 7rem);
  line-height: 0.75;
  color: var(--sand);
}

.hm-review__slider {
  min-width: 0;
  max-width: 54rem;
}

.hm-review__slide {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
}

.hm-review__slide blockquote {
  margin: 0;
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.4;
}

.hm-review__slide figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.hm-review__slide figcaption strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.hm-review__slide figcaption span {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.hm-review .slick-dots {
  position: static;
  display: flex !important;
  gap: 0.85rem;
  margin: 1.5rem 0 0 calc(60.8% + 1.25rem);
  padding: 0;
  list-style: none;
}

.hm-review .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.hm-review .slick-dots button {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}

.hm-review .slick-dots button::before {
  display: none;
}

.hm-review .slick-dots .slick-active button {
  border-color: var(--sand);
  background: var(--sand);
}

/* —— Insights —— */
.hm-insights {
  padding: clamp(1.5rem, 2.5vw, 2rem) 0;
  background: var(--white-pure);
}

.hm-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.hm-insight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.hm-insight__media {
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--stone);
}

.hm-insight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.hm-insight:hover .hm-insight__media img {
  transform: scale(1.05);
}

.hm-insight__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hm-insight__cat {
  margin: 0.25rem 0 0.6rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(5, 6, 6, 0.7);
}

.hm-insight h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.hm-insight h3 a {
  color: var(--navy-deep);
}

.hm-insight h3 a:hover {
  color: var(--svc-gold);
}

.hm-insight time {
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  color: rgba(5, 6, 6, 0.7);
}

.hm-insight .hm-more {
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Closing CTA —— */
.hm-cta {
  position: relative;
  overflow: hidden;
  color: var(--white-pure);
  background: var(--navy-deep);
}

.hm-cta__media {
  position: absolute;
  inset: 0;
}

.hm-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 17, 33, 0.9) 0%, rgba(4, 17, 33, 0.65) 40%, rgba(4, 17, 33, 0.35) 100%);
}

.hm-cta__content {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 4.5vw, 3.25rem) 0;
}

.hm-cta__content > * {
  margin-left: clamp(1.5rem, 3vw, 2.25rem);
}

.hm-cta__content::before {
  content: "";
  position: absolute;
  top: clamp(2.5rem, 4.5vw, 3.25rem);
  bottom: clamp(2.5rem, 4.5vw, 3.25rem);
  left: 0;
  width: 2px;
  background: var(--sand);
}

.hm-cta h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 400;
  line-height: 1.2;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .hm-search__form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-field--location {
    grid-column: 1 / -1;
  }

  .hm-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-insights__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
  }

  .hm-insight {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hm-intro__grid,
  .hm-expect,
  .hm-review__slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-intro__grid {
    padding-left: 0;
  }

  .hm-expect__copy {
    padding-right: var(--svc-gutter);
  }

  .hm-expect__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hm-review__media {
    inset: 0;
    opacity: 0.25;
  }

  .hm-review__slide blockquote {
    padding: 0 0 1.25rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .hm-review .slick-dots {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .hm-hero {
    min-height: 32rem;
  }

  .hm-hero__media::after {
    background: linear-gradient(180deg, rgba(4, 17, 33, 0.6) 0%, rgba(4, 17, 33, 0.85) 100%);
  }

  .hm-search__form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hm-search__submit {
    grid-column: 1 / -1;
  }

  .hm-services {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-service {
    min-height: 13rem;
  }

  .hm-expect__list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .hm-review__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hm-review__mark {
    font-size: 4rem;
  }

  .hm-insight {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
  }
}
