/* Product range styles: homepage hero showcase (.hero--range) and the
   /products lineup (.lineup). Loaded after style.css. */
:root {
  --pb-teal: #00c4b4;
  --pb-teal-hover: #00a89a;
  --pb-teal-text: #00857c; /* teal that passes contrast for small text */
  --pb-ink: #2c3e50;
  --pb-body: #3d4f60;
  --pb-muted: #5d6d7e;
  --pb-mint: #e0fafa;
  --pb-line: #cfeeeb;
  --pb-pack-shadow: drop-shadow(0 14px 18px rgb(44 62 80 / 0.18));
  --pb-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Shared ---------- */
.pb-eyebrow,
.hero--range .hero-text .pb-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-teal-text);
  margin: 0 0 14px;
  max-width: none;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 2px solid var(--pb-ink);
  border-radius: 50px;
  color: var(--pb-ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-btn-secondary:hover {
  background: var(--pb-ink);
  color: #fff;
}

.hero-btn-secondary i {
  transition: transform 0.25s var(--pb-ease);
}

.hero-btn-secondary:hover i {
  transform: translateX(3px);
}

.hero-btn:focus-visible,
.hero-btn-secondary:focus-visible {
  outline: 3px solid var(--pb-ink);
  outline-offset: 3px;
}

/* ---------- Homepage hero ---------- */
.hero--range {
  min-height: auto;
  padding: 140px 5% 80px;
}

.hero--range .hero-content {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.hero--range .hero-text {
  max-width: 580px;
}

.hero--range .hero-text h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 1.05;
  color: var(--pb-ink);
  margin: 0 0 22px;
}

.hero--range .hero-text h1 span {
  color: var(--pb-teal);
}

.hero--range .hero-text .hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--pb-body);
  font-weight: 500;
  max-width: 540px;
  margin: 0 0 26px;
}

.hero-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 28px;
  margin: 0 0 34px;
  padding: 0;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--pb-ink);
}

.hero-points i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pb-mint);
  color: var(--pb-teal-text);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Product carousel: one pack at a time, cross-fading on a timer. Slides
   stack inside a fixed-ratio stage, so nothing shifts as they change. */
.hero-showcase {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.hs-stage {
  position: relative;
  aspect-ratio: 1 / 0.76;
}

.hs-stage::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 16%;
  height: 7%;
  border-radius: 50%;
  background: rgb(44 62 80 / 0.18);
  filter: blur(14px);
}

.hs-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1s var(--pb-ease);
}

.hs-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hs-slide-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: var(--pb-ink);
  text-decoration: none;
  border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
}

.hs-slide-link:focus-visible {
  outline: 3px solid var(--pb-ink);
  outline-offset: 4px;
}

.hs-slide-media {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0 3%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  container-type: size;
}

/* Height = quantity scale (set per slide in JS) × the full-width height of
   the reference 1kg pack, so every pack shares one sense of scale. */
.hs-pack {
  display: grid;
  transition: translate 0.4s var(--pb-ease);
}

.hs-pack img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: calc(var(--hs-scale, 1) * var(--hs-ref-ratio, 0.55) * 100cqw);
  max-width: 100cqw;
  max-height: 100cqh;
  object-fit: contain;
  object-position: 50% 100%;
}

.hs-pack-shot {
  filter: drop-shadow(0 26px 30px rgb(44 62 80 / 0.2));
}

/* Browsers without container query units (e.g. iOS < 16): skip the
   quantity-based sizing and simply fit each pack inside the stage. */
@supports not (width: 1cqw) {
  .hs-slide-media {
    position: relative;
  }

  .hs-pack {
    position: absolute;
    inset: 0 3%;
    display: block;
  }

  .hs-pack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
}

.hs-slide.is-active .hs-pack {
  animation: hs-float 7s ease-in-out infinite;
}

.hs-slide-link:hover .hs-pack {
  translate: 0 -8px;
}

.hs-slide-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 74px;
  padding-top: 18px;
}

.hs-slide-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.hs-slide-meta {
  font-size: 0.92rem;
  color: var(--pb-muted);
}

.hs-slide-meta span {
  color: var(--pb-teal-text);
  font-weight: 700;
  margin-left: 6px;
}

.hs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hs-dots {
  display: flex;
  gap: 2px;
}

.hs-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hs-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a8e3dd;
  transition: width 0.3s ease, background 0.3s ease;
}

.hs-dot[aria-current="true"]::before {
  width: 28px;
  background: var(--pb-teal-text);
}

/* Autoplay: the active dot fills up over the interval */
.hs-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 8px;
  margin: -4px 0 0 -14px;
  border-radius: 999px;
  background: var(--pb-teal-text);
}

.hero-showcase:not(.is-stopped) .hs-dot[aria-current="true"]::before {
  background: #a8e3dd;
}

.hero-showcase:not(.is-stopped) .hs-dot[aria-current="true"]::after {
  animation: hs-progress var(--hs-interval, 4500ms) linear forwards;
}

