/* ============================================================
   WOODLEY COLLISION — SERVICES ARCHIVE
   Reuses: breadcrumb, .svc-card + .svc-card--clamped (the
   service component with tag-pills), .cta-banner, header/footer.
   Adds: the centered search-bar hero + the services grid.
   ============================================================ */

/* ---------- Hero (centered heading + subtitle + search) ---------- */
.services-hero {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  text-align: center;
}
.services-hero__title {
  font-size: clamp(2.5rem, 1.6rem + 2.8vw, 3.875rem);   /* 40 -> 62px */
  font-weight: 600;
  line-height: 1.06;
  color: var(--gray-900);
  max-width: 960px;
}
.services-hero__subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  max-width: 600px;
}

/* Search bar: rounded input (icon inside) + dark pill button */
.services-search {
  display: flex;
  gap: var(--sp-12);
  align-items: stretch;
  margin-top: var(--sp-12);
}
.services-search__field {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  width: 343px;
  height: 54px;
  padding: var(--sp-12) var(--sp-16);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.services-search__field:focus-within {
  border-color: var(--gray-400);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.services-search__field svg { width: 20px; height: 20px; color: #8d8d8d; flex-shrink: 0; }
.services-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  color: var(--gray-900);
}
.services-search__input::placeholder { color: #8d8d8d; }
.services-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.services-search__btn {
  width: 100px;
  flex-shrink: 0;
  justify-content: center;
}

/* ---------- Services grid ---------- */
.services-list {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 120px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
}
.services-grid .svc-card { width: auto; }

/* No-results note (shown when the live filter finds nothing) */
.services-empty {
  display: none;
  padding: var(--sp-32);
  text-align: center;
  font-size: var(--fs-body);
  color: #555;
}
.services-grid.is-empty + .services-empty { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .services-hero { padding-bottom: 60px; }
  .services-hero__title { font-size: clamp(2.125rem, 1.75rem + 1.6vw, 2.25rem); line-height: 1.1; }

  /* search stacks: full-width input, then full-width button */
  .services-search { flex-direction: column; width: 100%; }
  .services-search__field { width: 100%; height: 48px; }
  .services-search__btn { width: 100%; height: 48px; }

  .services-list { padding-bottom: 120px; }
  .services-grid { grid-template-columns: 1fr; gap: var(--sp-16); }
}
