/* =========================================================
   Armstrong – PRODUCT CATEGORY pages (/category/{url})
   Layout and values follow the FIBC category mockup; site font kept. Prefixed .ct so nothing leaks.
   ========================================================= */
.ct {
    --ct-red: #d7191f; --ct-red-d: #a81217; --ct-ink: #1b1d21; --ct-txt: #555a62; --ct-mute: #6e737b;
    --ct-line: #e6e8eb; --ct-band: #f6f6f7; --ct-pink: #fdecec;
    font-family: 'Quattrocento Sans', sans-serif; color: var(--ct-ink); background: #fff; overflow-x: hidden;
}
.ct *, .ct *::before, .ct *::after { box-sizing: border-box; }
.ct img { display: block; max-width: 100%; }
.ct a { text-decoration: none; }
.ct h1, .ct h2, .ct h3, .ct p, .ct ul, .ct ol { margin: 0; padding: 0; }
.ct ul, .ct ol { list-style: none; }
.ct-wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 1599px) { .ct-wrap { max-width: 1332px; } }
@media (max-width: 1399px) { .ct-wrap { max-width: 1220px; } }
.ct-sec { padding: clamp(48px, 5vw, 80px) 0; }
.ct-band { background: var(--ct-band); }

.ct-eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ct-red); }
.ct .ct-h1 { font-size: clamp(40px, 4.6vw, 74px); font-weight: 700; line-height: .98; color: var(--ct-ink); }
.ct .ct-h2 { margin-top: 10px; font-size: clamp(30px, 2.6vw, 46px); font-weight: 700; line-height: 1.05; color: var(--ct-ink); }
.ct-h1 span, .ct-h2 span { color: var(--ct-red); }
.ct-lead, .ct-lead p { font-size: 17px; line-height: 1.75; color: var(--ct-txt); }
.ct-lead p + p { margin-top: 10px !important; }
.ct-lead a { color: var(--ct-red); }
.ct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ct-head + * { margin-top: 32px; }

