/* ============================================================
   PICVISA — Base styles, variables, header & hero
   ============================================================ */

:root {
  --color-yellow: #ffd200;
  --color-dark: #1d1d1d;
  --color-text: #4a4a4a;
  --color-border: #e5e5e5;
  --container-width: 1200px;
  --font-base: 'Montserrat', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  padding: 16px 38px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.btn-primary {
  background-color: var(--color-yellow);
  color: var(--color-dark);
}

.btn-primary:hover {
  background-color: #e6bc00;
}

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

.btn-dark:hover {
  background-color: #000;
}

/* ============================================================
   Site header
   ============================================================ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.lang-switch {
  position: relative;
  /* Hidden until the site is translated into other languages. Remove this rule to re-enable. */
  display: none;
}

.lang-switch-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.flag-en { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><rect width="60" height="40" fill="%23012169"/><path d="M0 0L60 40M60 0L0 40" stroke="%23fff" stroke-width="6"/><path d="M30 0V40M0 20H60" stroke="%23fff" stroke-width="10"/><path d="M30 0V40M0 20H60" stroke="%23C8102E" stroke-width="6"/></svg>'); }
.flag-es { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><rect width="60" height="40" fill="%23AA151B"/><rect y="10" width="60" height="20" fill="%23F1BF00"/></svg>'); }
.flag-ca { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><rect width="60" height="40" fill="%23FCDD09"/><rect y="4.4" width="60" height="4.4" fill="%23DA121A"/><rect y="13.3" width="60" height="4.4" fill="%23DA121A"/><rect y="22.2" width="60" height="4.4" fill="%23DA121A"/><rect y="31.1" width="60" height="4.4" fill="%23DA121A"/></svg>'); }

.lang-dropdown {
  left: auto;
  right: 0;
  transform: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  padding: 8px 0;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-dark);
  white-space: nowrap;
  border-bottom: none;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: #f5f5f5;
  color: var(--color-dark);
}

.btn-contact {
  display: inline-block;
  padding: 12px 26px;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #e6bc00;
}

/* Header main row */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav-item {
  position: relative;
}

.main-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 0;
}

.main-nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: .8;
}

.main-nav-item:not(.has-dropdown) .main-nav-link::after {
  display: none;
}

/* Active section indicator */
.main-nav-link.active {
  color: var(--color-yellow);
}

body.inner-page .site-header .main-nav-link.active {
  color: var(--color-dark);
  position: relative;
}

body.inner-page .site-header .main-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  bottom: -4px;
  height: 2px;
  background: var(--color-yellow);
}

.nav-dropdown a.active,
.nav-subdropdown a.active {
  color: var(--color-yellow);
  font-weight: 600;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(6px);
  min-width: 200px;
  padding: 18px 24px;
  z-index: 50;
}

.main-nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  color: var(--color-yellow);
}

/* Second-level flyout (e.g. Optical Sorting > ECOGLASS, ECOPACK...) */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-item > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  margin-left: 6px;
  opacity: .7;
  vertical-align: middle;
}

.nav-subdropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(6px);
  min-width: 200px;
  padding: 18px 24px;
  z-index: 60;
}

.nav-dropdown-item:hover .nav-subdropdown {
  display: block;
}

