/* Homepage first-screen hero, site-v121 preview only.
   Full-bleed client-photo carousel with overlay headline and CTAs.
   Does not change hero-carousel.js. */

/* Fixed header so the photo can fill the first viewport, including under the bar. */
body.hero-splash .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  background: rgba(12, 11, 9, 0.72);
}

.hero-v121 {
  --hero-header-clear: 7.25rem; /* desktop header is 87px */
  --hero-base-clear: 2.5rem;
  position: relative;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  background: #0c0b09;
  overflow: hidden;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
}

/* Override the shared textured .luxe .hero treatment. */
.luxe .hero.hero-v121 {
  padding: 0;
  background: #0c0b09;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}
.luxe .hero.hero-v121::before,
.luxe .hero.hero-v121::after {
  content: none;
  display: none;
}

.hero-v121 .hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.hero-v121 .hero-carousel-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  background: #0c0b09;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.hero-v121 .hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keep faces in the open photo area (right on desktop, upper on mobile). */
.hero-v121 .hero-carousel-slide--welcome img { object-position: 68% 40%; }
.hero-v121 .hero-carousel-slide--newhome img { object-position: 72% 20%; }
.hero-v121 .hero-carousel-slide--closing img { object-position: 62% 16%; }

/* Copy sits above the photos; gradient keeps type readable. */
.hero-v121 .hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: var(--hero-header-clear) 0 var(--hero-base-clear);
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(12, 11, 9, 0.96) 0%,
      rgba(12, 11, 9, 0.9) 20%,
      rgba(12, 11, 9, 0.72) 34%,
      rgba(12, 11, 9, 0.36) 48%,
      rgba(12, 11, 9, 0.1) 64%,
      rgba(12, 11, 9, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 11, 9, 0.38) 0%,
      rgba(12, 11, 9, 0.06) 30%,
      rgba(12, 11, 9, 0.1) 70%,
      rgba(12, 11, 9, 0.5) 100%
    );
}

.hero-v121 .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin: 0 auto;
  pointer-events: none;
}
.hero-v121 .hero-copy > * {
  pointer-events: auto;
  max-width: 36rem;
}

.luxe .hero.hero-v121 h1 {
  font-family: var(--lx-serif);
  font-weight: 500;
  color: #fbf7ee;
  font-size: clamp(3.25rem, 6vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: none;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(12, 11, 9, 0.45);
}
.luxe .hero.hero-v121 h1::after { display: none; content: none; }

.hero-v121 .hero-h1-main {
  display: block;
}

.hero-v121 .hero-h1-line {
  display: block;
  max-width: 22em;
  margin-top: 0.58em;
  font-size: 0.38em;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: 0;
  color: #f6f0e1;
  text-shadow: 0 2px 18px rgba(12, 11, 9, 0.5);
}

.luxe .hero.hero-v121 .h1-markets {
  display: block;
  max-width: 38rem;
  margin-top: 1.2rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.55;
  color: var(--lx-gold-soft, #e9cf7e);
  text-wrap: pretty;
}
.luxe .hero.hero-v121 .h1-markets::after {
  content: "";
  display: block;
  width: 88px;
  height: 1px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0));
}

.luxe .hero.hero-v121 .eyebrow {
  margin-bottom: 1rem;
}

.luxe .hero.hero-v121 .hero-lede {
  margin: 1.1rem 0 0;
  max-width: 38ch;
  color: rgba(246, 240, 225, 0.92);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}

.luxe .hero.hero-v121 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.85rem 0 0;
  max-width: none;
}

.luxe .hero.hero-v121 .hero-actions .button {
  min-height: 58px;
  padding: 1.1rem 1.85rem;
  font-size: 0.86rem;
  border-radius: 2px;
  letter-spacing: 0.12em;
}

.luxe .hero.hero-v121 .hero-actions .button:not(.button-secondary) {
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.75);
}

.luxe .hero.hero-v121 .hero-actions .button-secondary {
  background: rgba(12, 11, 9, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 207, 126, 0.85);
  color: #f6f0e1;
}

.luxe .hero.hero-v121 .hero-actions .button-secondary:hover,
.luxe .hero.hero-v121 .hero-actions .button-secondary:focus-visible {
  background: rgba(212, 175, 55, 0.16);
  border-color: #e9cf7e;
  color: #f4e3a8;
}

.hero-v121 .hero-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.9rem;
  color: #e9cf7e;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  width: max-content;
  max-width: 100%;
}
.hero-v121 .hero-call:hover,
.hero-v121 .hero-call:focus-visible {
  color: #f4e3a8;
  border-bottom-color: #f4e3a8;
}

.hero-v121 .hero-trust {
  margin: 0.9rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  max-width: 40rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 240, 225, 0.8);
  line-height: 1.4;
}
.hero-v121 .hero-trust-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d4af37;
  flex: 0 0 auto;
}
.hero-v121 .hero-trust a {
  color: #e9cf7e;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  padding-bottom: 0.05rem;
}
.hero-v121 .hero-trust a:hover,
.hero-v121 .hero-trust a:focus-visible {
  color: #f4e3a8;
  border-bottom-color: #f4e3a8;
}

