/* ORIGIN Estimations – Our Work widget. All selectors scoped to .ce-our-work */

.ce-our-work,
.ce-our-work *,
.ce-our-work *::before,
.ce-our-work *::after {
	box-sizing: border-box;
}

.ce-our-work {
	width: 100%;
	padding: 88px 24px;
	background-color: #FAF9F6;
	color: #5B625F;
}

.ce-our-work .ce-our-work__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Header ---------- */

.ce-our-work .ce-our-work__header {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.ce-our-work .ce-our-work__eyebrow {
	display: block;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #52796F;
}

.ce-our-work .ce-our-work__heading {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #202B2B;
}

.ce-our-work .ce-our-work__intro {
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.65;
	color: #5B625F;
}

/* ---------- Grid ---------- */

.ce-our-work .ce-our-work__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

/* ---------- Card ---------- */

.ce-our-work .ce-our-work__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background-color: #FFFFFF;
	border: 1px solid #E7E5DF;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(32, 43, 43, 0.06);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ce-our-work .ce-our-work__card:hover,
.ce-our-work .ce-our-work__card:focus-within {
	border-color: #52796F;
	box-shadow: 0 8px 22px rgba(32, 43, 43, 0.09);
	transform: translateY(-2px);
}

/* ---------- Media ---------- */

.ce-our-work .ce-our-work__media {
	position: relative;
	height: 220px;
	overflow: hidden;
	background-color: #E7E5DF;
}

.ce-our-work .ce-our-work__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ce-our-work .ce-our-work__card:hover .ce-our-work__img {
	transform: scale(1.03);
}

/* Neutral blueprint-grid placeholder (no image selected / image failed) */
.ce-our-work .ce-our-work__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: #EFEDE6;
	background-image:
		linear-gradient(rgba(82, 121, 111, 0.14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(82, 121, 111, 0.14) 1px, transparent 1px);
	background-size: 24px 24px;
	color: #5B625F;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ce-our-work .ce-our-work__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 5px 10px;
	border-radius: 2px;
	background-color: #FFFFFF;
	color: #202B2B;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Body ---------- */

.ce-our-work .ce-our-work__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 24px 26px;
}

.ce-our-work .ce-our-work__category {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 10px;
	border-radius: 2px;
	background-color: #202B2B;
	color: #D4B483;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ce-our-work .ce-our-work__title {
	margin: 0 0 10px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: #202B2B;
}

.ce-our-work .ce-our-work__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.65;
	color: #5B625F;
}

.ce-our-work .ce-our-work__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.ce-our-work .ce-our-work__tag {
	margin: 0;
	padding: 4px 10px;
	border: 1px solid #E7E5DF;
	border-radius: 2px;
	color: #52796F;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

/* ---------- Link (stretched over the whole card) ---------- */

.ce-our-work .ce-our-work__cta {
	margin-top: auto;
}

.ce-our-work .ce-our-work__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #52796F;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ce-our-work a.ce-our-work__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.ce-our-work a.ce-our-work__link:focus-visible {
	outline: none;
}

.ce-our-work a.ce-our-work__link:focus-visible::after {
	outline: 2px solid #52796F;
	outline-offset: -2px;
	border-radius: inherit;
}

.ce-our-work .ce-our-work__card:hover .ce-our-work__link,
.ce-our-work .ce-our-work__link:focus-visible {
	color: #202B2B;
}

.ce-our-work .ce-our-work__arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.ce-our-work .ce-our-work__card:hover .ce-our-work__arrow,
.ce-our-work .ce-our-work__card:focus-within .ce-our-work__arrow {
	transform: translateX(4px);
}

.ce-our-work .ce-our-work__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Footnote ---------- */

.ce-our-work .ce-our-work__footnote {
	max-width: 720px;
	margin: 36px auto 0;
	font-size: 13.5px;
	line-height: 1.6;
	text-align: center;
	color: #5B625F;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.ce-our-work {
		padding: 72px 24px;
	}

	.ce-our-work .ce-our-work__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ce-our-work .ce-our-work__media {
		height: 210px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.ce-our-work {
		padding: 56px 20px;
	}

	.ce-our-work .ce-our-work__header {
		margin-bottom: 32px;
	}

	.ce-our-work .ce-our-work__intro {
		font-size: 16px;
	}

	.ce-our-work .ce-our-work__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ce-our-work .ce-our-work__media {
		height: 190px;
	}

	.ce-our-work .ce-our-work__body {
		padding: 20px 20px 22px;
	}

	.ce-our-work .ce-our-work__title {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-our-work .ce-our-work__card,
	.ce-our-work .ce-our-work__img,
	.ce-our-work .ce-our-work__arrow,
	.ce-our-work .ce-our-work__link {
		transition: none;
	}

	.ce-our-work .ce-our-work__card:hover,
	.ce-our-work .ce-our-work__card:focus-within,
	.ce-our-work .ce-our-work__card:hover .ce-our-work__img,
	.ce-our-work .ce-our-work__card:hover .ce-our-work__arrow,
	.ce-our-work .ce-our-work__card:focus-within .ce-our-work__arrow {
		transform: none;
	}
}