/* ==========================================================================
   Case Studies 2026 — redesigned /case-studies page (Figma "New-Pages").
   Namespaced under .cs26 / .cs26-* so it never collides with the global theme.
   Tokens: primary #1690D3 · navy #0B1329 · deep #010005 · text #15172E ·
   gray #768297 · light #CACED7 · border #E5E7EB.
   ========================================================================== */

.cs26 {
	--cs26-primary: #1690D3;
	--cs26-navy: #0B1329;
	--cs26-deep: #010005;
	--cs26-text: #15172E;
	--cs26-gray: #768297;
	--cs26-light: #CACED7;
	--cs26-border: #E5E7EB;
	--cs26-fill: #F5F7FA;
	--cs26-green-bg: #E7F7EF;
	--cs26-green: #128A5B;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.cs26 *,
.cs26 *::before,
.cs26 *::after { box-sizing: border-box; }

/* Content container aligned to the site header: 1300px content at a 70px inset on
   1440 (max-width 1340 − 2×20 gutter), so hero/grid/trust/CTA line up with the logo
   and the filter bar — never left of the logo. Wider than the old 1200 grid. */
.cs26-container {
	max-width: 1340px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ------------------------------------------------------------------ Hero */
.cs26-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #0B1329 0%, #060B1B 58%, #010005 100%);
	color: #fff;
	padding: 140px 0 60px;
}
/* Decorative hero blob — the actual asset exported from Figma (node 6156:38349),
   placed top-right at the design size. */
.cs26-hero__blob {
	position: absolute;
	top: 106px;      /* 6px below the 100px fixed header — matches Figma (no header overlap) */
	right: 68px;     /* aligns with the content right edge */
	width: 544px;
	height: 544px;
	max-width: 52%;
	pointer-events: none;
	z-index: 1;
}
.cs26-hero__inner { position: relative; z-index: 2; }

/* Unified breadcrumb sits in the dark hero (white by default from
   css/breadcrumbs-critical.css); nudge the gap to the H1 to match the design. */
.cs26-hero .ll-breadcrumbs { margin-bottom: 40px; }

.cs26-hero__content { max-width: 600px; }
.cs26-hero__title {
	font-size: 56px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.5px;
	margin: 0;
	color: #fff;
}
.cs26-hero__subtitle {
	font-size: 18px;
	line-height: 1.55;
	color: var(--cs26-light);
	margin: 24px 0 0;
	max-width: 584px;
}
.cs26-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 36px;
	padding: 6px 6px 6px 24px;
	background: #fff;
	color: var(--cs26-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.cs26-hero__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); color: var(--cs26-text); }
.cs26-hero__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--cs26-deep);
}

