/* =========================================================
   LAPSERO — "In Action" Video Showcase
   Vertical 9:16 cards · scroll-snap carousel + lightbox modal
   Uses existing LAPsero palette (#e67e22 orange primary, #16a34a green
   accent, #0e1b2c navy, white cards, Inter / Plus Jakarta Sans).
   ========================================================= */

#action {
  padding: 56px 0 64px;
  background:
    radial-gradient(1100px 480px at 50% -60px, rgba(230, 126, 34, 0.05), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

#action .container { min-width: 0; }

/* ---------- Section heading (centered) ---------- */
#action .sec-head {
  text-align: center;
  margin: 0 auto 32px;
  display: block;
}
#action .sec-head .badge {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 6px;
}
#action .sec-head h2 {
  font-size: 36px;
  line-height: 1.15;
  color: #0e1b2c;
  margin: 14px 0 10px;
  letter-spacing: -0.5px;
}
#action .sec-head h2 span { color: #e67e22 !important; }
#action .sec-head p {
  font-size: 15px;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Carousel ---------- */
.video-carousel {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
}
.video-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-left: 2px;
  padding: 8px 2px 18px;
}
.video-track::-webkit-scrollbar { display: none; }
.video-track:focus-visible {
  outline: 2px solid #e67e22;
  outline-offset: 3px;
  border-radius: 16px;
}

/* Card sizing — 5 visible on desktop */
.video-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 56px) / 5);
  min-width: 0;
  scroll-snap-align: start;
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6ebf2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover .video-frame {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom gradient so controls + label stay readable */
.v-grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  background: linear-gradient(to top, rgba(10, 22, 38, 0.72), rgba(10, 22, 38, 0) 72%);
  pointer-events: none;
  z-index: 2;
}

/* Center play affordance (shows until video plays) */
.v-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e67e22;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.video-frame.is-playing .v-center-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Full-card open button */
.v-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.2s ease;
}
.v-open:hover { background: rgba(10, 22, 38, 0.08); }
.v-open:focus-visible { outline: 2px solid #e67e22; outline-offset: -4px; }

/* ---------- Card caption (video title + one-line description) ---------- */
.video-cap {
  padding: 10px 2px 0;
  text-align: left;
}
.video-cap b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0e1b2c;
}
.video-cap small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

/* Label tag — removed on request (no pill on video cards) */
.v-tag,
.video-modal-tag { display: none !important; }

/* Play / mute controls */
.v-ctl {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.v-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, 0.85);
  color: #0e1b2c;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.v-btn:hover { background: #e67e22; border-color: #e67e22; color: #ffffff; transform: scale(1.08); }
.v-btn:focus-visible { outline: 2px solid #e67e22; outline-offset: 2px; }
.v-btn.disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Carousel arrows (desktop) ---------- */
.v-arrow {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  z-index: 8;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #e6ebf2;
  background: #ffffff;
  color: #0e1b2c;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.v-arrow:hover { background: #e67e22; color: #ffffff; border-color: #e67e22; }
.v-arrow:focus-visible { outline: 2px solid #e67e22; outline-offset: 2px; }
.v-arrow:active { transform: translateY(-50%) scale(0.94); }
.v-prev { left: 10px; }
.v-next { right: 10px; }

/* ---------- Lightbox modal ---------- */
.video-modal-box {
  width: min(520px, calc(88vh * 9 / 16), 92vw);
  max-width: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  padding: 0;
}
.video-modal-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0a1626;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.video-modal-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.video-modal-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  background: rgba(10, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.video-modal-ctl {
  position: absolute;
  right: 14px;
  top: 64px;
  z-index: 6;
  display: flex;
  gap: 10px;
}
.v-vol-btn, #videoModalVol { display: none !important; }
.video-modal-ctl .v-btn { width: 38px; height: 38px; font-size: 14px; background: rgba(10, 22, 38, 0.6); border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff; }
.video-modal-close {
  top: 14px;
  right: 14px;
  background: rgba(10, 22, 38, 0.6) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.video-modal-close:hover { background: #e67e22 !important; color: #ffffff !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .video-card { flex-basis: calc((100% - 28px) / 3); }
}
@media (max-width: 760px) {
  .video-card { flex-basis: calc((100% - 14px) / 2); }
  .v-arrow { display: none; }
}
@media (max-width: 560px) {
  #action { padding: 40px 0 48px; }
  #action .sec-head { margin-bottom: 24px; }
  #action .sec-head h2 { font-size: 26px; }
  #action .sec-head p { font-size: 13.5px; }
  #action .sec-head .badge { font-size: 11px; padding: 7px 12px; }
  .video-card { flex-basis: 100%; }
  .video-track { gap: 12px; }
  .v-ctl { right: 8px; top: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .video-track { scroll-behavior: auto; }
  .video-frame,
  .video-card:hover .video-frame,
  .v-arrow,
  .v-center-play {
    transition: none !important;
  }
}
