/* ── Main content offset below the hero ── */
.main-content {
  margin-top: 80px;
}

@media only screen and (max-width: 768px) {
  .main-content {
    margin-top: 24px;
  }
}

/* .pricing-section's padding-bottom (80px, style.css) is part of the Encore bundle — same
   specificity here wins since this file loads after that bundle in the stylesheets block. */
.pricing-section {
  padding-bottom: 40px;
}

/* .header-center's global margin-bottom (50px, style.css) is shared across many sections — scoped
   here to just About Us so it doesn't shift the others. */
#about .header-center {
  margin-bottom: 25px;
}

/* ── Engagement split section (self-serve platform vs. consulting) ── */
/* A shorter-than-full-viewport floor (not calc(100vh - 80px) like .hero-slider) — at true 100vh
   the content, once centered, sits far enough below the section's top edge that scrolling past
   the hero reads as a wall of empty space before anything appears. This height still reads as
   its own "page" on scroll without that dead gap. */
.engagement-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.engagement-section .container {
  width: 100%;
}

.engagement-split-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  /* Lets the opposing rotateY tilts on the cards below read as real depth, not a flat skew. */
  perspective: 1400px;
}

@media only screen and (max-width: 767px) {
  .engagement-section {
    min-height: auto;
    padding: 60px 0;
  }
}

.engagement-card {
  display: flex;
  flex-direction: column;
  background: var(--white-color);
  border: 1px solid rgba(33, 150, 243, 0.12);
  border-radius: 10px;
  padding: 40px 36px;
  text-align: left;
  width: 100%;
  max-width: 560px;
  flex: 1 1 480px;
  transform-style: preserve-3d;
  box-shadow: 0 18px 34px -20px rgba(15, 40, 80, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Resting tilt: the two cards angle slightly toward each other (book-page effect) so the 3D
   depth reads even before any interaction, not just on hover. */
.engagement-card:nth-child(1) {
  transform: rotateY(7deg);
}

.engagement-card:nth-child(2) {
  transform: rotateY(-7deg);
}

.engagement-card:hover {
  transform: rotateY(0deg) translateY(-10px) translateZ(30px);
  box-shadow: 0 30px 50px -18px rgba(33, 150, 243, 0.35);
}

.engagement-tag {
  display: inline-block;
  font: 12px var(--font-bold), arial, sans-serif;
  letter-spacing: 0.08em;
  color: var(--light-blue);
  background: #ebf6ff;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.engagement-card h4 {
  font: 22px var(--font-bold), arial, sans-serif;
  margin-bottom: 12px;
}

.engagement-card p {
  color: var(--gray-color);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1 0 auto;
}

.engagement-card a {
  align-self: flex-start;
  text-decoration: none;
}

.btn-search-api-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--light-blue);
  border: 2px solid var(--light-blue);
  font: 14px var(--font-medium), arial, sans-serif;
  border-radius: 3px;
  padding: 8px 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-search-api-outline:hover {
  background-color: var(--light-blue);
  color: var(--white-color);
}

@media only screen and (max-width: 767px) {
  .engagement-split-row {
    gap: 24px;
  }

  .engagement-card {
    max-width: 100%;
    margin-bottom: 24px;
  }

  /* The resting book-page tilt only reads as depth side-by-side — stacked full-width on mobile
     it just looks skewed, so flatten it and rely on the hover lift alone. */
  .engagement-card:nth-child(1),
  .engagement-card:nth-child(2) {
    transform: none;
  }

  .engagement-card:hover {
    transform: translateY(-6px);
  }
}

/* ── Consulting section cards ── */
/* .feature-item's global margin-bottom (50px, style.css) is part of the Encore-bundled stylesheet,
   which needs a rebuild to change — this scoped override lives here instead since it's only ever
   used in the Consulting section's card grid. */
section[name="consulting"] .feature-item {
  margin-bottom: 0;
}

/* ── Mobile section spacing ── */
/* The Encore-bundled style.css forces `section { margin-bottom: 10px !important; }` under 768px.
   Sections with their own bottom padding (pricing, about, etc.) still read as spaced-out despite
   that, but these three have none of their own — they rely entirely on margin-bottom, so they
   collapsed to almost nothing. Needs matching specificity + !important to actually win over it. */
@media only screen and (max-width: 768px) {
  #product-tour,
  section[name="consulting"],
  .references-section {
    margin-bottom: 50px !important;
  }
}

