/* ── Bonami X-AI Section ── */

.bh-xai-section {
  margin-top: -1px;
  padding-top: 75px;
  background-color: #f8f7f4;
  position: relative;
  z-index: 2;
}

.bh-xai-wrapper {
  display: flex;
  align-items: stretch;
  min-height: auto;
  background-color: var(--color-bg-dark);
}

/* ── Left: Video ── */
.bh-xai-left {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  position: relative;
}

.bh-xai-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bh-xai-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 238px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 100%);
  z-index: 1;
  pointer-events: none;
}

.bh-xai-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-xai-content-overlay {
  position: absolute;
  top: 64px;
  left: 48px;
  z-index: 2;
}

.bh-xai-logo {
  width: 300px;
}

.bh-xai-logo img {
  width: 100%;
  display: block;
}

.bh-xai-logo-text {
  font-family: var(--font-family-primary);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.bh-xai-logo-text .bh-xai-x {
  color: var(--color-primary);
}

/* ── Right: Content ── */
.bh-xai-right {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  padding: 78px 48px 78px 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

/* Description */
.bh-xai-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bh-xai-description h2 {
  font-family: var(--font-family-primary);
  font-size: var(--fs-h2);
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.24;
}

.bh-xai-bold {
  font-weight: 800;
}

.bh-xai-description > p {
  font-family: var(--font-family-primary);
  font-size: var(--fs-para);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.6;
}

.bh-xai-description > p strong {
  font-weight: 700;
  color: #fff;
}

/* ── Cards — horizontal row ── */
.bh-xai-cards-row {
  display: flex;
  gap: 14px;
}

.bh-xai-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.bh-xai-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Top accent line */
.bh-xai-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
}

.bh-xai-card-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bh-xai-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.bh-xai-card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.bh-xai-card h4 {
  font-family: var(--font-family-primary);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.bh-xai-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bh-xai-card-list li {
  font-family: var(--font-family-primary);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: first baseline;
  gap: 10px;
  line-height: 1.5;
}

.bh-xai-card-list li::before {
  content: '›';
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
  width: 6px;
}

/* ── Quote variant (Data Engineering card) ── */
.bh-xai-card--quote {
  justify-content: space-between;
}

.bh-xai-card-quote {
  position: relative;
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border: none;
  letter-spacing: -0.01em;
}

/* Large decorative open-quote */
.bh-xai-card-quote::before {
  content: '\201C';
  display: block;
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 0.6;
  color: var(--color-primary);
  opacity: 0.5;
  margin-bottom: 8px;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── CTA buttons ── */
.bh-xai-cta {
  display: flex;
  gap: 16px;
  flex-direction: row;
  flex-wrap: wrap;
}

.bh-xai-cta .bh-swap-text-button {
  width: fit-content;
}

.bh-xai-btn-white {
  color: var(--color-text-black) !important;
  border-top: 2px solid #cecece;
  border-bottom: 2px solid transparent;
  background: linear-gradient(180deg, #fff 0%, #eee 100%);
}

.bh-xai-btn-white:hover {
  background: linear-gradient(180deg, #eee 0%, #ddd 100%);
  color: var(--color-text-black) !important;
}

.bh-xai-btn-outline {
  background-color: transparent !important;
  border: 2px solid #fff;
  color: #fff !important;
}

.bh-xai-btn-outline:hover {
  background-color: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1440px) {
  .bh-xai-section { padding-top: 60px; }
  .bh-xai-right { padding: 60px 48px; gap: 24px; }
  .bh-xai-logo-text { font-size: 32px; }
  .bh-xai-content-overlay { top: 58px; left: 36px; }
  .bh-xai-card { padding: 22px 20px; gap: 20px; }
  .bh-xai-card-icon { width: 40px; height: 40px; }
  .bh-xai-card-icon img { width: 18px; height: 18px; }
  .bh-xai-card h4 { font-size: 14px; }
  .bh-xai-card-list li { font-size: 12px; gap: 8px; }
  .bh-xai-card-list { gap: 8px; }
  .bh-xai-card-quote { font-size: 16px; }
  .bh-xai-card-quote::before { font-size: 48px; }
  .bh-xai-image-wrapper::before { height: 218px; }
}

@media (max-width: 1200px) {
  .bh-xai-section { padding-top: 42px; }
  .bh-xai-right { padding: 48px 36px; gap: 20px; }
  .bh-xai-wrapper { min-height: 500px; }
  .bh-xai-card { padding: 18px 16px; gap: 16px; border-radius: 16px; }
  .bh-xai-card-header { gap: 12px; }
  .bh-xai-card-icon { width: 36px; height: 36px; border-radius: 10px; }
  .bh-xai-card-icon img { width: 16px; height: 16px; }
  .bh-xai-card h4 { font-size: 12px; }
  .bh-xai-card-list li { font-size: 11px; gap: 6px; }
  .bh-xai-card-list li::before { font-size: 12px; width: 5px; }
  .bh-xai-card-quote { font-size: 13px; }
  .bh-xai-card-quote::before { font-size: 40px; margin-bottom: 4px; }
  .bh-xai-card-list { gap: 7px; }
  .bh-xai-description h2 { font-size: 24px; }
  .bh-xai-description > p { font-size: 12px; }
  .bh-xai-content-overlay { top: 48px; left: 32px; }
  .bh-xai-logo-text { font-size: 26px; }
}

@media (max-width: 1024px) {
  .bh-xai-right { padding: 32px 24px; gap: 16px; }
  .bh-xai-card { padding: 14px 12px; gap: 12px; border-radius: 14px; }
  .bh-xai-card-header { gap: 8px; }
  .bh-xai-card-icon { width: 32px; height: 32px; border-radius: 8px; }
  .bh-xai-card-icon img { width: 14px; height: 14px; }
  .bh-xai-card h4 { font-size: 11px; }
  .bh-xai-card-list li { font-size: 10px; gap: 5px; }
  .bh-xai-card-list li::before { font-size: 11px; width: 4px; }
  .bh-xai-card-quote { font-size: 11px; }
  .bh-xai-card-quote::before { font-size: 32px; margin-bottom: 2px; }
  .bh-xai-content-overlay { top: 36px; left: 24px; }
  .bh-xai-logo-text { font-size: 22px; }
  .bh-xai-image-wrapper { height: 500px; }
  .bh-xai-cta .bh-swap-text-button { padding: 12px 20px; font-size: 12px; }
}

@media (max-width: 768px) {
  .bh-xai-section { padding-top: 0; }
  .bh-xai-wrapper { flex-direction: column; }
  .bh-xai-left { flex: 0 0 100%; max-width: 100%; }
  .bh-xai-image-wrapper { height: 400px; }
  .bh-xai-image-wrapper::before { height: 92px; }
  .bh-xai-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1.5rem;
    gap: 24px;
  }
  .bh-xai-cards-row { flex-direction: column; gap: 10px; }
  .bh-xai-card { gap: 16px; padding: 20px; border-radius: 16px; }
  .bh-xai-card-header { flex-direction: row; align-items: center; gap: 12px; }
  .bh-xai-card-icon { width: 44px; height: 44px; }
  .bh-xai-card-icon img { width: 18px; height: 18px; }
  .bh-xai-card h4 { font-size: 14px; }
  .bh-xai-card-list li { font-size: 13px; gap: 8px; }
  .bh-xai-card-list { gap: 10px; }
  .bh-xai-card-quote { font-size: 15px; }
  .bh-xai-card-quote::before { font-size: 44px; }
  .bh-xai-description > p { font-size: 14px; }
  .bh-xai-content-overlay { top: 24px; left: 1rem; }
  .bh-xai-logo-text { font-size: 24px; }
  .bh-xai-cta { gap: 12px; flex-direction: column; }
  .bh-xai-cta .bh-swap-text-button {
    width: 100%;
    justify-content: center;
  }
}
