/**
 * CPC-grade landing page components.
 *
 *  - .sm-trust-ribbon       — strip of stats directly under the hero
 *  - .sm-sticky-cta         — bottom-of-viewport mobile CTA bar
 *  - .sm-scenarios          — "we recently helped" card grid (industry stories)
 *  - .sm-testimonials       — client-feedback card grid (no Review schema)
 *  - .sm-process            — 4-step horizontal flow with numbered circles
 *  - .sm-value-props        — three-up "why us" benefits
 *  - .sm-faq                — accordion-style FAQ (picked up by FAQPage schema)
 *  - .sm-page-cta           — full-bleed bottom CTA block
 */

/* ── Trust ribbon ─────────────────────────────────────────────────── */
.sm-trust-ribbon {
	background: linear-gradient(180deg, var(--sm-cream) 0%, var(--sm-white) 100%);
	border-top: 1px solid var(--sm-border);
	border-bottom: 1px solid var(--sm-border);
	padding: 1.25rem 0;
}
.sm-trust-ribbon__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	align-items: center;
}
.sm-trust-ribbon__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0.25rem 0.5rem;
	border-right: 1px solid var(--sm-border);
}
.sm-trust-ribbon__item:last-child {
	border-right: none;
}
.sm-trust-ribbon__stat {
	font-family: var(--sm-font-display);
	font-weight: 800;
	font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.4rem);
	color: var(--sm-navy);
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.sm-trust-ribbon__label {
	color: var(--sm-text-muted, #5F6479);
	font-size: 0.8125rem;
	margin-top: 0.25rem;
	line-height: 1.4;
}
.sm-trust-ribbon__star {
	color: var(--sm-green);
	margin-right: 0.15em;
}
@media (max-width: 720px) {
	.sm-trust-ribbon__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.85rem;
	}
	.sm-trust-ribbon__item {
		padding: 0.5rem 0.25rem;
	}
	.sm-trust-ribbon__item:nth-child(2n) {
		border-right: none;
	}
	.sm-trust-ribbon__item:nth-child(1),
	.sm-trust-ribbon__item:nth-child(2) {
		border-bottom: 1px solid var(--sm-border);
		padding-bottom: 0.85rem;
	}
}

/* ── Sticky mobile CTA ────────────────────────────────────────────── */
.sm-sticky-cta {
	display: none;
}
@media (max-width: 720px) {
	.sm-sticky-cta {
		display: flex;
		gap: 0.5rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
		background: var(--sm-navy);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.18);
		z-index: 100;
	}
	.sm-sticky-cta__primary {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		background: var(--sm-green);
		color: var(--sm-navy);
		font-family: var(--sm-font-display);
		font-weight: 700;
		font-size: 0.9375rem;
		padding: 0.85rem 1rem;
		border-radius: var(--sm-radius-pill);
		text-decoration: none;
		min-height: 44px;
	}
	.sm-sticky-cta__primary:hover { background: var(--sm-green-dark); }
	.sm-sticky-cta__secondary {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		min-width: 44px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
		text-decoration: none;
	}
	.sm-sticky-cta__secondary:hover { background: rgba(255, 255, 255, 0.22); }
	/* Lift bottom-anchored chrome above the sticky CTA */
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
	.sm-fab, .sm-intent-fab { bottom: 76px !important; }
}

/* ── Industry scenarios ("we recently helped...") ─────────────────── */
.sm-scenarios {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 2rem 0 2.5rem;
}
.sm-scenario {
	background: var(--sm-white);
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-radius-lg);
	padding: 1.5rem 1.4rem;
	box-shadow: var(--sm-shadow-sm);
	display: flex;
	flex-direction: column;
}
.sm-scenario__tag {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	background: var(--sm-green);
	color: var(--sm-navy);
	border-radius: var(--sm-radius-pill);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	width: max-content;
	margin-bottom: 0.85rem;
}
.sm-scenario__title {
	color: var(--sm-navy);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	margin: 0 0 0.55rem;
}
.sm-scenario__body {
	color: var(--sm-text);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}
