/* Bush Bags — reusable CTA banners */
.bb-cta-banner {
  --bb-cta-light: #f0efed;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  margin: 2.5rem auto;
  border-radius: 4px;
  background: var(--bb-cta-olive);
  color: #fff;
  min-height: 300px;
}
.bb-cta-banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  position: relative;
  z-index: 2;
  min-width: 0;
}
.bb-cta-banner__eyebrow {
  margin: 0 0 0.35rem;
  color: inherit;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.bb-cta-banner__heading {
  margin: 0 0 0.65rem;
  color: inherit;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
}
.bb-cta-banner__description {
  max-width: 38rem;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}
.bb-cta-banner__description p {
  margin: 0 0 0.65rem;
}
.bb-cta-banner__description p:last-child {
  margin-bottom: 0;
}
.bb-cta-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--bb-cta-orange);
  border-radius: 5px;
  background: var(--bb-cta-orange);
  color: #fff !important;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.bb-cta-banner__button:hover,
.bb-cta-banner__button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #26251f !important;
}
.bb-cta-banner__image {
  position: relative;
  min-height: 300px;
  height: 100%;
  overflow: hidden;
}
.bb-cta-banner__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}
.bb-cta-banner__image--empty {
  background: repeating-linear-gradient(
    135deg,
    #d5d3cd,
    #d5d3cd 12px,
    #e5e3de 12px,
    #e5e3de 24px
  );
}
/* Layout 1: olive text panel left, image right. */
.bb-cta-banner--image-right {
  display: block;
  min-height: 305px;
  background: var(--bb-cta-olive);
  color: #fff;
}

/*
 * Image-right banners use the photo like a background:
 * it fills the right side while the text stays on top of the olive panel.
 */
.bb-cta-banner--image-right .bb-cta-banner__content {
  box-sizing: border-box;
  width: 62%;
  min-height: 305px;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  padding-bottom: 4.5rem;
}

.bb-cta-banner--image-right .bb-cta-banner__image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -10%;
  bottom: 0;
  width: 53%;
  height: auto;
  min-height: 0;
}

.bb-cta-banner--image-right .bb-cta-banner__image img {
  min-height: 0;
  object-position: center right;
}

/* Keep the CTA button aligned over the lower edge of the banner. */
.bb-cta-banner--image-right .bb-cta-banner__button {
  position: absolute;
  z-index: 3;
  left: 80%;
  bottom: 0;
  margin-top: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px #fff;
  background-color: var(--bb-orange);
}
/* Layout 2: image left, light text panel right. */
.bb-cta-banner--image-left {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--bb-cta-light);
  color: #171717;
}
.bb-cta-banner--image-left .bb-cta-banner__image {
  grid-column: 1;
  grid-row: 1;
}
.bb-cta-banner--image-left .bb-cta-banner__content {
  grid-column: 2;
  grid-row: 1;
  background: var(--bb-cta-light);
  margin-left: 0;
  padding-left: clamp(2rem, 4vw, 4rem);
}

/* Position the button over the bottom edge of the image/text transition */
.bb-cta-banner--image-left .bb-cta-banner__button {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-50%, 0);
  z-index: 5;
  margin: 0;
  box-shadow: 0 0 0 6px #fff;
  background-color: var(--bb-orange);
}

/* Create a smoother fade from the photograph into the text panel */
.bb-cta-banner--image-left .bb-cta-banner__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(240, 239, 237, 0) 45%,
    rgba(240, 239, 237, 0.45) 68%,
    rgba(240, 239, 237, 0.85) 88%,
    var(--bb-cta-light) 100%
  );
}
.bb-cta-banner--image-left .bb-cta-banner__eyebrow {
  color: var(--bb-cta-orange);
}
.bb-cta-banner--image-left .bb-cta-banner__heading {
  color: var(--bb-orange);
}

@media (max-width: 767px) {
  .bb-cta-banner--image-left .bb-cta-banner__button {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 1.1rem;
    box-shadow: none;
  }

  .bb-cta-banner--image-left .bb-cta-banner__image::after {
    display: none;
  }
  .bb-cta-banner,
  .bb-cta-banner--image-right,
  .bb-cta-banner--image-left {
    grid-template-columns: minmax(0, 1fr);
    margin: 1.5rem auto;
    min-height: 0;
  }
  .bb-cta-banner--image-right {
    display: grid;
  }
  .bb-cta-banner__content {
    grid-column: 1;
    grid-row: 2;
    padding: 1.6rem 1.35rem 1.8rem;
  }
  .bb-cta-banner--image-right .bb-cta-banner__content {
    width: 100%;
    min-height: 0;
    padding: 1.6rem 1.35rem 1.8rem;
  }
  .bb-cta-banner__image,
  .bb-cta-banner__image img {
    min-height: 220px;
  }
  .bb-cta-banner__image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 220px;
  }
  .bb-cta-banner--image-right .bb-cta-banner__image {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 220px;
    min-height: 220px;
  }
  .bb-cta-banner--image-right .bb-cta-banner__image img {
    min-height: 220px;
    object-position: center;
  }
  .bb-cta-banner--image-right .bb-cta-banner__button {
    position: static;
    left: auto;
    bottom: auto;
    margin-top: 1.1rem;
    transform: none;
    box-shadow: none;
  }
  .bb-cta-banner--image-left .bb-cta-banner__content {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0;
    padding-left: 1.35rem;
    background: var(--bb-cta-light);
  }
  .bb-cta-banner__heading {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }
  .bb-cta-banner__button {
    margin-top: 1.1rem;
  }
}
