/* ============================================================
   Clearcost — services.css
   Styles used only by services.html. Load after global.css.
   ============================================================ */

/* Hero image treatment */
.hero--services { margin-bottom: clamp(60px, 6vw, 100px); }
.hero--services .hero-img { object-position: center bottom; transform: scaleY(-1); }

/* ============================================================
   SERVICES
   ============================================================ */

.service-rows { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-x); }
.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 0.5px solid var(--hairline);
}
.service-row:nth-child(even) { flex-direction: row-reverse; }
.service-row:first-child { padding-top: 0; border-top: 0; }
.service-row:last-child { padding-bottom: 0; }
.service-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.service-n { font-family: var(--mono); font-size: 13px; }
.service-row h2 { margin: 0; font-size: clamp(30px, 3.6vw, 56px); line-height: 0.98; font-weight: 500; letter-spacing: -0.045em; }
.service-row p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 520px; text-wrap: pretty; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 0.5px solid var(--hairline);
  border-radius: 100px;
  white-space: nowrap;
}
.service-img {
  flex: 1 1 380px;
  min-width: 0;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-grey);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }

.categories { background: var(--ink); color: var(--bg); margin-top: var(--section-y); }
.categories .h2-legacy { margin: 0 0 48px; max-width: 1000px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: clamp(18px, 1.6vw, 22px);
  padding: 12px 22px;
  border: 0.5px solid #535353;
  border-radius: 100px;
  transition: var(--t);
  box-shadow: var(--glow-0);
}
.pill:hover { background: var(--bg); color: var(--ink); box-shadow: var(--glow); }

.cta-wrap--spaced { padding-top: var(--section-y); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .service-row { padding: 2.5rem 0; gap: 1.25rem; }
  .service-text { gap: 14px; }
  .service-row h2 { font-size: clamp(28px, 8vw, 34px); }
  .service-row p { font-size: 1rem; }
  .categories .h2-legacy { margin-bottom: 28px; }
  .pill { font-size: 1rem; padding: 10px 16px; }
}
