/*********************
* SINGLE CASE STUDY *
*********************/

/* Hero */
.case-hero {
	background: var(--bg-color);
}

.case-hero .site-container {
	padding-top: 24px;
	padding-bottom: 56px;
}

.case-hero :is(h1, p, ul) {
	margin: 0;
}

.case-breadcrumb {
	font-size: 13px;
	line-height: 22px;
	color: #666;
}

.case-breadcrumb a {
	color: #666;
	text-decoration: underline;
}

.case-breadcrumb a:hover,
.case-breadcrumb a:focus-visible {
	color: var(--primary);
}

.case-breadcrumb [aria-current] {
	color: var(--text-color-1);
}

.case-hero .hero-row {
	display: flex;
	align-items: center;
	gap: 50px;
	margin-top: 24px;
}

.case-hero .left-block {
	flex: 0 0 50%;
	min-width: 0;
}

.case-hero .case-logo {
	display: inline-flex;
	align-items: center;
	height: 56px;
	padding: 0 20px;
	margin-bottom: 22px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}

.case-hero .case-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 160px;
	max-height: 32px;
}

.case-hero .eyebrow {
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 22px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--secondary);
}

.case-hero .section-title {
	font-size: clamp(30px, 3.6vw, 42px);
	line-height: 1.35;
	overflow-wrap: break-word;
}

.case-hero .desc {
	max-width: 52ch;
	margin-top: 12px;
	font-size: 17px;
	line-height: 28px;
}

.case-hero .case-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	padding: 0;
	list-style: none;
}

.case-hero .case-tags li {
	padding: 5px 14px;
	font-size: 13px;
	line-height: 20px;
	color: var(--text-color-1);
	background: #fff;
	border: 1px solid #e2e4e8;
	border-radius: 50px;
}

.case-hero .result-panel {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 36px;
	color: #fff;
	background: var(--secondary);
	border-radius: 10px;
}

.case-hero .result-label {
	font-size: 13px;
	line-height: 20px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #d9deea;
}

.case-hero .result-metric {
	font-size: 60px;
	line-height: 68px;
	font-weight: 700;
	color: #ff9b73;
	overflow-wrap: anywhere;
}

.case-hero .result-title {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
}

.case-hero .result-context {
	font-size: 14px;
	line-height: 22px;
	color: #d9deea;
}

/* Outcomes, Challenge and What We Did */
:is(.case-outcomes, .case-challenge, .case-did) {
	--case-accent: #b8461e;
	--case-muted: #5a6178;
	--case-tint: #f4f7f9;
}

:is(.case-outcomes, .case-challenge, .case-did) :is(h2, h3, p, ul, ol, dl, dd) {
	margin: 0;
}

:is(.case-outcomes, .case-did) .section-title {
	text-align: center;
}

.case-outcomes .site-container {
	padding-bottom: 40px;
}

.case-outcomes .outcome-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 36px;
}

.case-outcomes .outcome-card {
	padding: 28px 26px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(31, 39, 64, .08);
}

.case-outcomes .metric {
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--case-accent);
	overflow-wrap: anywhere;
}

.case-outcomes .label {
	margin-top: 10px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--text-color-1);
}

.case-outcomes .context {
	margin-top: 4px;
	font-size: 14px;
	line-height: 22px;
	color: var(--case-muted);
}

.case-challenge .site-container {
	padding-top: 40px;
}

.case-challenge .challenge-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 50px;
	align-items: start;
}

.case-challenge .challenge-points {
	display: grid;
	gap: 16px;
	margin-top: 22px;
	padding: 0;
	list-style: none;
}

.case-challenge .challenge-points li {
	position: relative;
	padding-left: 40px;
	font-size: 17px;
	line-height: 26px;
	color: var(--text-color-1);
}

.case-challenge .challenge-points li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 24px;
	height: 24px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8461e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3 3 7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(31, 39, 64, .12);
}

.case-challenge .glance {
	padding: 30px 28px;
	background: var(--case-tint);
	border-radius: 10px;
}

.case-challenge .glance-title {
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	color: var(--text-color-1);
}

.case-challenge .glance dl {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.case-challenge .glance-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 16px;
	font-size: 14px;
	line-height: 22px;
}

.case-challenge .glance dt {
	font-weight: 400;
	color: var(--case-muted);
}

.case-challenge .glance dd {
	font-weight: 500;
	color: var(--text-color-1);
}

.case-did {
	background: var(--case-tint);
}

.case-did .did-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 36px;
	padding: 0;
	list-style: none;
	counter-reset: did-step;
}

.case-did .did-card {
	padding: 28px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(31, 39, 64, .06);
	counter-increment: did-step;
}

.case-did .did-card::before {
	content: counter(did-step);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--case-accent);
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(31, 39, 64, .14);
}

.case-did .title {
	font-size: 19px;
	line-height: 28px;
	font-weight: 600;
	color: var(--text-color-1);
}

