/* ==========================================================================
   AVL Expo Home Hero 1
   ========================================================================== */

.avlexpo-home-hero1 {
  position: relative;
  margin: 0;
  isolation: isolate;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .avlexpo-home-hero1 {
    overflow-x: hidden;
  }
}

/* Full-bleed wrapper so the hero can live inside constrained DnD columns */
.avlexpo-home-hero1__bleed {
  position: relative;
  left: 50%;
  width: calc(100vw + 2px);
  margin-left: calc(-50vw - 1px);

  /* HERO HEIGHT IS CONTROLLED HERE */
  min-height: var(--avlexpo-hero-min-h, 80vh);

  overflow: hidden;
  background: var(--avlexpo-hero-solid, #0a0a0e);

  /* ensures inner can stretch to the bleed height */
  display: flex;

  /* make height math predictable */
  box-sizing: border-box;
}

@supports (width: 100svw) {
  .avlexpo-home-hero1__bleed {
    width: calc(100svw + 2px);
    margin-left: calc(-50svw - 1px);
  }
}

/* Media layer */
.avlexpo-home-hero1__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Background base */
.avlexpo-home-hero1__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avlexpo-home-hero1__bg--solid {
  background: var(--avlexpo-hero-solid, #0a0a0e);
}

.avlexpo-home-hero1__bg--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.avlexpo-home-hero1__bg--video {
  object-fit: cover;
  transform: scale(1.02);
}

/* Overlay layers */
.avlexpo-home-hero1__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Inner content container */
.avlexpo-home-hero1__inner {
  position: relative;
  z-index: 2;

  /* fill the bleed height */
  width: 100%;
  min-height: 100%;

  max-width: var(--avlexpo-container-max, 1240px);
  margin: 0 auto;

  padding-left: clamp(18px, 3vw, 48px);
  padding-right: clamp(18px, 3vw, 48px);

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding-top: var(--avlexpo-hero-pad-y-desktop, 96px);
  padding-bottom: var(--avlexpo-hero-pad-y-desktop, 96px);

  /* ensures padding doesn’t “add” extra perceived height weirdness */
  box-sizing: border-box;
}

/* Vertical align modes */
.avlexpo-home-hero1[data-avlexpo-hero-v-align="top"] .avlexpo-home-hero1__inner { align-items: flex-start; }
.avlexpo-home-hero1[data-avlexpo-hero-v-align="center"] .avlexpo-home-hero1__inner { align-items: center; }
.avlexpo-home-hero1[data-avlexpo-hero-v-align="bottom"] .avlexpo-home-hero1__inner { align-items: flex-end; }

/* Content block */
.avlexpo-home-hero1__content {
  width: 100%;
  max-width: var(--avlexpo-hero-content-max, 70%);
}

/* Kicker */
.avlexpo-home-hero1__kicker {
  color: var(--avlexpo-kicker-color, rgba(255, 255, 255, 0.7));
  margin: 0 0 18px;
}

/* Heading */
.avlexpo-home-hero1__heading {
  margin: 0 0 18px;
  color: var(--avlexpo-heading-color, #fff);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Description */
.avlexpo-home-hero1__desc {
  color: var(--avlexpo-desc-color, rgba(255, 255, 255, 0.8));
  max-width: 62ch;
}

.avlexpo-home-hero1__desc p { margin: 0; }
.avlexpo-home-hero1__desc p + p { margin-top: 12px; }

/* CTA buttons */
.avlexpo-home-hero1__ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.avlexpo-home-hero1__ctas a { text-decoration: none; }

@media (max-width: 900px) {
  .avlexpo-home-hero1__content {
    max-width: min(92%, 720px);
  }
}

@media (max-width: 767px) {
  .avlexpo-home-hero1__inner {
    padding-top: var(--avlexpo-hero-pad-y-mobile, 96px);
    padding-bottom: var(--avlexpo-hero-pad-y-mobile, 96px);
  }

  .avlexpo-home-hero1__content { max-width: 100%; }
  .avlexpo-home-hero1__desc { max-width: 70ch; }

  /* Stack buttons on mobile */
  .avlexpo-home-hero1__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}
