/* ==========================================================================
   VIDEO-PROJECTS.CSS
   Page-specific layer for video-projects.html.
   Builds on css/our-work.css (hero, filter pills, cards, 7-step process,
   final CTA) and css/our-work-portfolio.css (intro mini-cards, featured
   card). Adds the video-specific pieces: play buttons, featured video
   player, filter bar, production-type row, Satkar Studio split and
   role-of-video cards. Scoped under .vp-page.
   Loaded AFTER our-work-portfolio.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO + FILTER BAR
   -------------------------------------------------------------------------- */
.vp-hero {
  padding-bottom: 48px;
}

.vp-hero .cs-hero__text {
  margin-bottom: 0;
}

/* Category filters — at the top of the video grid (moved out from under
   the hero), styled like the other Our Work listings. */
.cs-grid-section__filters {
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cs-line, rgba(7, 26, 46, 0.1));
}

@media (max-width: 575.98px) {
  .cs-grid-section__filters {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }
}

.cs-card.is-filtered-in {
  animation: vpFilterIn 0.42s var(--svc-ease, ease) both;
}

@keyframes vpFilterIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-card.is-filtered-in {
    animation: none;
  }
}

/* the whole thumbnail plays the video too */
.vp-thumb__link {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   2. PLAY BUTTON (shared by the featured player and card thumbnails)
   -------------------------------------------------------------------------- */
.vp-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35), 0 12px 28px rgba(4, 27, 71, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--svc-ease), background 0.35s var(--svc-ease);
  pointer-events: none;
}

.vp-play i {
  display: inline-flex;
  line-height: 1;
  margin-left: 3px; /* optically centre the triangle */
}

.vp-play--lg {
  width: 84px;
  height: 84px;
  font-size: 1.8rem;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.3), 0 16px 36px rgba(4, 27, 71, 0.4);
}

.cs-card:hover .vp-play,
.vp-player:hover .vp-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   3. INTRO — pale quote panel on the right
   -------------------------------------------------------------------------- */
.vp-intro__aside {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  border-left: 0;
  padding: 30px 26px;
  background: linear-gradient(160deg, var(--cs-pale-2) 0%, var(--cs-pale) 100%);
  border: 1px solid var(--cs-line);
  border-radius: 20px;
}

.vp-intro__quote {
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(28, 111, 208, 0.3);
}

/* --------------------------------------------------------------------------
   4. FEATURED VIDEO PROJECT (extends .bp-featured__card)
   -------------------------------------------------------------------------- */
.vp-featured__card {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.vp-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}

.vp-details__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vp-details__item--wide {
  grid-column: 1 / -1;
}

.vp-details__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--cs-line);
  color: var(--accent2);
  font-size: 1.1rem;
}

.vp-details__icon i {
  display: inline-flex;
  line-height: 1;
}

.vp-details dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--cs-navy);
  margin: 0 0 2px;
}

.vp-details dd {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text2);
  margin: 0;
}

.vp-player {
  position: relative;
  margin: 24px 24px 24px 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0e1420;
  box-shadow: var(--cs-shadow-hover);
}

.vp-player img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--svc-ease);
}

.vp-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 27, 71, 0.15) 0%, rgba(4, 27, 71, 0.45) 100%);
}

.vp-player:hover img {
  transform: scale(1.03);
}

.vp-player__badge {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(4, 27, 71, 0.8);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
}

.vp-player__badge i {
  display: inline-flex;
  line-height: 1;
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   5. VIDEO PROJECT CARDS (extends .cs-card)
   -------------------------------------------------------------------------- */
.vp-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.vp-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 27, 71, 0) 40%, rgba(4, 27, 71, 0.35) 100%);
  pointer-events: none;
}

.vp-card__type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 8px;
}

.vp-card__type i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cs-pale);
  color: var(--accent2);
  font-size: 0.8rem;
  line-height: 1;
}

.vp-projects .bp-card__title {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. VIDEO PRODUCTION TYPES — 7 compact icon cards
   -------------------------------------------------------------------------- */
.vp-types__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.vp-type {
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(6, 42, 107, 0.05);
  transition: transform 0.35s var(--svc-ease), box-shadow 0.35s var(--svc-ease);
}

.vp-type:hover {
  transform: translateY(-4px);
  box-shadow: var(--cs-shadow);
}

.vp-type__icon {
  display: inline-flex;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent2);
  margin-bottom: 12px;
}

.vp-type__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--cs-navy);
  margin: 0 0 6px;
}

.vp-type__text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. SATKAR STUDIO — content left, image card right, inside the .container
   -------------------------------------------------------------------------- */
.vp-studio {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
}

