/* ==========================================================================
   ORIGIN Estimations: Our Core Services
   Every selector is scoped to .ce-services (root) or ce-sv-* children.
   Palette: Charcoal #202B2B · Forest #52796F · Gold #D4B483 · Off-white #FAF9F6
   Breakpoints (Elementor defaults): tablet ≤1024px, mobile ≤767px.
   ========================================================================== */

/* ---------- Tokens (Elementor controls override these variables) ---------- */
.ce-services {
	--ce-sv-bg: #FAF9F6;
	--ce-sv-heading: #202B2B;
	--ce-sv-eyebrow: #86693A;     /* deeper gold: AA contrast for text on off-white */
	--ce-sv-accent: #D4B483;      /* brand gold: rules, borders, button */
	--ce-sv-text: #5B625F;
	--ce-sv-focus: #52796F;

	--ce-sv-card-bg: #FFFFFF;
	--ce-sv-border: #E7E5DF;
	--ce-sv-border-hover: #D4B483;
	--ce-sv-title: #202B2B;
	--ce-sv-desc: #5B625F;
	--ce-sv-link: #52796F;
	--ce-sv-link-hover: #202B2B;
	--ce-sv-arrow: #A9854A;

	--ce-sv-btn-bg: #D4B483;
	--ce-sv-btn-color: #202B2B;
	--ce-sv-btn-bg-hover: #202B2B;
	--ce-sv-btn-color-hover: #FAF9F6;

	--ce-sv-cols: 3;
	--ce-sv-gap: 20px;
	--ce-sv-radius: 6px;
	--ce-sv-lift: 3px;
	--ce-sv-zoom: 1.04;
	--ce-sv-ratio: 3 / 2;
	--ce-sv-inset: 0px;
	--ce-sv-img-radius: 0px;
	--ce-sv-pos: center center;

	--ce-sv-max-w: 1200px;
	--ce-sv-intro-w: 320px;
	--ce-sv-split-gap: 44px;
	--ce-sv-sticky: 120px;
	--ce-sv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	position: relative;
	width: 100%;
	padding: 96px 32px;
	background: var(--ce-sv-bg);
	color: var(--ce-sv-text);
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

.ce-services *,
.ce-services *::before,
.ce-services *::after {
	box-sizing: border-box;
}

.ce-services ul,
.ce-services li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ce-services p {
	margin: 0;
}

.ce-services .ce-sv__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Layout ---------- */
.ce-sv__inner {
	display: grid;
	grid-template-columns: var(--ce-sv-intro-w) minmax(0, 1fr);
	align-items: start;
	gap: var(--ce-sv-split-gap);
	width: 100%;
	max-width: var(--ce-sv-max-w);
	margin-inline: auto;
}

/* Intro on top, cards below */
.ce-services--stacked .ce-sv__inner {
	grid-template-columns: minmax(0, 1fr);
}

.ce-services--stacked .ce-sv__intro {
	max-width: 760px;
}

@media (min-width: 1025px) {
	.ce-services--sticky.ce-services--side .ce-sv__intro {
		position: sticky;
		top: var(--ce-sv-sticky);
	}
}

/* ---------- Intro ---------- */
.ce-services .ce-sv__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: var(--ce-sv-eyebrow);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ce-services .ce-sv__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 36px;
	height: 2px;
	background: var(--ce-sv-accent);
}

.ce-services .ce-sv__heading {
	margin: 0 0 20px;
	padding: 0;
	color: var(--ce-sv-heading);
	font-family: inherit;
	font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.17;
	letter-spacing: -0.015em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.ce-services .ce-sv__lead {
	max-width: 58ch;
	margin: 0 0 30px;
	color: var(--ce-sv-text);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ce-services a.ce-sv__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 16px 26px;
	background: var(--ce-sv-btn-bg);
	border: 1px solid transparent;
	border-radius: 3px;
	color: var(--ce-sv-btn-color);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ce-sv-ease);
}

.ce-services a.ce-sv__btn:hover,
.ce-services a.ce-sv__btn:focus-visible {
	background: var(--ce-sv-btn-bg-hover);
	color: var(--ce-sv-btn-color-hover);
	text-decoration: none;
	transform: translateY(-1px);
}

.ce-services a.ce-sv__btn:hover .ce-sv__arrow,
.ce-services a.ce-sv__btn:focus-visible .ce-sv__arrow {
	color: var(--ce-sv-accent);
	transform: translateX(3px);
}

.ce-services a.ce-sv__btn:focus-visible {
	outline: 2px solid var(--ce-sv-focus);
	outline-offset: 3px;
}

.ce-services .ce-sv__arrow {
	flex: 0 0 auto;
	transition: transform 0.25s var(--ce-sv-ease), color 0.25s ease;
}

/* ---------- Grid ---------- */
.ce-services .ce-sv__grid {
	display: grid;
	grid-template-columns: repeat(var(--ce-sv-cols), minmax(0, 1fr));
	align-items: stretch;
	gap: var(--ce-sv-gap);
	min-width: 0;
}