.hero-showcase.is-paused .hs-dot[aria-current="true"]::after {
  animation-play-state: paused;
}

.hs-dot:focus-visible {
  outline: 2px solid var(--pb-ink);
  outline-offset: 1px;
  border-radius: 999px;
}

.hs-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid #b9dcd8;
  border-radius: 50%;
  background: #fff;
  color: var(--pb-ink);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.hs-toggle:hover {
  border-color: var(--pb-ink);
}

.hs-toggle:focus-visible {
  outline: 2px solid var(--pb-ink);
  outline-offset: 2px;
}

@keyframes hs-progress {
  to {
    width: 28px;
  }
}

@keyframes hs-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1100px) {
  .hero--range {
    padding-top: 170px;
  }

  .hero-points {
    grid-template-columns: max-content;
  }
}

@media (max-width: 900px) {
  .hero--range .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero--range .hero-text {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero--range .hero-text .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-showcase {
    order: -1;
  }

  .hero-points {
    justify-content: center;
    text-align: left;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero--range {
    padding: 110px 20px 56px;
  }

  /* Plain white hero on phones: drop the mint panel from style.css */
  .hero--range::before {
    display: none;
  }

  /* ...and the product shadows */
  .hs-stage::after {
    display: none;
  }

  .hs-pack-shot {
    filter: none;
  }

  .hs-slide-label {
    min-height: 64px;
    padding-top: 12px;
  }

  .hs-slide-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero--range .hero-text .hero-lead {
    font-size: 0.98rem;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .hero-points li {
    font-size: 0.86rem;
    align-items: flex-start;
  }

  .hero-btn-secondary {
    width: 100%;
  }
}

/* ---------- Products page: lineup grid ---------- */
.lineup {
  --pb-ink: #10302d;
  --pb-teal: #0f716a;
  --pb-teal-text: #0f716a;
  --pb-teal-dark: #0b5853;
  --pb-mint: #f3f9f8;
  --pb-tile: #dcf1ee;
  --pb-line: #d3e9e6;
  --pb-muted: #4a6563;
  padding: 170px 5% 100px;
  background: var(--pb-mint);
  color: var(--pb-ink);
}

.lineup-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pb-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--pb-ink);
  margin-bottom: 22px;
}

.pb-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--pb-muted);
  max-width: 560px;
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--pb-teal);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pb-btn:hover {
  background: var(--pb-teal-dark);
  transform: translateY(-2px);
}

.pb-btn:focus-visible,
.pb-link:focus-visible {
  outline: 3px solid var(--pb-teal);
  outline-offset: 3px;
}

.pb-link {
  color: var(--pb-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pb-link:hover {
  color: var(--pb-teal);
}

.lineup-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.lineup-stores-btn {
  flex-shrink: 0;
  padding: 17px 32px;
  font-size: 1.05rem;
}

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

.lineup-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 22px;
  padding: 16px;
  scroll-margin-top: 110px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.lineup-card:hover {
  box-shadow: 0 18px 40px rgb(16 48 45 / 0.08);
  transform: translateY(-3px);
}

/* Arrived from a hero pack link: briefly highlight the matching card */
.lineup-card:target {
  border-color: var(--pb-teal);
  box-shadow: 0 0 0 2px var(--pb-teal);
}

.lineup-media {
  background: var(--pb-tile);
  border-radius: 14px;
  aspect-ratio: 11 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  margin-bottom: 20px;
}

.lineup-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lineup-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 8px 8px;
}

.lineup-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.lineup-title-row h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.lineup-size {
  font-size: 0.85rem;
  color: var(--pb-muted);
  white-space: nowrap;
}

.lineup-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pb-muted);
  margin-bottom: 14px;
}

.lineup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 4px;
}

.lineup-tags li {
  background: #e6f5f3;
  color: var(--pb-teal-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.lineup-banner {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 22px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lineup-banner p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
}

.lineup-banner-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.lineup-banner .pb-btn {
  background: var(--pb-ink);
}

.lineup-banner .pb-btn:hover {
  background: #000;
}

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

@media (max-width: 900px) {
  .lineup {
    padding: 140px 5% 70px;
  }

  .pb-title {
    font-size: 2.4rem;
  }

  .lineup-header,
  .lineup-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .lineup {
    padding: 120px 16px 56px;
  }

  .pb-title {
    font-size: 2rem;
  }

  .pb-lead {
    font-size: 1rem;
  }

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

  .lineup-banner {
    padding: 22px 20px;
  }

  .lineup-banner-actions {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-slide.is-active .hs-pack {
    animation: none;
  }

  .hs-slide,
  .hs-pack,
  .hero-btn-secondary i,
  .lineup-card,
  .pb-btn {
    transition: none;
  }

  .lineup-card:hover,
  .pb-btn:hover {
    transform: none;
  }
}
