/* First-screen hero + stats: the stats strip is the bottom band of the
   hero, so it is visible without scrolling. The video fills only the
   media area above the strip (not behind the numbers). v1. */

.concept-d .d-hero{
  display: flex;
  flex-direction: column;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

.concept-d .d-hero-media{
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.concept-d .d-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  transform: none;
}

.concept-d .d-hero-img video,
.concept-d .d-hero-poster{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-hero > .d-stats{
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Keep the headline, lede and Book Today inside the shorter media area. */
@media (max-height: 780px){
  .hero-statement{
    padding-top: calc(var(--head-h, 72px) + 12px);
    padding-bottom: 16px;
  }
  .d-hero .hero-statement .hero-statement-h{
    top: 48%;
  }
  .hero-statement-foot{ gap: 10px; }
}
@media (max-height: 700px){
  .d-hero .hero-statement .hero-statement-h{
    top: 46%;
    font-size: clamp(26px, calc((100vw - 2 * var(--pad, 24px)) / var(--hs-k, 13.5)), 88px);
  }
}


/* On phones the floating Book Today used to sit in the bottom-right of
   the full-viewport hero. The stats band now occupies that edge, so lift
   the default (non-dragged) button just above the strip. Matches the
   existing --float-cta-lift behavior once JS measures #stats. */
@media (max-width: 799px) {
  html:not(.is-past-hero) .d-sticky-reg:not(.is-custom):not(.is-dragging),
  html:not(.is-past-hero) .d-sticky-reg.is-on:not(.is-custom):not(.is-dragging) {
    bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }
}


/* Chat stays at the viewport corner by default, so once Book Today is
   lifted above the stats it would sit on the numbers. Stack it above
   the floating CTA while the first screen is in view. */
@media (max-width: 799px) {
  html:not(.is-past-hero) .bo-chat-btn,
  html:not(.is-past-hero) .bo-chat-panel {
    bottom: calc(202px + env(safe-area-inset-bottom, 0px));
  }
}
