/*
 * Jade Homepage AI Banner Style Fix v1.0.0
 * Scoped only to the repaired AI section on the static homepage and in its editor canvas.
 */

.home .jade-ai-fixed,
.editor-styles-wrapper .jade-ai-fixed {
  position: relative;
  isolation: isolate;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 92px 32px !important;
  overflow: hidden;
  color: #fff;
  background-color: #173e2b;
  background-image:
    linear-gradient(90deg, rgba(4, 31, 20, .12) 0%, rgba(4, 31, 20, .24) 42%, rgba(4, 31, 20, .70) 64%, rgba(4, 31, 20, .88) 100%),
    url('https://www.jademarketingtechnology.com/wp-content/themes/jade-marketing/assets/images/jade-ai-stack-banner.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home .jade-ai-fixed::before,
.editor-styles-wrapper .jade-ai-fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18));
  pointer-events: none;
}

.home .jade-ai-fixed-columns,
.editor-styles-wrapper .jade-ai-fixed-columns {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px !important;
  min-height: 340px;
  margin: 0 auto !important;
  gap: 56px !important;
  align-items: center !important;
}

/* Keep the left column as the visual field, but hide the duplicate inline image. */
.home .jade-ai-fixed-columns > .wp-block-column:first-child,
.editor-styles-wrapper .jade-ai-fixed-columns > .wp-block-column:first-child {
  min-height: 300px;
}

.home .jade-ai-fixed-image,
.editor-styles-wrapper .jade-ai-fixed-image {
  visibility: hidden !important;
  margin: 0 !important;
  height: 1px !important;
  overflow: hidden !important;
}

.home .jade-ai-fixed-columns > .wp-block-column:last-child,
.editor-styles-wrapper .jade-ai-fixed-columns > .wp-block-column:last-child {
  position: relative;
  z-index: 2;
  padding: 12px 0;
}

.home .jade-ai-fixed .jade-eyebrow,
.editor-styles-wrapper .jade-ai-fixed .jade-eyebrow {
  margin: 0 0 16px !important;
  color: #b9e6b8 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.home .jade-ai-fixed h2,
.editor-styles-wrapper .jade-ai-fixed h2 {
  margin: 0 0 18px !important;
  color: #fff !important;
  font-size: clamp(34px, 4vw, 56px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
}

.home .jade-ai-fixed p:not(.jade-eyebrow),
.editor-styles-wrapper .jade-ai-fixed p:not(.jade-eyebrow) {
  max-width: 630px;
  margin: 0 !important;
  color: #eef6f0 !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.home .jade-ai-fixed .wp-block-buttons,
.editor-styles-wrapper .jade-ai-fixed .wp-block-buttons {
  margin-top: 28px !important;
}

.home .jade-ai-fixed .wp-block-button__link,
.editor-styles-wrapper .jade-ai-fixed .wp-block-button__link {
  padding: 15px 25px !important;
  border: 1px solid #8dca78 !important;
  border-radius: 4px !important;
  background: #6fbd44 !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .home .jade-ai-fixed,
  .editor-styles-wrapper .jade-ai-fixed {
    padding: 64px 24px !important;
    background-position: 35% center;
  }

  .home .jade-ai-fixed-columns,
  .editor-styles-wrapper .jade-ai-fixed-columns {
    display: block !important;
    width: min(100% - 32px, 720px);
    min-height: 0;
  }

  .home .jade-ai-fixed-columns > .wp-block-column:first-child,
  .editor-styles-wrapper .jade-ai-fixed-columns > .wp-block-column:first-child {
    display: none !important;
  }

  .home .jade-ai-fixed-columns > .wp-block-column:last-child,
  .editor-styles-wrapper .jade-ai-fixed-columns > .wp-block-column:last-child {
    max-width: 620px;
    margin-left: auto;
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  .home .jade-ai-fixed,
  .editor-styles-wrapper .jade-ai-fixed {
    padding: 48px 20px !important;
    background-image:
      linear-gradient(180deg, rgba(4,31,20,.50), rgba(4,31,20,.92)),
      url('https://www.jademarketingtechnology.com/wp-content/themes/jade-marketing/assets/images/jade-ai-stack-banner.webp');
    background-position: 32% center;
  }

  .home .jade-ai-fixed h2,
  .editor-styles-wrapper .jade-ai-fixed h2 {
    font-size: 34px !important;
  }

  .home .jade-ai-fixed p:not(.jade-eyebrow),
  .editor-styles-wrapper .jade-ai-fixed p:not(.jade-eyebrow) {
    font-size: 16px !important;
  }
}
