/* =========================================================
   PROCESS PAGE
   Layout/styling specific to process.html only.
   ========================================================= */

/* ---------- Manufacturing Process: zig-zag ---------- */

.process-overview__image-wrap {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
}

#manufacturing-process-image {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}


/* ---------- Machinery slider ---------- */
.machinery-slider {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  height: 560px;
  min-height: 560px;
  max-height: 560px;
}

.machinery-slider__visual {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--color-forest-dark);
}

.machinery-slider__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machinery-slider__stagebadge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: rgba(0,0,0,0.55);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  z-index: 2;
}

.machinery-slider__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, transparent);
  color: var(--color-white);
  padding: var(--space-5) var(--space-3) var(--space-3);
  z-index: 2;
}

.machinery-slider__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.machinery-slider__caption h3 {
  color: var(--color-white);
  font-size: 1.6rem;
  margin-block: 0.3rem 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machinery-slider__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.machinery-slider__counter {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-right: auto;
}

.machinery-slider__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: none;
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.machinery-slider__arrow:hover { background: rgba(255,255,255,0.24); }

.machinery-slider__dots {
  display: flex;
  gap: 0.4rem;
}

.machinery-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: width var(--duration) var(--ease), background var(--duration) var(--ease);
}

.machinery-slider__dot.is-active {
  width: 22px;
  background: var(--color-leaf-light);
}
/* ---------- Info panel ---------- */
.machinery-slider__info {
  height: 100%;
  min-height: 0;
  padding: var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.machinery-slider__info > .eyebrow {
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.machinery-slider__titlebox {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  height: 108px;
  min-height: 108px;
  max-height: 108px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.machinery-slider__titlebox .eyebrow {
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.machinery-slider__titlebox h3 {
  color: var(--color-earth);
  font-size: 1.6rem;
  margin: 0 0 0.2rem;
  line-height: 1.2;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machinery-slider__subtitle {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machinery-slider__desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.machinery-slider__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  flex-shrink: 0;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
}

.machinery-slider__spec {
  border-left: 2px solid var(--color-earth);
  padding-left: var(--space-2);
  min-width: 0;
  overflow: hidden;
}

.machinery-slider__spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-earth);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.machinery-slider__spec span {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  display: block;
  line-height: 1.2;
}


/* ---------- Gallery ---------- */
.process-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.process-gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.process-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.process-gallery__item:hover img { transform: scale(1.06); }

.process-gallery__label {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(14,33,28,0.8), transparent);
  color: var(--color-white);
  font-size: 0.85rem;
  padding: var(--space-2);
}

/* ---------- CTA ---------- */
.process-page-cta__inner { text-align: center; }

.process-page-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE — Process page specific
   ========================================================= */
@media (max-width: 1024px) {
  .machinery-slider {
    grid-template-columns: 1fr;
    grid-template-rows: 420px auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .machinery-slider__visual { height: 420px; min-height: 420px; max-height: 420px; }
  .machinery-slider__info { height: auto; min-height: 0; }
  .machinery-slider__desc { overflow-y: visible; min-height: 0; }
  .process-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .process-zigzag__row,
  .process-zigzag__row.is-reversed {
    flex-direction: column;
    text-align: center;
  }

  .machinery-slider__controls { flex-wrap: wrap; }
  .machinery-slider__specs { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; gap: var(--space-2); }
}