/**
 * Product category pages — extra sections (the layout itself is archive.css, shared with /all-products/).
 * Markup: template-category.php · Content: inc/category-content.php · JS: assets/js/category.js
 */

/* Banner: title + intro (same banner as /all-products/; a category can bring its own with --pb-hero-img) */
.pb-cat-page .pb-cat-title{margin:0 0 12px;color:#fff;font-size:30px;font-weight:900;line-height:1.5}
.pb-cat-page .pb-archive-hero p{font-size:16px;font-weight:700;line-height:2}
.pb-cat-page .pb-archive-hero--custom{background-image:linear-gradient(90deg,rgba(10,13,65,.94) 0%,rgba(19,22,91,.82) 42%,rgba(36,39,126,.42) 68%,rgba(46,49,146,.04) 100%),var(--pb-hero-img)}

/* Shared section box */
.pb-cat-section{width:calc(100% - 40px);max-width:1200px;margin:0 auto 40px}
.pb-cat-section>h2{margin:0 0 16px;color:var(--pb-ink);font-size:20px;font-weight:800;line-height:1.6}

/* Key facts strip */
.pb-cat-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:-6px;padding:0;list-style:none}
.pb-cat-facts li{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--pb-line);border-radius:12px;background:#fff;text-align:center}
.pb-cat-facts__label{color:var(--pb-muted);font-size:12px;font-weight:500}
.pb-cat-facts__value{color:var(--pb-blue);font-size:15px;font-weight:800}

