/*
	SEO footer copy system

	Minimum markup:
	<section class="seo-footer">...existing h2, p, ul copy...</section>

	Enhanced markup for AI rewrites:
	<section class="seo-footer">
		<div class="seo-footer__intro">
			<div class="seo-footer__eyebrow">Guide</div>
			<h2>Section title</h2>
			<p>Short opening context.</p>
		</div>

		<div class="seo-footer__section">
			<h2>Topic title</h2>
			<div class="seo-footer__grid seo-footer__grid--3">
				<article class="seo-footer__card">
					<h3>Card title</h3>
					<p>Card copy.</p>
				</article>
			</div>
		</div>

		<div class="seo-footer__note">Important disclaimer or selection logic.</div>
	</section>
*/

.seo-footer {
	--seo-footer-bg: #fbfaf7;
	--seo-footer-card-bg: #fff;
	--seo-footer-border: #e8e1d5;
	--seo-footer-border-soft: #eee7dc;
	--seo-footer-text: #352b20;
	--seo-footer-muted: #6f6254;
	--seo-footer-heading: #4d3921;
	--seo-footer-accent: #7d6239;
	--seo-footer-accent-soft: #f4efe6;
	--seo-footer-success: #eef7eb;
	--seo-footer-success-border: #66893c;

	background: var(--seo-footer-bg);
	border: 1px solid var(--seo-footer-border);
	box-sizing: border-box;
	color: var(--seo-footer-text);
	margin-top: 35px;
	padding: 28px;
}

.seo-footer *,
.seo-footer *::before,
.seo-footer *::after {
	box-sizing: border-box;
}

.seo-footer__intro {
	border-bottom: 1px solid var(--seo-footer-border);
	margin-bottom: 24px;
	padding-bottom: 18px;
}

.seo-footer__eyebrow {
	color: var(--seo-footer-accent);
	font-size: 13px;
	font-weight: bold;
	letter-spacing: .04em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.seo-footer h2 {
	color: var(--seo-footer-heading);
	font-size: 24px;
	line-height: 1.22;
	margin: 30px 0 10px;
}

.seo-footer__intro h2,
.seo-footer__note h2,
.seo-footer__callout h2 {
	margin-top: 0;
}

.seo-footer h3 {
	color: var(--seo-footer-heading);
	font-size: 17px;
	line-height: 1.28;
	margin: 0 0 8px;
}

.seo-footer p {
	line-height: 1.62;
	margin: 0 0 14px;
	max-width: 940px;
}

.seo-footer a {
	color: #5f4c2d;
	font-weight: bold;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.seo-footer ul {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 18px 0 28px;
	padding: 0;
}

.seo-footer li {
	background: var(--seo-footer-card-bg);
	border: 1px solid var(--seo-footer-border);
	line-height: 1.55;
	padding: 15px 16px;
}

.seo-footer li strong {
	color: var(--seo-footer-heading);
}

.seo-footer__section {
	margin-top: 28px;
}

.seo-footer__grid {
	display: grid;
	gap: 14px;
	margin: 18px 0 28px;
}

.seo-footer__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-footer__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-footer__card {
	background: var(--seo-footer-card-bg);
	border: 1px solid var(--seo-footer-border);
	padding: 18px;
}

.seo-footer__card p:last-child,
.seo-footer__note p:last-child,
.seo-footer__callout p:last-child {
	margin-bottom: 0;
}

.seo-footer__card-title {
	color: var(--seo-footer-heading);
	display: block;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.28;
	margin-bottom: 8px;
}

.seo-footer__note,
.seo-footer__callout {
	background: var(--seo-footer-card-bg);
	border: 1px solid var(--seo-footer-border);
	margin-top: 24px;
	padding: 18px;
}

.seo-footer__callout {
	border-left: 4px solid var(--seo-footer-accent);
}

.seo-footer__metric-list {
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 18px 0 28px;
	padding: 0;
}

.seo-footer__metric-card {
	background: var(--seo-footer-card-bg);
	border: 1px solid var(--seo-footer-border);
	padding: 18px;
}

.seo-footer__metric-header {
	align-items: center;
	border-bottom: 1px solid var(--seo-footer-border-soft);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
}

.seo-footer__metric-title {
	color: var(--seo-footer-heading);
	font-size: 18px;
	font-weight: bold;
	line-height: 1.25;
}

.seo-footer__badge {
	background: var(--seo-footer-accent-soft);
	color: var(--seo-footer-accent);
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .04em;
	padding: 6px 9px;
	text-transform: uppercase;
	white-space: nowrap;
}

.seo-footer__metrics {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-footer__metric {
	background: var(--seo-footer-bg);
	padding: 14px;
}

.seo-footer__metric-label {
	color: var(--seo-footer-accent);
	display: block;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .04em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.seo-footer__metric-value {
	color: var(--seo-footer-heading);
	display: block;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.15;
}

.seo-footer__metric-detail {
	color: var(--seo-footer-muted);
	display: block;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 5px;
}

.seo-footer__metric--highlight {
	background: var(--seo-footer-success);
	border-left: 4px solid var(--seo-footer-success-border);
}

.seo-footer__link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 18px 0 28px;
	padding: 0;
}

.seo-footer__link-list li {
	background: transparent;
	border: 0;
	padding: 0;
}

.seo-footer__link-list a {
	background: var(--seo-footer-card-bg);
	border: 1px solid var(--seo-footer-border);
	display: inline-block;
	padding: 8px 11px;
	text-decoration: none;
}

@media (max-width: 900px) {
	.seo-footer__grid--3,
	.seo-footer__metrics {
		grid-template-columns: 1fr;
	}

	.seo-footer__grid--2 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.seo-footer {
		margin-top: 24px;
		padding: 18px;
	}

	.seo-footer h2 {
		font-size: 21px;
	}

	.seo-footer__metric-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.seo-footer__badge {
		white-space: normal;
	}
}
