/* Homepage */

/* Bullets */

.candid-bullets ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 34px;
	margin: 4px auto 28px;
	padding: 0;
	list-style: none;
}

.candid-bullets li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--cr-blue);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.candid-bullets li::before {
	content: "✓";
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid var(--cr-border-soft);
	border-radius: 50%;
	background: var(--cr-tint-2);
	font-size: 11px;
}

/* Pillars */

.candid-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 20px auto 55px;
}

.candid-pillar {
	padding: 22px;
	border: 1px solid var(--cr-border);
	border-radius: 10px;
	background: var(--cr-tint);
	text-align: center;
}

.candid-pillar-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: var(--cr-tint-2);
}

.candid-pillar-icon img {
	width: 42px;
}

.candid-pillar h3 {
	margin: 0 0 6px;
	color: var(--cr-blue);
	font-size: 22px;
}

.candid-pillar ul {
	margin: 0 0 14px;
	padding-left: 20px;
	color: var(--cr-muted);
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
}

.candid-pillar li {
	margin: 0 0 3px;
}

.candid-pillar p {
	margin: 0;
	color: var(--cr-muted);
	font-size: 15px;
	line-height: 1.65;
	text-align: justify;
}

/* Client logos */

.candid-trusted-by {
	position: relative;
	margin: 50px 0 10px;
	padding-top: 18px;
}

.candid-trusted-by::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100%;
	height: 1px;
	transform: translateX(-50%);
	background: var(--cr-divider);
}

.candid-logos {
	padding: 20px 0 34px;
	overflow: hidden;
}

.candid-logos-track {
	display: flex;
	align-items: center;
	gap: 22px;
	width: max-content;
	animation: candid-logo-scroll 45s linear infinite;
}

.candid-logos-track:hover {
	animation-play-state: paused;
}

.candid-logo-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 145px;
	height: 70px;
	padding: 0 4px;
	border: 1px solid var(--cr-line);
	border-radius: 14px;
	background: var(--cr-white);
	box-shadow: 0 10px 26px var(--cr-shadow-card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candid-logo-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px var(--cr-shadow-card-hover);
}

.candid-logo-card img {
	width: auto;
	max-height: 70px;
	object-fit: contain;
}

@keyframes candid-logo-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.candid-logos-track {
		animation: none;
	}
}

/* Testimonials */

.candid-testimonials {
	padding: 40px 8% 30px;
	background: var(--cr-tint);
}

.candid-carousel {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
}

.candid-testimonial-grid {
	display: flex;
	gap: 26px;
	padding: 4px 2px 8px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.candid-testimonial-grid::-webkit-scrollbar {
	display: none;
}

.candid-testimonial-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 calc((100% - 78px) / 4);
	padding: 24px 20px;
	border: 1px solid var(--cr-line);
	border-radius: 22px;
	background: var(--cr-white);
	scroll-snap-align: start;
	text-align: center;
}

.candid-quote-mark {
	display: block;
	color: var(--cr-blue);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 48px;
	line-height: 0.5;
}

.candid-testimonial-card p {
	margin: 0 0 20px;
	color: var(--cr-text);
	font-size: 14px;
	line-height: 1.5;
}

.candid-testimonial-card strong {
	color: var(--cr-blue);
}

.candid-person {
	margin-top: auto;
	padding-top: 18px;
	border-top: 2px solid var(--cr-border-soft);
}

.candid-person-name {
	margin-bottom: 3px;
	color: var(--cr-ink);
	font-weight: 700;
}

.candid-person-title {
	color: var(--cr-soft);
	font-size: 12px;
}

.candid-carousel-btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cr-blue);
	color: var(--cr-white);
	font-size: 24px;
	line-height: 42px;
	box-shadow: 0 8px 20px var(--cr-shadow-btn);
	transform: translateY(-50%);
	cursor: pointer;
}

.candid-carousel-btn:hover,
.candid-carousel-btn:focus {
	background: var(--cr-blue-dark);
}

.candid-carousel-btn.left  { left: -22px; }
.candid-carousel-btn.right { right: -22px; }

/* Steps */

.candid-steps-section {
	margin: 70px 0 0;
	text-align: center;
}

.candid-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 34px;
}

.candid-step {
	position: relative;
}

.candid-step-number {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--cr-tint-2);
	color: var(--cr-blue);
	font-size: 26px;
	font-weight: 700;
}

.candid-step h3 {
	margin: 0 0 8px;
	color: var(--cr-ink);
	font-size: 18px;
}

.candid-step p {
	margin: 0;
	color: var(--cr-muted);
	font-size: 15px;
}

.candid-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	z-index: 1;
	width: 185px;
	height: 36px;
	background: var(--cr-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 36'%3E%3Cpath d='M0 18 Q85 2 170 18' fill='none' stroke='black' stroke-width='1.2' stroke-dasharray='18 18' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 36'%3E%3Cpath d='M0 18 Q85 2 170 18' fill='none' stroke='black' stroke-width='1.2' stroke-dasharray='18 18' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.candid-step:nth-child(even)::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 36'%3E%3Cpath d='M0 18 Q85 34 170 18' fill='none' stroke='black' stroke-width='1.2' stroke-dasharray='18 18' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 36'%3E%3Cpath d='M0 18 Q85 34 170 18' fill='none' stroke='black' stroke-width='1.2' stroke-dasharray='18 18' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Mobile */

@media (max-width: 900px) {
	.candid-testimonial-card {
		flex-basis: calc((100% - 26px) / 2);
	}
}

@media (max-width: 800px) {
	.candid-pillars,
	.candid-steps {
		grid-template-columns: 1fr;
	}

	.candid-step::after {
		display: none;
	}
}

@media (max-width: 600px) {
	.candid-testimonial-card {
		flex-basis: 100%;
	}

	.candid-carousel {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
	}

	.candid-testimonial-grid {
		flex-basis: 100%;
		order: -1;
	}

	.candid-carousel-btn,
	.candid-carousel-btn.left,
	.candid-carousel-btn.right {
		position: static;
		transform: none;
	}
}