.vp-studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.vp-studio__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--cs-shadow-hover);
  aspect-ratio: 3 / 2;
}

.vp-studio__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.vp-studio__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, rgba(4, 27, 71, 0.55) 0%, rgba(4, 27, 71, 0.05) 60%);
}

.vp-studio__hand {
  position: absolute;
  z-index: 2;
  top: 14%;
  right: 8%;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: #fff;
  transform: rotate(-5deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.vp-studio__hand::after {
  background: #9fcaff;
}

.vp-studio__sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 0 12px;
}

.vp-studio__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.vp-studio__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cs-navy);
}

.vp-studio__list li::before {
  content: "\f26a"; /* bootstrap-icons check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--accent2);
}

/* --------------------------------------------------------------------------
   8. THE ROLE OF VIDEO — four icon-left cards
   -------------------------------------------------------------------------- */
.vp-role__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vp-role-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 6px 18px rgba(6, 42, 107, 0.05);
  transition: opacity 0.7s var(--svc-ease), transform 0.35s var(--svc-ease), box-shadow 0.35s var(--svc-ease);
}

.vp-role-card:hover,
.vp-role-card[data-reveal].is-visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--cs-shadow);
}

.vp-role-card__icon {
  flex: none;
  display: inline-flex;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent2);
}

.vp-role-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--cs-navy);
  margin: 2px 0 6px;
}

.vp-role-card__text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   Satkar breakpoints: laptop 992–1199 · tablet 576–991 · mobile ≤575
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .vp-types__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vp-featured__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vp-role__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .vp-hero {
    padding-bottom: 36px;
  }

  .vp-featured__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-player {
    order: -1;
    margin: 24px 24px 0;
  }

  .vp-types__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vp-studio {
    padding: 36px 0 44px;
  }

  .vp-studio__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .vp-studio__media {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .vp-play--lg {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
  }

  .vp-player {
    margin: 18px 18px 0;
    border-radius: 14px;
  }

  .vp-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-featured .svc-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-featured .svc-btn,
  .vp-hero__btns .svc-btn {
    justify-content: center;
  }

  .vp-hero__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vp-studio__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-role__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 399.98px) {
  .vp-types__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   10. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .vp-play,
  .vp-player img,
  .vp-type,
  .vp-role-card {
    transition: none;
  }

  .cs-card:hover .vp-play,
  .vp-player:hover .vp-play {
    transform: translate(-50%, -50%);
  }

  .vp-player:hover img,
  .vp-type:hover,
  .vp-role-card:hover,
  .vp-role-card[data-reveal].is-visible:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   VIDEO GROUPS — horizontal (16:9) videos and vertical (9:16) Shorts /
   Instagram reels, each in its real shape. Groups hide when a filter
   leaves them empty (js/our-work.js, [data-filter-group]).
   -------------------------------------------------------------------------- */
.vp-group[hidden] {
  display: none;
}

.vp-group + .vp-group {
  margin-top: 48px;
}

.vp-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cs-navy, #071a2e);
}

.vp-group__title i {
  color: var(--accent, #2684e5);
}

.vp-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cs-line, rgba(7, 26, 46, 0.1));
}

/* horizontal cards — real 16:9 thumbnails */
.vp-card .cs-card__media {
  aspect-ratio: 16 / 9;
}

.vp-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.vp-card__client {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text2, #3e4a5c);
}

.vp-card__client .bi-youtube {
  color: #ff0033;
}

.vp-card .cs-link {
  margin-top: auto;
}

/* vertical cards */
.vp-reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.vp-reel {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.vp-reel__link {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #071a2e;
  color: #fff;
  text-decoration: none;
}

.vp-reel__link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s var(--svc-ease, ease);
}

.vp-reel:hover .vp-reel__link img {
  transform: scale(1.05);
}

.vp-reel__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 46, 0.9) 0%, rgba(7, 26, 46, 0.2) 40%, transparent 65%);
  pointer-events: none;
}

.vp-reel__link:focus-visible {
  outline: 3px solid var(--accent, #2684e5);
  outline-offset: -3px;
}

.vp-reel__platform {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 26, 46, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
}

.vp-reel__platform .bi-youtube {
  color: #ff4e45;
}

.vp-reel__meta {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vp-reel__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd0ff;
}

.vp-reel__client {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 1199.98px) {
  .vp-reels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .vp-reels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .vp-group + .vp-group {
    margin-top: 36px;
  }

  .vp-reels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vp-reel .vp-play {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vp-reel__link img {
    transition: none;
  }

  .vp-reel:hover .vp-reel__link img {
    transform: none;
  }
}
