/*
 * Printbox AI site customizations.
 *
 * Modern service-page UX. The component is activated by the presence of
 * .pb-service-hero in page content, so it can be reused for additional
 * services without editing the parent Flatsome theme.
 */

.pb-service-hero {
  margin: 0 0 28px;
  padding: 34px 36px;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 72%);
  box-shadow: 0 10px 32px rgba(15, 35, 55, 0.06);
}

.pb-service-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.pb-service-hero__lead {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.55;
  color: #465465;
}

.pb-service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.pb-service-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef3f7;
  color: #344454;
  font-size: 14px;
  font-weight: 600;
}

.pb-service-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--primary-color, #1e73be);
  font-weight: 800;
}

.pb-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pb-service-actions .button,
.pb-service-quote .button {
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 700;
}

.pb-service-actions .pb-service-secondary {
  background: #fff;
  border: 1px solid #d6dee6;
  color: #263746;
  box-shadow: none;
}

.pb-service-anchor {
  scroll-margin-top: 110px;
}

.pb-service-quote {
  margin: 36px 0 8px;
  padding: 28px 30px;
  border: 1px solid #e1e8ef;
  border-radius: 16px;
  background: #f7f9fb;
  text-align: center;
}

.pb-service-quote h2 {
  margin: 0 0 8px;
}

.pb-service-quote p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: #526170;
  font-size: 16px;
  line-height: 1.55;
}

/* Give order/detail sections comfortable separation from the hero. */
.pb-service-anchor + .divider {
  margin-top: 8px;
}

@media (max-width: 849px) {
  /* :has() keeps the sidebar change scoped only to pages using the new UX. */
  body:has(.pb-service-hero) .page-wrapper.page-right-sidebar > .row {
    display: block;
  }

  body:has(.pb-service-hero) .page-wrapper.page-right-sidebar > .row > #content {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    padding-left: 18px;
    padding-right: 18px;
    border-right: 0;
  }

  body:has(.pb-service-hero) .page-wrapper.page-right-sidebar > .row > .large-3.col {
    display: none;
  }

  .pb-service-hero {
    margin: 0 -2px 22px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .pb-service-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .pb-service-hero__lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .pb-service-points {
    gap: 7px;
    margin-bottom: 20px;
  }

  .pb-service-points span {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .pb-service-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pb-service-actions .button,
  .pb-service-quote .button {
    width: 100%;
    min-height: 50px;
  }

  body:has(.pb-service-hero) .flipContainer .flip-slide > .col {
    max-width: 100%;
    flex-basis: 100%;
  }

  body:has(.pb-service-hero) .page-inner img {
    max-width: 100%;
    height: auto;
  }

  .pb-service-quote {
    padding: 24px 20px;
    border-radius: 14px;
  }
}