.nav-subdropdown a {
  display: block;
  padding: 9px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-subdropdown a:last-child {
  border-bottom: none;
}

.nav-subdropdown a:hover {
  color: var(--color-yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Sticky (scrolled) header state — light background */
.site-header.is-sticky {
  position: fixed;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header.is-sticky .main-nav-link {
  color: var(--color-dark);
}

.site-header.is-sticky .nav-toggle {
  color: var(--color-dark);
}

.site-header.is-sticky .header-logo-light {
  display: none;
}

.site-header:not(.is-sticky) .header-logo-dark {
  display: none;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 120px 20px 100px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 22px;
}

.hero-content .lead {
  font-size: 20px;
  font-weight: 300;
  margin: 0 0 36px;
}

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  z-index: 4;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-shape path {
  fill: #ffffff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #1d1d1d;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 24px;
    transition: right .3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav-item {
    width: 100%;
  }

  .main-nav-link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-dropdown {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0 0 10px 14px;
    display: none;
  }

  .main-nav-item.open .nav-dropdown {
    display: block;
  }

  .nav-subdropdown {
    position: static;
    background: transparent;
    backdrop-filter: none;
    padding: 0 0 4px 14px;
    display: none;
  }

  .nav-dropdown-item.open .nav-subdropdown {
    display: block;
  }

  .nav-dropdown-item > a::after {
    border-left: none;
    border-top: 5px solid currentColor;
    border-left-color: transparent;
    border-right: 4px solid transparent;
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-topbar-inner {
    padding: 10px 0;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content .lead {
    font-size: 16px;
  }

  .page-header {
    min-height: 45vh;
    padding: 100px 0 80px;
  }

  .page-header h1 {
    font-size: 28px;
  }
}

/* ============================================================
   Shared section heading
   ============================================================ */

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-lead {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   Types of waste
   ============================================================ */

.waste-section {
  padding: 90px 0 0;
  background: #fff;
}

.waste-section .container {
  margin-bottom: 50px;
}

.waste-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.waste-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 386 / 621;
  overflow: hidden;
}

.waste-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: filter .3s ease, transform .4s ease;
}

.waste-card:hover::before {
  filter: grayscale(0) saturate(1.3) brightness(1.05);
  transform: scale(1.05);
}

.waste-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background-color .2s ease;
}

.waste-card:hover .waste-card-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.waste-card-label {
  position: relative;
  z-index: 1;
  color: var(--color-yellow);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 32px 0;
  text-align: center;
}

/* ============================================================
   Our Solutions
   ============================================================ */

.solutions-section {
  padding: 100px 0;
  text-align: center;
  background: var(--color-dark);
  color: #fff;
}

.solutions-section .section-title {
  color: #fff;
}

.solutions-section .section-lead {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.solution-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: transform .2s ease;
}

.solution-item:hover {
  transform: translateY(-6px);
}

.solution-item .solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color .2s ease;
}

.solution-item:hover .solution-icon {
  border-color: var(--color-yellow);
}

.solution-item img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.solution-item span {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

/* ============================================================
   Equipment / robotics & AI
   ============================================================ */

.equipment-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.equipment-text {
  background: var(--color-yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
}

.equipment-text h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--color-dark);
}

.equipment-text > p {
  font-size: 15px;
  color: var(--color-dark);
  margin-bottom: 30px;
}

.accordion-item {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark);
}

.accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-dark);
  transition: transform .2s ease;
}

.accordion-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.accordion-item.open .accordion-icon::after {
  transform: scaleY(0);
}

.accordion-content {
  display: none;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--color-dark);
}

.accordion-item.open .accordion-content {
  display: block;
}

.equipment-image {
  position: relative;
  background-color: var(--color-dark);
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Stats row
   ============================================================ */

.stats-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item img {
  height: 65px;
  width: auto;
  margin: 0 auto 18px;
}

.stat-item p {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark);
  line-height: 1.6;
}

.stat-item p strong {
  font-weight: 700;
}

/* ============================================================
   Test Center / After Sales split bands
   ============================================================ */

.split-section {
  position: relative;
  background-color: var(--color-dark);
  overflow: hidden;
}

.split-divider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.split-divider line {
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.split-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 420px;
}

.split-image {
  position: relative;
  flex: 1 1 55%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
}

.split-text {
  position: relative;
  z-index: 1;
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 60px 70px;
}

/* Test Center: image on the left, text on the right.
   The single divider line runs from (60%,0) to (40%,100%) across the section,
   so within this row (top half) it goes from x=60 at y=0 to x=50 at y=100. */
