/* Catalog "by customer type" (parts/catalog-industries.php): a row of picture cards, each opening a full-screen sheet (parts/industry-sheet.php). */

/* ---------- the row ---------- */
.cind { padding-block: clamp(36px, 5vw, 64px) clamp(8px, 2vw, 20px); }
.cind__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cind__p { max-width: 56ch; margin: 10px 0 0; color: var(--ink-2); font-size: 1.05rem; }
.cind__arrows { display: flex; gap: 8px; flex: none; }
.cind__arrows[hidden] { display: none; }
.cind__arrow { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--blue-100); border-radius: 50%; background: #fff; color: var(--navy-800); cursor: pointer; transition: background .2s, border-color .2s; }
.cind__arrow:hover { background: var(--blue-50); border-color: var(--blue-200); }
html[dir="rtl"] .cind__arrow--next svg, html[dir="ltr"] .cind__arrow:not(.cind__arrow--next) svg { transform: scaleX(-1); }
.cind__row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(236px, 21vw, 300px); gap: clamp(12px, 1.4vw, 18px); margin: 24px 0 0; padding: 4px calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)) 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--blue-200) transparent; list-style: none; }
.cind__row > li { scroll-snap-align: start; }
.indc--sm { aspect-ratio: 3 / 4; border-radius: 18px; }
.indc--sm .indc__name { font-size: clamp(1.25rem, 1.6vw, 1.45rem); }
.indc--sm .indc__p { font-size: .9rem; }
.indc--sm .indc__go { width: 34px; height: 34px; }
.indc.is-loading .indc__go { animation: indc-wait .9s linear infinite; }
@keyframes indc-wait { 50% { opacity: .35; } }
.indc { position: relative; display: block; isolation: isolate; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--navy-900); color: #fff; text-decoration: none; }
.indc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.indc__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 13, 32, .94) 0%, rgba(5, 13, 32, .62) 34%, rgba(5, 13, 32, .08) 64%, transparent 80%); transition: opacity .5s; }
.indc__body { position: absolute; inset: auto 0 0; display: grid; gap: 8px; padding: clamp(18px, 2vw, 26px); }
.indc__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.12; letter-spacing: -.01em; }
.indc__p { max-width: 34ch; font-size: .97rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.indc__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.indc__count { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .84rem; font-weight: 700; }
.indc__open { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.indc__go { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-500); transition: transform .5s var(--ease-out), background .3s; }
html[dir="rtl"] .indc__go svg { transform: scaleX(-1); }
.indc:hover .indc__img, .indc:focus-visible .indc__img { transform: scale(1.06); }
.indc:hover .indc__go, .indc:focus-visible .indc__go { background: var(--blue-400); transform: translateX(-5px); }
html[dir="ltr"] .indc:hover .indc__go { transform: translateX(5px); }
.indc:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }

/* ---------- the sheet ---------- */
.indd { position: relative; background: #fff; }
.cind .indd { margin-top: 32px; border-top: 1px solid var(--line); }
html.ind-js .indd { display: none; }
html.ind-js .indd.is-open { position: fixed; inset: 0; z-index: 1000; display: block; overflow-y: auto; overscroll-behavior: contain; outline: 0; animation: indd-in .5s var(--ease-out) both; }
html.ind-open, html.ind-open body { overflow: hidden; }
html.ind-open .qbar { z-index: 1001; }
/* Logged-in admins: keep the sheet under WordPress's toolbar. */
body.admin-bar .indd.is-open { top: 32px; }
@media (max-width: 782px) { body.admin-bar .indd.is-open { top: 46px; } }
@keyframes indd-in { from { opacity: 0; transform: translateY(28px); } }

.indd__bar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--blue-100); }
html:not(.ind-js) .indd__bar { display: none; }
.indd__bar-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.indd__back { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border: 1px solid var(--blue-100); border-radius: 999px; background: #fff; color: var(--navy-800); font: 700 .95rem var(--font-body); cursor: pointer; transition: background .2s, border-color .2s; }
.indd__back:hover { background: var(--blue-50); border-color: var(--blue-200); }
html[dir="ltr"] .indd__back svg { transform: scaleX(-1); }
.indd__bar-name { flex: 1; min-width: 0; overflow: hidden; color: var(--navy-900); font-size: 1.05rem; white-space: nowrap; text-overflow: ellipsis; }
.indd__x { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue-50); color: var(--navy-800); cursor: pointer; transition: background .2s, transform .3s var(--ease-out); }
.indd__x:hover { background: var(--blue-100); transform: rotate(90deg); }

.indd__hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(360px, 56vh, 560px); color: #fff; background: var(--navy-900); }
.indd__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.indd__hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 13, 32, .95) 0%, rgba(5, 13, 32, .72) 38%, rgba(5, 13, 32, .2) 75%, rgba(5, 13, 32, .1)); }
.indd__hero-in { width: 100%; padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.indd__count { display: inline-block; margin: 0 0 14px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .88rem; font-weight: 700; }
.indd__h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.02em; }
.indd__intro { max-width: 62ch; margin: 16px 0 0; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.65; color: rgba(255, 255, 255, .84); }
.indd__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.indd__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-weight: 600; font-size: .93rem; text-decoration: none; transition: background .2s, border-color .2s; }
.indd__chips a:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.indd__chips small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue-500); font-size: .78rem; font-weight: 700; text-align: center; }

.indd__body { padding-bottom: clamp(56px, 8vw, 96px); }
.indg { margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: 90px; }
.indg__h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; padding-top: 18px; border-top: 1px solid var(--blue-100); color: var(--navy-900); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
.indg__h::before { content: ''; align-self: center; width: 22px; height: 3px; border-radius: 3px; background: var(--blue-500); }
.indg__h small { color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.indg__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.indsv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.indsv__card { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--blue-100); border-radius: 18px; background: var(--blue-50); color: var(--ink-2); text-decoration: none; transition: border-color .25s, transform .4s var(--ease-out), box-shadow .4s; }
.indsv__card strong { color: var(--navy-900); font-size: 1.1rem; }
.indsv__card:hover { border-color: var(--blue-300); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11, 27, 51, .45); }
.indsv__ic { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; background: #fff; color: var(--blue-500); }

.indo ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.indo a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid var(--blue-100); border-radius: 999px; color: var(--navy-800); font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s; }
html[dir="rtl"] .indo a { padding: 5px 5px 5px 16px; }
.indo a:hover { background: var(--blue-50); border-color: var(--blue-200); }
.indo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
	.indg__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.cind__row { grid-auto-columns: 72vw; }
	.cind__arrows, .cind__arrows:not([hidden]) { display: none; }
	.indd__back span { display: none; }
	.indd__back { width: 42px; padding: 0; justify-content: center; }
	.indg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.indd__chips { flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.indd__chips a { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
	html.ind-js .indd.is-open { animation: none; }
	.indc__img, .indc__go, .indd__x, .indsv__card { transition: none; }
}
