/* =============================================================================
 * BMS Local SEO Landing Pages
 * Enqueued only on /{type}-for-sale-{city}/ virtual pages (see
 * bms-landing-pages.php). Inventory cards are rendered by
 * bms_render_inventory_card() and inherit the site's existing card CSS — this
 * file styles only the landing-page chrome (hero, NAP strip, links, FAQ, CTA).
 * Uses the child theme's :root tokens (--bms-red etc.) with safe fallbacks.
 * ========================================================================== */

.bms-lp {
	--lp-ink: #15171c;
	--lp-muted: #5b616b;
	--lp-surface: #f4f5f7;
	--lp-line: #e4e7ec;
	--lp-band: #14161a;
	color: var(--lp-ink);
}

.bms-lp-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding-inline: 20px;
}

.bms-lp h1,
.bms-lp h2,
.bms-lp h3 {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: .4px;
	line-height: 1.05;
}

/* ---- Breadcrumb ---- */
.bms-lp-crumbs {
	background: var(--lp-surface);
	border-bottom: 1px solid var(--lp-line);
	font-size: 13px;
	color: var(--lp-muted);
}
.bms-lp-crumbs .bms-lp-wrap { padding-block: 11px; }
.bms-lp-crumbs a { color: var(--lp-muted); font-weight: 500; text-decoration: none; }
.bms-lp-crumbs a:hover { color: var(--bms-red, #aa1c1a); }
.bms-lp-crumbs span[aria-current] { color: var(--lp-ink); font-weight: 600; }
.bms-lp-crumbs span[aria-hidden] { margin-inline: 4px; }

/* ---- Hero / top content ---- */
.bms-lp-hero { padding-block: 44px 10px; }
.bms-lp-eyebrow {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	font-size: 13px;
	color: var(--bms-red, #aa1c1a);
	margin: 0;
}
.bms-lp-h1 {
	font-size: clamp(32px, 5vw, 50px);
	margin: 10px 0 0;
}
.bms-lp-lede {
	max-width: 66ch;
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: #333;
}

/* ---- Store NAP strip ---- */
.bms-lp-store {
	margin-top: 26px;
	border: 1px solid var(--lp-line);
	border-radius: 14px;
	background: #fff;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	overflow: hidden;
}
.bms-lp-store-cell {
	padding: 16px 20px;
	border-left: 1px solid var(--lp-line);
}
.bms-lp-store-cell:first-child { border-left: 0; }
.bms-lp-store-cell .k {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--lp-muted);
	font-weight: 600;
}
.bms-lp-store-cell .v {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-top: 3px;
	line-height: 1.35;
}
.bms-lp-store-cell .v a { color: var(--bms-red, #aa1c1a); font-weight: 700; text-decoration: none; }
.bms-lp-instock .v {
	color: var(--bms-red, #aa1c1a);
	font-size: 26px;
	line-height: 1;
}

/* ---- Brand chips ---- */
.bms-lp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	align-items: center;
}
.bms-lp-chips-label { font-size: 13px; color: var(--lp-muted); font-weight: 600; margin-right: 2px; }
.bms-lp-chip {
	border: 1px solid var(--lp-line);
	background: #fff;
	color: var(--lp-ink);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.bms-lp-chip:hover { border-color: var(--bms-red, #aa1c1a); color: var(--bms-red, #aa1c1a); }

/* ---- Section scaffolding ---- */
.bms-lp section,
.bms-lp-inventory,
.bms-lp-links { padding-block: 40px; }
.bms-lp-band {
	background: var(--lp-surface);
	border-top: 1px solid var(--lp-line);
	border-bottom: 1px solid var(--lp-line);
	padding-block: 40px;
}
.bms-lp-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.bms-lp-section-head h2 { font-size: 30px; }
.bms-lp-section-head h2::after {
	content: "";
	display: block;
	width: 54px;
	height: 4px;
	background: var(--bms-red, #aa1c1a);
	border-radius: 2px;
	margin-top: 10px;
}
.bms-lp-count { font-size: 14px; color: var(--lp-muted); font-weight: 600; }

/* ---- Inventory grid (cards come from bms_render_inventory_card) ---- */
.bms-lp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 20px;
}

.bms-lp-viewall { margin-top: 26px; text-align: center; }
.bms-lp-btn-wide {
	display: inline-block;
	background: var(--lp-band);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 30px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: 16px;
	text-decoration: none;
}
.bms-lp-btn-wide:hover { background: #000; color: #fff; }
.bms-lp-btn-outline {
	display: inline-block;
	background: transparent;
	color: var(--lp-ink);
	border: 1px solid var(--lp-ink);
	border-radius: 8px;
	padding: 13px 26px;
	font-weight: 700;
	text-decoration: none;
}
.bms-lp-btn-outline:hover { border-color: var(--bms-red, #aa1c1a); color: var(--bms-red, #aa1c1a); }

/* ---- Empty state ---- */
.bms-lp-empty {
	border: 1px dashed var(--lp-line);
	border-radius: 14px;
	padding: 40px 24px;
	text-align: center;
	color: var(--lp-muted);
	background: #fff;
}
.bms-lp-empty p { font-size: 17px; margin: 0 0 20px; }
.bms-lp-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Prose body ---- */
.bms-lp-prose { max-width: 72ch; }
.bms-lp-prose h2 { font-size: 30px; }
.bms-lp-prose h3 { font-size: 20px; margin: 26px 0 8px; }
.bms-lp-prose p { margin: 16px 0 0; color: #333; line-height: 1.65; }

/* ---- Internal links ---- */
.bms-lp-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bms-lp-link-col h3 { font-size: 18px; margin-bottom: 14px; }
.bms-lp-link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bms-lp-pill {
	border: 1px solid var(--lp-line);
	background: #fff;
	border-radius: 999px;
	padding: 8px 15px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lp-ink);
	text-decoration: none;
}
.bms-lp-pill:hover { border-color: var(--bms-red, #aa1c1a); color: var(--bms-red, #aa1c1a); }

/* ---- FAQ ---- */
.bms-lp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.bms-lp-faq details { border-bottom: 1px solid var(--lp-line); padding: 4px 0; }
.bms-lp-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.bms-lp-faq summary::-webkit-details-marker { display: none; }
.bms-lp-faq summary::after { content: "+"; font-size: 22px; color: var(--bms-red, #aa1c1a); line-height: 1; }
.bms-lp-faq details[open] summary::after { content: "\2013"; }
.bms-lp-faq p { margin: 0 0 16px; color: #333; font-size: 15px; line-height: 1.6; }

/* ---- CTA band ---- */
.bms-lp-cta { background: var(--lp-band); color: #fff; }
.bms-lp-cta .bms-lp-wrap { padding-block: 48px; text-align: center; }
.bms-lp-cta h2 { color: #fff; font-size: 34px; }
.bms-lp-cta p { color: #c7ccd4; margin: 12px 0 0; font-size: 17px; }
.bms-lp-cta .bms-lp-nap { color: #e7e9ee; font-weight: 600; }
.bms-lp-cta .bms-lp-nap a { color: #fff; }
.bms-lp-cta-actions { margin-top: 24px; }
.bms-lp-btn-light {
	display: inline-block;
	border: 1px solid #fff;
	color: #fff;
	background: transparent;
	border-radius: 8px;
	padding: 13px 26px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
}
.bms-lp-btn-light:hover { background: #fff; color: var(--lp-band); }

/* ---- Focus (matches site) ---- */
.bms-lp a:focus-visible,
.bms-lp summary:focus-visible { outline: 2px solid var(--bms-red, #aa1c1a); outline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.bms-lp-store { grid-template-columns: 1fr 1fr; }
	.bms-lp-store-cell:nth-child(3) { border-left: 0; }
	.bms-lp-links-grid,
	.bms-lp-faq { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.bms-lp-store { grid-template-columns: 1fr; }
	.bms-lp-store-cell { border-left: 0; border-top: 1px solid var(--lp-line); }
	.bms-lp-store-cell:first-child { border-top: 0; }
}