/* buttons */
.ct-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 999px; background: none; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.ct-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.ct-btn:hover svg { transform: translate(2px, -2px); }
.ct-btn--red { background: var(--ct-red); color: #fff; }
.ct-btn--red:hover { background: var(--ct-red-d); color: #fff; }
.ct-btn--line { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-btn--line:hover { background: var(--ct-ink); color: #fff; }
.ct-btn--white { background: #fff; color: var(--ct-ink); }
.ct-btn--white svg { color: var(--ct-red); }
.ct-btn--white:hover { background: #fff4f4; color: var(--ct-ink); }

/* hero */
.ct-hero { padding: clamp(36px, 4vw, 56px) 0 clamp(48px, 5vw, 72px); background: var(--ct-band); }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; }
.ct-hero__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ct-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--ct-mute); }
.ct-crumb a { color: var(--ct-mute); }
.ct-crumb a:hover { color: var(--ct-red); }
.ct-crumb li + li::before { content: "/"; margin-right: 10px; }
.ct-crumb [aria-current] { font-weight: 700; color: var(--ct-red); }
.ct-stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 6px; }
.ct-stats > div { display: flex; flex-direction: column; }
.ct-stats b { font-size: 36px; font-weight: 700; line-height: 1; }
.ct-stats span { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-mute); }
.ct-stats > i { width: 1px; background: #dadde1; }

/* showcase */
.ct-show { position: relative; height: 440px; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--ct-line); border-radius: 24px; box-shadow: 0 20px 44px rgba(17, 19, 23, .08); }
.ct-show__slide { position: absolute; inset: 0 0 96px 0; display: flex; align-items: center; justify-content: center; padding: 56px 32px 12px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.ct-show__slide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.ct .ct-show__slide img { width: 100%; height: 100%; object-fit: contain; }
.ct-show__tag { position: absolute; top: 18px; left: 18px; padding: 7px 14px; border-radius: 999px; background: var(--ct-red); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ct-show__count { position: absolute; top: 20px; right: 22px; font-size: 18px; font-weight: 700; color: #c3c7cd; }
.ct-show__count b { color: var(--ct-mute); }
.ct-show__bar { position: absolute; left: 0; right: 0; bottom: 96px; height: 3px; background: #f0f1f3; }
.ct-show__bar i { display: block; height: 100%; background: var(--ct-red); transition: width .4s ease; }
.ct-show__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 96px; padding: 0 18px 0 24px; background: #fafafb; border-top: 1px solid #f0f1f3; }
.ct-show__name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 22px; font-weight: 700; line-height: 1.15; }
.ct-show__nav { display: flex; flex: none; gap: 8px; }
.ct-show__nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid #d5d8dd; border-radius: 50%; background: #fff; color: var(--ct-ink); cursor: pointer; transition: transform .2s; }
.ct-show__nav .ct-show__next { border-color: var(--ct-red); background: var(--ct-red); color: #fff; }
.ct-show__nav button:active { transform: scale(.94); }
.ct-show__nav svg { width: 18px; height: 18px; }

/* search */
.ct-search { display: flex; flex: 0 1 440px; flex-direction: column; gap: 8px; min-width: 260px; }
.ct-search label { margin: 0; font-size: 13px; font-weight: 700; color: var(--ct-mute); }
.ct-search > div { position: relative; display: flex; align-items: center; }
.ct-search svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--ct-mute); pointer-events: none; }
.ct-search input { width: 100%; height: 54px; padding: 0 20px 0 50px; border: 1.5px solid #d5d8dd; border-radius: 999px; background: #fff; font-family: inherit; font-size: 15px; color: var(--ct-ink); outline: 0; transition: border-color .2s, box-shadow .2s; }
.ct-search input:focus { border-color: var(--ct-red); box-shadow: 0 0 0 4px #fbdadb; }
.ct-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; border: 1.5px dashed #d5d8dd; border-radius: 18px; text-align: center; }
.ct-empty[hidden] { display: none; }
.ct-empty > b { font-size: 24px; }
.ct-empty > span { font-size: 15px; color: var(--ct-txt); }

/* product grid */
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ct-grid[hidden] { display: none; }
.ct-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1.5px solid var(--ct-line); border-radius: 18px; color: var(--ct-ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ct-card[hidden] { display: none; }
.ct-card:hover { transform: translateY(-3px); border-color: #f3c2c4; box-shadow: 0 16px 32px rgba(17, 19, 23, .08); color: var(--ct-ink); }
.ct-card__img { position: relative; display: flex; align-items: center; justify-content: center; height: 300px; padding: 22px; overflow: hidden; border-bottom: 1px solid #f0f1f3; }
.ct .ct-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.ct-card:hover .ct-card__img img { transform: scale(1.04); }
.ct-card__tag { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; padding: 5px 10px; border-radius: 999px; background: var(--ct-pink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: var(--ct-red); }
.ct-card__body { display: flex; flex: 1; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.ct-card__name { font-size: 21px; font-weight: 700; line-height: 1.2; }
.ct-card__go { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 1.5px solid #e1e3e6; border-radius: 50%; color: var(--ct-red); transition: background-color .2s, color .2s, border-color .2s; }
.ct-card__go svg { width: 16px; height: 16px; }
.ct-card:hover .ct-card__go { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }
.ct-card__enq { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: var(--ct-ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ct-card--video .ct-card__img { padding: 0; }
.ct .ct-card--video .ct-card__img img { object-fit: cover; }
.ct-card__play { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ct-red); color: #fff; box-shadow: 0 10px 24px rgba(215, 25, 31, .35); }
.ct-card__play svg { width: 26px; height: 26px; margin-left: 3px; }

/* about + features */
.ct-about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 48px; }
.ct-rich p, .ct-rich li { font-size: 16px; line-height: 1.7; color: var(--ct-txt); }
.ct-rich p + p, .ct-rich ul, .ct-rich ol { margin-top: 12px !important; }
.ct-rich ul, .ct-rich ol { padding-left: 20px !important; list-style: disc; }
.ct-rich strong, .ct-rich b { color: var(--ct-ink); }
.ct-rich h3, .ct-rich h4 { margin-top: 18px !important; font-size: 20px; font-weight: 700; }
.ct-feats { margin-top: 32px; padding: 24px 24px 8px; background: #fff; border: 1.5px solid var(--ct-line); border-radius: 20px; }
.ct .ct-feats h3 { margin-bottom: 6px; font-size: 24px; font-weight: 700; line-height: 1.15; }
.ct-feats ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
.ct-feats li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 4px 16px; border-top: 1px solid #f0f1f3; }
.ct-feats li > i { display: grid; flex: none; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ct-pink); color: var(--ct-red); }
.ct-feats li > i svg { width: 12px; height: 12px; }
.ct-feats li > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-feats b { font-size: 15px; line-height: 1.3; color: var(--ct-ink); }
.ct-feats li > span > span { font-size: 14px; line-height: 1.45; color: var(--ct-txt); }

/* FAQs */
.ct-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ct-ask > span { font-size: 15px; color: var(--ct-txt); }
.ct-ask .ct-btn { min-height: 48px; padding: 0 24px; font-size: 15px; }
.ct-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px 20px; }
.ct-faq > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-faq details { overflow: hidden; background: #fff; border: 1.5px solid var(--ct-line); border-radius: 16px; transition: background-color .2s, border-color .2s; }
.ct-faq details[open] { background: #fdf3f3; border-color: #f3c2c4; }
.ct-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 12px 18px 12px 20px; font-size: 18px; font-weight: 700; line-height: 1.25; list-style: none; cursor: pointer; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4f5f6; font-size: 20px; line-height: 1; color: var(--ct-ink); }
.ct-faq details[open] summary::after { content: "\2212"; background: var(--ct-red); color: #fff; }
.ct-faq__a { padding: 0 20px 18px; }
.ct-faq__a, .ct-faq__a p, .ct-faq__a li { font-size: 15px; line-height: 1.6; color: var(--ct-txt); }
.ct-faq__a p + p, .ct-faq__a ul { margin-top: 8px !important; }
.ct-faq__a ul { padding-left: 18px !important; list-style: disc; }

/* CTA + logos */
.ct-cta-wrap { padding: 0 0 72px; }
.ct-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 56px; border-radius: 28px; background: var(--ct-red); color: #fff; }
.ct-cta > div { flex: 1 1 520px; min-width: 0; }
.ct .ct-cta h2 { font-size: clamp(30px, 2.6vw, 46px); font-weight: 700; line-height: 1.05; color: #fff; }
.ct .ct-cta p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: #ffe1e2; }
.ct-cta .ct-btn { min-height: 56px; padding: 0 32px; }
.ct-logos-wrap { padding: 0 0 88px; }
.ct-logos__label { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; text-align: center; color: var(--ct-mute); }
.ct-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ct-logos li { display: flex; align-items: center; justify-content: center; height: 110px; padding: 14px; border: 1.5px solid var(--ct-line); border-radius: 16px; }
.ct .ct-logos img { max-height: 76px; width: auto; object-fit: contain; }

/* responsive */
@media (max-width: 1399px) { .ct-feats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ct-feats ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
    .ct-hero__grid, .ct-about, .ct-faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ct-feats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ct-card__img { height: 240px; }
    .ct-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ct-cta { padding: 36px 28px; border-radius: 22px; }
}
@media (max-width: 575px) {
    .ct-grid, .ct-feats ul { grid-template-columns: minmax(0, 1fr); }
    .ct-show { height: 360px; }
    .ct-show__slide { inset: 0 0 84px 0; padding: 52px 18px 10px; }
    .ct-show__bar { bottom: 84px; }
    .ct-show__foot { height: 84px; padding: 0 12px 0 16px; }
    .ct-show__name { font-size: 18px; }
    .ct-search { flex-basis: 100%; min-width: 0; }
    .ct-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-btns .ct-btn { flex: 1 1 auto; }
    .ct-cta-wrap { padding-bottom: 48px; }
    .ct-logos-wrap { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-show__slide, .ct-card, .ct .ct-card__img img, .ct-show__bar i { transition: none; }
}

/* machines fill their frame: the script measures the empty margin in each photo and sets --fit-* (zoom + re-centre) */
.ct-show__slide { padding: 46px 20px 10px; }
.ct .ct-show__slide img, .ct .ct-card__img img { transform: translate(var(--fit-x, 0px), var(--fit-y, 0px)) scale(var(--fit-s, 1)); }
.ct-card:hover .ct-card__img img { transform: translate(var(--fit-x, 0px), var(--fit-y, 0px)) scale(calc(var(--fit-s, 1) * 1.04)); }
.ct-card__img { padding: 16px; }
@media (max-width: 575px) { .ct-show__slide { padding: 46px 12px 8px; } }
