body {
  background: var(--off);
}

/*
 * Keep horizontal content clipped without creating the overflow ancestor
 * that would otherwise disable the sticky category introduction.
 */
html,
body.secondary-page {
  overflow-x: clip !important;
}

site-header,
site-footer {
  display: block;
}

.footer a[aria-current="page"] {
  color: #deb16e;
}

.cotton-hero {
  position: relative;
  min-height: clamp(440px, 32vw, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(125px, 9vw, 165px) 0 clamp(50px, 4vw, 80px);
  background: url("../assets/Global assets/companyherobanner.png") center / 100% 100% no-repeat;
}

@media (min-width: 1024px) and (max-width: 1599px) {
  .cotton-hero {
    min-height: clamp(380px, 28vw, 440px);
    padding-top: clamp(140px, 10.5vw, 175px);
    padding-bottom: clamp(55px, 4.5vw, 75px);
    background-size: 100% 100%;
    background-position: center center;
  }
}

.cotton-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cotton-hero .eyebrow {
  margin-bottom: clamp(20px, 2vw, 32px);
  color: #d48700;
}

.cotton-hero h1 {
  max-width: 1450px;
  margin: 0 auto clamp(28px, 3vw, 44px);
  line-height: 1.03;
  text-wrap: balance;
}

.cotton-hero-inner > p:last-child {
  max-width: 1180px;
  margin: 0 auto;
  line-height: 1.5;
}

.technical-factors {
  background: #fff;
}

.cotton-section-heading {
  margin-bottom: clamp(50px, 6vw, 90px);
}

.cotton-section-heading h2 {
  text-wrap: balance;
}

.cotton-section-heading .lead {
  max-width: 1000px;
}

.technical-carousel {
  --technical-gap: clamp(20px, 1.35vw, 28px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(14px, 1.25vw, 26px);
  width: min(98vw, 1960px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.technical-carousel .carousel-control {
  width: 48px;
  height: 48px;
}

.technical-viewport {
  overflow: hidden;
  padding: 2px 1px;
  touch-action: pan-y;
}

.technical-viewport:focus-visible {
  outline: 3px solid rgba(213, 154, 37, 0.7);
  outline-offset: 5px;
  border-radius: 28px;
}

.technical-track {
  display: flex;
  gap: var(--technical-gap);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.technical-card {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1.12;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(38px, 3.2vw, 52px) clamp(32px, 2.8vw, 44px);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1d8 0%, #fffbf2 100%);
}

.technical-card img {
  width: clamp(72px, 5.5vw, 96px);
  aspect-ratio: 1;
  margin-bottom: clamp(20px, 1.8vw, 28px);
  border-radius: 50%;
}

.technical-card h3 {
  margin-bottom: clamp(14px, 1vw, 20px);
  color: var(--navy);
  font-size: clamp(1.65rem, 1.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
}

.technical-card p {
  max-width: 340px;
  margin: 0;
  color: #111;
  font-size: clamp(1.08rem, 1.25vw, 1.5rem);
  font-weight: 100;
  line-height: 1.42;
}

.cotton-panorama {
  width: 100%;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  margin: 0;
  padding: 0;
  background: #3074ac;
}

.cotton-panorama img {
  display: block;
  width: 100%;
  height: clamp(390px, 40.55vw, 730px);
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}

.cotton-categories {
  --category-gold: #d6a64e;
  --category-cream: #fff0d2;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #03375e;
  color: #fff;
}

.cotton-categories::before,
.cotton-categories::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.cotton-categories::before {
  z-index: -2;
  background: url("../assets/Global assets/cottonscrollbg.png") center center / 100% 100% no-repeat;
  background-attachment: fixed;
}

.cotton-categories::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 55, 94, 0.35) 0%, rgba(3, 55, 94, 0.55) 100%);
}

.cotton-category-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 0.82fr);
  gap: clamp(78px, 8vw, 170px);
  align-items: start;
  padding-block: clamp(92px, 7.8vw, 150px);
}

.cotton-category-intro {
  position: sticky;
  top: clamp(90px, 14vh, 190px);
  padding-top: clamp(125px, 11vw, 235px);
}

.cotton-category-intro .eyebrow {
  margin: 0 0 clamp(22px, 2.1vw, 36px);
  color: var(--category-gold);
  text-align: left;
}

.cotton-category-intro h2 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 4.65vw, 5.8rem);
  font-weight: 400;
  line-height: 1.03;
  text-wrap: balance;
}

