/* ============================================================
   industry.css Ã¢â‚¬â€ Shared styles for all industry sub-pages
   ============================================================ */


/* Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:      #D30100;
  --red-dark: #A50000;
  --dark:     #0E0E0E;
  --marine:   #0A2540;
  --bone:     #F4F1EC;
  --amber:    #FEBD59;
  --gray-400: #6B6B6B;
  --gray-100: #F5F5F5;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: clip;
}


/* Hero
   ------------------------------------------------------------ */
.page-hero {
  /* Diagonal red→white blend. Dark/brand red occupies the left ~55% where
     copy lives; white only bleeds into the very bottom-right corner where
     the collage anchors so it doesn't fight the white-bodied pump PNGs on
     top. */
  background: linear-gradient(115deg,
    #bd1818 0%,
    #d30100 30%,
    #d30100 65%,
    #ffffff 100%);
  padding: 55px 28px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 100% 100%, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}


/* Breadcrumb
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: #fff;
}


/* Badge & Typography
   ------------------------------------------------------------ */
.ind-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

h1.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

h1.page-title span {
  color: var(--amber);
}

.page-sub {
  font-size: 17px;
  color: #fff;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 32px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}


/* Hero CTAs
   ------------------------------------------------------------ */
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #fff;
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-red:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}


/* Page Body Layout
   ------------------------------------------------------------ */
.ind-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}


/* Main Content
   ------------------------------------------------------------ */
.ind-main h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 16px;
}

.ind-main p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 16px;
}

.ind-main h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}


/* Products Grid
   ------------------------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}

.product-card {
  background: #fff;
  border: 1.5px solid #efefef;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  box-shadow: 0 6px 28px rgba(211, 1, 0, 0.1);
  border-color: rgba(211, 1, 0, 0.18);
}

.product-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tag {
  padding: 3px 10px;
  background: rgba(211, 1, 0, 0.06);
  border: 1px solid rgba(211, 1, 0, 0.12);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
}


/* Applications Grid
   ------------------------------------------------------------ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bone);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}


/* Why List
   ------------------------------------------------------------ */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-check {
  width: 22px;
  height: 22px;
  background: rgba(211, 1, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}


/* Sidebar
   ------------------------------------------------------------ */
.ind-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: #fff;
  border: 1.5px solid #efefef;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-card.red-card {
  background: var(--red);
  border-color: var(--red);
}

.sidebar-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.sidebar-card.red-card h4 {
  color: #fff;
}

.sidebar-card p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-card.red-card p {
  color: rgba(255, 255, 255, 0.82);
}

.btn-full {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 10px;
}

.btn-full.white {
  background: #fff;
  color: var(--red);
}

.btn-full.white:hover {
  background: #f5f5f5;
}

.btn-full.red-btn {
  background: var(--red);
  color: #fff;
}

.btn-full.red-btn:hover {
  background: var(--red-dark);
}

.btn-full.outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid #ddd;
}

.btn-full.outline:hover {
  border-color: #bbb;
}


/* Brand List
   ------------------------------------------------------------ */
.brand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bone);
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}


/* Related Links
   ------------------------------------------------------------ */
.related-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  border: 1.5px solid #efefef;
  transition: border-color 0.2s, background 0.2s;
}

.related-link:hover {
  border-color: rgba(211, 1, 0, 0.2);
  background: rgba(211, 1, 0, 0.03);
  color: var(--red);
}


/* SEO Content Block
   ------------------------------------------------------------ */
.seo-content {
  background: var(--bone);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
  border-left: 4px solid var(--red);
}

.seo-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.seo-content p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 12px;
}


/* Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .ind-body {
    grid-template-columns: 1fr;
  }

  .ind-sidebar {
    position: static;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 20px 56px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  h1.page-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .page-sub {
    font-size: 15px;
  }

  .ind-body {
    padding: 48px 20px 64px;
    gap: 40px;
  }
}


/* Clickable Cards (type / equipment / industry)
   ------------------------------------------------------------ */
a.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cat-card h4,
.type-card h4 {
  padding-right: 30px;
}

.cat-arrow {
  position: absolute;
  top: 23px;
  right: 20px;
  color: var(--red);
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.product-card:hover .cat-arrow {
  opacity: 1;
  transform: translateX(3px);
}

a.product-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

a.product-card:active {
  transform: translateY(1px);
}


/* Equipment / compact-link grid
   ------------------------------------------------------------ */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 40px;
}

.equip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #efefef;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.equip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}

.equip-card:hover::before {
  transform: scaleY(1);
}

.equip-card:hover {
  border-color: rgba(211, 1, 0, 0.18);
  box-shadow: 0 6px 20px rgba(211, 1, 0, 0.08);
}

.equip-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.equip-card:active {
  transform: translateY(1px);
}

.equip-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(211, 1, 0, 0.06);
  border: 1px solid rgba(211, 1, 0, 0.1);
  border-radius: 9px;
}

.equip-card span:not(.equip-icon) {
  flex: 1;
}

