/* ============================================================
   Printley — category-page SEO content (hero, sections, FAQ, CTA)
   Tokens: var(--cl-primary) #f26522 / --cl-secondary #d35400
   ============================================================ */

/* ---- Hero band (above the product grid) ---- */
.printley-cat-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #fff6f1 0%, #ffece1 100%);
  border-radius: var(--border-radius, 12px);
}

.printley-cat-hero-text {
  flex: 1 1 60%;
  min-width: 0;
}

.printley-cat-hero-title {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--cl-heading, #111);
}

.printley-cat-hero-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a4a4a;
}

.printley-cat-hero-intro p:last-child {
  margin-bottom: 0;
}

.printley-cat-hero-art {
  flex: 0 0 38%;
  max-width: 360px;
}

.printley-cat-hero-art .printley-cat-hero-svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 782px) {
  .printley-cat-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .printley-cat-hero-art {
    flex-basis: auto;
    max-width: 280px;
    order: -1;
  }
  .printley-cat-hero-title {
    font-size: 1.55rem;
  }
}

/* ---- Long-form SEO content (below the grid) ---- */
.printley-cat-seo {
  margin: 2.5rem 0 0;
}

.printley-cat-seo-content {
  max-width: 880px;
  line-height: 1.65;
  color: #3a3a3a;
}

.printley-cat-seo-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.85rem;
  color: var(--cl-heading, #111);
  padding-top: 1.25rem;
  border-top: 1px solid #ececec;
}

.printley-cat-seo-content h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.printley-cat-seo-content ul {
  margin: 0 0 1rem 1.25rem;
}

.printley-cat-seo-content li {
  margin-bottom: 0.4rem;
}

.printley-cat-seo-content a {
  color: var(--cl-primary, #f26522);
  text-decoration: underline;
}

.printley-cat-seo-content a:hover {
  color: var(--cl-secondary, #d35400);
}

/* benefit grid (optional, if authored as cards) */
.printley-cat-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.printley-cat-benefit {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #faf7f5;
  border: 1px solid #f0e3da;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.printley-cat-benefit svg {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.printley-cat-benefit b {
  display: block;
  margin-bottom: 0.15rem;
  color: #222;
}

.printley-cat-benefit span {
  font-size: 0.92rem;
  color: #5a5a5a;
}

/* price table */
.printley-cat-seo-content table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

.printley-cat-seo-content th,
.printley-cat-seo-content td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.printley-cat-seo-content thead th {
  background: #fff3ec;
  color: #222;
  font-weight: 600;
}

.printley-cat-seo-content td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--cl-secondary, #d35400);
  white-space: nowrap;
}

/* ---- FAQ accordion (reuses PDP .printley-faq-item look) ---- */
.printley-cat-seo-faq {
  max-width: 880px;
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #ececec;
}

.printley-cat-seo-faq > h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--cl-heading, #111);
}

.printley-cat-seo-faq .printley-faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.printley-cat-seo-faq .printley-faq-item summary {
  cursor: pointer;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.printley-cat-seo-faq .printley-faq-item summary::-webkit-details-marker {
  display: none;
}

.printley-cat-seo-faq .printley-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  color: var(--cl-primary, #f26522);
  font-weight: 700;
  font-size: 1.2em;
}

.printley-cat-seo-faq .printley-faq-item[open] summary::after {
  content: "\2013";
}

.printley-cat-seo-faq .printley-faq-a {
  padding: 0 1rem 1rem;
  line-height: 1.55;
  color: #4a4a4a;
}

/* ---- CTA strip ---- */
.printley-cat-cta {
  margin: 2.5rem 0 0;
  background: linear-gradient(135deg, #f26522 0%, #d35400 100%);
  border-radius: var(--border-radius, 12px);
  text-align: center;
  padding: 2rem 1.5rem;
}

.printley-cat-cta-title {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.printley-cat-cta-sub {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.2rem;
}

.printley-cat-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--cl-secondary, #d35400);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.printley-cat-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: var(--cl-secondary, #d35400);
}
