/* =============================================================
   GENESYS TECHNOLOGY CONSULTING — Projects Page Styles
   projects.css
   Styles specific to pages/projects.html: the filter buttons
   and the project cards with their client logos. The shared
   pieces (header, opening band, call-to-action panel, footer)
   come from styles.css, so load this file after it.
   ============================================================= */

/* ── Filter Bar ── */
.filter-bar {
  padding: 72px 0 0;
}

.filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Projects Grid ── */
.projects-section {
  padding: 40px 0 var(--section);
}

/* Two columns, so four projects make two even rows */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
/* Cards the filter buttons hide (main.js, section 4) */
.project-card[hidden] { display: none; }

/* Picture area: the client's logo, or a navy panel with a cyan icon */
.project-thumb {
  position: relative;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.project-thumb svg {
  width: 48px;
  height: 48px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project-thumb .thumb-label {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

/* A light panel for logos, so each one shows in its own colors */
.project-thumb.has-logo {
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
}
.project-thumb img {
  height: 136px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tag {
  padding: 3px 9px;
  border: 1px solid rgba(14, 116, 144, 0.35);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}

.project-body h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.project-body p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* The client's website, under the description (opens in a new tab) */
.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: -8px 0 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-meta .client {
  font-size: 14px;
  color: var(--text-muted);
}
.project-meta .client span {
  font-weight: 500;
  color: var(--navy);
}

/* Status: a slanted marker, cyan when completed, teal while ongoing */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 12px;
  background: var(--teal);
  transform: skewX(-36deg);
}
.status-badge.complete::before { background: var(--cyan); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .filter-bar { padding-top: 48px; }
}

@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}