/* Stats as a 2×2 metric-card grid (Figma "case studies hero" 6600-4830). */
.cs26-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
	max-width: 552px;
}
.cs26-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
}
.cs26-hero__stat-value {
	margin: 0;
	font-size: 28px;
	line-height: 32px;
	font-weight: 700;
	color: #fff;
	/* No nowrap: the listing uses a long value ("HIPAA / GDPR") that must wrap on
	   narrow cards instead of overflowing. Short values stay on one line naturally. */
}
.cs26-hero__stat-label {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------ Filter bar */
/* Filter = full-bleed white bar (Figma div.sticky 6062:28032): translucent white
   + backdrop blur, bottom border + soft bottom-only shadow that falls onto the grey
   listing below. NOT a rounded inset card. Non-sticky (scrolls away — the operator
   rejected the sticky version because it covered cards). Content is centred in the
   same .cs26-container width as the grid so their left edges align. */
.cs26-filter {
	position: relative;
	z-index: 20;
	background: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid #E2E8F0;
	box-shadow: 0 8px 24px -18px rgba(12, 12, 22, 0.5);
	/* Filter content is 1300px wide — 70px inset on a 1440 canvas, intentionally
	   ~50px wider each side than the 1200px card grid, exactly as the mock
	   (search field lands at 1024px, dropdown 260px). Narrow screens fall back to
	   a 20px gutter. */
	padding-inline: max(20px, calc((100% - 1300px) / 2));
}
.cs26-filter__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 32px 0;
}
.cs26-filter__row {
	display: flex;
	gap: 16px;
	align-items: stretch;
}
.cs26-filter__search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}
.cs26-filter__search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94A3B8;
	pointer-events: none;
}
.cs26-filter__search-input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 44px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background: #F8FAFC;
	font-size: 14px;
	color: var(--cs26-text);
	font-family: inherit;
	outline: none;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.cs26-filter__search-input::placeholder { color: #94A3B8; }
.cs26-filter__search-input:focus { border-color: var(--cs26-primary); background: #fff; box-shadow: 0 0 0 3px rgba(22, 144, 211, 0.12); }

.cs26-filter__dropdown { position: relative; flex: 0 0 260px; }
.cs26-filter__dropdown-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background: #F8FAFC;
	font-size: 14px;
	color: #010005;
	font-family: inherit;
	cursor: pointer;
	transition: border-color .2s;
}
.cs26-filter__dropdown-btn:hover { border-color: var(--cs26-primary); }
.cs26-filter__dropdown-caret { color: #64748B; transition: transform .2s; flex: 0 0 auto; }
.cs26-filter__dropdown.is-open .cs26-filter__dropdown-caret { transform: rotate(180deg); }
.cs26-filter__dropdown-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs26-filter__dropdown-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(15, 23, 46, 0.12);
	max-height: 320px;
	overflow-y: auto;
}
.cs26-filter__dropdown-item {
	padding: 9px 12px;
	font-size: 14px;
	color: var(--cs26-text);
	border-radius: 8px;
	cursor: pointer;
}
.cs26-filter__dropdown-item:hover { background: #F8FAFC; }
.cs26-filter__dropdown-item.is-active { color: var(--cs26-primary); font-weight: 600; background: rgba(22, 144, 211, 0.08); }

.cs26-filter__chips-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}
.cs26-filter__chips {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	/* Smoothness is driven by a JS rAF animation (native scroll-behavior:smooth is
	   unreliable for programmatic scrollBy in some mobile engines). */
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 2px;
	flex: 1 1 auto;
}
.cs26-filter__chips::-webkit-scrollbar { display: none; }
.cs26-chip {
	flex: 0 0 auto;
	height: 36px;
	padding: 0 18px;
	border: 1px solid #E2E8F0;
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 34px;
	color: #475569;
	cursor: pointer;
	white-space: nowrap;
	transition: all .18s;
}
.cs26-chip:hover { border-color: var(--cs26-primary); color: var(--cs26-primary); }
.cs26-chip.is-active {
	background: var(--cs26-primary);
	border-color: var(--cs26-primary);
	color: #fff;
	font-weight: 600;
}
.cs26-filter__scroll {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #E2E8F0;
	border-radius: 50%;
	background: #fff;
	color: var(--cs26-text);
	cursor: pointer;
	transition: all .18s;
}
.cs26-filter__scroll:hover { border-color: var(--cs26-primary); color: var(--cs26-primary); }

.cs26-filter__count {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 17px;
	color: #64748B;
}

/* --------------------------------------------------------------- Grid */
/* Near-white listing background (#F9FAFB, sampled from the mock) — barely off the
   pure-white cards, giving them a subtle lift; the white filter bar above is set off
   only by its bottom border + shadow, exactly as the mock (NOT a heavy grey band). */
.cs26-grid-section { background: #F9FAFB; padding: 24px 0 64px; }
.cs26-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.cs26-card.is-hidden-more,
.cs26-card.is-filtered-out { display: none; }

.cs26-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cs26-border);
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cs26-card:hover {
	box-shadow: 0 14px 34px rgba(15, 23, 46, 0.10);
	transform: translateY(-2px);
	border-color: #Dfe3ea;
}
.cs26-card__media {
	position: relative;
	display: block;
	height: 214px;
	/* Branded placeholder shown when a case has no derivable image. */
	background: linear-gradient(135deg, #eaf1f8 0%, #dbe6f2 55%, #cfe0f0 100%);
	overflow: hidden;
}
.cs26-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(120% 120% at 80% 20%, rgba(22, 144, 211, 0.18) 0%, rgba(22, 144, 211, 0) 60%);
	pointer-events: none;
}
.cs26-card__media img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cs26-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 4px 12px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 400;
	color: #020618;
	white-space: nowrap;
}
.cs26-card__body {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 20px;
	flex: 1 1 auto;
}
.cs26-card__title {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
	letter-spacing: -0.16px;
	color: #0B1329;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cs26-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.cs26-card__title a:hover { color: var(--cs26-primary); }
.cs26-card__desc {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 20px;
	color: #768297;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cs26-card__metric {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	height: 24px;
	margin-top: 16px;
	padding: 0 16px;
	background: #E3FAF2;
	color: #00A26A;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	box-shadow: 0 2px 4px rgba(16, 24, 48, 0.08);
}
.cs26-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.cs26-card__tags li {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 16px;
	background: #F8FAFC;
	border: 1px solid #CACED7;
	border-radius: 999px;
	font-size: 14px;
	line-height: 16px;
	color: #768297;
	box-shadow: 0 2px 4px rgba(16, 24, 48, 0.08);
}
.cs26-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 20px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.8px;
	color: var(--cs26-primary);
	text-decoration: none;
}
.cs26-card__link:hover { gap: 10px; color: var(--cs26-primary); }

