/*
 * TOPOSEL Services pages: shared styles. Everything is scoped to .toposel-svc
 * (the four service pages' content) or .toposel-page--services (Our Services).
 * Header, banner, CTA band and footer styles come from modules/pages (toposel-blog.css).
 */

/* ---------- Service page content ---------- */
.toposel-svc {
	display: block;
	background: #fff;
	color: #1a1a1a;
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Not inherited: the content sits outside the page wrapper, so the theme font used to show. */
	line-height: 1.6;
	position: relative;
	z-index: 0;
}
.toposel-svc :is(input, button, select, textarea) {
	font-family: inherit;
}
.toposel-svc .toposel-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}
.toposel-svc .text-center {
	text-align: center;
}
.toposel-svc img.svc-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}
.toposel-svc .oval-img-card,
.toposel-svc .oval-image,
.toposel-svc .pm-arch-card {
	overflow: hidden;
}
.toposel-svc img.seo-oval-img {
	width: 220px;
	height: 320px;
	border-radius: 120px;
	object-fit: cover;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
/* (An <img> is always :empty, so a rule hiding ".hero-person-img:empty" hid every Retention hero picture.) */
.toposel-svc .arch-image-wrapper:empty {
	display: none;
}

/* ---------- Our Services: cards ---------- */
.toposel-page--services .toposel-svc-list {
	padding: 80px 0 60px;
	background: #fff;
}
.toposel-page--services .toposel-svc-list__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
/* Same arrangement as on tablet: two columns, an odd last card (Razorpay) centred under the pair above it. */
.toposel-page--services .toposel-svc-list__grid > .toposel-svc-card:nth-child(odd):last-child {
	grid-column: 1 / -1;
	justify-self: center;
	width: calc(50% - 10px);
	box-sizing: border-box;
}
.toposel-page--services .toposel-svc-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 28px 24px;
	background: #fff;
	border: 1px solid #e1e3e8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	color: #090b0e;
	text-decoration: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.toposel-page--services .toposel-svc-card:hover,
.toposel-page--services .toposel-svc-card:focus-visible {
	border-color: #4e2fda;
	box-shadow: 0 8px 24px rgba(78, 47, 218, 0.12);
	transform: translateY(-2px);
}
.toposel-page--services .toposel-svc-card__icon {
	flex: 0 0 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #edeafb;
	color: #4e2fda;
}
.toposel-page--services .toposel-svc-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.toposel-page--services .toposel-svc-card__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 26px;
	color: #090b0e;
}
.toposel-page--services .toposel-svc-card__text {
	font-size: 15px;
	line-height: 22px;
	color: #3d4c5e;
}

/* Phones and tablets: icon above a centred title and text (reference). */
@media (max-width: 1024px) {
	/* Tablet: two columns; an odd last card is centred under the pair above it. */
	.toposel-page--services .toposel-svc-list__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.toposel-page--services .toposel-svc-list__grid > .toposel-svc-card,
	.toposel-page--services .toposel-svc-list__grid > .toposel-svc-card:nth-child(4):nth-last-child(2),
	.toposel-page--services .toposel-svc-list__grid > .toposel-svc-card:nth-child(5):last-child {
		grid-column: auto;
	}
	.toposel-page--services .toposel-svc-list__grid > .toposel-svc-card:nth-child(odd):last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 10px);
		box-sizing: border-box;
	}
	.toposel-page--services .toposel-svc-card {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 16px 20px 22px;
		text-align: center;
	}
	.toposel-page--services .toposel-svc-card__icon {
		flex: 0 0 auto;
		width: 60px;
		height: 60px;
		border-radius: 50%;
	}
	.toposel-page--services .toposel-svc-card__body {
		align-items: center;
		gap: 6px;
	}
	.toposel-page--services .toposel-svc-card__text {
		font-size: 14px;
		line-height: 1.45;
	}
}

@media (max-width: 767px) {
	.toposel-page--services .toposel-svc-list {
		padding: 48px 0 40px;
	}
	.toposel-page--services .toposel-svc-list__grid {
		grid-template-columns: 1fr;
	}
	.toposel-page--services .toposel-svc-list__grid > .toposel-svc-card:nth-child(odd):last-child {
		width: auto;
		justify-self: stretch;
	}
	.toposel-svc img.seo-oval-img {
		width: 140px;
		height: 220px;
	}
}

/* Retention page without a hero picture: single centred column. */
.toposel-svc .grid-2col.is-single {
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
}

/* Keep grid / flex children shrinkable so large photos never squeeze the neighbouring column. */
.toposel-svc [class*="grid"] > *,
.toposel-svc .pm-arched-image-wrapper > *,
.toposel-svc .curved-images-flex > *,
.toposel-svc .why-choose-gallery > * {
	min-width: 0;
}
.toposel-svc .pm-arched-image-wrapper,
.toposel-svc .curved-images-flex,
.toposel-svc .why-choose-gallery {
	max-width: 100%;
}
