/* Services archive — [codingcafe_services_archive]. Builds on service-landing.css (.ccsl-*). */

.ccsa-hero .ccsl-lead {
	max-width: 640px;
}

.ccsa-choices .ccsl-chip span {
	padding: 14px 16px;
	font-size: 14.5px;
}

@media (max-width: 767px) {
	/* Nine chips: keep them one line each so the contact field stays near the fold. */
	.ccsa-choices .ccsl-chip span {
		flex-direction: row;
		align-items: center;
		padding: 11px 12px;
		font-size: 13px;
	}

	.ccsa-choices .ccsl-chip span .ccsl-icon {
		width: 18px;
		height: 18px;
	}
}

/* Grouped service cards */
.ccsa-list .ccsl-wrap {
	padding-bottom: clamp(36px, 5vw, 64px);
}

.ccsa-group {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(28px, 4vw, 44px) 0;
	border-top: 1px solid var(--ccsl-line);
}

.ccsa-group:first-of-type {
	border-top: 0;
	padding-top: 8px;
}

.ccsa-group__head {
	position: sticky;
	top: 110px;
	align-self: start;
}

.ccsa-group__num {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--ccsl-primary);
}

.ccsl .ccsa-group__title {
	margin: 0 0 10px;
	font-family: inherit;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ccsl-ink);
}

.ccsa-group__head p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.ccsa-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccsa-cards li {
	margin: 0;
}

/* An odd last card takes the full row. */
.ccsa-cards li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.ccsa-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px;
	border: 1px solid var(--ccsl-line);
	border-radius: 18px;
	background: var(--ccsl-surface);
	color: var(--ccsl-text);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.ccsa-card:hover,
.ccsa-card:focus-visible {
	border-color: var(--ccsl-primary);
	box-shadow: 0 14px 34px rgba(61, 44, 95, .14);
	transform: translateY(-2px);
	color: var(--ccsl-text);
}

.ccsa-card:focus-visible {
	outline: 3px solid rgba(91, 41, 105, .35);
	outline-offset: 2px;
}

.ccsa-card__icon {
	display: inline-flex;
	align-self: flex-start;
	padding: 11px;
	border-radius: 12px;
	background: rgba(91, 41, 105, .09);
	color: var(--ccsl-primary);
}

.ccsa-card__icon .ccsl-icon {
	width: 24px;
	height: 24px;
}

/* Service icon (.ccsi, defined in header 7553 custom CSS) on the same soft tile as the mega menu. */
.ccsa-card__icon--stack {
	padding: 12px;
}

.ccsa-card__icon--stack .ccsi {
	background-color: var(--ccsl-primary);
}

.ccsa-card__title {
	margin: 16px 0 6px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ccsl-ink);
}

.ccsa-card__text {
	/* The kit's link colour otherwise wins over the inherited text colour. */
	color: var(--ccsl-text);
	font-size: 14.5px;
	line-height: 1.55;
}

.ccsa-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0 0;
}

.ccsa-card__tags span {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ccsl-soft);
	border: 1px solid var(--ccsl-line);
	color: var(--ccsl-ink);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}

.ccsa-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ccsl-primary);
}

.ccsa-card__more .ccsl-icon {
	transition: transform .15s;
}

.ccsa-card:hover .ccsa-card__more .ccsl-icon {
	transform: translateX(3px);
}

@media (max-width: 1024px) {
	.ccsa-group {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ccsa-group__head {
		position: static;
	}
}

@media (max-width: 600px) {
	.ccsa-cards {
		grid-template-columns: 1fr;
	}

	.ccsa-card {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccsa-card,
	.ccsa-card__more .ccsl-icon {
		transition: none;
	}

	.ccsa-card:hover,
	.ccsa-card:focus-visible {
		transform: none;
	}
}

/* Our Services page: hero buttons, why CodingCafe */
.ccsa-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
}

.ccsl .ccsa-actions .ccsl-btn,
.ccsl .ccsa-btn-ghost {
	height: 52px;
	padding: 0 26px;
	border-radius: 12px;
}

.ccsl .ccsa-btn-ghost {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--ccsl-primary);
	background: transparent;
	color: var(--ccsl-primary);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .15s;
}

.ccsl .ccsa-btn-ghost:hover,
.ccsl .ccsa-btn-ghost:focus-visible {
	background: rgba(91, 41, 105, .08);
	color: var(--ccsl-primary);
}

.ccsa-why {
	background: var(--ccsl-soft);
}

.ccsa-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccsa-why__item {
	margin: 0;
	padding: 26px 22px;
	border: 1px solid var(--ccsl-line);
	border-radius: 18px;
	background: var(--ccsl-surface);
}

.ccsl .ccsa-why__title {
	margin: 16px 0 8px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ccsl-ink);
}

.ccsa-why__item p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
}

@media (max-width: 1024px) {
	.ccsa-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ccsa-why__grid {
		grid-template-columns: 1fr;
	}

	.ccsa-actions .ccsl-btn,
	.ccsl .ccsa-btn-ghost {
		width: 100%;
		justify-content: center;
	}
}

/* The closing band's top margin separates it from white template sections on service pages;
   here it follows the process band directly, where the margin shows as a white strip. */
html .ccsl-process + .ccsl.ccsl-cta {
	margin-top: 0;
}

/* The band ends the page; without a gap the footer's purple card sits flush against it. */
.ccsl.ccsl-cta {
	margin-bottom: clamp(40px, 5vw, 72px);
}

/* Dark theme */
html[data-theme=dark] .ccsa-card__icon {
	background: rgba(211, 180, 223, .14);
}

html[data-theme=dark] .ccsa-card:hover,
html[data-theme=dark] .ccsa-card:focus-visible {
	box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}

html[data-theme=dark] .ccsl .ccsa-btn-ghost:hover,
html[data-theme=dark] .ccsl .ccsa-btn-ghost:focus-visible {
	background: rgba(211, 180, 223, .1);
}
