/* ============================================
   SBFC SOLUTIONS — PROJECTS PAGE STYLES
   ============================================ */

/* ── Filter Bar ── */
.filter-bar {
  background: var(--white);
  border-bottom: 2px solid var(--gray-light);
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
}

.filter-bar__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── Featured Project ── */
.project-feature {
  background: var(--gray-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.project-feature__badge {
  display: flex;
  gap: 0.5rem;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
}

.project-feature__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
}

.project-feature__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem 2rem;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.project-feature__content {
  padding: var(--space-xl);
}

.project-feature__lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ── Metrics Grid ── */
.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.project-metric {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--gray-light);
}

.project-metric__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
}

.project-metric__label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* ── Projects Grid ── */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proj-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.proj-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.proj-card__top {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
}

.proj-card__emoji {
  font-size: 3.5rem;
}

.proj-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.proj-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.proj-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.proj-card__location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.proj-card__location i {
  color: var(--red);
}

.proj-card__body > p:not(.proj-card__location) {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.proj-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-light);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.proj-card__stats span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proj-card__stats i {
  color: var(--red);
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .project-feature__grid {
    grid-template-columns: 1fr;
  }

  .project-feature__visual {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-height: 250px;
  }

  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .projects-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-masonry {
    grid-template-columns: 1fr;
  }
}
