/**
 * CF Services Strip — five-mode framework per CF_MODULE_GUIDE §8.
 *
 * Modes:
 *   .cf-services-strip--light-sky    Briefing-grade default
 *   .cf-services-strip--light-slate  Analytical / operational
 *   .cf-services-strip--light-paper  Editorial / long-form (white bg)
 *   .cf-services-strip--light-mint   Positive outcome
 *   .cf-services-strip--dark-navy    Brand authority anchor
 *   .cf-services-strip--dark-ops     GSOC / command center
 *
 * Override variables (semantic roles):
 *   --cfss-bg       section background
 *   --cfss-line     vertical card divider line
 *   --cfss-heading  card heading color
 *   --cfss-body     card description color
 *   --cfss-cols     card count (set inline by template)
 *
 * Mode rule blocks below set the four color variables to brand tokens
 * from cf_core/brand. The base block sets light_sky defaults so the
 * strip renders correctly even if no mode class is applied.
 */

.cf-services-strip {
  /* Base defaults = light_sky. Mode classes below override. */
  --cfss-bg: var(--cf-sky-light);
  --cfss-line: var(--cf-blue-gray-tint);
  --cfss-heading: var(--cf-navy);
  --cfss-body: var(--cf-blue-gray);
  --cfss-cols: 5;

  background: var(--cfss-bg);
  border-bottom: 1px solid var(--cfss-line);
  padding: 32px 0;
  font-family: var(--cf-font-stack);
  box-sizing: border-box;
}

.cf-services-strip *,
.cf-services-strip *::before,
.cf-services-strip *::after {
  box-sizing: inherit;
}

/* ── Light: Sky (briefing-grade default) ────────────────────────────── */
.cf-services-strip--light-sky {
  --cfss-bg: var(--cf-sky-light);
  --cfss-line: var(--cf-blue-gray-tint);
  --cfss-heading: var(--cf-navy);
  --cfss-body: var(--cf-blue-gray);
}

/* ── Light: Slate (analytical / operational) ────────────────────────── */
.cf-services-strip--light-slate {
  --cfss-bg: var(--cf-blue-gray-lightest);
  --cfss-line: var(--cf-blue-gray-tint);
  --cfss-heading: var(--cf-navy);
  --cfss-body: var(--cf-blue-gray);
}

/* ── Light: Paper (editorial / long-form) ───────────────────────────── */
.cf-services-strip--light-paper {
  --cfss-bg: var(--cf-white);
  --cfss-line: var(--cf-blue-gray-tint);
  --cfss-heading: var(--cf-navy);
  --cfss-body: var(--cf-blue-gray);
}

/* ── Light: Mint (positive outcome) ─────────────────────────────────── */
.cf-services-strip--light-mint {
  --cfss-bg: var(--cf-apple-pale);
  --cfss-line: var(--cf-blue-gray-tint);
  --cfss-heading: var(--cf-navy);
  --cfss-body: var(--cf-blue-gray);
}

/* ── Dark: Navy (brand authority) ───────────────────────────────────── */
.cf-services-strip--dark-navy {
  --cfss-bg: var(--cf-navy);
  --cfss-line: rgba(255, 255, 255, 0.10);
  --cfss-heading: var(--cf-navy-lightest);
  --cfss-body: color-mix(in srgb, var(--cf-navy-lightest) 75%, transparent);
}

/* ── Dark: Ops (GSOC / command center) ──────────────────────────────── */
.cf-services-strip--dark-ops {
  --cfss-bg: var(--cf-slate-section);
  --cfss-line: rgba(255, 255, 255, 0.08);
  --cfss-heading: var(--cf-blue-gray-tint);
  --cfss-body: var(--cf-blue-gray-soft);
}

/* Full-bleed: escape any constrained parent and span the viewport. */
.cf-services-strip--fullbleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.cf-services-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cf-services-strip__grid {
  display: grid;
  grid-template-columns: repeat(var(--cfss-cols), 1fr);
  gap: 0;
}

@media (max-width: 900px) {
  .cf-services-strip__grid { grid-template-columns: repeat(2, 1fr); }

  /* Below desktop the cards stack into rows where vertical dividers
     create an inconsistent grid (the first card has no left rule, the
     second has one, the third wraps to a new row with no top rule).
     Switch to a top border on every card so each one is treated the
     same — a clean "list of services" rhythm bracketed by the
     section's existing border-bottom. Roomier padding so the rules
     don't crowd the type. */
  .cf-services-strip__card {
    border-left: none;
    border-top: 1px solid var(--cfss-line);
    padding: 16px 24px;
  }
  .cf-services-strip__card:first-child {
    border-left: none;        /* clear the desktop reset */
    border-top: 1px solid var(--cfss-line);
  }
}

@media (max-width: 500px) {
  .cf-services-strip__grid { grid-template-columns: 1fr; }
}

.cf-services-strip__card {
  display: block;
  padding: 8px 24px;
    border-top: none;

  border-left: 1px solid var(--cfss-line);
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background-color 0.15s ease, filter 0.15s ease;
}

.cf-services-strip__card:first-child {
  /* border-left: none; */
  border-top: none;
    border-left: 1px solid var(--cfss-line);

}

.cf-services-strip__card:hover {
  background: var(--cfss-bg);
  filter: brightness(0.96);
}

.cf-services-strip__heading {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--cfss-heading);
  margin: 0 0 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.cf-services-strip__desc {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--cfss-body);
  line-height: 1.45;
  margin: 0;
}
