/* ==========================================================================
   projects.css  —  styling ONLY for projects.html
   Banner + breadcrumb come from components.css
   ========================================================================== */

/* 3-across, every 3rd tile is wide — a gentle rhythm, not a plain grid */
.projects-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.project-tile:nth-child(3n) { grid-column: span 2; }

.project-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-tile:hover img { transform: scale(1.06); }

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(9, 34, 21, .72));
  transition: background .3s ease;
}
.project-tile:hover::after { background: linear-gradient(rgba(9, 34, 21, .2), rgba(9, 34, 21, .8)); }

.project-tile__label {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  transform: translateY(6px);
  opacity: .9;
  transition: transform .3s ease, opacity .3s ease, color .3s ease;
}
.project-tile:hover .project-tile__label { transform: none; opacity: 1; color: var(--gold-soft); }

@media (max-width: 900px) {
  .projects-page__grid { grid-template-columns: repeat(2, 1fr); }
  .project-tile:nth-child(3n) { grid-column: auto; }
}
@media (max-width: 340px) { .projects-page__grid { grid-template-columns: 1fr; } }

/* --- CTA band --- */
.projects-cta {
  background: linear-gradient(rgba(15, 61, 36, .88), rgba(15, 61, 36, .92)), var(--green-800);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
}
.projects-cta h2 { color: #fff; }
.projects-cta p { color: rgba(255, 255, 255, .85); margin: .8rem auto 1.6rem; max-width: 520px; }
