/* Graphic hero: desktop enquiry panel and uncropped mobile banner. */
.hero.hero--v2 {
  width: 100%;
  min-height: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
}

.hero--v2 .hero-stage {
  position: absolute;
  inset: var(--header-h) 0 0;
  width: 100%;
}

.hero--v2 .hero-media,
.hero--v2 .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.hero--v2 .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center !important;
}

.hero--v2 .hero-form-toggle {
  display: none;
}

@media (min-width: 992px) {
  .hero--v2 .hero-layout {
    position: absolute;
    inset: var(--header-h) 0 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 24px 76px 24px 24px;
    pointer-events: none;
  }

  .hero--v2 .banner-form-section {
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    border-radius: 16px;
    pointer-events: auto;
  }

  .hero--v2.hero-form-ready .banner-form-section {
    display: none;
  }

  .hero--v2.hero-form-open .banner-form-section {
    display: block;
  }

  .hero--v2.hero-form-ready .hero-form-toggle {
    position: absolute;
    z-index: 2;
    top: calc(50% + var(--header-h) / 2);
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 22px 14px;
    border: 1px solid var(--gold-2);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: var(--gold-grad);
    color: var(--brand-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font: 600 13px var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
  }

  .hero--v2 .hero-form-toggle:hover {
    background: var(--brand-hover);
  }

  .hero--v2 .hero-form-toggle:focus-visible {
    outline: 2px solid var(--brand-white);
    outline-offset: -5px;
  }

  .hero--v2 .hero-form-toggle-icon {
    font-size: 22px;
    line-height: 1;
  }
}

@media (max-width: 991px) {
  /* Keep the enquiry form below the first viewport on smaller screens. */
  .hero.hero--v2 {
    height: auto;
    padding: var(--header-h) 0 0;
  }

  .hero--v2 .hero-stage {
    position: relative;
    inset: auto;
    flex: none;
    width: 100%;
    /* height follows the banner itself, so it is never stretched */
    height: auto;
  }

  .hero--v2 .hero-media,
  .hero--v2 .hero-slide {
    position: relative;
    inset: auto;
    height: auto;
  }

  .hero--v2 .hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
