/* EArk Case Studies & Customer Stories
   Matches EArk Digital Marketing Agency design system:
   crisp square geometry, #1677ff primary blue, #00c4b4 accent teal, #0a1628 navy.
*/

.site-main.eark-cases-page,
.site-main.eark-case-story {
	max-width: none;
	margin: 0;
	padding: 0;
	background: #ffffff;
	overflow: visible;
}

/* Shared Breadcrumb */
.cases-breadcrumb {
	font-size: 13px;
	color: #86909c;
	margin: 0 0 16px;
}

.cases-breadcrumb a {
	color: #1677ff;
	text-decoration: none;
}

.cases-breadcrumb a:hover {
	text-decoration: underline;
}

.cases-breadcrumb span {
	margin: 0 6px;
	color: #c0c6d0;
}

.cases-breadcrumb .is-current {
	margin: 0;
	color: #86909c;
}

/* ==========================================================================
   Cases Home & Category Archive Hero
   ========================================================================== */
.cases-hero {
	background: linear-gradient(180deg, #eef5ff 0%, #f7f9fc 60%, #ffffff 100%);
	border-bottom: 1px solid #e7ebf3;
	padding: 52px 24px 40px;
	margin-bottom: 44px;
}

.cases-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.cases-hero-badge {
	display: inline-block;
	padding: 4px 12px;
	background: #e8f2ff;
	border: 1px solid #cfe0ff;
	color: #1677ff;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.cases-hero h1 {
	font-size: 40px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: #1d2129;
	margin: 0 0 14px;
}

.cases-hero-sub {
	font-size: 16px;
	line-height: 1.7;
	color: #4e5969;
	max-width: 680px;
	margin: 0 0 28px;
}

/* Category Filter Tabs */
.cases-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 20px;
	border-top: 1px solid #e7ebf3;
}

.cases-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	color: #4e5969;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cases-filter-pill:hover {
	border-color: #1677ff;
	color: #1677ff;
	background: #f5f9ff;
}

.cases-filter-pill.is-active {
	background: #1677ff;
	border-color: #1677ff;
	color: #ffffff;
}

.cases-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11.5px;
	font-weight: 650;
	background: #f2f4f8;
	color: #4e5969;
	font-variant-numeric: tabular-nums;
}

.cases-filter-pill.is-active .cases-filter-count {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.cases-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 72px;
}

/* ==========================================================================
   Spotlight Featured Case Card (Page 1 Top Feature)
   ========================================================================== */
