/* Speedwork Case Study — single template styles */

.case-study {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 20px 0 20px;
}

.case-study-hero {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 30px;
	background: linear-gradient(135deg, #fbd9c9 0%, #fce7dc 100%);
}

.case-study-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 119, 76, 0.4); /* #FF774C @ 40%, per Figma */
	pointer-events: none;
}

.case-study-hero img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.case-study-eyebrow {
	color: #ff5722;
	font-weight: 700;
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 12px 0;
}

.case-study-logo {
	max-width: 140px;
	max-height: 56px;
	margin-bottom: 16px;
}
.case-study-logo img {
	max-width: 100%;
	max-height: 56px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.case-study-title {
	color: #1a2b4c;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px 0;
}

.case-study-meta-box {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.case-study-meta-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fbe4de;
	border-radius: 14px;
	padding: 10px 18px 10px 10px;
}
.case-study-meta-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 10px;
}
.case-study-meta-item-text {
	display: flex;
	flex-direction: column;
}
.case-study-meta-label {
	color: #8a8580;
	font-size: 0.8em;
}
.case-study-meta-value {
	color: #1a1a1a;
	font-weight: 700;
	font-size: 1em;
}

.case-study-content {
	max-width: 640px;
}

.case-study-content h2 {
	color: #1a2b4c;
	font-size: 36px;
	font-weight: 700;
	margin: 30px 0 10px 0;
}

.case-study-content h2:first-child {
	margin-top: 0;
}

.case-study-overview p,
.case-study-results {
	color: #333;
	font-size: 0.95em;
	line-height: 1.6;
	margin: 0 0 12px 0;
}

.case-study-approach ul {
	margin: 0;
	padding-left: 20px;
	color: #333;
	font-size: 0.95em;
	line-height: 1.8;
}

.case-study-pdf-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ff5722;
	color: #fff;
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9em;
	text-decoration: none;
	margin-top: 20px;
}
.case-study-pdf-button:hover { background: #e64a19; color: #fff; }

/* Carousel */
.case-study-carousel {
	margin-top: 50px;
}
/* Break out of the 640px text column to match .case-study-hero's full
   900px width -- only once .case-study itself has room to actually be at
   that width, so this can't overflow narrower viewports. */
@media (min-width: 940px) {
	.case-study-carousel {
		width: calc(100% + 260px);
		max-width: 900px;
	}
}
.case-study-carousel-main {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}
.case-study-carousel-slides {
	flex: 1;
	border-radius: 12px;
	overflow: hidden;
	background: #f2f2f2;
}
.case-study-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	transition: transform .5s ease;
}
.case-study-carousel-slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.case-study-carousel-slide img {
	width: 100%;
	height: 380px;
	object-fit: contain;
	object-position: center;
	display: block;
}
.case-study-carousel-arrow {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid #ff5722;
	background: #fff;
	color: #ff5722;
	font-size: 1.1em;
	cursor: pointer;
}
.case-study-carousel-arrow:hover { background: #ff5722; color: #fff; }
.case-study-carousel-controls-mobile {
	display: none;
	justify-content: center;
	gap: 16px;
	margin-top: 14px;
}
.case-study-carousel-thumbs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.case-study-carousel-thumb {
	width: 90px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	padding: 0;
	border: 2px solid transparent;
	cursor: pointer;
	background: none;
}
.case-study-carousel-thumb.active { border-color: #ff5722; }
.case-study-carousel-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Before/after compare slider */
.case-study-compare {
	position: relative;
	margin-top: 40px;
	border-radius: 12px;
	overflow: hidden;
	height: 380px;
	user-select: none;
	cursor: ew-resize;
}
.case-study-compare-after,
.case-study-compare-before {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
}
.case-study-compare-after { width: 100%; }
.case-study-compare-after img,
.case-study-compare-before img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.case-study-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #fff;
	transform: translateX(-50%);
}
.case-study-compare-handle-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1em;
	color: #1a2b4c;
}

/* CTA + testimonial reused from /results-new */
.case-study-cta {
	margin: 60px 0 40px 0;
	padding: 0 20px;
}
.results-cta-inner {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	background: #fbd9c9;
	border-radius: 18px;
	padding: 45px 30px;
	text-align: center;
	box-sizing: border-box;
}
.results-cta-inner h3 { color: #1a2b4c; font-size: 1.7em; font-weight: 700; margin: 0 0 14px 0; }
.results-cta-inner p { color: #4a4a4a; font-size: 0.95em; max-width: 520px; margin: 0 auto 20px auto; line-height: 1.5; }
.results-cta-inner p a { color: #1a2b4c; text-decoration: underline; }
.results-cta-inner a.results-cta-button {
	display: inline-block; background: #ff5722; color: #fff; padding: 12px 26px; border-radius: 6px;
	font-weight: 600; text-decoration: none; font-size: 0.95em;
}

.results-testimonial-heading { text-align: center; max-width: 640px; margin: 0 auto 20px auto; color: #1a2b4c; font-size: 1.7em; font-weight: 700; }
.results-testimonial-wrap { width: 100%; max-width: 640px; margin: 0 auto 40px auto; box-sizing: border-box; overflow: hidden; position: relative; }
.results-testimonial-track { display: flex; flex-wrap: nowrap; width: 100%; transition: transform .5s ease; }
.results-testimonial-slide { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0 20px; text-align: center; box-sizing: border-box; }
.results-testimonial-stars { margin-bottom: 14px; }
.results-testimonial-star { color: #d8d8d8; font-size: 1.4em; }
.results-testimonial-star.filled { color: #f5b942; }
.results-testimonial-message { color: #1a1a1a; font-size: 16px; line-height: 1.6; margin: 0 0 20px 0; }
.results-testimonial-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.results-testimonial-avatar { width: 48px; height: 48px; margin: 0; flex-shrink: 0; border-radius: 50%; object-fit: cover; display: block; }
.results-testimonial-person-text { text-align: left; }
.results-testimonial-person-name { display: block; color: #1a2b4c; font-weight: 700; font-size: 16px; }
.results-testimonial-person-title { display: block; color: #777; font-size: 16px; }
.results-testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.results-testimonial-dot { width: 9px; height: 9px; border-radius: 50%; background: #d8d8d8; border: none; cursor: pointer; padding: 0; }
.results-testimonial-dot.active { background: #ff5722; }

@media (max-width: 991px) {
	.case-study-title { font-size: 46px; }
	.case-study-content h2 { font-size: 30px; }
}

@media (max-width: 599px) {
	.case-study-content h2 { font-size: 26px; }
}

@media (max-width: 767px) {
	.case-study-carousel-slide img { height: 220px; }
	.case-study-compare { height: 240px; }

	.case-study-carousel-main .case-study-carousel-arrow { display: none; }
	.case-study-carousel-controls-mobile { display: flex; }
}
