/* The Packaging Works — Parent Category Hubs v10.4.1
   Scope: /box-styles/, /materials/, /industries/, /services/ only.
   Shared discovery-hub hero + shared child-card system. Existing copy is unchanged. */

.tpw-parent-hub{
  --hub-ink:#173440;
  --hub-teal:#148b7d;
  --hub-teal-dark:#0f756a;
  --hub-line:#dce6e5;
  --hub-soft:#f5f8f7;
  --hub-radius:12px;
  --parent-hero-progress:0;
  overflow:clip;
}
.tpw-parent-hub .w{max-width:1240px}

/* =========================================================
   One shared parent hero system
   ========================================================= */
.tpw-parent-hub .parent-hub-hero,
.tpw-parent-hub .parent-hub-hero--services{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 12%,rgba(20,139,125,.12),transparent 34%),
    linear-gradient(135deg,#f5f8f7 0%,#fbfcfc 48%,#eef5f3 100%);
  border-bottom:1px solid rgba(19,52,64,.08);
}
.tpw-parent-hub .parent-hub-hero:before{
  content:"";
  position:absolute;
  inset:auto auto -180px -180px;
  width:430px;
  height:430px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(20,139,125,.07),transparent 70%);
  pointer-events:none;
  z-index:-1;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-shell{
  max-width:1420px;
  height:650px;
  min-height:650px;
  margin:0 auto;
  padding:0 clamp(28px,4vw,62px);
  display:grid;
  grid-template-columns:minmax(0,44%) minmax(0,56%);
  gap:clamp(30px,4vw,62px);
  align-items:center;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-copy,
.tpw-services-page .parent-hub-hero--services .commerce-hero-copy{
  position:relative;
  z-index:2;
  width:100%;
  max-width:620px;
  padding:34px 0;
  align-self:center;
}
.tpw-parent-hub .parent-hub-hero .tpw-breadcrumb{margin:0 0 17px}
.tpw-parent-hub .parent-hub-hero .eyebrow{display:block;margin-bottom:10px}
.tpw-parent-hub .parent-hub-hero .commerce-hero-copy h1,
.tpw-services-page .parent-hub-hero--services .commerce-hero-copy h1{
  max-width:620px;
  margin:0 0 20px;
  color:var(--hub-ink);
  font-size:clamp(41px,4vw,58px);
  line-height:1.01;
  letter-spacing:-.045em;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-lead{
  max-width:610px;
  margin:0;
  color:#3f555e;
  font-size:13px;
  line-height:1.68;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-sub{
  max-width:600px;
  margin:13px 0 0;
  color:#66767d;
  font-size:11.3px;
  line-height:1.62;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:25px;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 0;
  padding:0;
  list-style:none;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-chips li{
  padding:7px 10px;
  border:1px solid rgba(20,139,125,.15);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#38525a;
  font-size:10px;
  font-weight:700;
  box-shadow:0 6px 18px rgba(19,52,64,.04);
}

/* Editorial 3-panel media composition. Same geometry on every hub. */
.tpw-parent-hub .parent-hub-hero .commerce-hero-gallery,
.tpw-services-page .parent-services-hero-gallery{
  min-width:0;
  height:430px;
  display:grid;
  grid-template-columns:minmax(0,1.58fr) minmax(0,.9fr);
  grid-template-rows:1fr 1fr;
  gap:12px;
  padding:0;
  background:transparent;
  overflow:visible;
  align-self:center;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img,
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img{
  position:relative!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0;
  min-height:0;
  margin:0;
  display:block!important;
  overflow:hidden;
  border:1px solid rgba(22,58,67,.09);
  border-radius:var(--hub-radius);
  background:#eef3f2;
  box-shadow:0 16px 42px rgba(18,51,62,.10);
  transform:translate3d(0,calc((var(--parent-hero-progress) - .5) * -12px),0)!important;
  will-change:transform;
  transition:border-color .28s ease,box-shadow .28s ease;
  clip-path:none!important;
  z-index:auto!important;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img--feature,
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img--feature{
  grid-column:1;
  grid-row:1 / span 2;
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img:nth-child(2),
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img:nth-child(2){grid-column:2;grid-row:1}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img:nth-child(3),
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img:nth-child(3){grid-column:2;grid-row:2;transform:translate3d(0,calc((var(--parent-hero-progress) - .5) * 12px),0)!important}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img:nth-child(n+4){display:none!important}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img img,
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  background:#eef3f2;
  transition:transform .6s cubic-bezier(.2,.75,.2,1);
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img:hover,
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img:hover{
  border-color:rgba(20,139,125,.24);
  box-shadow:0 22px 50px rgba(18,51,62,.13);
}
.tpw-parent-hub .parent-hub-hero .commerce-hero-img:hover img,
.tpw-services-page .parent-services-hero-gallery .commerce-hero-img:hover img{transform:scale(1.025)}

/* Keep category-specific focal points, not category-specific geometry. */
.tpw-boxstyles-page .parent-hub-hero .commerce-hero-img--feature img{object-position:50% 50%}
.tpw-materials-page .parent-hub-hero .commerce-hero-img img{object-fit:contain;padding:8px;box-sizing:border-box;background:#f1f4f2}
.tpw-industries-page .parent-hub-hero .commerce-hero-img img{object-position:center}
.tpw-services-page .parent-hub-hero .commerce-hero-img img{object-fit:cover}

/* =========================================================
   One shared child-category card system
   ========================================================= */
.tpw-parent-hub #prods,
.tpw-parent-hub #industry-solutions,
.tpw-parent-hub .parent-services-list{
  background:var(--hub-soft)!important;
  border-top:1px solid #e7eeee;
  border-bottom:1px solid #e7eeee;
}
.tpw-parent-hub .products-head,
.tpw-parent-hub .industry-head,
.tpw-parent-hub .parent-services-head{align-items:end}
.tpw-parent-hub .parent-card-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch;
}
.tpw-parent-hub .parent-category-card{
  grid-column:auto!important;
  grid-row:auto!important;
  position:relative;
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid #dce6e5!important;
  border-radius:var(--hub-radius)!important;
  background:#fff!important;
  box-shadow:0 9px 26px rgba(18,51,62,.055)!important;
  transition:transform .26s cubic-bezier(.2,.75,.2,1),box-shadow .26s ease,border-color .26s ease;
}
.tpw-parent-hub .parent-category-card:hover{
  transform:translateY(-3px);
  border-color:#bdd7d2!important;
  box-shadow:0 17px 38px rgba(18,51,62,.095)!important;
}
.tpw-parent-hub .parent-category-card:focus-within{outline:3px solid rgba(20,139,125,.22);outline-offset:3px}
.tpw-parent-hub .parent-category-card .prod-img-wrap,
.tpw-parent-hub .parent-category-card .industry-card__image,
.tpw-parent-hub .parent-service-card .parent-service-media{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:0!important;
  background:#eef3f2!important;
}
.tpw-parent-hub .parent-category-card .prod-img-wrap img,
.tpw-parent-hub .parent-category-card .industry-card__image img,
.tpw-parent-hub .parent-service-card .parent-service-media img{
  width:100%!important;
  height:100%!important;
  display:block;
  object-fit:cover!important;
  object-position:center;
  padding:0!important;
  background:#eef3f2!important;
  transition:transform .5s cubic-bezier(.2,.75,.2,1);
}
.tpw-parent-hub .parent-category-card:hover .prod-img-wrap img,
.tpw-parent-hub .parent-category-card:hover .industry-card__image img,
.tpw-parent-hub .parent-service-card:hover .parent-service-media img{transform:scale(1.025)}
.tpw-parent-hub .parent-category-card .prod-body,
.tpw-parent-hub .parent-category-card .industry-card__body,
.tpw-parent-hub .parent-service-card .parent-service-body{
  position:relative!important;
  inset:auto!important;
  min-height:0!important;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:17px 18px 16px!important;
  background:#fff!important;
  color:inherit!important;
}
.tpw-parent-hub .parent-category-card .prod-title,
.tpw-parent-hub .parent-category-card .industry-card__body h3,
.tpw-parent-hub .parent-service-card .parent-service-body h3{
  margin:0!important;
  color:var(--hub-ink)!important;
  font-size:16px!important;
  line-height:1.3!important;
  letter-spacing:-.015em;
}
.tpw-parent-hub .parent-category-card .prod-card-copy,
.tpw-parent-hub .parent-category-card .industry-card__body span,
.tpw-parent-hub .parent-service-card .parent-service-body p{
  min-height:0!important;
  margin:0!important;
  color:#617178!important;
  font-size:11px!important;
  line-height:1.65!important;
}
.tpw-parent-hub .parent-category-card .prod-btns,
.tpw-parent-hub .parent-card-actions,
.tpw-parent-hub .parent-service-card .parent-service-actions{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto!important;
  padding-top:7px;
}
.tpw-parent-hub .parent-category-card .btn-sm-outline,
.tpw-parent-hub .parent-card-actions a,
.tpw-parent-hub .parent-service-card .parent-service-actions a{
  min-height:35px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid #b8d4cf;
  border-radius:8px;
  background:#fff;
  color:#0e7167;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.035em;
  text-decoration:none;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.tpw-parent-hub .parent-category-card .btn-sm-outline:hover,
.tpw-parent-hub .parent-card-actions a:hover,
.tpw-parent-hub .parent-service-card .parent-service-actions a:hover{
  border-color:var(--hub-teal-dark);
  background:var(--hub-teal-dark);
  color:#fff;
  transform:translateY(-1px);
}

/* Services uses the same card, simply centered because one verified child exists. */
.tpw-services-page .parent-services-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.tpw-services-page .parent-service-card{grid-column:2!important;min-height:0!important}

/* =========================================================
   Responsive recomposition
   ========================================================= */
@media(max-width:1180px){
  .tpw-parent-hub .parent-hub-hero .commerce-hero-shell{grid-template-columns:1fr;gap:12px;height:auto;min-height:0;padding:0 28px 34px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-copy,
  .tpw-services-page .parent-hub-hero--services .commerce-hero-copy{max-width:820px;padding:44px 0 18px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-copy h1,
  .tpw-services-page .parent-hub-hero--services .commerce-hero-copy h1{max-width:820px;font-size:clamp(42px,6vw,60px)}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-gallery,
  .tpw-services-page .parent-services-hero-gallery{height:440px;width:100%}
  .tpw-parent-hub .parent-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tpw-services-page .parent-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tpw-services-page .parent-service-card{grid-column:auto!important}
}
@media(max-width:760px){
  .tpw-parent-hub .parent-hub-hero .commerce-hero-shell{padding:0 18px 24px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-copy,
  .tpw-services-page .parent-hub-hero--services .commerce-hero-copy{padding:30px 0 12px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-copy h1,
  .tpw-services-page .parent-hub-hero--services .commerce-hero-copy h1{font-size:clamp(36px,10.5vw,48px);line-height:1.02;margin-bottom:16px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-lead{font-size:13px;line-height:1.68}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-sub{font-size:11.5px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-actions{flex-direction:column;align-items:stretch}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-actions a{text-align:center;width:100%}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-gallery,
  .tpw-services-page .parent-services-hero-gallery{height:auto;grid-template-columns:1.35fr .9fr;grid-template-rows:145px 145px;gap:8px}
  .tpw-parent-hub .parent-card-grid,
  .tpw-services-page .parent-services-grid{grid-template-columns:1fr!important}
  .tpw-services-page .parent-service-card{grid-column:auto!important}
  .tpw-parent-hub .parent-category-card .prod-img-wrap,
  .tpw-parent-hub .parent-category-card .industry-card__image,
  .tpw-parent-hub .parent-service-card .parent-service-media{aspect-ratio:16/9}
}
@media(max-width:480px){
  .tpw-parent-hub .parent-hub-hero .commerce-hero-gallery,
  .tpw-services-page .parent-services-hero-gallery{grid-template-columns:1fr 1fr;grid-template-rows:205px 112px}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-img--feature,
  .tpw-services-page .parent-services-hero-gallery .commerce-hero-img--feature{grid-column:1 / -1;grid-row:1}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-img:nth-child(2),
  .tpw-services-page .parent-services-hero-gallery .commerce-hero-img:nth-child(2){grid-column:1;grid-row:2}
  .tpw-parent-hub .parent-hub-hero .commerce-hero-img:nth-child(3),
  .tpw-services-page .parent-services-hero-gallery .commerce-hero-img:nth-child(3){grid-column:2;grid-row:2}
}
@media(prefers-reduced-motion:reduce){
  .tpw-parent-hub .parent-hub-hero .commerce-hero-img,
  .tpw-parent-hub .parent-hub-hero .commerce-hero-img:nth-child(3),
  .tpw-services-page .parent-services-hero-gallery .commerce-hero-img,
  .tpw-parent-hub .parent-category-card,
  .tpw-parent-hub .parent-category-card img{transform:none!important;transition:none!important}
}
