/* ==========================================================================
   Home: Services section
   A numbered scope list, distinct from the Why Choose Us card grid.
   ========================================================================== */

/* Elementor wrapper: the section box comes from .ca-svc. */
.ca-elementor #home-services {
	padding: 0;
	gap: 0;
}

.ca-elementor #home-services > .elementor-widget-html {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.ca-svc,
.ca-svc * {
	box-sizing: border-box;
}

.ca-svc {
	padding: 96px clamp(20px, 4vw, 64px) 104px;
	background: var(--ca-white, #fff);
	color: var(--ca-ink, #1c1c1c);
}

.ca-svc .ca-svc__head {
	display: block;
	margin-bottom: 32px;
}

.ca-svc .ca-svc__label {
	margin: 0;
	color: var(--ca-ink, #1c1c1c);
	font-size: clamp(28px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.15;
}

.ca-svc .ca-svc__label::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-inline-end: 10px;
	background: var(--ca-gold, #f5b400);
	vertical-align: 3px;
}

.ca-svc .ca-svc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ca-svc .ca-svc__item {
	position: relative;
	display: grid;
	grid-template-columns: 4.75rem minmax(0, 1fr);
	gap: 8px 28px;
	align-items: start;
	margin: 0;
	padding: 32px 20px 32px 24px;
	border-bottom: 1px solid rgba(28, 28, 28, 0.12);
	transition: background-color 0.35s ease;
}

.ca-svc .ca-svc__item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 22px;
	bottom: 22px;
	width: 3px;
	background: var(--ca-gold);
	transform: scaleY(0);
	transform-origin: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-svc .ca-svc__item:hover,
.ca-svc .ca-svc__item:focus-within {
	background: #f7f4ee;
}

.ca-svc .ca-svc__item:hover::before,
.ca-svc .ca-svc__item:focus-within::before {
	transform: scaleY(1);
}

.ca-svc .ca-svc__num {
	grid-column: 1;
	grid-row: 1;
	padding-top: 6px;
	color: var(--ca-gold);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
}

.ca-svc .ca-svc__copy {
	display: grid;
	grid-template-columns: minmax(14rem, 0.85fr) minmax(16rem, 1.25fr);
	grid-template-rows: auto auto;
	column-gap: 48px;
	row-gap: 14px;
	align-items: center;
	min-width: 0;
}

.ca-svc .ca-svc__icon {
	grid-column: 1;
	grid-row: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(28, 28, 28, 0.16);
	border-radius: 50%;
	color: var(--ca-ink, #1c1c1c);
	transition: border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.ca-svc .ca-svc__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.ca-svc .ca-svc__item:hover .ca-svc__icon,
.ca-svc .ca-svc__item:focus-within .ca-svc__icon {
	border-color: var(--ca-gold);
	background: var(--ca-gold);
	color: #151513;
}

.ca-svc .ca-svc__name {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	color: var(--ca-ink, #1c1c1c);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.ca-front .ca-svc .ca-svc__text,
.ca-svc .ca-svc__text {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	margin: 0;
	color: #4a4a4a;
	font-size: 15.5px;
	line-height: 1.65;
}

.ca-svc .ca-svc__foot {
	display: flex;
	justify-content: flex-start;
	margin-top: 40px;
	padding-inline-start: 24px;
}

/* Read More: gold button with the corner ticks used on the header project button. */
a.ca-svc__more {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 50px;
	padding: 0 24px;
	background-color: var(--ca-gold);
	color: #151513;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

a.ca-svc__more::before {
	content: "";
	position: absolute;
	inset: -10px;
	pointer-events: none;
	background:
		linear-gradient(var(--ca-gold), var(--ca-gold)) left 0 top 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) left 10px top 0 / 1px 10px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) right 0 top 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) right 10px top 0 / 1px 10px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) left 0 bottom 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) left 10px bottom 0 / 1px 10px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) right 0 bottom 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold), var(--ca-gold)) right 10px bottom 0 / 1px 10px no-repeat;
	transition: inset 0.3s ease;
}

a.ca-svc__more svg {
	display: block;
	flex: none;
	width: 18px;
	height: 10px;
	transition: transform 0.3s ease;
}

a.ca-svc__more:hover,
a.ca-svc__more:focus-visible {
	background-color: var(--ca-ink, #1c1c1c);
	color: var(--ca-white, #fff);
}

a.ca-svc__more:hover::before,
a.ca-svc__more:focus-visible::before {
	inset: -6px;
}

a.ca-svc__more:hover svg,
a.ca-svc__more:focus-visible svg {
	transform: translateX(4px);
}

a.ca-svc__more:focus-visible {
	outline: 2px solid var(--ca-ink, #1c1c1c);
	outline-offset: 4px;
}

[dir="rtl"] a.ca-svc__more svg {
	transform: scaleX(-1);
}

[dir="rtl"] a.ca-svc__more:hover svg,
[dir="rtl"] a.ca-svc__more:focus-visible svg {
	transform: scaleX(-1) translateX(4px);
}

/* Scroll reveal, armed by home-services.js so the section stays visible without JavaScript. */
.ca-svc .ca-svc-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--ca-svc-d, 0ms);
}

.ca-svc .ca-svc__item.ca-svc-reveal {
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease;
	transition-delay: var(--ca-svc-d, 0ms);
}

.ca-svc .ca-svc-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 980px) {
	.ca-svc {
		padding: 72px 20px 80px;
	}

	.ca-svc .ca-svc__head {
		margin-bottom: 24px;
	}

	.ca-svc .ca-svc__copy {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		row-gap: 12px;
	}

	.ca-svc .ca-svc__icon,
	.ca-svc .ca-svc__name,
	body.ca-front .ca-svc .ca-svc__text,
	.ca-svc .ca-svc__text {
		grid-column: 1;
		grid-row: auto;
	}

	.ca-svc .ca-svc__foot {
		margin-top: 32px;
		padding-inline-start: 0;
	}
}

@media (max-width: 640px) {
	.ca-svc {
		padding: 56px 20px 64px;
	}

	.ca-svc .ca-svc__item {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 14px 16px;
		padding: 26px 0;
	}

	.ca-svc .ca-svc__num {
		grid-column: 1;
		grid-row: 1;
		padding-top: 10px;
	}

	.ca-svc .ca-svc__copy {
		grid-column: 2;
		grid-row: 1;
	}

	.ca-svc .ca-svc__icon {
		width: 40px;
		height: 40px;
	}

	.ca-svc .ca-svc__foot {
		justify-content: stretch;
		margin-top: 28px;
	}

	a.ca-svc__more {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ca-svc .ca-svc__item,
	.ca-svc .ca-svc__item::before,
	.ca-svc .ca-svc__icon,
	.ca-svc .ca-svc-reveal,
	a.ca-svc__more,
	a.ca-svc__more::before,
	a.ca-svc__more svg {
		transition: none;
	}

	.ca-svc .ca-svc-reveal {
		opacity: 1;
		transform: none;
	}
}
