/* =============================================================================
   9-work.css — Our work section (#work): project grid and “See more work” pill
   Column counts also set in layout.css at 576px and 1024px.
   ============================================================================= */

/* ---------- Default — section shell ---------- */

/* Green band behind the white curved panel */
.work {
  background-color: var(--color-primary);
}

/* White curved panel */
.work__bg {
  background-color: var(--color-panel);
}

/* Tighter bottom padding — joins testimonials on the same white surface */
.work__bg.section {
  padding-bottom: 1.25rem;
}

/* ---------- Default — project grid ---------- */

/* Single column on mobile (layout.css repeats at breakpoints) */
.work__grid {
  grid-template-columns: 1fr;
}

/* One project — tap to open lightbox (same as gallery) */
.work__item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
  color: inherit;
}

/* Project name under the photo */
.work__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
}

/* Project photo — rounded with light border */
.work__item .section-photo {
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

/* ---------- Default — “See more work” (Coming soon pill size + colours) ---------- */

.work__more {
  margin: 1.5rem 0 0;
  display: flex;
  justify-content: center;
}

.work__more-btn {
  background-color: var(--color-cta-bg);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

/* ---------- States — hover / focus ---------- */

.work__item:hover .section-photo {
  border-color: var(--color-primary);
}

.work__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 0.75rem;
}

.work__more-btn:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--color-primary);
}

.work__more-btn:hover i {
  transform: none;
}

/* ---------- Responsive — 576px up ---------- */

@media (min-width: 576px) {
  .work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Responsive — 1024px up ---------- */

@media (min-width: 1024px) {
  .work__bg.section {
    padding-bottom: 1.5rem;
  }

  .work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
