/**
 * Feature Optimize Section
 *
 * "SEO on Autopilot" section with green/accent lightweight background.
 * Uses bg-glow from lightweight-background.css for performance.
 *
 * @package AgenticWP
 */

/* Lead text */
.feature-optimize .lead-text {
	max-width: 700px;
	margin: 0 auto 40px;
}

/* Gradient accent for heading */
.feature-optimize h2 .accent {
	background: var(--gradient-green);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #14532D;
}

/* -------------------------------------------------------------------------
 * Optimize Flow Layout
 * ------------------------------------------------------------------------- */

.optimize-flow {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 4rem;
	position: relative;
	z-index: 1;
}

/* Individual Step Card */
.flow-step {
	flex: 1;
	background: linear-gradient(135deg, rgba(234, 255, 199, 0.7), rgba(187, 247, 208, 0.7));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--color-line, #e5e7eb);
	border-radius: 1rem;
	padding: 2rem;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
	border-color: var(--color-accent, #65a30d);
}

/* Step Number */
.step-number {
	font-size: 3rem;
	font-weight: 800;
	color: #65a30d;
	line-height: 1;
	margin-bottom: 1rem;
	font-family: var(--font-heading, serif);
}

/* Step Content */
.step-content {
	text-align: left;
}

.step-content h3 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	color: var(--color-ink, #0b1220);
	text-align: left;
}

.step-content p {
	font-size: 0.95rem;
	color: var(--color-ink, #0b1220);
	line-height: 1.6;
	text-align: left;
}

/* -------------------------------------------------------------------------
 * Responsive: Tablet (4 items need more space)
 * ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.optimize-flow {
		flex-wrap: wrap;
		gap: 1.5rem;
	}

	.flow-step {
		flex: 1 1 calc(50% - 1rem);
		min-width: 200px;
	}
}

/* -------------------------------------------------------------------------
 * Responsive: Mobile
 * ------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.optimize-flow {
		flex-direction: column;
		gap: 1.5rem;
	}

	.flow-step {
		width: 100%;
		flex: none;
	}

	.step-number {
		font-size: 2.5rem;
	}

	.step-content h3 {
		font-size: 1.1rem;
	}
}