.split-row.test-center .split-image {
  order: 1;
  clip-path: polygon(0 0, 60% 0, 50% 100%, 0% 100%);
}

.split-row.test-center .split-text {
  order: 2;
  padding-left: 90px;
}

/* After Sales: text on the left, image on the right.
   Within this row (bottom half) the same line goes from x=50 at y=0 to x=40 at y=100. */
.split-row.after-sales .split-image {
  order: 2;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 40% 100%);
}

.split-row.after-sales .split-text {
  order: 1;
  padding-right: 90px;
}

.split-text h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.split-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Our Clients
   ============================================================ */

.clients-section {
  padding: 100px 0;
  text-align: center;
}

.clients-section .section-title {
  margin-bottom: 60px;
}

.clients-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
}

.clients-viewport {
  flex: 1 1 auto;
  overflow: hidden;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}

.clients-carousel:hover .clients-track {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.client-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.clients-track img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .6;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}

.client-link:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.15);
}

.clients-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-dark);
  cursor: pointer;
  transition: color .2s ease;
}

.clients-arrow:hover {
  color: var(--color-yellow);
}

/* ============================================================
   Case Studies
   ============================================================ */

.cases-section {
  padding: 0 0 90px;
  text-align: center;
}

.cases-section .section-title {
  margin-bottom: 50px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}

.case-card {
  display: block;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.case-card-image {
  aspect-ratio: 533 / 400;
  overflow: hidden;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.case-card:hover .case-card-image img {
  transform: scale(1.05);
}

.case-card-text {
  background: #d9d9d9;
  padding: 24px;
}

.case-card-text h6 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 10px;
}

.case-card-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .6;
}

.cases-page-section {
  padding: 90px 0;
}

.cases-page-grid {
  gap: 30px 30px;
}

.cases-more-link {
  text-align: center;
  margin-top: 50px;
}

/* ============================================================
   News
   ============================================================ */

.news-section {
  padding: 90px 0;
}

.news-section .section-title {
  margin-bottom: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
}

.news-item-icon {
  flex: none;
  width: 48px;
  height: 57px;
}

.news-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-item-text h5 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-item-text h5 a {
  color: var(--color-dark);
  text-decoration: none;
}

.news-item-text h5 a:hover {
  color: var(--color-yellow-dark, #c9a400);
  text-decoration: underline;
}

.news-item-text h6 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .55;
}

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

/* ============================================================
   Blog
   ============================================================ */

.blog-section {
  padding: 90px 0;
}

.blog-section .section-title {
  margin-bottom: 50px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 738 / 400;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-text {
  padding: 24px;
}

.blog-card-date {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-yellow-dark, #c9a400);
  margin-bottom: 10px;
}

.blog-card-text h6 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.blog-card-text p {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination-link,
.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.pagination-link:hover {
  background-color: var(--color-yellow);
}

.pagination-link.active {
  background-color: var(--color-dark);
  color: #fff;
}

.pagination-link.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.pagination-ellipsis {
  box-shadow: none;
  background: transparent;
}

/* ============================================================
   Case study article
   ============================================================ */

.case-article-section {
  padding: 90px 0;
}

.case-article {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.case-article p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 22px;
}

.case-article h2 {
  font-size: 26px;
  margin: 48px 0 18px;
  color: var(--color-dark);
}

.case-article a {
  color: var(--color-dark);
  font-weight: 600;
  text-decoration: underline;
}

.case-article .btn {
  margin-top: 10px;
}

.article-related,
.article-sources {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--color-light, #f5f5f5);
  border-radius: 8px;
}

.article-related h3,
.article-sources h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--color-dark);
}

.article-related ul,
.article-sources ul {
  margin: 0;
  padding-left: 20px;
}

