/* ===== PROJECTS HERO ===== */
.projects-hero {
  position: relative;
  height: 460px;
  display: flex;
  align-items: flex-end;
  background: url('webimages/coho-concrete-gallery-06.webp') center/cover no-repeat;
  padding-bottom: 60px;
}

.projects-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15) 100%);
}

.projects-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.projects-hero-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 68, 128, 0.85);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}


.projects-hero-content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.projects-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  line-height: 1.6;
}

/* ===== NAV ACTIVE STATE ===== */
.nav-link.active {
  color: #fff;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ===== FILTER TABS ===== */
.projects-section {
  padding: 60px 0 80px;
  background: #fff;
}

.project-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 100px;
  border: 1.5px solid #ccc;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: #084480;
  color: #084480;
  background: rgba(8, 68, 128, 0.04);
}

.filter-btn.active {
  background: #084480;
  color: #fff;
  border-color: #084480;
}

/* ===== PROJECT GRID ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 16px;
}

.project-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
}

.project-item.featured {
  grid-column: span 2;
  grid-row: span 1;
}

.project-item.tall {
  grid-row: span 2;
}

.project-item.wide {
  grid-column: span 2;
}

.project-item-img {
  position: absolute;
  inset: 0;
}

.project-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-item:hover .project-item-img img {
  transform: scale(1.05);
}

/* Overlay */
.project-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 55%);
  color: #fff;
  z-index: 2;
  transition: background 0.4s ease;
}

.project-item:hover .project-item-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 70%);
}

.project-item-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.project-item-overlay h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.project-item-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.project-item:hover .project-item-overlay h3 {
  transform: translateY(-4px);
}

.project-item:hover .project-item-overlay p {
  max-height: 80px;
  opacity: 1;
}

/* Hidden state for filter */
.project-item.hidden {
  display: none;
}

.video-item::after {
  content: "Play";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-item {
  grid-row: span 2;
}

.video-item .project-item-img img {
  object-fit: cover;
  object-position: center;
}

/* ===== PROJECT LIGHTBOX ===== */
.project-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-lightbox img,
.project-lightbox video {
  max-width: min(1200px, 95vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.project-lightbox video {
  width: min(1200px, 95vw);
  height: auto;
  background: #000;
}

.project-lightbox iframe {
  width: min(430px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 88vh;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  background: #000;
}

.project-lightbox img,
.project-lightbox video,
.project-lightbox iframe {
  display: none;
}

.project-lightbox.show-image img,
.project-lightbox.show-video video,
.project-lightbox.show-youtube iframe {
  display: block;
}

.project-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.project-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== CTA BANNER ===== */
.projects-cta {
  padding: 0 0 80px;
  background: #fff;
}

.projects-cta-inner {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.projects-cta-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.projects-cta-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
}

.projects-cta .btn-orange {
  white-space: nowrap;
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .projects-hero {
    height: 360px;
    padding-bottom: 44px;
  }

  .projects-hero-content h1 {
    font-size: 2.2rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }

  .project-item.featured,
  .project-item.wide {
    grid-column: span 2;
  }

  .project-item.tall {
    grid-row: span 2;
  }

  .video-item {
    grid-row: span 2;
  }

  .projects-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .projects-cta-text p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .projects-hero-content h1 {
    font-size: 1.8rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .project-item.featured,
  .project-item.wide,
  .project-item.tall,
  .video-item {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