.eark-case-spotlight {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 40px;
	align-items: stretch;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-top: 2px solid #1677ff;
	margin: 0 0 44px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 36px rgba(16, 24, 40, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.eark-case-spotlight:hover {
	border-color: #cfe0ff;
	box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
	transform: translateY(-2px);
}

.eark-case-spotlight-media {
	position: relative;
	min-height: 360px;
	background: linear-gradient(135deg, #0a1628 0%, #1677ff 65%, #00c4b4 100%);
	overflow: hidden;
}

.eark-case-spotlight-media a {
	display: block;
	width: 100%;
	height: 100%;
}

.eark-case-spotlight-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.eark-case-spotlight:hover .eark-case-spotlight-media img {
	transform: scale(1.03);
}

.eark-case-spotlight-tag {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 4px 12px;
	background: #0a1628;
	color: #00c4b4;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	z-index: 2;
}

.eark-case-spotlight-body {
	padding: 36px 40px 36px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.eark-case-eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 14px;
}

.eark-case-cat-badge {
	display: inline-block;
	padding: 2px 10px;
	background: #e8f2ff;
	color: #1677ff;
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

.eark-case-cat-badge:hover {
	background: #1677ff;
	color: #ffffff;
}

.eark-case-client-name {
	font-weight: 650;
	color: #1d2129;
}

.eark-case-sep {
	color: #c0c6d0;
}

.eark-case-spotlight-body h2 {
	font-size: 28px;
	font-weight: 750;
	line-height: 1.28;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}

.eark-case-spotlight-body h2 a {
	color: #1d2129;
	text-decoration: none;
	transition: color 0.15s ease;
}

.eark-case-spotlight-body h2 a:hover {
	color: #1677ff;
}

.eark-case-spotlight-excerpt {
	font-size: 15px;
	line-height: 1.75;
	color: #4e5969;
	margin: 0 0 22px;
}

.eark-case-spotlight-kpi {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 14px 18px;
	margin-bottom: 24px;
	background: #f4f8ff;
	border-left: 3px solid #1677ff;
}

.eark-case-spotlight-kpi strong {
	font-size: 26px;
	font-weight: 750;
	line-height: 1;
	color: #1677ff;
	font-variant-numeric: tabular-nums;
}

.eark-case-spotlight-kpi span {
	font-size: 13.5px;
	font-weight: 600;
	color: #1d2129;
}

/* ==========================================================================
   Case Studies Grid & Cards
   ========================================================================== */
.eark-cases-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.eark-case-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px rgba(16, 24, 40, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.eark-case-card:hover {
	border-color: #cfe0ff;
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
	transform: translateY(-2px);
}

.eark-case-card-media {
	position: relative;
	height: 204px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #e8f1ff 0%, #f3f0ff 55%, #e7f7ff 100%);
	overflow: hidden;
}

.eark-case-card-media a {
	display: block;
	width: 100%;
	height: 100%;
}

.eark-case-card-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.eark-case-card:hover .eark-case-card-media img {
	transform: scale(1.03);
}

.eark-case-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 3px 10px;
	background: rgba(10, 22, 40, 0.88);
	color: #ffffff;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	z-index: 2;
}

.eark-case-card-body {
	padding: 22px 24px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.eark-case-card-client {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 8px;
}

.eark-case-card-client strong {
	color: #1677ff;
	font-weight: 650;
}

.eark-case-card-body h3 {
	font-size: 18px;
	font-weight: 650;
	line-height: 1.38;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
}

.eark-case-card-body h3 a {
	color: #1d2129;
	text-decoration: none;
	transition: color 0.15s ease;
}

.eark-case-card-body h3 a:hover {
	color: #1677ff;
}

.eark-case-card-body p {
	font-size: 14px;
	line-height: 1.7;
	color: #4e5969;
	margin: 0 0 20px;
	flex: 1;
}

.eark-case-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #eef0f4;
}

.eark-case-card-kpi {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.eark-case-card-kpi strong {
	font-size: 17px;
	font-weight: 750;
	line-height: 1.2;
	color: #1677ff;
	font-variant-numeric: tabular-nums;
}

.eark-case-card-kpi span {
	font-size: 11.5px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eark-case-card-date {
	font-size: 12.5px;
	color: #86909c;
}

.eark-case-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13.5px;
	font-weight: 600;
	color: #1677ff;
	text-decoration: none;
	flex-shrink: 0;
}

.eark-case-link::after {
	content: "92";
	transition: transform 0.15s ease;
}

.eark-case-link:hover::after {
	transform: translateX(3px);
}

.eark-cases-empty {
	text-align: center;
	padding: 72px 24px;
	background: #f7f9fc;
	border: 1px solid #e7ebf3;
}

.eark-cases-empty h2 {
	font-size: 24px;
	color: #1d2129;
	margin: 0 0 8px;
}

.eark-cases-empty p {
	color: #4e5969;
	max-width: 520px;
	margin: 0 auto 24px;
}

.cases-closing-cta {
	margin-top: 64px;
}

/* ==========================================================================
   Single Case Story Template (`/cases/<slug>/`)
   ========================================================================== */
.case-story-hero {
	background: linear-gradient(180deg, #eef5ff 0%, #f8faff 60%, #ffffff 100%);
	border-bottom: 1px solid #eef0f4;
	padding: 48px 24px 44px;
	margin-bottom: 44px;
}

.case-story-hero-inner {
	max-width: 1160px;
	margin: 0 auto;
}

.case-story-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 14px;
}

.case-story-title {
	font-size: 40px;
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -0.025em;
	color: #1d2129;
	max-width: 880px;
	margin: 0 0 16px;
}

.case-story-lead {
	font-size: 17px;
	line-height: 1.75;
	color: #4e5969;
	max-width: 780px;
	margin: 0;
}

/* KPI Impact Strip */
.case-kpi-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}

.case-kpi-strip.case-kpi-cols-1 {
	grid-template-columns: minmax(0, 360px);
}

.case-kpi-strip.case-kpi-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 360px));
}

.case-kpi-card {
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-top: 2px solid #1677ff;
	padding: 20px 24px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
}

.case-kpi-card:nth-child(2) {
	border-top-color: #00c4b4;
}

.case-kpi-card strong {
	display: block;
	font-size: 32px;
	font-weight: 750;
	line-height: 1.15;
	color: #1d2129;
	font-variant-numeric: tabular-nums;
	margin-bottom: 6px;
}

.case-kpi-card span {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	color: #4e5969;
}

/* Case Cover Image */
.case-story-cover {
	max-width: 1160px;
	margin: 0 auto 48px;
	padding: 0 24px;
}

.case-story-cover img {
	width: 100%;
	height: auto;
	max-height: 540px;
	object-fit: cover;
	display: block;
	border: 1px solid #e7ebf3;
	box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

/* Two-Column Case Story Layout */
.case-story-layout {
	max-width: 1160px;
	margin: 0 auto 72px;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.case-story-sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.case-brief-card,
.case-toc-card {
	background: #ffffff;
	border: 1px solid #e7ebf3;
	padding: 20px;
}

.case-brief-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1d2129;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef0f4;
}

.case-brief-list {
	margin: 0;
}

.case-brief-list dt {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #86909c;
	margin: 12px 0 3px;
}

.case-brief-list dt:first-child {
	margin-top: 0;
}

.case-brief-list dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2129;
	line-height: 1.5;
}

.case-live-btn {
	width: 100%;
	box-sizing: border-box;
	margin-top: 18px;
}

.case-sidebar-cta {
	background: linear-gradient(135deg, #0a1628 0%, #10213d 100%);
	border: 1px solid #1a2a46;
	border-top: 2px solid #00c4b4;
	padding: 22px 20px;
	color: #e2e8f0;
}

.case-sidebar-cta h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 650;
	color: #ffffff;
}

.case-sidebar-cta p {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #cbd5e1;
}

.case-sidebar-cta .eark-btn {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.case-story-main {
	min-width: 0;
}

/* Executive Challenge vs Solution Cards */
.case-exec-brief {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 36px;
}

.case-exec-card {
	background: #f7f9fc;
	border: 1px solid #e7ebf3;
	border-left: 3px solid #1677ff;
	padding: 22px 24px;
}

.case-exec-card.is-solution {
	border-left-color: #00c4b4;
	background: #f4fbfa;
}

.case-exec-kicker {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1677ff;
	margin-bottom: 8px;
}

.case-exec-card.is-solution .case-exec-kicker {
	color: #008f83;
}

.case-exec-card p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.75;
	color: #1d2129;
}

.case-story-content {
	font-size: 16px;
	line-height: 1.85;
}

.case-endorsement {
	margin-top: 40px;
}

/* Related Cases Section */
.case-related-section {
	background: #f7f9fc;
	border-top: 1px solid #eef0f4;
	padding: 60px 24px 72px;
}

.case-related-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.case-related-header {
	margin-bottom: 28px;
}

.case-related-kicker {
	display: block;
	font-size: 12.5px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1677ff;
	margin-bottom: 4px;
}

.case-related-header h2 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1d2129;
	margin: 0;
}

@media (max-width: 960px) {
	.eark-case-spotlight {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.eark-case-spotlight-media {
		min-height: 240px;
	}
	.eark-case-spotlight-body {
		padding: 28px 24px;
	}
	.eark-cases-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.case-story-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.case-story-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.cases-hero h1,
	.case-story-title {
		font-size: 28px;
	}
	.eark-cases-grid,
	.case-kpi-strip,
	.case-kpi-strip.case-kpi-cols-2,
	.case-exec-brief {
		grid-template-columns: 1fr;
	}
}
