/* ── Production video showcase (homepage manufacturing section) ── */

.production-video-panel {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: #1a1c1c;
  overflow: hidden;
}

@media (min-width: 640px) {
  .production-video-panel {
    min-height: 380px;
  }
}

@media (min-width: 1024px) {
  .production-video-panel {
    min-height: 580px;
  }
}

.production-video-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.production-video-panel.is-playing video {
  transform: scale(1.02);
}

.production-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(26, 28, 28, 0.72) 0%, rgba(26, 28, 28, 0.15) 45%, transparent 100%),
    linear-gradient(to right, rgba(26, 28, 28, 0.25) 0%, transparent 50%);
}

.production-video-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  pointer-events: none;
}

.production-video-caption .production-video-expand {
  pointer-events: auto;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .production-video-caption {
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
  }
}

.production-video-caption .caption-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8C547;
  margin-bottom: 0.5rem;
}

.production-video-caption .caption-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C5A028;
  box-shadow: 0 0 0 4px rgba(197, 160, 40, 0.25);
  animation: production-pulse 2s ease-in-out infinite;
}

.production-video-panel.is-playing .caption-tag::before {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

@keyframes production-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.production-video-caption h3 {
  font-family: 'Marcellus', Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.production-video-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(26, 28, 28, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.production-video-toggle:hover {
  background: rgba(197, 160, 40, 0.85);
  border-color: #C5A028;
}

.production-video-toggle .material-symbols-outlined {
  font-size: 1.35rem;
}

.production-video-expand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(197, 160, 40, 0.92);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.production-video-expand:hover {
  background: #735800;
  transform: translateY(-1px);
}

.production-video-expand .material-symbols-outlined {
  font-size: 1.1rem;
}

/* ── Full video modal ── */
.production-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.production-video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.production-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 28, 0.88);
  backdrop-filter: blur(6px);
}

.production-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  background: #1a1c1c;
  border: 1px solid rgba(197, 160, 40, 0.35);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.production-video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.production-video-modal-header h2 {
  font-family: 'Marcellus', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: #fff;
  margin: 0;
}

.production-video-modal-close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.production-video-modal-close:hover {
  background: rgba(197, 160, 40, 0.85);
  border-color: #C5A028;
}

.production-video-modal-body {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.production-video-modal-body video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.production-video-modal-footer {
  padding: 0.85rem 1.25rem 1.1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

body.production-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .production-video-caption .caption-tag::before {
    animation: none;
  }

  .production-video-panel video {
    transition: none;
  }
}
