/*
 * Expo hero — balanced desktop layout.
 * The right map determines the row height.
 * Only the top-right and bottom-right corners are rounded.
 */

/* Remove legacy fixed heights and offsets. */
.hero-wrapper {
  min-height: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.hero-wrapper > .row {
  min-height: 0 !important;
  align-items: stretch !important;
}

.hero-wrapper .col-lg-4,
.hero-wrapper .col-lg-8 {
  min-height: 0 !important;
}

/* LEFT SIDE */
.hero-wrapper .col-lg-4 {
  display: flex !important;
}

.hero-wrapper .hero-content {
  width: 100%;
  height: 100%;
  padding:
    clamp(22px, 2.4vw, 38px)
    clamp(18px, 2.25vw, 34px)
    clamp(22px, 2.4vw, 38px)
    0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-wrapper .hero-title {
  max-width: 520px;
  margin-bottom: clamp(10px, 1vw, 16px);
  font-size: clamp(32px, 2.85vw, 46px);
  line-height: 1.02;
}

.hero-wrapper .hero-script {
  margin-bottom: clamp(16px, 1.6vw, 26px);
  font-size: clamp(25px, 2.2vw, 37px);
  line-height: 1.03;
}

.hero-wrapper .hero-text {
  max-width: 390px;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.6;
}

.hero-wrapper .hero-btn {
  width: min(230px, 100%);
  height: clamp(48px, 3.8vw, 58px);
  margin-top: clamp(18px, 1.9vw, 30px);
}

.hero-wrapper .families {
  margin-top: clamp(20px, 2.2vw, 34px);
}

.hero-wrapper .families-text {
  font-size: clamp(11px, .9vw, 14px);
}

/* RIGHT SIDE — the natural image ratio defines the desktop row height. */
.hero-wrapper .col-lg-8 {
  display: flex !important;
  align-items: stretch !important;
}

.hero-wrapper .expo-map {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1344 / 768;
  overflow: hidden !important;

  /* Only right-hand corners. */
  border-radius: 0 clamp(20px, 1.8vw, 28px)
                   clamp(20px, 1.8vw, 28px) 0 !important;

  background: #ece9df;
}

.hero-wrapper .expo-map__image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;

  /* The parent performs the clipping. */
  border-radius: 0 !important;
}

/*
 * Desktop: the map keeps its full image without cropping.
 * Its aspect ratio establishes the row height, and the left column stretches
 * to exactly the same height.
 */
@media (min-width: 992px) {
  .hero-wrapper .hero-image,
  .hero-wrapper .expo-map {
    top: auto !important;
    right: auto !important;
  }

  .hero-wrapper .hero-content {
    overflow: hidden;
  }
}

/* Laptop widths: compress text spacing before allowing the left side to grow. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .hero-wrapper .hero-content {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .hero-wrapper .hero-title {
    font-size: clamp(31px, 3vw, 40px);
  }

  .hero-wrapper .hero-script {
    font-size: clamp(24px, 2.45vw, 32px);
  }

  .hero-wrapper .hero-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .hero-wrapper .hero-btn {
    height: 48px;
    margin-top: 17px;
  }

  .hero-wrapper .families {
    margin-top: 18px;
  }
}

/* Tablet: stack the text and map. Both sides may use full rounded corners. */
@media (max-width: 991.98px) {
  .hero-wrapper > .row {
    display: block !important;
  }

  .hero-wrapper .col-lg-4,
  .hero-wrapper .col-lg-8 {
    display: block !important;
    width: 100%;
  }

  .hero-wrapper .hero-content {
    height: auto;
    padding: 38px 28px 32px !important;
    justify-content: flex-start;
  }

  .hero-wrapper .hero-title {
    max-width: 650px;
    font-size: clamp(33px, 6vw, 47px);
  }

  .hero-wrapper .hero-script {
    font-size: clamp(27px, 5vw, 36px);
  }

  .hero-wrapper .hero-text {
    max-width: 620px;
    font-size: 15px;
  }

  .hero-wrapper .expo-map {
    aspect-ratio: 1344 / 768;
    border-radius: 22px !important;
  }
}

/* Phone: smaller type and spacing, while retaining comfortable reading. */
@media (max-width: 575.98px) {
  .hero-wrapper .hero-content {
    padding: 26px 18px 24px !important;
  }

  .hero-wrapper .hero-title {
    font-size: clamp(29px, 9vw, 38px);
    line-height: 1.04;
  }

  .hero-wrapper .hero-script {
    margin-bottom: 17px;
    font-size: clamp(23px, 7.4vw, 30px);
    line-height: 1.06;
  }

  .hero-wrapper .hero-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-wrapper .hero-btn {
    width: 100%;
    max-width: 230px;
    height: 49px;
    margin-top: 19px;
  }

  .hero-wrapper .families {
    margin-top: 20px;
    align-items: flex-start;
  }

  .hero-wrapper .families-text {
    font-size: 12px;
  }

  .hero-wrapper .expo-map {
    border-radius: 16px !important;
  }
}
