/* Stage 7 homepage distillation. Preserve content and identity; reduce repetition and vertical drag. */
body.home .products-category-swipe-hint {
  display: none;
}

body.home .carousel-tab-module {
  padding-top: clamp(3rem, 3.5vw, 3.5rem);
}

body.home .ct-application-route-heading {
  margin-top: 0;
}

body.home .factory-team-container {
  margin-top: clamp(2rem, 3vw, 3rem);
}

body.home .global-item {
  box-sizing: border-box;
  height: 238px;
  min-height: 0;
  overflow: hidden;
  padding-bottom: clamp(1.5rem, 2vw, 2rem);
  padding-top: clamp(1.5rem, 2vw, 2rem);
}

body.home .global-item-title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.025em;
  line-height: 1.12;
}

body.home .global-item-description {
  font-size: .875rem;
  line-height: 1.5;
}

body.home .ct-global-markets {
  padding-bottom: 58px;
  padding-top: 76px;
}

body.home .ct-market-map {
  aspect-ratio: 2.28;
  margin-top: 38px;
}

body.home .ct-market-card button {
  display: none;
}

body.home .clients-module {
  padding-bottom: clamp(3.75rem, 5vw, 5.25rem);
  padding-top: clamp(3.75rem, 5vw, 5.25rem);
}

body.home .clients-carousel-wrapper + .clients-note {
  margin-top: 22px;
}

@media (max-width: 767px) {
  body.home .products-category-grid {
    display: grid;
    gap: 12px;
    grid-auto-columns: min(84vw, 330px);
    grid-auto-flow: column;
    grid-auto-rows: 232px;
    grid-template-columns: none;
    margin-right: -5.56%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 5.56% 10px 0;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-color: #e6232b #dedede;
    scrollbar-width: thin;
  }

  body.home .products-category-card {
    min-width: 0;
    scroll-snap-align: start;
  }

  body.home .products-category-swipe-hint {
    align-items: center;
    color: #5b6063;
    display: flex;
    font-size: .75rem;
    font-weight: 600;
    gap: 8px;
    justify-content: flex-end;
    margin: 10px 0 0;
  }

  body.home .products-category-swipe-hint::before {
    background: #e6232b;
    content: "";
    height: 2px;
    width: 32px;
  }

  body.home .carousel-tab-module {
    padding-top: 2.5rem;
  }

  body.home .ct-application-route-heading {
    margin-bottom: 1.25rem;
    margin-top: 0;
  }

  body.home .global-items-grid {
    display: grid;
    gap: 12px;
    grid-auto-columns: min(74vw, 280px);
    grid-auto-flow: column;
    grid-auto-rows: 180px;
    grid-template-columns: none;
    margin-right: -6.25%;
    overflow-x: auto;
    padding: 0 6.25% 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-color: #e6232b #dedede;
    scrollbar-width: thin;
  }

  body.home .global-item {
    height: 180px !important;
    min-width: 0;
    min-height: 0 !important;
    padding: 20px 14px;
    scroll-snap-align: start;
  }

  body.home .global-item-title {
    font-size: 1rem;
    line-height: 1.25;
  }

  body.home .global-item-description {
    font-size: .8125rem;
    line-height: 1.5;
  }

  body.home .factory-team-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: 5%;
    margin-right: 0;
    margin-top: 2rem;
    overflow-x: auto;
    padding: 0 5% 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-color: #e6232b #dedede;
    scrollbar-width: thin;
    width: auto;
  }

  body.home .factory-team-item {
    flex: 0 0 86vw;
    height: 340px;
    min-height: 0;
    scroll-snap-align: start;
  }

  body.home .factory-team-description {
    font-size: .8125rem;
    line-height: 1.5;
  }

  body.home .ct-global-markets {
    padding-bottom: 38px;
    padding-top: 48px;
  }

  body.home .ct-market-map {
    aspect-ratio: 1.72;
    margin-top: 26px;
  }

  body.home .ct-market-card {
    padding-bottom: 18px;
    padding-top: 18px;
  }

  body.home .ct-market-card dl div + div {
    margin-top: 10px;
    padding-top: 10px;
  }

  body.home .clients-module {
    padding-bottom: 3.25rem;
    padding-top: 3.25rem;
  }

  body.home .clients-title {
    margin-bottom: .75rem;
  }

  body.home .clients-desc {
    margin-bottom: 1.5rem;
  }

}

@media (max-width: 420px) {
  body.home .products-category-grid {
    grid-auto-columns: 86vw;
  }

  body.home .global-items-grid {
    gap: 18px 14px;
  }

  body.home .factory-team-item {
    flex-basis: 88vw;
    height: 320px;
  }

  body.home .ct-market-map {
    aspect-ratio: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .products-category-grid,
  body.home .factory-team-container {
    scroll-behavior: auto;
  }
}

/* Keep the approved homepage layout; repair the guided form's legacy visually-hidden label collision. */
body.home .contact-form-container .ct-guided-inquiry label:not(.ct-inquiry-honeypot) {
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  overflow: visible !important;
  position: static !important;
  width: auto !important;
}

body.home .contact-form-container .ct-guided-inquiry .ct-file-upload {
  contain: layout;
  isolation: isolate;
  min-height: 58px;
  overflow: hidden;
  position: relative !important;
}

body.home .contact-form-container .ct-guided-inquiry .ct-file-upload input[type="file"] {
  height: 100% !important;
  inset: 0 !important;
  min-height: 0 !important;
  position: absolute !important;
  width: 100% !important;
}

/* Reserve the longest desktop inquiry route so both columns stay equal and stable. */
@media (min-width: 993px) {
  body.home .contact-container {
    min-height: 1896px;
  }
}

@media (min-width: 1100px) {
  body.home .contact-container {
    min-height: 1645px;
  }
}

@media (min-width: 1300px) {
  body.home .contact-container {
    min-height: 1557px;
  }
}

@media (min-width: 1500px) {
  body.home .contact-container {
    min-height: 1540px;
  }
}

@media (min-width: 1800px) {
  body.home .contact-container {
    min-height: 1450px;
  }
}