.cs26-grid__empty {
	text-align: center;
	color: var(--cs26-gray);
	font-size: 16px;
	padding: 48px 0;
}
.cs26-grid__more { display: flex; justify-content: center; margin-top: 40px; }
.cs26-loadmore {
	padding: 14px 32px;
	border: 1px solid var(--cs26-light);
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--cs26-text);
	cursor: pointer;
	transition: all .18s;
}
.cs26-loadmore:hover { border-color: var(--cs26-primary); color: var(--cs26-primary); }

/* --------------------------------------------------------------- Trust */
/* Figma trust-bar 6062:28079: light #F8FAFC band, border top AND bottom, ratings
   group + vertical divider + trusted-by line, all centred (gap 48; ratings gap 32). */
.cs26-trust { background: #F8FAFC; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.cs26-trust__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 48px;
	padding: 24px 20px;
}
.cs26-trust__ratings { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; }
.cs26-trust__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--cs26-gray);
}
.cs26-trust__rating b { color: #6E6E6E; font-weight: 700; }
.cs26-trust__star { color: #6E6E6E; }
.cs26-trust__divider { flex: 0 0 auto; width: 1px; height: 16px; background: #E5E7EB; }
.cs26-trust__text { margin: 0; font-size: 14px; color: var(--cs26-gray); }

/* ----------------------------------------------------------------- CTA */
.cs26-cta {
	position: relative;
	overflow: hidden;
	background: #0C0C16; /* Figma section#contact — solid dark, not a gradient */
	padding: 48px 0;
}
.cs26-cta__blob {
	position: absolute;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle at 50% 50%, rgba(22, 144, 211, 0.45) 0%, rgba(22, 144, 211, 0.10) 40%, rgba(11, 19, 41, 0) 68%);
}
.cs26-cta__blob--left { top: -180px; left: -160px; }
.cs26-cta__blob--right { bottom: -220px; right: -140px; }
.cs26-cta__inner { position: relative; z-index: 2; text-align: center; }
.cs26-cta__title {
	margin: 0 auto;
	max-width: 560px;
	font-size: 36px;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
}
/* Button: white pill (h50) with text + a dark circle chevron on the right, min 240
   wide (Figma start-your-project-button). */
.cs26-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 240px;
	margin-top: 40px;
	height: 50px;
	padding: 0 6px 0 24px;
	background: #fff;
	color: var(--cs26-text);
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.cs26-cta__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--cs26-deep);
}
.cs26-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); color: var(--cs26-text); }

/* ========================================================= Responsive */
@media (max-width: 1024px) {
	.cs26-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.cs26-hero__title { font-size: 46px; }
}

@media (max-width: 767px) {
	.cs26-hero { padding: 120px 0 44px; }
	.cs26-hero__blob { width: 360px; height: 360px; max-width: 90%; top: 30px; right: -80px; }
	.cs26-hero .ll-breadcrumbs { margin-bottom: 28px; }
	.cs26-hero__title { font-size: 34px; }
	.cs26-hero__subtitle { font-size: 16px; }
	/* Mobile: DOM order (title → 2×2 metric cards → subtitle → CTA) is already the visual
	   order; the CTA goes full-width. Cards keep the 2×2 boxed grid from the desktop rule. */
	.cs26-hero__btn { width: 100%; justify-content: center; padding: 6px 20px; }
	.cs26-hero__stats { gap: 12px; margin-top: 20px; }
	.cs26-hero__stat-value { font-size: 24px; line-height: 28px; }

	/* Filter is the same full-bleed white bar on mobile (Figma div.sticky-mobile),
	   16px gutter, just a tighter stack. */
	.cs26-filter { padding-inline: 16px; }
	.cs26-filter__inner { padding: 20px 0; }
	.cs26-filter__row { flex-direction: column; gap: 12px; }
	.cs26-filter__dropdown { flex-basis: auto; }
	/* Divider between the search/dropdown group and the chips row (16px each side, design). */
	.cs26-filter__chips-wrap { border-top: 1px solid #E2E8F0; margin-top: 16px; padding-top: 16px; }

	.cs26-grid { grid-template-columns: 1fr; gap: 24px; }

	.cs26-trust__inner { flex-direction: column; gap: 16px; text-align: center; }
	.cs26-trust__ratings { justify-content: center; gap: 18px; }
	.cs26-trust__divider { display: none; } /* vertical rule makes no sense when stacked */

	.cs26-cta { padding: 48px 0; }
	.cs26-cta__title { font-size: 24px; }
	/* Full-width button: text centred, chevron pinned right (Figma mobile). */
	.cs26-cta__btn { width: 100%; justify-content: space-between; }
	.cs26-cta__btn > span:first-child { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 480px) {
	.cs26-hero__title { font-size: 30px; }
	.cs26-container { padding-left: 16px; padding-right: 16px; }
}
