:root {
  --listing-ink: #101715;
  --listing-muted: #5f6b66;
  --listing-line: #dce3df;
  --listing-paper: #f5f7f5;
  --listing-green: #168653;
}

body {
  margin: 0;
}

.listing-page {
  color: var(--listing-ink);
  background: var(--listing-paper);
  font-family: Arial, Helvetica, sans-serif;
}

.listing-page *,
.listing-page *::before,
.listing-page *::after {
  box-sizing: border-box;
}

.listing-page a {
  color: inherit;
  text-decoration: none;
}

.listing-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.listing-hero {
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 62px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 13, 11, .72), rgba(7, 13, 11, .16)),
    url('/images/group-building.jpg') center 42% / cover no-repeat;
}

.listing-products .listing-hero {
  background:
    linear-gradient(90deg, rgba(7, 13, 11, .68), rgba(7, 13, 11, .12)),
    url('/images/factory-production.jpg') center 55% / cover no-repeat;
}

.listing-blog .listing-hero {
  background:
    linear-gradient(90deg, rgba(7, 13, 11, .68), rgba(7, 13, 11, .12)),
    url('/images/application-architectural.jpg') center 48% / cover no-repeat;
}

.listing-eyebrow {
  margin: 0 0 14px;
  color: #a9e4c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.listing-eyebrow.dark {
  color: var(--listing-green);
}

.listing-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.listing-hero p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.65;
}

.listing-content {
  padding: 82px 0 104px;
}

.listing-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--listing-line);
}

.listing-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.listing-contact,
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--listing-green) !important;
  font-weight: 700;
}

.listing-contact {
  padding-bottom: 7px;
  border-bottom: 2px solid var(--listing-green);
  white-space: nowrap;
}

.listing-contact span,
.text-link span {
  transition: transform .2s ease;
}

.listing-contact:hover span,
.text-link:hover span {
  transform: translate(3px, -2px);
}

.news-grid,
.product-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card,
.product-listing-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.news-card:hover,
.product-listing-card:hover {
  border-color: #aebcb5;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 45, 34, .09);
}

.news-media,
.product-listing-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9eeeb;
}

.news-media img,
.product-listing-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.news-card:hover img,
.product-listing-card:hover img {
  transform: scale(1.035);
}

.news-body,
.product-listing-body {
  padding: 24px;
}

.news-body time {
  display: block;
  margin-bottom: 14px;
  color: var(--listing-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.news-body h2,
.product-listing-body h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: 0;
}

.news-body h2 a,
.product-listing-body h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-body p,
.product-listing-body p {
  min-height: 70px;
  margin: 14px 0 22px;
  overflow: hidden;
  color: var(--listing-muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.text-link {
  font-size: 14px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 62px;
  padding: 10px;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #fff;
}

.category-strip a {
  padding: 12px 18px;
  border-radius: 6px;
  color: #405049;
  font-size: 14px;
  font-weight: 700;
}

.category-strip a:hover,
.category-strip a.is-current {
  color: #fff;
  background: var(--listing-green);
}

.product-listing-media {
  aspect-ratio: 1 / 1;
}

.product-listing-media img {
  object-fit: contain;
  padding: 12px;
  background: #f7f8f7;
}

.listing-pagination {
  margin-top: 54px;
  text-align: center;
}

.listing-pagination a,
.listing-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 3px;
  border: 1px solid var(--listing-line);
  border-radius: 6px;
  background: #fff;
}

.listing-pagination a:hover,
.listing-pagination .active,
.listing-pagination .on {
  color: #fff;
  border-color: var(--listing-green);
  background: var(--listing-green);
}

@media (max-width: 980px) {
  .news-grid,
  .product-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .listing-shell {
    width: min(100% - 28px, 1240px);
  }

  .listing-hero {
    min-height: 350px;
    padding: 72px 0 42px;
    background-position: 60% center;
  }

  .listing-hero h1 {
    font-size: 46px;
  }

  .listing-hero p:last-child {
    font-size: 16px;
  }

  .listing-content {
    padding: 54px 0 72px;
  }

  .listing-heading {
    align-items: start;
    flex-direction: column;
  }

  .news-grid,
  .product-listing-grid {
    grid-template-columns: 1fr;
  }

  .category-strip {
    margin-bottom: 46px;
  }

  .category-strip a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .product-listing-card,
  .news-media img,
  .product-listing-media img,
  .listing-contact span,
  .text-link span {
    transition: none;
  }
}