/* ---------- Card ---------- */
.ce-services .ce-sv__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--ce-sv-card-bg);
	border: 1px solid var(--ce-sv-border);
	border-radius: var(--ce-sv-radius);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ce-sv-ease);
}

.ce-services .ce-sv__card:hover,
.ce-services .ce-sv__card:focus-within {
	border-color: var(--ce-sv-border-hover);
	transform: translateY(calc(-1 * var(--ce-sv-lift)));
}

/* ---------- Media ---------- */
.ce-services .ce-sv__media {
	position: relative;
	flex: 0 0 auto;
	margin: var(--ce-sv-inset);
	overflow: hidden;
	aspect-ratio: var(--ce-sv-ratio);
	border-radius: var(--ce-sv-img-radius);
	background: #E7E5DF;
}

.ce-services .ce-sv__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	object-fit: cover;
	object-position: var(--ce-sv-pos);
	transition: transform 0.7s var(--ce-sv-ease);
	will-change: transform;
}

.ce-services .ce-sv__card:hover .ce-sv__img,
.ce-services .ce-sv__card:focus-within .ce-sv__img {
	transform: scale(var(--ce-sv-zoom));
}

/* "Drawing sheet" panel shown until a real image is set */
.ce-services .ce-sv__media--empty {
	display: grid;
	place-items: center;
	background-color: #202B2B;
	background-image:
		linear-gradient(rgba(212, 180, 131, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(212, 180, 131, 0.1) 1px, transparent 1px);
	background-size: 24px 24px;
}

.ce-services .ce-sv__sheet {
	padding: 0.35em 0.8em;
	border: 1px solid rgba(212, 180, 131, 0.55);
	color: #D4B483;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
}

.ce-services .ce-sv__hint {
	position: absolute;
	right: 10px;
	bottom: 8px;
	color: rgba(250, 249, 246, 0.75);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Body ---------- */
.ce-services .ce-sv__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px 22px 24px;
}

.ce-services .ce-sv__title {
	margin: 0 0 10px;
	padding: 0;
	color: var(--ce-sv-title);
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.ce-services .ce-sv__desc {
	margin: 0;
	color: var(--ce-sv-desc);
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* ---------- Link (stretched over the whole card) ---------- */
.ce-services a.ce-sv__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: auto;
	padding-top: 18px;
	color: var(--ce-sv-link);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.25s ease;
}

.ce-services a.ce-sv__link .ce-sv__arrow {
	color: var(--ce-sv-arrow);
}

.ce-services a.ce-sv__link::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: var(--ce-sv-radius);
}

.ce-services a.ce-sv__link:hover,
.ce-services a.ce-sv__link:focus-visible {
	color: var(--ce-sv-link-hover);
	text-decoration: none;
}

.ce-services .ce-sv__card:hover .ce-sv__link .ce-sv__arrow,
.ce-services .ce-sv__card:focus-within .ce-sv__link .ce-sv__arrow {
	transform: translateX(4px);
}

.ce-services a.ce-sv__link:focus {
	outline: none;
}

/* Inset ring (the card clips overflow, so an outer outline would be cut off) */
.ce-services a.ce-sv__link:focus-visible::after {
	outline: 2px solid var(--ce-sv-focus);
	outline-offset: -4px;
}

.ce-services .ce-sv__notice {
	padding: 14px 18px;
	border: 1px dashed var(--ce-sv-border);
	color: var(--ce-sv-text);
	font-size: 0.875rem;
}

/* ==========================================================================
   Compact desktop (1025–1199px)
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1199px) {
	.ce-services {
		--ce-sv-split-gap: 32px;
	}

	.ce-services .ce-sv__body {
		padding: 18px 18px 20px;
	}
}

/* ==========================================================================
   Tablet (≤1024px): intro stacks above the cards
   ========================================================================== */
@media (max-width: 1024px) {
	.ce-sv__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ce-services .ce-sv__intro {
		max-width: 680px;
	}

	.ce-services .ce-sv__lead {
		margin-bottom: 26px;
	}
}

/* ==========================================================================
   Mobile (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
	.ce-services .ce-sv__eyebrow {
		gap: 10px;
		margin-bottom: 14px;
		font-size: 0.75rem;
		letter-spacing: 0.14em;
	}

	.ce-services .ce-sv__eyebrow::before {
		width: 24px;
	}

	.ce-services .ce-sv__lead {
		font-size: 1rem;
	}

	.ce-services a.ce-sv__btn {
		width: 100%;
	}

	.ce-services .ce-sv__body {
		padding: 20px 20px 22px;
	}

	.ce-services a.ce-sv__link {
		min-height: 44px;
		padding-top: 14px;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ce-services *,
	.ce-services *::before,
	.ce-services *::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.ce-services .ce-sv__card:hover,
	.ce-services .ce-sv__card:focus-within,
	.ce-services .ce-sv__card:hover .ce-sv__img,
	.ce-services .ce-sv__card:focus-within .ce-sv__img,
	.ce-services .ce-sv__card:hover .ce-sv__link .ce-sv__arrow,
	.ce-services .ce-sv__card:focus-within .ce-sv__link .ce-sv__arrow {
		transform: none;
	}
}