/* SHARED WORK CONTAINER */

.work-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO */

.work-hero {
  text-align: center;
  padding: 45px 0 35px;
  overflow: hidden;

  position: relative; /* 👈 needed for layering */
}

.work-hero h1 {
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 800;
  line-height: 0.9;
  margin: 0;

  position: relative;
  z-index: 2; /* 👈 keeps text above line */
}

.work-title-line {
  width: 100vw;
  height: 8px;
  background-color: var(--brand-green-light);

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  margin: -8px 0 2=12px; /* stronger overlap */
  z-index: 1;
}

.work-hero p {
  font-family: "Big Shoulders Display", Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 18px;
}

/* FILTER BUTTONS */

.work-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.work-filters a {
  background-color: #000;
  color: #fff;
  padding: 11px 26px;
  border-radius: 6px;

  font-family: "Big Shoulders Display", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;

  transition: 0.3s;
}

.work-filters a:hover {
  background-color: var(--brand-green);
}

/* PROJECT GRID */

.project-grid-section {
  padding: 45px 0 120px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 95px;
  row-gap: 95px;
}

.project-card {
  text-align: center;
  color: #000;
  max-width: 320px;
  margin: 0 auto;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
  transition: 0.3s;
}

.project-card:hover img {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.project-card h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  margin-top: 22px;
  margin-bottom: 5px;
}

.project-card p {
  font-family: "Big Shoulders Text", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.1;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 45px;
    row-gap: 70px;
  }
}

@media (max-width: 600px) {
  .work-hero {
    padding: 38px 0 30px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 330px;
    margin: 0 auto;
  }

  .project-grid-section {
    padding-bottom: 80px;
  }
}