/* ==========================================================================
   BCNYC — 02 Hero
   Desktop (>=1024px): banner behind the text, text sits on the light left
   area of the artwork. The artwork is pushed right by --bcnyc-hero-shift so
   the blue curve keeps clear of the headline; its left edge fades into the
   section background. Tablet / mobile: text first, then the photo crop.
   ========================================================================== */

.bcnyc.bcnyc-hero {
  position: relative;
  display: flex;
  align-items: center;
  --bcnyc-hero-shift: clamp(72px, 10vw, 240px);
  min-height: max(620px, 40vw);
  margin: 0;
  padding: 0;
  background: #F6F9FD;
  overflow: hidden;
  isolation: isolate;
}

.bcnyc .bcnyc-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  margin: 0;
}

/* Height fills the hero; natural width (2.5 x height) is always wider than
   the viewport, so the right edge stays covered after the shift. */
.bcnyc .bcnyc-hero__img {
  position: absolute;
  top: 0;
  left: var(--bcnyc-hero-shift);
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.15) 260px, #000 520px);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.15) 260px, #000 520px);
}

.bcnyc .bcnyc-hero__inner {
  padding-top: 56px;
  padding-bottom: 72px;
}

.bcnyc .bcnyc-hero__content {
  max-width: 560px;
}

.bcnyc .bcnyc-hero__title {
  font-size: clamp(34px, 3.7vw, 54px);
}

.bcnyc .bcnyc-hero__lead {
  max-width: 500px;
  margin-top: 22px;
}

.bcnyc .bcnyc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.bcnyc .bcnyc-hero__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--bcnyc-line);
  max-width: 420px;
}

.bcnyc .bcnyc-hero__price-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bcnyc-text);
}

.bcnyc .bcnyc-hero__price-value {
  font-family: var(--bcnyc-font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bcnyc-navy);
}

/* Large desktop: keep text inside the light area of the artwork */
@media (min-width: 1600px) {
  .bcnyc .bcnyc-hero__content { max-width: 600px; }
}

/* Tablet & mobile ----------------------------------------------------------- */
@media (max-width: 1023px) {
  .bcnyc.bcnyc-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: #FFFFFF;
  }

  .bcnyc .bcnyc-hero__inner {
    order: 1;
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .bcnyc .bcnyc-hero__content { max-width: 640px; }

  .bcnyc .bcnyc-hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 2;
  }

  .bcnyc .bcnyc-hero__img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 941 / 820;
    max-height: 640px;
    object-fit: cover;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Tablet uses the desktop artwork; crop to the photo side */
@media (min-width: 768px) and (max-width: 1023px) {
  .bcnyc .bcnyc-hero__img {
    aspect-ratio: 16 / 9;
    object-position: right center;
  }
}

/* Mobile: the full mobile banner (941x1672, never cropped) is pulled up
   under the content. Its top ~30% is the soft white/blue wave area, so it
   sits behind the price row; the top edge fades into the section so there
   is no seam, and the blue band rises from the right toward the text. */
@media (max-width: 767px) {
  .bcnyc .bcnyc-hero__inner {
    position: relative;
    z-index: 1;
  }

  .bcnyc .bcnyc-hero__media {
    margin-top: -53vw;
  }

  .bcnyc .bcnyc-hero__img {
    aspect-ratio: 941 / 1672;
    max-height: none;
    object-position: center top;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  }
}

@media (max-width: 479px) {
  .bcnyc .bcnyc-hero__ctas { display: grid; grid-template-columns: 1fr; }
  .bcnyc .bcnyc-hero__ctas .bcnyc-btn { width: 100%; }
  .bcnyc .bcnyc-hero__price-value { font-size: 30px; }
}

/* Copy from the revised client document: status line, quick facts, caption */
.bcnyc .bcnyc-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bcnyc-navy);
}

.bcnyc .bcnyc-hero__dot {
  font-size: 11px;
  line-height: 1;
  color: var(--bcnyc-blue);
}

.bcnyc .bcnyc-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  max-width: 560px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bcnyc .bcnyc-hero__facts li {
  position: relative;
  margin: 0;
  padding: 0 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bcnyc-text);
}

.bcnyc .bcnyc-hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--bcnyc-blue);
}

.bcnyc .bcnyc-hero__caption {
  position: absolute;
  right: var(--bcnyc-gutter);
  bottom: 22px;
  z-index: 1;
  margin: 0;
  padding: 7px 12px;
  border-radius: var(--bcnyc-radius);
  background: rgba(18, 44, 82, 0.78);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #FFFFFF;
}

@media (max-width: 1023px) {
  .bcnyc .bcnyc-hero__caption {
    bottom: 18px;
  }
}

@media (max-width: 479px) {
  .bcnyc .bcnyc-hero__facts {
    display: grid;
    gap: 6px;
  }

  .bcnyc .bcnyc-hero__caption {
    left: var(--bcnyc-gutter);
    right: auto;
  }
}

/* Two-line lead from the revised document (no manual line breaks) */
.bcnyc .bcnyc-hero__lead--second {
  margin-top: 4px;
}

/* Round 6: facts without dash markers, in an aligned 2-column grid */
.bcnyc .bcnyc-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 32px;
}

.bcnyc .bcnyc-hero__facts li {
  padding-left: 0;
}

.bcnyc .bcnyc-hero__facts li::before {
  content: none;
}

@media (max-width: 479px) {
  .bcnyc .bcnyc-hero__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
