/*
 * SleekAlgo: CRO fixes on /services/wordpress-maintenance-support/
 * File: wp-content/themes/sleekalgo-theme/assets/css/maintenance-cro.css
 * Handle: sa-maintenance-cro (enqueue on this page only, content-hash ?ver=)
 *
 * Styles three new things, all scoped to their own classes:
 *   .sa-cro-hero-points   hero promise list (replaces the small mono price line)
 *   .sa-cro-cta           mid-page CTA panel (light), .sa-cro-cta--dark on the dark Monitoring section
 *   .sa-cro-quote         client quote (light), --dark + --center in the closing band
 *
 * Nothing here targets the client logo/video section, the care plan card,
 * the header or any existing block.
 */

/* ---------- Hero promise points ---------- */

.wp-block-list.sa-cro-hero-points {
	list-style: none;
	margin-block-start: 24px;
	margin-block-end: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.wp-block-list.sa-cro-hero-points > li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: #3e3a35;
}

.wp-block-list.sa-cro-hero-points > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #f9eeec;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23b8352b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 18px 18px;
	background-repeat: no-repeat;
}

/* ---------- Mid-page CTA panel ---------- */

.wp-block-group.sa-cro-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-block-start: 32px;
	margin-block-end: 0;
	padding: 24px 28px;
	background-color: #f6f2e9;
	border: 1px solid #e3dbcc;
	border-radius: 14px;
	box-sizing: border-box;
}

.wp-block-group.sa-cro-cta > * {
	margin: 0;
}

.wp-block-group.sa-cro-cta .sa-cro-cta__lead {
	flex: 1 1 360px;
	margin: 0;
	font-family: var(--wp--preset--font-family--space-grotesk, "Space Grotesk", sans-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.2px;
	color: #221f1c;
}

.wp-block-group.sa-cro-cta .wp-block-buttons {
	flex: 0 0 auto;
	margin: 0;
}

.wp-block-group.sa-cro-cta .wp-block-button__link {
	padding: 16px 28px;
	border-radius: 9999px;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	cursor: pointer;
}

/* Dark variant: sits on the dark Monitoring section (#monitor, #221f1c) */
.wp-block-group.sa-cro-cta.sa-cro-cta--dark {
	background-color: rgba(250, 247, 241, 0.05);
	border-color: rgba(250, 247, 241, 0.16);
}

.wp-block-group.sa-cro-cta.sa-cro-cta--dark .sa-cro-cta__lead {
	color: #faf7f1;
}

/* ---------- Client quote ---------- */

.wp-block-quote.sa-cro-quote {
	margin-block-start: 48px;
	margin-block-end: 0;
	margin-inline: 0;
	padding: 2px 0 2px 24px;
	border: 0;
	border-left: 3px solid #b8352b;
	background: none;
	box-sizing: border-box;
	quotes: none;
}

.wp-block-quote.sa-cro-quote::before,
.wp-block-quote.sa-cro-quote::after {
	content: none;
}

/* The width limit sits on the text, not the quote, so the quote stays left-aligned
   inside the section's constrained layout (which centres narrower children). */
.wp-block-quote.sa-cro-quote > p,
.wp-block-quote.sa-cro-quote cite {
	max-width: 760px;
}

.wp-block-quote.sa-cro-quote > p {
	margin: 0;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.6;
	color: #3e3a35;
}

.wp-block-quote.sa-cro-quote cite {
	display: block;
	margin-top: 14px;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	color: #6b6660;
}

.wp-block-quote.sa-cro-quote cite strong {
	font-family: var(--wp--preset--font-family--space-grotesk, "Space Grotesk", sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: #221f1c;
}

/* Smaller quote in the "Why SleekAlgo" left column */
.wp-block-quote.sa-cro-quote.sa-cro-quote--compact {
	margin-block-start: 40px;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--compact > p,
.wp-block-quote.sa-cro-quote.sa-cro-quote--compact cite {
	max-width: 480px;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--compact > p {
	font-size: 16px;
}

/* Dark, centred variant: closing band ("Put a WordPress Engineering Team Behind Your Website") */
.wp-block-quote.sa-cro-quote.sa-cro-quote--dark {
	border-left-color: #d4756a;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--dark > p {
	color: #e9e3d8;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--dark cite {
	color: #a9a299;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--dark cite strong {
	color: #faf7f1;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--center {
	margin: 0 auto 34px;
	max-width: 640px;
	padding: 24px 0 0;
	border-left: 0;
	border-top: 1px solid rgba(250, 247, 241, 0.16);
	text-align: center;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--center > p,
.wp-block-quote.sa-cro-quote.sa-cro-quote--center cite {
	max-width: none;
}

.wp-block-quote.sa-cro-quote.sa-cro-quote--center > p {
	font-size: 17px;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 767px) {
	.wp-block-list.sa-cro-hero-points {
		margin-block-start: 20px;
	}

	.wp-block-list.sa-cro-hero-points > li {
		font-size: 14px;
	}

	.wp-block-group.sa-cro-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 22px 20px;
	}

	.wp-block-group.sa-cro-cta .sa-cro-cta__lead {
		flex: 0 0 auto;
		font-size: 18px;
	}

	.wp-block-group.sa-cro-cta .wp-block-buttons,
	.wp-block-group.sa-cro-cta .wp-block-button {
		width: 100%;
	}

	.wp-block-group.sa-cro-cta .wp-block-button__link {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: center;
		white-space: normal;
	}

	.wp-block-quote.sa-cro-quote {
		margin-block-start: 36px;
		padding-left: 18px;
	}

	.wp-block-quote.sa-cro-quote > p {
		font-size: 16px;
	}

	.wp-block-quote.sa-cro-quote.sa-cro-quote--compact {
		margin-block-start: 32px;
	}

	.wp-block-quote.sa-cro-quote.sa-cro-quote--center {
		padding: 20px 0 0;
		margin-bottom: 30px;
	}

	.wp-block-quote.sa-cro-quote.sa-cro-quote--center > p {
		font-size: 16px;
	}
}
