/* =============================================================================
   Cornhusker Billiards Home Sections — home-seo-sections.css
   Olhausen introduction, featured models, and buyer-questions FAQ.

   Only classes prefixed with cbs-home-seo- are styled here. Existing
   mrp-home-sections- selectors and variables are never redefined.
   ============================================================================= */

body.home .cbs-home-seo-intro,
body.home .cbs-home-seo-featured,
body.home .cbs-home-seo-faq {
	--cbs-home-seo-font:   var(--mrp-home-sections-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
	--cbs-home-seo-black:  #0d0d0d;
	--cbs-home-seo-dark:   #1a1a1a;
	--cbs-home-seo-mid:    #444444;
	--cbs-home-seo-muted:  #666666;
	--cbs-home-seo-border: rgba(0, 0, 0, 0.10);
	--cbs-home-seo-tint:   #f4f4f2;
	--cbs-home-seo-max:    1600px;

	/* Full-width breakout, same technique as the existing home sections. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 4rem);
	box-sizing: border-box;
	background: #ffffff;
	font-family: var(--cbs-home-seo-font);
	color: var(--cbs-home-seo-dark);
}

.cbs-home-seo-intro {
	border-bottom: 1px solid var(--cbs-home-seo-border);
}

.cbs-home-seo-featured,
.cbs-home-seo-faq {
	border-top: 1px solid var(--cbs-home-seo-border);
}

.cbs-home-seo-intro__inner,
.cbs-home-seo-featured__inner,
.cbs-home-seo-faq__inner {
	width: min(100%, var(--cbs-home-seo-max));
	margin-inline: auto;
}

/* ── Shared type ────────────────────────────────────────────────────────────── */
.cbs-home-seo-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cbs-home-seo-muted);
}

.cbs-home-seo-heading {
	margin: 0;
	font-family: var(--cbs-home-seo-font);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--cbs-home-seo-black);
	text-wrap: balance;
}

.cbs-home-seo-text-link {
	color: var(--cbs-home-seo-black);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

.cbs-home-seo-text-link:hover {
	text-decoration-thickness: 2px;
}

.cbs-home-seo-text-link:focus-visible,
.cbs-home-seo-btn:focus-visible,
.cbs-home-seo-product__link:focus-visible,
.cbs-home-seo-faq__question:focus-visible {
	outline: 2px solid var(--cbs-home-seo-black);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ── Buttons (mirror the showroom section buttons) ─────────────────────────── */
.cbs-home-seo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
	margin-top: 1.75rem;
}

.cbs-home-seo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 2rem;
	font-family: var(--cbs-home-seo-font);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	text-align: center;
	box-sizing: border-box;
	border: 2px solid var(--cbs-home-seo-black);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cbs-home-seo-btn--primary {
	background: var(--cbs-home-seo-black);
	color: #ffffff;
}

.cbs-home-seo-btn--primary:hover {
	background: var(--cbs-home-seo-dark);
	border-color: var(--cbs-home-seo-dark);
	color: #ffffff;
}

.cbs-home-seo-btn--outline {
	background: transparent;
	color: var(--cbs-home-seo-black);
}

.cbs-home-seo-btn--outline:hover {
	background: var(--cbs-home-seo-black);
	color: #ffffff;
}

/* ═══ Olhausen introduction ═════════════════════════════════════════════════ */
.cbs-home-seo-intro__inner {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.cbs-home-seo-intro__copy {
	max-width: 62ch;
	margin: 1rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--cbs-home-seo-mid);
}

.cbs-home-seo-intro__visit {
	margin: 1.25rem 0 0;
	font-size: 0.9375rem;
}

.cbs-home-seo-intro__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	background: var(--cbs-home-seo-border);
	border: 1px solid var(--cbs-home-seo-border);
}

.cbs-home-seo-intro__point {
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: #ffffff;
}

.cbs-home-seo-intro__point-heading {
	margin: 0 0 0.5rem;
	font-family: var(--cbs-home-seo-font);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--cbs-home-seo-black);
}

.cbs-home-seo-intro__point-copy {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--cbs-home-seo-mid);
}

@media (min-width: 40rem) {
	.cbs-home-seo-intro__points {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.cbs-home-seo-intro__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	}
}

