/* ============================================================
   ECONADI — PROJECTS PAGE STYLES
   ============================================================ */

/* ================================================================
   HIGHLIGHTS STRIP
   ================================================================ */
.proj-highlights-strip {
  background: var(--navy);
  padding: 48px 0;
}

.proj-highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.proj-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.proj-highlight-item:last-child { border-right: none; }
.proj-highlight-item:hover { background: rgba(255,255,255,0.04); }

.proj-highlight-icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  flex-shrink: 0;
}
.proj-highlight-icon svg { width: 100%; height: 100%; }

.proj-highlight-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}


/* ================================================================
   PHOTO GALLERY GRID
   ================================================================ */
.proj-gallery-section { background: var(--white); }

.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

/* Remove large override — all items uniform 1 column */
.gallery-item--large {
  grid-column: span 1;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,0.88) 0%, rgba(0,20,60,0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}

.gallery-overlay h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}


/* ================================================================
   PROJECT LIST SECTION
   ================================================================ */
.proj-list-section { background: var(--off-white); }

/* Filter buttons */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.proj-filter {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.proj-filter:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.proj-filter.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(73,157,128,0.3);
}

/* Project list */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.proj-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.proj-list-item:last-child { border-bottom: none; }
.proj-list-item:hover { background: var(--off-white); }

/* Hide filtered items */
.proj-list-item.hidden {
  display: none;
}

.proj-list-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.proj-list-tag--water        { background: rgba(0,145,196,0.12); color: #0078A8; }
.proj-list-tag--environment  { background: rgba(73,157,128,0.12); color: #3A8B6E; }
.proj-list-tag--coastal      { background: rgba(0,32,96,0.1);  color: var(--navy); }
.proj-list-tag--sustainability { background: rgba(73,200,100,0.12); color: #2E8B3A; }

.proj-list-title {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Project count */
.proj-count {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .proj-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 991px) {
  .proj-highlights-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .proj-highlight-item:nth-child(3) { border-right: none; }
  .proj-highlight-item:nth-child(4),
  .proj-highlight-item:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.08); }
  .proj-highlight-item:nth-child(4) { border-right: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 767px) {
  .proj-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .proj-highlights-grid { grid-template-columns: 1fr 1fr; }
  .proj-highlight-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .proj-highlight-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.08); }

  .proj-list-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 575px) {
  .proj-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .proj-highlights-grid { grid-template-columns: 1fr; }
  .proj-highlight-item { border-left: none !important; }
  .proj-filters { gap: 8px; }
  .proj-filter { padding: 8px 14px; font-size: 0.78rem; }
  .proj-list-item { padding: 14px 16px; }
}
