/* ============================================================
   VB Studio — Portfolio Page Styles  (css/portfolio.css)
   Color palette & fonts match homepage exactly.
   ============================================================ */

/* ── Banner / Hero ── */
.pf-main {
  background: #F5F0EB;
}

.pf-banner {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
}

.pf-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.pf-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(57, 47, 44, 0.54);
}

.pf-banner__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 40px 0;
}

.pf-banner__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #fff;
  margin: 0 0 22px;
  opacity: 0;
  transform: translateY(26px);
  animation: pf-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.pf-banner__subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.80);
  max-width: 660px;
  line-height: 1.9;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: pf-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes pf-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Projects section ── */
.pf-projects {
  background: #F5F0EB;
  padding: 80px 60px 100px;
}

.pf-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Project card ── */
.pf-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.pf-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.pf-card__img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.1;
  cursor: pointer;
  display: block;
}

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

/* ── Card hover overlay (matches homepage Selected Works style) ── */
.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 43, 31, 0.74);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pf-card__img-wrapper:hover .pf-card__overlay {
  opacity: 1;
}

.pf-card__img-wrapper:hover img {
  transform: scale(1.04);
}

.pf-card__year {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.pf-card__name {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 10px;
}

.pf-card__desc {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 22px;
}

.pf-card__btn {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pf-card__btn:hover {
  background: #fff;
  color: #3D2B1F;
  border-color: #fff;
}

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
  .pf-projects {
    padding: 60px 40px 80px;
  }

  .pf-grid {
    gap: 16px;
  }

  .pf-banner__title {
    font-size: 2.2rem;
  }
}

/* ── Responsive: phablet ── */
@media (max-width: 768px) {
  .pf-banner {
    height: 52vh;
    min-height: 300px;
  }

  .pf-banner__title {
    font-size: 1.8rem;
    letter-spacing: 0.18em;
  }

  .pf-banner__subtitle {
    font-size: 0.875rem;
  }

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

  .pf-card__img-wrapper {
    aspect-ratio: 4 / 3;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
  .pf-banner__title {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
  }

  .pf-banner__subtitle {
    font-size: 0.82rem;
  }

  .pf-projects {
    padding: 50px 20px 70px;
  }

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

/* ============================================================
   MOBILE CARD LABELS — portfolio project cards
   Always-visible overlay on touch devices
   ============================================================ */
@media (hover: none) {
  .pf-card__overlay {
    opacity: 1;
    background: rgba(61, 43, 31, 0.78);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }
  .pf-card__desc { display: block; }
  .pf-card__btn  { display: inline-block; }
  .pf-card__name { font-size: 1.5rem; margin: 0 0 10px; }
  .pf-card__year { font-size: 0.8rem; margin: 0 0 10px; }
}
