/* =========================================================
   Northview marketplace, 2026-08-26.
   Brand tokens unchanged. Used by the homepage grid and the /services/ catalogue.
   ========================================================= */

/* ---- Category filter chips. CSS only: radios drive the grid, no JS. ------ */
.mkt-filter { display: none; }

.mkt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.mkt-chips label {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  user-select: none;
}
.mkt-chips label:hover { color: var(--text-primary); border-color: var(--border-mid); }
.mkt-filter:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

#mkt-all:checked    ~ .mkt-chips label[for="mkt-all"],
#mkt-growth:checked ~ .mkt-chips label[for="mkt-growth"],
#mkt-ops:checked    ~ .mkt-chips label[for="mkt-ops"],
#mkt-build:checked  ~ .mkt-chips label[for="mkt-build"] {
  color: #14251a;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
}

#mkt-growth:checked ~ .offer-grid .offer:not([data-cat="growth"]),
#mkt-ops:checked    ~ .offer-grid .offer:not([data-cat="ops"]),
#mkt-build:checked  ~ .offer-grid .offer:not([data-cat="build"]) { display: none; }

/* ---- The grid --------------------------------------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
a.offer:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.offer__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.offer__line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}
.offer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.offer__type {
  padding: 3px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  color: var(--accent-cool);
}
.offer__type--custom { color: var(--accent-bright); }

/* ---- Flagship tile: spans the row, carries the guarantee --------------- */
.offer--featured {
  grid-column: 1 / -1;
  gap: 14px;
  padding: 32px 30px 28px;
  background: var(--bg-elevated);
  border-color: var(--border-mid);
  position: relative;
  overflow: hidden;
}
.offer--featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.offer--featured .offer__name { font-size: clamp(22px, 2.6vw, 30px); }
.offer--featured .offer__line { font-size: clamp(15px, 1.3vw, 17px); color: var(--text-secondary); max-width: 620px; }

.offer__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-bright);
  background: rgba(136, 220, 127, 0.09);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-pill);
}
.offer__guarantee svg { width: 14px; height: 14px; flex: none; }

/* ---- "nothing here" fallback + footer line ---------------------------- */
.mkt-foot {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}
.mkt-foot strong { color: var(--text-primary); }

@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer--featured { padding: 26px 22px 24px; }
}

/* ---- "You have this problem if" line ------------------------------------
   Sits below the description, visually quieter than it, because it is a
   recognition cue rather than a claim. */
.offer__problem {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.offer--featured .offer__problem { font-size: 14px; max-width: 620px; }