.cotton-availability-note {
  max-width: 710px;
  margin: clamp(68px, 6.2vw, 118px) 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.18vw, 1.45rem);
  font-weight: 300;
  line-height: 1.48;
}

.cotton-category-stream {
  display: flex;
  flex-direction: column;
}

.cotton-category-card {
  --category-parallax-y: 0px;
  display: grid;
  grid-template-columns: clamp(112px, 8vw, 150px) minmax(0, 1fr);
  gap: clamp(34px, 3.2vw, 62px);
  align-items: center;
  min-height: clamp(300px, 23vw, 405px);
  padding: clamp(48px, 4.4vw, 84px) 0;
  border-bottom: 1px solid rgba(22, 151, 211, 0.55);
  transform: translate3d(0, var(--category-parallax-y), 0);
  will-change: transform;
}

.cotton-category-card:first-child {
  padding-top: 0;
}

.cotton-category-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cotton-category-icon {
  display: grid;
  place-items: center;
  width: clamp(112px, 8vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--category-cream);
  box-shadow: 0 14px 34px rgba(0, 17, 34, 0.18);
}

.cotton-category-icon svg,
.cotton-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  fill: none;
  stroke: #073b63;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.cotton-category-copy {
  max-width: 560px;
}

.cotton-category-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.88rem, 1.08vw, 1.24rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cotton-category-card h3 {
  margin: 0 0 clamp(12px, 1.2vw, 20px);
  color: var(--category-gold);
  font-size: clamp(1.72rem, 1.92vw, 2.45rem);
  font-weight: 600;
  line-height: 1.18;
}

.cotton-category-copy > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.13vw, 1.38rem);
  font-weight: 300;
  line-height: 1.4;
}

.cotton-cta .cta-panel {
  background: #f8ddb0;
}

.cotton-cta .cta-panel::before {
  background: url("../assets/ctabg.png") center/cover no-repeat;
}

.cotton-cta .cta-panel h2 {
  line-height: 1.02;
}

.cotton-cta .cta-panel .button {
  min-width: min(100%, 350px);
}

@media (min-width: 600px) {
  .technical-card {
    flex-basis: calc((100% - var(--technical-gap)) / 2);
  }
}

@media (min-width: 1024px) {
  .technical-card {
    flex-basis: calc((100% - (var(--technical-gap) * 3)) / 4);
  }
}

@media (max-width: 1023px) {
  .cotton-category-stage {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 86px;
  }

  .cotton-category-intro {
    position: relative;
    top: auto;
    padding-top: 0;
  }

  .cotton-category-intro h2 {
    max-width: 760px;
  }

  .cotton-availability-note {
    margin-top: 34px;
  }

  .cotton-category-card {
    min-height: 250px;
  }
}

@media (max-width: 767px) {
  .cotton-hero {
    min-height: 690px;
    padding-top: 145px;
    background-position: center;
  }

  .cotton-hero h1 {
    line-height: 0.98;
  }

  .technical-carousel {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .technical-carousel .carousel-control {
    width: 46px;
    height: 46px;
  }

  .technical-card {
    height: auto;
    min-height: 0;
    padding: clamp(28px, 6vw, 36px) clamp(18px, 4vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    transform: none !important;
    transition: none !important;
  }

  .technical-card img {
    width: clamp(72px, 18vw, 92px);
    margin-bottom: 18px;
    margin-inline: auto;
  }

  .technical-card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .technical-card p {
    font-size: 1.02rem;
    text-align: center;
    max-width: 320px;
    margin-inline: auto;
  }

  .cotton-categories::before {
    background-position: center center;
  }

  .cotton-category-stage {
    gap: 34px;
    padding-block: 72px;
  }

  .cotton-category-intro h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .cotton-category-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 22px;
    min-height: 220px;
    padding-block: 38px;
    transform: none;
  }

  .cotton-category-icon {
    width: 82px;
  }

  .cotton-category-card h3 {
    font-size: 1.55rem;
  }

  .cotton-category-copy > p:last-child {
    font-size: 1rem;
  }

  .cotton-cta .cta-panel h2 br {
    display: none;
  }
}

@media (max-width: 599px) {
  .cotton-panorama img {
    height: 430px;
    object-position: 35% center;
  }

  .cotton-cta .button-row {
    flex-direction: column;
  }

  .cotton-cta .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .technical-track {
    transition: none;
  }

  .cotton-category-card {
    transform: none;
    will-change: auto;
  }
}