/* ═══ Featured Olhausen models ══════════════════════════════════════════════ */
.cbs-home-seo-featured__header {
	max-width: 48rem;
	margin-bottom: 1.75rem;
}

.cbs-home-seo-featured__intro {
	max-width: 58ch;
	margin: 0.75rem 0 0;
	line-height: 1.55;
	color: var(--cbs-home-seo-muted);
}

.cbs-home-seo-featured__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.cbs-home-seo-product {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

.cbs-home-seo-product__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: 100%;
	box-sizing: border-box;
	border: 1px solid var(--cbs-home-seo-border);
	color: inherit;
	text-decoration: none;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cbs-home-seo-product__media {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 2 / 1;
	flex-shrink: 0;
	padding: 0;
	overflow: hidden;
	background: var(--cbs-home-seo-tint);
	box-sizing: border-box;
}

/* Whole product photo stays visible; never stretched. */
.cbs-home-seo-product__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 1rem;
	box-sizing: border-box;
	object-fit: contain;
}

.cbs-home-seo-product__body {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.25rem 1.25rem 1.5rem;
}

.cbs-home-seo-product__type {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cbs-home-seo-muted);
}

.cbs-home-seo-product__name {
	margin: 0;
	font-family: var(--cbs-home-seo-font);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cbs-home-seo-black);
}

.cbs-home-seo-product__cta {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cbs-home-seo-black);
}

@media (hover: hover) {
	.cbs-home-seo-product__link:hover {
		border-color: var(--cbs-home-seo-black);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}
}

.cbs-home-seo-featured__more {
	margin: 1.5rem 0 0;
	font-size: 0.9375rem;
}

/* One column on phones, then three across (never a lone third card). */
@media (min-width: 44rem) {
	.cbs-home-seo-featured__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.cbs-home-seo-featured__grid {
		gap: 1.25rem;
	}
}

/* ═══ Buyer questions FAQ ═══════════════════════════════════════════════════ */
.cbs-home-seo-faq__header,
.cbs-home-seo-faq__list {
	max-width: 60rem;
}

.cbs-home-seo-faq__header {
	margin-bottom: 1.5rem;
}

.cbs-home-seo-faq__list {
	border-top: 1px solid var(--cbs-home-seo-border);
}

.cbs-home-seo-faq__item {
	border-bottom: 1px solid var(--cbs-home-seo-border);
}

.cbs-home-seo-faq__question {
	position: relative;
	display: block;
	padding: 1.125rem 2.5rem 1.125rem 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cbs-home-seo-black);
	cursor: pointer;
	list-style: none;
}

.cbs-home-seo-faq__question::-webkit-details-marker {
	display: none;
}

/* Plus/minus icon drawn with gradients (no text content), so it never
   becomes part of the summary's accessible name. */
.cbs-home-seo-faq__question::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0.375rem;
	width: 0.875rem;
	height: 0.875rem;
	transform: translateY(-50%);
	background:
		linear-gradient(var(--cbs-home-seo-mid), var(--cbs-home-seo-mid)) center / 100% 2px no-repeat,
		linear-gradient(var(--cbs-home-seo-mid), var(--cbs-home-seo-mid)) center / 2px 100% no-repeat;
}

.cbs-home-seo-faq__item[open] > .cbs-home-seo-faq__question::after {
	background-size: 100% 2px, 0 0;
}

.cbs-home-seo-faq__answer {
	padding: 0 0 1.25rem;
}

.cbs-home-seo-faq__answer p {
	max-width: 68ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cbs-home-seo-mid);
}

/* ── Mobile (≤ 48rem): match the existing sections, which drop the 100vw
   breakout and fill their container to avoid horizontal overflow. ─────────── */
@media (max-width: 48rem) {
	body.home .cbs-home-seo-intro,
	body.home .cbs-home-seo-featured,
	body.home .cbs-home-seo-faq {
		width: 100%;
		max-width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ── Small phones ───────────────────────────────────────────────────────────── */
@media (max-width: 30rem) {
	.cbs-home-seo-actions {
		flex-direction: column;
	}

	.cbs-home-seo-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cbs-home-seo-btn,
	.cbs-home-seo-product__link {
		transition: none;
	}
}