.equip-arrow {
  flex-shrink: 0;
  color: var(--red);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.equip-card:hover .equip-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* Industries-served grid (reuses .app-item, but linkable) */
a.app-item {
  text-decoration: none;
  color: var(--dark);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

a.app-item:hover {
  background: rgba(211, 1, 0, 0.06);
  color: var(--red);
}

a.app-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

a.app-item:active {
  transform: translateY(1px);
}


/* Spec table (variants by type)
   ------------------------------------------------------------ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 36px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #efefef;
  vertical-align: top;
}

.spec-table thead th {
  background: var(--bone);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1.5px solid #ddd;
}

.spec-table tbody tr:hover {
  background: rgba(211, 1, 0, 0.025);
}

.spec-table td.spec-name {
  font-weight: 700;
  color: var(--dark);
}

.spec-table td.spec-desc {
  color: var(--gray-400);
  line-height: 1.55;
}


@media (max-width: 768px) {
  .equip-grid {
    grid-template-columns: 1fr;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table tr {
    border: 1.5px solid #efefef;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 6px 0;
  }

  .spec-table td {
    border: none;
    padding: 8px 16px;
  }

  .spec-table td.spec-name {
    padding-top: 14px;
  }

  .spec-table td.spec-desc {
    padding-bottom: 14px;
  }
}


/* Hero products row — bottom-aligned PNGs with slight horizontal overlap,
   placed directly on the page-hero gradient (no card). Populated by
   scripts/hero-products.js from models with matching images. The grid only
   activates when #hero-products has children (uses :has() + :not(:empty)),
   so pages with no matching images keep the single-column hero.
   ============================================================ */
.page-hero-inner:has(#hero-products:not(:empty)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: end;
}

.hero-copy {
  min-width: 0;
}

/* Hidden until JS area-normalises the images.
   See scripts/hero-products.js → layoutCollage().

   ⇢ Tune the collage here. Three knobs per breakpoint:
       --collage-target-area : visual area (px²) every image targets
       --collage-min-height  : floor for any one image's height (px)
       --collage-max-height  : ceiling for any one image's height (px)
   Larger area = bigger images overall. Tighten min/max to compress
   the visual range between portrait and landscape source PNGs. */
#hero-products {
  --collage-target-area: 50000;
  --collage-min-height: 180;
  --collage-max-height: 360;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 340px;
  position: relative;
  visibility: hidden;
}

#hero-products img {
  display: block;
  flex: 0 0 auto;
  /* width + height set inline by layoutCollage (area-normalised). */
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
}

#hero-products img + img {
  margin-left: -36px;
}

#hero-products img:nth-child(even) {
  transform: translateY(-14px);
}

@media (max-width: 1100px) {
  .page-hero-inner:has(#hero-products:not(:empty)) { gap: 16px; }
  #hero-products {
    --collage-target-area: 34000;
    --collage-min-height: 160;
    --collage-max-height: 280;
    min-height: 280px;
  }
}

@media (max-width: 820px) {
  .page-hero-inner:has(#hero-products:not(:empty)) {
    /* minmax(0, 1fr) instead of bare 1fr — otherwise the column's implicit
       `auto` min lets the flex children's inline pixel widths expand the
       cell past the viewport on phones. */
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #hero-products {
    --collage-target-area: 26000;
    --collage-min-height: 140;
    --collage-max-height: 240;
    min-height: 240px;
    /* Cap the collage at 88% so it stops short of the right hero edge
       even when JS scaling tops out — no more pumps kissing the border. */
    max-width: 88%;
    margin-left: auto;
  }
  #hero-products img + img { margin-left: -28px; }
  #hero-products img:nth-child(even) { transform: translateY(-10px); }
}

@media (max-width: 640px) {
  .page-hero-inner:has(#hero-products:not(:empty)) { gap: 16px; }
  #hero-products {
    --collage-target-area: 18000;
    --collage-min-height: 120;
    --collage-max-height: 200;
    min-height: 200px;
    max-width: 84%;
  }
  #hero-products img + img { margin-left: -22px; }
}

@media (max-width: 480px) {
  #hero-products {
    --collage-target-area: 12000;
    --collage-min-height: 95;
    --collage-max-height: 170;
    min-height: 170px;
    max-width: 84%;
  }
  #hero-products img + img { margin-left: -18px; }
}


/* Available Models lineup table (populated by scripts/models-lineup.js)
   ============================================================ */
#model-lineup {
  margin: 0 0 32px;
}

#model-lineup h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--marine, #0A2540);
  margin: 0 0 16px;
}

.model-lineup-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 10px;
  background: #fff;
}

.model-lineup-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
}

.model-lineup-table thead th {
  background: var(--marine, #0A2540);
  color: var(--bone, #F4F1EC);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.model-lineup-table tbody tr {
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.model-lineup-table tbody tr:nth-child(even) {
  background: var(--bone, #F4F1EC);
}

.model-lineup-table td {
  padding: 14px 16px;
  vertical-align: top;
}

.model-lineup-table td.ml-model {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red, #C8102E);
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 28%;
}

.model-lineup-table td.ml-desc {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  color: var(--marine, #0A2540);
  line-height: 1.55;
}

.model-lineup-table thead th:first-child {
  width: 28%;
}

@media (max-width: 600px) {
  #model-lineup h3 {
    font-size: 24px;
  }
  .model-lineup-table thead th,
  .model-lineup-table td {
    padding: 10px 12px;
  }
  .model-lineup-table td.ml-model {
    white-space: normal;
    width: 35%;
  }
}