@media (max-width: 880px) {
	.sm-scenarios { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── Testimonials ─────────────────────────────────────────────────── */
.sm-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 2rem 0 2.5rem;
}
.sm-testimonial {
	background: var(--sm-cream);
	border-radius: var(--sm-radius-lg);
	padding: 1.5rem 1.4rem;
	display: flex;
	flex-direction: column;
}
.sm-testimonial__stars {
	color: #F4A933;
	letter-spacing: 0.1em;
	font-size: 0.95rem;
	margin-bottom: 0.65rem;
}
.sm-testimonial__quote {
	color: var(--sm-text);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 1rem;
}
.sm-testimonial__meta {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--sm-text-muted, #5F6479);
	font-size: 0.825rem;
	line-height: 1.45;
}
.sm-testimonial__name {
	display: block;
	color: var(--sm-navy);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 0.9375rem;
	margin-bottom: 0.1rem;
}
@media (max-width: 880px) {
	.sm-testimonials { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── Process 4-step ───────────────────────────────────────────────── */
.sm-process {
	counter-reset: smproc;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	margin: 2rem 0 2.5rem;
	list-style: none;
	padding: 0;
}
.sm-process__step {
	counter-increment: smproc;
	background: var(--sm-white);
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-radius-lg);
	padding: 1.5rem 1.25rem 1.25rem;
	position: relative;
}
.sm-process__step::before {
	content: counter(smproc);
	position: absolute;
	top: -18px;
	left: 1.25rem;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sm-green);
	color: var(--sm-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sm-font-display);
	font-weight: 800;
}
.sm-process__title {
	color: var(--sm-navy);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 1rem;
	margin: 0.65rem 0 0.4rem;
}
.sm-process__body {
	color: var(--sm-text);
	font-size: 0.9rem;
	line-height: 1.55;
	margin: 0;
}
@media (max-width: 880px) {
	.sm-process { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* When the process sits in the two-column body (sticky form on the right),
   the content column is too narrow for a 4-up grid — render it as a vertical
   1->2->3->4 flow with downward chevron connectors so nothing squishes. */
.sm-service-body__content .sm-process {
	grid-template-columns: 1fr;
	gap: 2.6rem;
}
.sm-service-body__content .sm-process__step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.25rem + 18px);
	bottom: -1.9rem;
	width: 13px;
	height: 13px;
	border-right: 2.5px solid var(--sm-green);
	border-bottom: 2.5px solid var(--sm-green);
	transform: translateX(-50%) rotate(45deg);
}

/* ── Value props (3-up) ───────────────────────────────────────────── */
.sm-value-props {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: 2rem 0 2.5rem;
}
.sm-value-prop {
	text-align: left;
	padding: 1rem 0;
}
.sm-value-prop__head {
	color: var(--sm-navy);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 1.125rem;
	margin: 0 0 0.45rem;
}
.sm-value-prop__body {
	color: var(--sm-text);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}
@media (max-width: 880px) {
	.sm-value-props { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.sm-faq {
	margin: 2rem 0 2.5rem;
}
.sm-faq h3 {
	color: var(--sm-navy);
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	margin: 1.5rem 0 0.45rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sm-border);
}
.sm-faq h3:first-child {
	padding-top: 0;
	border-top: none;
	margin-top: 0;
}
.sm-faq p {
	color: var(--sm-text);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0 0 0.85rem;
}

/* ── Page CTA (mid-page bands) ────────────────────────────────────── */
.sm-page-cta {
	background: linear-gradient(135deg, var(--sm-navy) 0%, var(--sm-navy-dark) 100%);
	color: #fff;
	border-radius: var(--sm-radius-lg);
	padding: 2rem 1.75rem;
	margin: 2rem 0 2.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
	justify-content: space-between;
}
.sm-page-cta__copy {
	max-width: 36rem;
}
.sm-page-cta__head {
	color: #fff;
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 1.2rem;
	margin: 0 0 0.35rem;
}
.sm-page-cta__sub {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0;
}
.sm-page-cta__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.sm-page-cta .sm-btn--primary { background: var(--sm-green); color: var(--sm-navy); }
.sm-page-cta .sm-btn--outline-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