/* Sidebar consultation card */
.pb-cat-cta p{margin:0;color:var(--pb-muted);font-size:13px}
.pb-cat-cta__btn{display:block;padding:11px 14px;border-radius:9px;background:var(--pb-blue);color:#fff;font-size:13px;font-weight:700;text-align:center;text-decoration:none}
.pb-cat-cta__btn:hover,.pb-cat-cta__btn:focus-visible{background:var(--pb-red)}

/* Comparison table */
.pb-cat-compare__scroll{overflow-x:auto;border:1px solid var(--pb-line);border-radius:14px;background:#fff}
.pb-cat-compare table{width:100%;min-width:560px;border-collapse:collapse;font-size:13px}
.pb-cat-compare th,.pb-cat-compare td{padding:12px 14px;border-bottom:1px solid #F0F2F6;text-align:center}
.pb-cat-compare thead th{background:var(--pb-soft);color:var(--pb-ink);font-weight:800}
.pb-cat-compare tbody th{text-align:start;font-weight:700}
.pb-cat-compare tbody th a{color:var(--pb-blue);text-decoration:none}
.pb-cat-compare tbody tr:last-child>*{border-bottom:0}
.pb-cat-compare tr.is-current>*{background:rgba(255,194,14,.16);font-weight:800}

/* Project photos */
.pb-cat-gallery__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.pb-cat-gallery figure{margin:0;overflow:hidden;border:1px solid var(--pb-line);border-radius:14px;background:#fff}
.pb-cat-gallery img{display:block;width:100%;height:230px;object-fit:cover}
.pb-cat-gallery figcaption{padding:10px 12px;color:var(--pb-ink);font-size:13px;font-weight:600;text-align:center}

/* Long text (category description), clamped */
.pb-cat-seo{padding:22px 24px;border:1px solid var(--pb-line);border-radius:14px;background:#fff}
.pb-cat-seo__body{max-height:170px;overflow:hidden;font-size:14px;line-height:2;-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent);transition:max-height .5s ease}
.pb-cat-seo.is-open .pb-cat-seo__body{-webkit-mask-image:none;mask-image:none}
.pb-cat-seo__body{color:#2B3347;font-size:14.5px}
.pb-cat-seo__body>*:first-child{margin-top:0}
.pb-cat-seo__body p{margin:0 0 12px}
.pb-cat-seo__body strong{color:var(--pb-ink);font-weight:800}
.pb-cat-seo__body a{color:var(--pb-blue);text-decoration:underline;text-underline-offset:3px}
.pb-cat-seo__body a:hover{color:var(--pb-red)}
/* headings: h2 with the yellow accent line of the sidebar titles, h3 plain */
.pb-cat-seo__body h2{margin:26px 0 10px;color:var(--pb-blue);font-size:20px;font-weight:800;line-height:1.6}
.pb-cat-seo__body h2::after{display:block;width:34px;height:3px;margin-top:6px;border-radius:10px;background:var(--pb-yellow);content:""}
.pb-cat-seo__body h3{margin:18px 0 6px;color:var(--pb-ink);font-size:16px;font-weight:700;line-height:1.7}
/* lists: yellow dot bullets */
.pb-cat-seo__body ul,.pb-cat-seo__body ol{margin:10px 0 14px;padding:0;list-style:none}
.pb-cat-seo__body li{position:relative;margin-bottom:8px;padding-inline-start:22px}
.pb-cat-seo__body ul li::before{position:absolute;top:.85em;inset-inline-start:2px;width:8px;height:8px;border-radius:50%;background:var(--pb-yellow);content:""}
.pb-cat-seo__body ol{counter-reset:pb-li}
.pb-cat-seo__body ol li::before{position:absolute;inset-inline-start:0;color:var(--pb-blue);font-weight:800;counter-increment:pb-li;content:counter(pb-li) "."}
/* closing line: <p class="pb-cat-callout"> */
.pb-cat-seo__body .pb-cat-callout{margin:20px 0 0;padding:14px 18px;border-inline-start:4px solid var(--pb-yellow);border-radius:12px;background:var(--pb-soft);color:var(--pb-ink)}
.pb-cat-seo__btn{display:block;margin:14px auto 0;padding:10px 26px;border:0;border-radius:10px;background:var(--pb-blue);color:#fff;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
.pb-cat-seo__btn:hover,.pb-cat-seo__btn:focus-visible{background:var(--pb-red)}

/* FAQ */
.pb-cat-faq details{margin-bottom:10px;border:1px solid var(--pb-line);border-radius:12px;background:#fff}
.pb-cat-faq summary{padding:14px 18px;color:var(--pb-ink);font-size:14px;font-weight:700;cursor:pointer}
.pb-cat-faq details[open] summary{color:var(--pb-blue)}
.pb-cat-faq details p{margin:0;padding:0 18px 16px;color:#4A5468;font-size:14px;line-height:2}

/* Other categories */
.pb-cat-more__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.pb-cat-more__grid a{display:flex;flex-direction:column;gap:8px;height:100%;padding:7px 7px 10px;border:1px solid #DCEAF7;border-radius:9px;background:#fff;color:var(--pb-blue);text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.pb-cat-more__grid a:hover,.pb-cat-more__grid a:focus-visible{border-color:var(--pb-blue);box-shadow:0 6px 16px rgba(46,49,146,.12);transform:translateY(-2px)}
.pb-cat-more__img{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:7px;background:#E6F0F8}
.pb-cat-more__img img{display:block;width:100%;height:100%;object-fit:cover}
.pb-cat-more__name{font-size:12px;font-weight:600;line-height:1.6;text-align:center}

@media (max-width:1024px){
	.pb-cat-facts{grid-template-columns:repeat(2,1fr)}
	.pb-cat-gallery__grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:767px){
	.pb-cat-section{width:calc(100% - 28px);margin-bottom:28px}
	.pb-cat-page .pb-cat-title{font-size:21px}
	.pb-cat-page .pb-archive-hero p{font-size:13px}
	.pb-cat-section>h2{font-size:17px}
	.pb-cat-gallery__grid{grid-template-columns:1fr}
	.pb-cat-gallery img{height:200px}
	.pb-cat-seo{padding:16px}
	.pb-cat-seo__body{font-size:14px}
	.pb-cat-seo__body h2{margin-top:22px;font-size:17px}
	.pb-cat-seo__body h3{font-size:15px}
	.pb-cat-more__grid{grid-template-columns:repeat(2,1fr)}
}
@media (prefers-reduced-motion:reduce){
	.pb-cat-seo__body,.pb-cat-more__grid a{transition:none}
}
