/* ==========================================================================
   Component: Case Study — Related Services
   Green pill rows on #F6F6F6, full row is the link.
   ========================================================================== */

.cs-services {
	position: relative;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

/* --- Heading --- */
.cs-services .cs-eyebrow {
	margin-bottom: 1rem;
}

.cs-services .cs-services__title {
	margin: 0 0 2rem;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--cs-ink);
}

/* --- List --- */
.cs-services .cs-services__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-services .cs-services__item + .cs-services__item {
	margin-top: .75rem;
}

/* --- Row --- */
.cs-services .cs-service {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.5rem;
	border-radius: .5rem;
	background: #f6f6f6;
	color: var(--cs-green-deep);
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.cs-services .cs-service:hover,
.cs-services .cs-service:focus-visible {
	background: #eceeed;
	color: var(--cs-green);
}

/* --- Icon --- */
.cs-services .cs-service__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	color: currentColor;
}

.cs-services .cs-service__mark svg,
.cs-services .cs-service__icon-img {
	width: 24px;
	height: 24px;
	display: block;
	object-fit: contain;
}

/* --- Label --- */
.cs-services .cs-service__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -.01em;
}

/* --- Arrow --- */
.cs-services .cs-service__arrow {
	display: inline-flex;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	transition: transform .2s ease;
}

.cs-services .cs-service__arrow svg {
	width: 22px;
	height: 22px;
	display: block;
}

.cs-services .cs-service:hover .cs-service__arrow {
	transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 575.98px) {
	.cs-services .cs-service {
		gap: .75rem;
		padding: 1rem 1.15rem;
	}

	.cs-services .cs-service__name {
		font-size: 15px;
	}
}

/* --- A11y --- */
.cs-services .cs-service:focus-visible {
	outline: 2px solid var(--cs-green-deep);
	outline-offset: 2px;
}

/* ==========================================================================
   Case Study — Base
   Shared tokens, eyebrow, and the sticky CF7 rail.
   Loaded once by gruve_enqueue_case_study_flexi_component() before components.
   Grid + spacing come from Bootstrap; this only styles content.
   ========================================================================== */

.cs {
	--cs-ink: #12181c;
	--cs-muted: #4a5257;
	--cs-green: #17a15c;
	--cs-green-deep: #0f8a4c;
	--cs-quote-a: #0b5c31;
	--cs-quote-b: #08351d;
	--cs-panel: #f2f3f2;
	--cs-rule: #dfe3e2;
	--cs-lime: #d7f244;

	background: #fff;
	color: var(--cs-ink);
	-webkit-font-smoothing: antialiased;
	/* clip, not hidden: overflow-x:hidden would create a scroll container and
	   break position:sticky on the CF7 rail. clip contains the bleeding
	   .bg-grey bands without that side effect. */
	overflow-x: clip;
}

/* --- Eyebrow (used by every component) --- */
.cs .cs-eyebrow {
	color: var(--cs-green-deep);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.cs .cs-eyebrow--sm {
	font-size: 12px;
	color: var(--cs-green);
}

/* --- A11y --- */
.cs a:focus-visible,
.cs input:focus-visible {
	outline: 2px solid var(--cs-green-deep);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.cs * {
		transition: none !important;
		animation: none !important;
	}
}

/* ==========================================================================
   Bootstrap 5 utility fallbacks
   Your markup uses col-xs-* (BS3 habit), so these keep the components correct
   if the theme is on Bootstrap 3/4 where these utilities don't exist.
   Values match BS5, so they are harmless no-ops on a BS5 theme.
   ========================================================================== */

.cs .rounded-3 { border-radius: .5rem; }
.cs .rounded-4 { border-radius: .75rem; }

.cs .gap-2 { gap: .5rem; }
.cs .gap-3 { gap: 1rem; }

.cs .row.gx-lg-5 > * { padding-right: 1.5rem; padding-left: 1.5rem; }
.cs .row.gy-4 > * { margin-top: 1.5rem; }

.cs [class*="row-cols-"] { display: flex; flex-wrap: wrap; }
.cs .row-cols-1 > .col { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
	.cs .row-cols-sm-2 > .col { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
	.cs .row-cols-lg-3 > .col { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

.cs .border-top { border-top: 1px solid var(--cs-rule); }

/* ==========================================================================
   Component: Case Study Hero  (layout case_study_hero)
   ========================================================================== */
.cs-hero .cs-hero__back {
	color: var(--cs-ink);
	font-size: 15px;
	font-weight: 500;
	transition: color .18s ease;
}

.cs-hero .cs-hero__back:hover,
.cs-hero .cs-hero__back:focus-visible {
	color: var(--cs-green-deep);
}

.cs-hero .cs-hero__back-arrow {
	font-size: 17px;
	line-height: 1;
	transition: transform .18s ease;
}

.cs-hero .cs-hero__back:hover .cs-hero__back-arrow {
	transform: translateX(-3px);
}

/* --- Title + deck --- */
.cs-hero .cs-hero__title {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 400;
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--cs-ink);
}

.cs-hero .cs-hero__deck {
	max-width: 34em;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--cs-ink);
}

/* --- Counters --- */
.cs-hero .cs-hero__stat-value {
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--cs-green);
	font-variant-numeric: tabular-nums;
}

.cs-hero .cs-hero__stat-label {
	font-size: 14px;
	line-height: 1.45;
	color: var(--cs-muted);
}

/* --- Side box --- */
.cs-hero .cs-hero__meta {
	background: var(--cs-panel);
}

.cs-hero .cs-hero__meta-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--cs-ink);
}

.cs-hero .cs-hero__meta-text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--cs-muted);
}