/* ============================================================
   VideoRep Portfolio Page Styles.
   Filterable grid of curated work with industry + type filters.
   Tokens only from styles.css. Inherits svc-hero, nav, footer.
   ============================================================ */

.pf-filter {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
}

.pf-filter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.pf-filter__group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 220px;
}

.pf-filter__label {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pf-select {
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e71e7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center,
    var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 36px 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  transition: border-color 0.15s ease;
}

.pf-select:hover,
.pf-select:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.pf-search {
  flex: 1 1 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px 10px 38px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  transition: border-color 0.15s ease;
}

.pf-search:focus-visible {
  outline: none;
  border-color: var(--brand);
}

.pf-reset {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pf-reset:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.pf-meta {
  background: var(--bg-primary);
  padding: 18px 0 0;
}

.pf-meta__count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  margin: 0;
}

.pf-grid-wrap {
  background: var(--bg-primary);
  padding: 24px 0 96px;
}

.pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .pf-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

.pf-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  padding: 0;
  width: 100%;
}

.pf-card:hover,
.pf-card:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: rgba(30, 113, 231, 0.45);
  outline: none;
}

.pf-card.is-hidden {
  display: none;
}

.pf-card__hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-navy);
  overflow: hidden;
}

.pf-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pf-card:hover .pf-card__hero img {
  transform: scale(1.04);
}

.pf-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.pf-card__play-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.pf-card:hover .pf-card__play-icon {
  transform: scale(1.08);
}

.pf-card__play-icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  margin-left: 3px;
}

.pf-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-card__client {
  font-family: 'Cal Sans', 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.pf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.pf-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(30, 113, 231, 0.1);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  line-height: 1.3;
}

.pf-tag--type {
  background: rgba(24, 24, 27, 0.06);
  color: var(--text-primary);
}

.pf-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.pf-empty__heading {
  font-family: 'Cal Sans', 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.pf-empty.is-hidden {
  display: none;
}


/* ============================================================
   MODAL — inline Vimeo player overlay
   ============================================================ */

.pf-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 20, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.pf-modal.is-open {
  display: flex;
  animation: pfFade 0.18s ease-out;
}

@keyframes pfFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pf-modal__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: var(--bg-navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pf-modal__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pf-modal__close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.pf-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pf-modal__caption {
  position: absolute;
  bottom: -42px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
