/* Packaging Design page */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f3f2ee;
  color: #111111;
}

.hero-title {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.05;
  color: #0d0d0d;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.5;
  color: #333333;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background-color: #333333;
  color: #e2e2e2;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  line-height: 1;
}

.badge-pill .dot {
  width: 7px;
  height: 7px;
  background-color: #ea332d;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* Cross-link pill */
.back-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #333333;
  color: #e2e2e2;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 18px 9px 14px;
  border-radius: 50px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.back-pill-link i {
  font-size: 0.8rem;
}

.back-pill-link:hover {
  background-color: #111111;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(234, 51, 45, 0.18), 0 8px 24px rgba(234, 51, 45, 0.35);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.cta-btn .btn-text {
  background-color: #333333;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn .btn-text .dot {
  width: 7px;
  height: 7px;
  background-color: #ea332d;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.cta-btn .btn-arrow {
  background-color: #333333;
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover .btn-text,
.cta-btn:hover .btn-arrow {
  background-color: #111111;
  box-shadow: 0 0 0 6px rgba(234, 51, 45, 0.18), 0 8px 24px rgba(234, 51, 45, 0.35);
}

.cta-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Scroll-reveal */
.pk-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pk-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pk-gallery-grid .pk-reveal:nth-child(3n+2) {
  transition-delay: 0.08s;
}

.pk-gallery-grid .pk-reveal:nth-child(3n+3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .pk-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Packaging gallery grid (uncropped) */
.pk-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pk-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
}

.pk-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14), 0 0 24px rgba(234, 51, 45, 0.22);
}

.pk-card img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.pk-view-link {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(17, 17, 17, 0.85);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 50px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.pk-card:hover .pk-view-link {
  opacity: 1;
  transform: translateY(0);
}

.pk-view-link:hover {
  background-color: #ea332d;
  color: #ffffff;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .pk-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .pk-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pk-view-link {
    opacity: 1;
    transform: translateY(0);
    position: static;
    margin: 12px;
  }
}

/* Lightbox */
.pk-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pk-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pk-modal-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2001;
}

#pkLightboxImg {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.pk-modal-overlay.active #pkLightboxImg {
  transform: scale(1);
}

.pk-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2001;
}

.pk-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.pk-lightbox-prev {
  left: 24px;
}

.pk-lightbox-next {
  right: 24px;
}

@media (max-width: 575px) {
  .pk-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .pk-lightbox-prev {
    left: 8px;
  }

  .pk-lightbox-next {
    right: 8px;
  }

  .pk-modal-close {
    top: 12px;
    right: 16px;
  }
}