.article-related li,
.article-sources li {
  font-size: 15px;
  line-height: 1.7;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 40px 0;
  background: var(--color-dark);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 50px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-bcorp {
  display: inline-flex;
  margin-top: 18px;
}

.footer-bcorp img {
  height: 56px;
  width: auto;
}

/* ============================================================
   Responsive (sections)
   ============================================================ */

@media (max-width: 980px) {
  .waste-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .equipment-section {
    grid-template-columns: 1fr;
  }

  .equipment-image {
    aspect-ratio: 4 / 3;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-row {
    flex-direction: column;
    min-height: 0;
  }

  .split-row.test-center .split-image,
  .split-row.after-sales .split-image {
    order: 1;
    flex: none;
    height: 220px;
    clip-path: none;
  }

  .split-row.test-center .split-text,
  .split-row.after-sales .split-text {
    order: 2;
    padding: 30px;
    text-align: left;
  }

  .split-divider {
    display: none;
  }

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

  .cases-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Inner pages — non-hero header
   ============================================================ */

body.inner-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body.inner-page .site-header .main-nav-link {
  color: var(--color-dark);
}

body.inner-page .site-header .nav-toggle {
  color: var(--color-dark);
}

body.inner-page .site-header .header-logo-light {
  display: none;
}

/* ============================================================
   Page header band
   ============================================================ */

.page-header {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.page-header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  z-index: 3;
  line-height: 0;
}

.page-header-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-header-shape path {
  fill: #ffffff;
}

.page-header-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 14px;
}

.page-header h1 {
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-header-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   Contact form
   ============================================================ */

.contact-section {
  padding: 80px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-card {
  background: #f7f7f7;
  padding: 50px;
}

/* Step indicator */

.form-steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .45;
  transition: opacity .2s ease;
}

.form-step.active,
.form-step.done {
  opacity: 1;
}

.form-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}

.form-step.done .form-step-number {
  background: var(--color-yellow);
  color: var(--color-dark);
}

.form-step-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.form-step-divider {
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-border);
  margin: 0 18px;
}

/* Honeypot — hidden from sighted users and screen readers */

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Step panels */

.form-step-panel {
  display: none;
  border: none;
  margin: 0;
  padding: 0;
}

.form-step-panel.active {
  display: block;
}

.form-step-panel legend {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.required {
  color: #d92626;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-yellow);
  outline-offset: -1px;
}

.form-autosave-note {
  font-size: 13px;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 28px;
}

/* Radio group (sorting facility status) */

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.form-radio input {
  margin-top: 3px;
}

/* Consent checkbox */

.form-consent {
  margin-top: 28px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.form-checkbox a {
  color: var(--color-dark);
  text-decoration: underline;
}

.form-recaptcha-note {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin-top: 14px;
}

.form-recaptcha-note a {
  color: #999;
  text-decoration: underline;
}

/* Actions */

.form-actions {
  margin-top: 32px;
}

.form-actions-split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.form-actions .btn {
  min-width: 160px;
}

/* Success state */

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

#contact-form.submitted .form-step-panel,
#contact-form.submitted .form-steps,
#contact-form.submitted .form-honeypot {
  display: none;
}

#contact-form.submitted .form-success {
  display: block;
}

.form-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-success p {
  color: var(--color-text);
  font-size: 15px;
}

/* Sidebar */

.contact-side-block {
  margin-bottom: 36px;
}

.contact-side-block h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-side-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 6px;
}

.contact-side-block a {
  color: var(--color-dark);
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 28px;
  }
}

/* ============================================================
   About us
   ============================================================ */

.section-title-left {
  text-align: left;
}

.section-lead-light {
  color: rgba(255, 255, 255, 0.75);
}

