/* ============================================================
   pacy-section-cta.css
   Full-width CTA card with background image overlay
   ============================================================ */


/* This card is always dark — its background comes from a fixed photo
   + dark overlay below (::before/::after), not from a theme modifier
   class. Text/button colors here are intentionally hardcoded for
   that always-dark surface; the outer <section> carries the real,
   swappable bg class (white-bg) for the padding area around it. */
.pacy-cta-inner {
  border-radius: var(--pacy-radius-xl);
  padding: 5rem;
  position: relative;
  overflow: hidden;
}

/* Background image — flipped */
.pacy-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2021/02/Pacy-Media-online-marketing-agency-in-bangkok.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scaleX(-1);
  z-index: 0;
}

/* Gradient overlay — solid left, hint of image right */
.pacy-cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 23, 39, 0.98) 0%,
    rgba(13, 23, 39, 0.96) 40%,
    rgba(13, 23, 39, 0.82) 65%,
    rgba(13, 23, 39, 0.62) 100%
  );
  z-index: 1;
}

.pacy-cta-inner > * {
  position: relative;
  z-index: 2;
}

.pacy-cta-inner .pacy-heading {
  max-width: 800px;
  margin-bottom: 2.5rem;
  color: var(--pacy-white);
}

.pacy-cta-inner .pacy-btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--pacy-white);
}

.pacy-cta-inner .pacy-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--pacy-white);
}


/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .pacy-cta-inner { padding: 3rem 2rem; }
  .pacy-cta-inner::after { background: rgba(13, 23, 39, 0.92); }
}

@media (max-width: 600px) {
  .pacy-cta-inner .pacy-btn-group {
    gap: 0.625rem;
  }

  .pacy-cta-inner .pacy-btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
  }
}
