/* ===========================================================================
   Products: hero with the floating certification marks, then one section per
   category with alternating product rows.
   =========================================================================== */

.products-hero {
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) clamp(18px, 4vw, 72px);
  background:
    radial-gradient(120% 90% at 10% 0%, #e4f1dd 0%, rgba(228, 241, 221, 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(199, 242, 77, 0.22) 0%, rgba(199, 242, 77, 0) 70%),
    linear-gradient(180deg, #eaf3e7 0%, #f6faf4 55%, #ffffff 100%);
}

.products-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
}

.products-hero__text { max-width: 580px; }

/* Seven marks scattered on a square stage; each tile drifts on its own clock. */
.products-hero__cluster {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-left: auto;
}

.products-hero__tile {
  --size: 26%;
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 22%;
  background: #143a26;
  box-shadow: 0 30px 50px -24px rgba(12, 61, 32, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: tileFloat 7s ease-in-out infinite;
  transition: background-color 0.3s;
}

.products-hero__tile:hover { background: var(--green-deep); }

.products-hero__tile img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.4s var(--ease);
}

.products-hero__tile:hover img { transform: scale(1.06); }

.products-hero__tile[style*='--i:1'] { --size: 28%; left: 2%; top: 14%; animation-delay: -1s; }
.products-hero__tile[style*='--i:2'] { --size: 24%; left: 36%; top: 0; animation-duration: 8s; animation-delay: -3s; }
.products-hero__tile[style*='--i:3'] { --size: 30%; left: 66%; top: 10%; animation-duration: 6.5s; animation-delay: -2s; }
.products-hero__tile[style*='--i:4'] { --size: 30%; left: 33%; top: 30%; animation-duration: 7.5s; }
.products-hero__tile[style*='--i:5'] { --size: 24%; left: 4%; top: 50%; animation-duration: 8.5s; animation-delay: -4s; }
.products-hero__tile[style*='--i:6'] { --size: 26%; left: 68%; top: 48%; animation-duration: 6s; animation-delay: -1.5s; }
.products-hero__tile[style*='--i:7'] { --size: 28%; left: 34%; top: 68%; animation-duration: 7s; animation-delay: -5s; }

@keyframes tileFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .products-hero__tile { animation: none; }
}

/* ---- Categories ----------------------------------------------------------- */
.group__head { max-width: 760px; }

.eyebrow__rule {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.group__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  scroll-margin-top: 110px;
}

.product:nth-child(even) .product__visual { order: 2; }

.product__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background:
    radial-gradient(90% 80% at 30% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    #143a26;
}

.product__mark {
  width: 50%;
  height: 50%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.product__body { max-width: 620px; }

.product__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.product__name {
  margin: 14px 0 0;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--page-ink);
}

.product__copy p {
  margin: 18px 0 0;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.7;
  color: var(--muted-alt);
  text-wrap: pretty;
}

.product__brochure {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  height: 50px;
  padding: 0 22px 0 18px;
  border: 1px solid rgba(12, 61, 32, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.product__brochure:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.product__brochureMeta {
  padding-left: 12px;
  border-left: 1px solid currentColor;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* The green band inverts the row. */
.sec--band-soft .product__name,
.sec--band-soft .product__copy p { color: #fff; }
.sec--band-soft .product__copy p { color: var(--on-dark); }
.sec--band-soft .product__eyebrow { color: var(--lime); }
.sec--band-soft .product__visual {
  background:
    radial-gradient(90% 80% at 30% 20%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.sec--band-soft .product__brochure {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.sec--band-soft .product__brochure:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--deep);
}


@media (max-width: 980px) {
  .products-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .products-hero__cluster { max-width: 440px; margin: 8px auto 0; }
}

@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product:nth-child(even) .product__visual { order: 0; }
  .product__visual { aspect-ratio: 16 / 10; border-radius: 22px; }
  .product__mark { width: 38%; }
}