.about-intro {
  padding: 90px 0;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-text p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.about-intro-text .btn {
  margin-top: 10px;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-values-section {
  background-color: #f7f7f7;
  padding: 80px 0;
}

.about-values-section .section-title {
  margin-bottom: 50px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.about-value-card {
  text-align: center;
}

.about-value-card img {
  height: 60px;
  width: auto;
  margin: 0 auto 18px;
}

.about-value-card h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.about-value-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

.about-history-section {
  background-color: var(--color-dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.about-history-section .section-title-light {
  color: #fff;
}

.about-history-section .section-lead {
  margin-bottom: 50px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 760px;
  margin: 0 auto;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-yellow);
  line-height: 1.2;
}

.about-stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
}

.about-sustainability-section {
  padding: 90px 0;
}

.about-sustainability-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: center;
}

.about-sustainability-image {
  background-color: var(--color-dark);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-sustainability-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-sustainability-text p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.about-presence-section {
  background-color: #f7f7f7;
  padding: 80px 0;
  text-align: center;
}

.about-presence-section .section-lead {
  margin-bottom: 14px;
}

.about-presence-section .section-lead:last-child {
  margin-bottom: 0;
}

.about-cta-section {
  position: relative;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.about-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, 0.88);
}

.about-cta-inner {
  position: relative;
}

.about-cta-section h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.about-cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.about-cta-actions-left {
  justify-content: flex-start;
  margin-top: 30px;
}

@media (max-width: 980px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-intro-image {
    order: -1;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-sustainability-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-sustainability-image {
    max-width: 160px;
    margin: 0 auto;
  }

  .about-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   Product pages (ECOGLASS, ECOPACK, etc.)
   ============================================================ */

.materials-grid img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.product-features-section {
  padding: 90px 0;
}

.product-features-section .section-title {
  margin-bottom: 50px;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-feature-card {
  background: #f7f7f7;
  padding: 28px 24px;
  border-top: 3px solid var(--color-yellow);
}

.product-feature-card img {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.product-feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.product-ai-section .about-intro-image {
  background-color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-ai-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}

.product-ai-point h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-ai-point p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.materials-grid-8 {
  grid-template-columns: repeat(4, 1fr);
}

.materials-grid-9,
.about-values-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.about-values-grid.about-values-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
}

.product-features-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

.product-ai-points-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
  .product-features-grid,
  .product-features-grid-6,
  .materials-grid-8,
  .materials-grid-9,
  .about-values-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values-grid.about-values-grid-2 {
    grid-template-columns: 1fr;
  }

  .product-ai-points,
  .product-ai-points-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Solution category landing pages (Optical Sorting, Robotics, Flow Analizer)
   ============================================================ */

.about-values-section .section-lead {
  max-width: 760px;
  margin: 0 auto 50px;
}

.product-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-range-grid.product-range-grid-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.product-range-grid.product-range-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.product-range-card {
  display: block;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}

.product-range-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.product-range-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-dark);
}

.product-range-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-range-card h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 8px;
}

.product-range-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  padding: 0 18px 24px;
}

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

@media (max-width: 640px) {
  .product-range-grid {
    grid-template-columns: 1fr;
  }

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

/* ============================================================
   Technology pillar cards (Metals waste page)
   ============================================================ */

.tech-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tech-pillar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 36px 30px;
}

.tech-pillar-card img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 22px;
}

.tech-pillar-card h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.tech-pillar-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 18px;
}

.tech-pillar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-pillar-card li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  padding-left: 18px;
  position: relative;
}

.tech-pillar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 2px;
  background-color: var(--color-yellow);
}

@media (max-width: 980px) {
  .tech-pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Service cards (After Sales page)
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 36px 30px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 18px;
}

.service-meta {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.service-meta li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text);
}

.service-meta li strong {
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   Catalogue download modal
   ============================================================ */

.catalogue-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.catalogue-modal.open {
  display: flex;
}

.catalogue-modal-dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px 40px;
}

.catalogue-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-dark);
}

.catalogue-modal-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.catalogue-modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.catalogue-modal-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.catalogue-modal-success p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.catalogue-modal.submitted .catalogue-modal-form {
  display: none;
}

.catalogue-modal.submitted .catalogue-modal-success {
  display: block;
}