.case-did .desc {
	margin-top: 8px;
	font-size: 14px;
	line-height: 22px;
	color: var(--case-muted);
}

/* More success stories */
.case-more {
	--ai-link: #b84a22;
	--ai-border: #e7e9ee;
	--ai-muted: #4a5168;
}

.case-more .site-container {
	padding-top: 70px;
	padding-bottom: 70px;
}

.case-more-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

.case-more .section-title {
	margin: 0;
}

.case-more .text-link {
	font-size: 14px;
	font-weight: 500;
	color: var(--ai-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.case-more .case-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.case-more .dv-case-card {
	gap: 0;
	padding: 24px 26px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.case-more .dv-case-card .case-logo {
	min-height: 40px;
}

.case-more .dv-case-card .case-logo img {
	max-width: 160px;
	height: 32px;
}

.case-more .dv-case-card .case-outcome {
	margin-top: 14px;
	padding: 0;
	border: 0;
}

.case-more .dv-case-card .case-outcome .metric {
	font-size: 28px;
	line-height: 34px;
}

.case-more .dv-case-card .metric-label {
	font-size: 13px;
	line-height: 20px;
	font-weight: 400;
	color: var(--ai-muted);
}

.case-more .dv-case-card .title {
	margin: 12px 0 18px;
	font-size: 17px;
	line-height: 26px;
	font-weight: 600;
	color: var(--text-color-1);
}

.case-more .dv-case-card .btn-outline {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 44px;
	margin-top: auto;
	padding: 7px 20px;
	font-size: 15px;
	color: var(--ai-link);
	background: #fff;
	border: 1px solid #c84e22;
	border-radius: 4px;
	transition: .2s all;
}

.case-more .dv-case-card .btn-outline:hover,
.case-more .dv-case-card .btn-outline:focus-visible {
	color: #fff;
	background: var(--primary);
	border-color: var(--primary);
}

.case-more a:focus-visible {
	outline: 3px solid #df754d;
	outline-offset: 4px;
}

/* Talk to Our Corporate Advisor: solid brand background and two columns like the homepage
   (copy left, form right). Stacked at 1100px and below. Field styles come from the shared
   enquiry form rules in style.css. */
.single-case-study .case-contact {
	--ai-accent: #c04a20;
	--ai-ink: #1f2740;
	background: var(--secondary);
	scroll-margin-top: 120px;
}

.single-case-study .case-contact .get-started-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 64px;
	align-items: start;
}

.single-case-study .case-contact .section-head {
	max-width: none;
	margin: 0;
	text-align: left;
}

.single-case-study .case-contact .eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #ffb79a;
}

.single-case-study .case-contact .section-title {
	margin: 0;
	font-size: 44px;
	line-height: 1.12;
	text-align: left;
	color: #fff;
}

.single-case-study .case-contact .enquiry-form {
	max-width: none;
	margin: 0;
	padding: 48px;
}

@media (min-width: 1101px) and (max-width: 1279px) {
	.single-case-study .case-contact .get-started-grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 48px;
	}

	.single-case-study .case-contact .section-title {
		font-size: 38px;
	}

	.single-case-study .case-contact .enquiry-form {
		padding: 40px 36px;
	}
}

@media (max-width: 1100px) {
	.single-case-study .case-contact .get-started-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.single-case-study .case-contact .section-head {
		max-width: 720px;
	}

	.single-case-study .case-contact .section-title {
		font-size: 36px;
	}
}

@media (max-width: 980px) {
	.case-hero .hero-row {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.case-more .case-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.case-outcomes .outcome-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.case-challenge .challenge-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.case-did .did-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.single-case-study .case-contact {
		scroll-margin-top: 90px;
	}

	.single-case-study .case-contact .eyebrow {
		font-size: 11px;
	}

	.single-case-study .case-contact .section-title {
		font-size: 30px;
	}

	.single-case-study .case-contact .enquiry-form {
		padding: 24px 20px;
	}

	.case-hero .site-container {
		padding-bottom: 40px;
	}

	.case-hero .hero-row {
		margin-top: 20px;
	}

	.case-hero .desc {
		font-size: 16px;
		line-height: 26px;
	}

	.case-hero .result-panel {
		padding: 28px 24px;
	}

	.case-hero .result-metric {
		font-size: 48px;
		line-height: 56px;
	}

	.case-hero .result-title {
		font-size: 18px;
		line-height: 26px;
	}

	.case-more .site-container {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.single-case-study h2.section-title {
		text-align: left;
	}

	.case-outcomes .outcome-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 28px;
	}

	.case-outcomes .metric {
		font-size: 30px;
	}

	.case-challenge .challenge-points li {
		font-size: 16px;
		line-height: 25px;
	}

	.case-challenge .glance {
		padding: 24px 20px;
	}

	.case-did .did-grid {
		margin-top: 28px;
	}

	.case-did .did-card {
		padding: 24px;
	}

	.case-more .case-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
