/* ── Section Split Background ─────────────────────── */
.projects-section {
  position: relative;
  background: var(--darker);
  --split-height: 290px;
}

.projects-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--split-height);
  background: var(--lighter);
  z-index: 0;
}

.projects-section__inner {
  position: relative;
  z-index: 1;
}

/* ── Filters ─────────────────────────────────────── */
.projects-filter {
  padding: 8px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-filter:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

.projects-filter.active {
  background: white;
  border-color: white;
  color: var(--darker);
}

/* ── Card Filtering ──────────────────────────────── */
.project-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.filtered-out {
  display: none;
}

/* Initially hidden "more" projects; shown when section is expanded */
.project-card--more {
  display: none;
}

.projects-section--expanded .project-card--more {
  display: block;
}

/* Load more button */
.projects-load-more {
  padding: 12px 32px;
  border: 2px solid var(--darker);
  border-radius: 4px;
  background: var(--darker);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.projects-load-more:hover {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}

/* ── Grid ─────────────────────────────────────────── */
.projects-grid {
  max-width: 1400px;
}

/* ── Card Base ────────────────────────────────────── */
.project-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* ── Image Slider ─────────────────────────────────── */
.project-card__slider {
  position: absolute;
  inset: 0;
}

.project-card__slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.6s ease-in-out;
}

.project-card__slide.active {
  opacity: 1;
  z-index: 1;
}

/* ── Slider Arrows ────────────────────────────────── */
.project-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s ease;
}

.project-card:hover .project-card__arrow {
  opacity: 1;
  pointer-events: auto;
}

.project-card__arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.project-card__arrow--prev {
  left: 12px;
}

.project-card__arrow--next {
  right: 12px;
}

/* ── Overlay ──────────────────────────────────────── */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  transition: background 0.5s ease;
  z-index: 2;
}

.project-card:hover .project-card__overlay {
  background: rgba(0, 0, 0, 0.60);
}

/* ── Content Block ────────────────────────────────── */
.project-card__content {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  z-index: 5;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card__content {
  transform: translateY(-120px);
}

/* ── Title ────────────────────────────────────────── */
.project-card__title {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ── Subtitle ─────────────────────────────────────── */
.project-card__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-top: 4px;
  transition: color 0.4s ease;
}

.project-card:hover .project-card__subtitle {
  color: rgba(255, 255, 255, 0.90);
}

/* ── Button ───────────────────────────────────────── */
.project-card__btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  border: 2px solid white;
  border-radius: 4px;
  background: transparent;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease 0.15s,
              transform 0.35s ease 0.15s,
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}

.project-card:hover .project-card__btn {
  opacity: 1;
  transform: translateY(0);
}

.project-card__btn:hover {
  background: white;
  border-color: white;
  color: var(--darker);
}

/* ── Coming Soon Button ───────────────────────────── */
.project-card__btn--coming-soon {
  cursor: default;
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.6);
}

.project-card__btn--coming-soon:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Features Row ─────────────────────────────────── */
.project-card__features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 16px;
  z-index: 5;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s,
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s;
}

.project-card:hover .project-card__features {
  opacity: 1;
  transform: translateY(0);
}

/* Keep feature chips above bottom-right status badges when present */
.project-card:has(.project-card__badges) .project-card__features {
  bottom: 48px;
}

.project-card__features span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Status Badges (bottom-right corner) ─────────── */
.project-card__badges {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 6;
  pointer-events: none;
}

.project-card__badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px solid;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: none;
}

.project-card__badge--finished {
  border-color: #16a34a; /* green-600 */
}

.project-card__badge--sold-out {
  border-color: rgba(255, 255, 255, 0.85);
}

.project-card__badge--inventory {
  border-color: #2563eb; /* blue-600 */
}

/* ── Empty State ──────────────────────────────────── */
.projects-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
}

.projects-empty-state__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  opacity: 0.35;
  color: white;
}

.projects-empty-state__text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 767px) {
  .projects-section {
    --split-height: 230px;
  }

  .project-card {
    height: 320px;
  }

  .project-card__title {
    font-size: 1.5rem;
  }

  .project-card__content {
    bottom: 16px;
  }

  .project-card:hover .project-card__content {
    transform: translateY(-90px);
  }

  .project-card__features {
    gap: 16px;
    padding: 12px 12px;
  }

  .project-card:has(.project-card__badges) .project-card__features {
    bottom: 44px;
  }

  .project-card__features span {
    font-size: 0.75rem;
  }
}