/* Carousel controls sit on the right of the photo, clear of the copy and the call FAB. */
.hero-v121 .hero-carousel-btn {
  z-index: 4;
  top: 52%;
  bottom: auto;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}
.hero-v121 .hero-carousel-prev { left: auto; right: 4.75rem; }
.hero-v121 .hero-carousel-next { right: 1.35rem; }

.hero-v121 .hero-carousel-dots {
  left: auto;
  right: 1.35rem;
  bottom: 6.25rem; /* above the desktop call FAB */
  width: auto;
  height: 28px;
  justify-content: flex-end;
  align-items: center;
  background: none;
  padding: 0;
  display: flex;
  gap: 9px;
}

/* ---------- Mobile first-screen: CTAs stay above the call bar, no scroll ---------- */
@media (max-width: 860px) {
  body.hero-splash .site-header {
    background: rgba(12, 11, 9, 0.84);
  }

  .hero-v121 {
    --hero-header-clear: 9.15rem; /* mobile header is 134.5px */
    --hero-base-clear: calc(5.5rem + env(safe-area-inset-bottom, 0px)); /* call bar ~70px + gap */
  }

  .hero-v121 .hero-stage {
    align-items: stretch;
    background:
      linear-gradient(
        180deg,
        rgba(12, 11, 9, 0.22) 0%,
        rgba(12, 11, 9, 0.08) 16%,
        rgba(12, 11, 9, 0.2) 34%,
        rgba(12, 11, 9, 0.72) 54%,
        rgba(12, 11, 9, 0.94) 78%,
        rgba(12, 11, 9, 0.98) 100%
      );
  }

  .hero-v121 .hero-copy {
    justify-content: flex-end;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
  }

  .hero-v121 .hero-copy > * {
    max-width: none;
  }

  /* Header already names Kaylie and the brokerage; drop the eyebrow to free the photo. */
  .luxe .hero.hero-v121 .eyebrow {
    display: none;
  }

  .luxe .hero.hero-v121 h1 {
    font-size: clamp(2.2rem, 9vw, 2.55rem);
    max-width: none;
    line-height: 1.0;
    text-wrap: pretty;
  }

  .hero-v121 .hero-h1-line {
    font-size: 0.5em;
    max-width: 22em;
    margin-top: 0.45em;
  }

  .luxe .hero.hero-v121 .h1-markets {
    font-size: 0.75rem;
    margin-top: 0.7rem;
    letter-spacing: 0.03em;
    line-height: 1.45;
    max-width: none;
  }
  .luxe .hero.hero-v121 .h1-markets::after {
    margin-top: 0.7rem;
  }

  .luxe .hero.hero-v121 .hero-lede {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: none;
  }

  .luxe .hero.hero-v121 .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.85rem;
    gap: 0.5rem;
  }

  .luxe .hero.hero-v121 .hero-actions .button,
  .luxe .hero.hero-v121 .hero-actions .button:not(.button-secondary) {
    width: 100%;
    min-height: 50px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    padding: 0.8rem 0.85rem;
  }

  .luxe .hero.hero-v121 .hero-actions .button:not(.button-secondary) {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    padding: 0.85rem 1.15rem;
  }

  .luxe .hero.hero-v121 .hero-actions .button-secondary {
    width: 100%;
    min-height: 50px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    padding: 0.7rem 0.45rem;
    text-align: center;
  }

  .hero-v121 .hero-call {
    margin-top: 0.4rem;
    min-height: 36px;
    font-size: 1rem;
  }

  .hero-v121 .hero-trust {
    margin-top: 0.35rem;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    gap: 0.28rem 0.45rem;
    max-width: none;
  }

  /* Faces sit in the upper photo band, above the gradient. */
  .hero-v121 .hero-carousel-slide--welcome img { object-position: center 26%; }
  .hero-v121 .hero-carousel-slide--newhome img { object-position: center 16%; }
  .hero-v121 .hero-carousel-slide--closing img { object-position: center 12%; }

  /* Swipe still works; hide side arrows so they don't sit on faces. Dots only. */
  .hero-v121 .hero-carousel-btn {
    display: none;
  }

  .hero-v121 .hero-carousel-dots {
    top: calc(var(--hero-header-clear) + 0.35rem);
    bottom: auto;
    left: 50%;
    right: auto;
    width: auto;
    height: 28px;
    padding: 0 0.7rem;
    justify-content: center;
    background: rgba(12, 11, 9, 0.48);
    border-radius: 999px;
    transform: translateX(-50%);
  }
}

@media (max-width: 400px) {
  .luxe .hero.hero-v121 h1 {
    font-size: 2.2rem;
  }
  .hero-v121 .hero-h1-line {
    font-size: 0.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luxe .hero.hero-v121 .hero-actions .button {
    transition: none;
  }
  .luxe .hero.hero-v121 .hero-actions .button:hover {
    transform: none;
  }
}
