/* ============================================================
   PRODUCT LANDING SECTIONS (inc/product-landing.php, assets/js/landing.js)
   Model pages /products/<model>/ and store product pages /shop/<line>/<product>/. Owner, 2026-10-14: the landing
   format custommobility.net version 7 went live with: bigger hero with one main call to action, stair drawings,
   install photos, How The Work Happens, five-star Google reviews, sticky buy or quote bar on phones.
   Calls to action are red pills with white text. Tokens from style.css (:root).
   ============================================================ */

/* ---------- hero ---------- */
.mmc-pl-hero {
	background: linear-gradient(160deg, var(--tint) 0%, var(--paper) 70%);
	border-bottom: 1px solid var(--rule);
	padding-block: 1.4rem clamp(2rem, 4vw, 3.5rem);
}
.mmc-pl-hero .mmc-shop-crumb { color: var(--ink-soft); margin: 0 0 1.2rem; }
.mmc-pl-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.mmc-pl-hero.is-text .mmc-pl-hero-in { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.mmc-pl-media { min-width: 0; }
.mmc-pl-media .mmc-shop-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mmc-pl-media .mmc-shop-thumbs button { flex: 0 0 72px; }
.mmc-pl-media .mmc-shop-gallery-main { box-shadow: 0 18px 44px rgba(36, 30, 28, .12); border-radius: 18px; }
.mmc-pl-photo { margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 44px rgba(36, 30, 28, .12); }
.mmc-pl-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mmc-pl-photo figcaption { font-size: .86rem; color: var(--ink-soft); padding: .6rem .9rem; }
.mmc-pl-text { min-width: 0; display: flex; flex-direction: column; }
.mmc-pl-eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--red); margin: 0; }
.mmc-pl-text h1 { font-family: var(--serif); font-size: var(--t-hero); line-height: 1.04; margin: .45rem 0 .7rem; color: var(--ink); }
.mmc-pl-headline { font-family: var(--serif); font-size: var(--t-lede); font-style: italic; color: var(--ink-soft); margin: 0 0 .4rem; }
.mmc-pl-text .mmc-shop-pd-q { font-size: 1.2rem; }
.mmc-pl-text .mmc-shop-pd-price { font-size: clamp(2.2rem, 3.4vw, 2.8rem); margin: .2rem 0; }
.mmc-pl-cta { margin: 1.1rem 0 .6rem; display: block; }
.mmc-shop-btn.is-hero {
	display: flex; width: 100%; max-width: 32rem; min-height: 64px; padding: 1.05rem 1.8rem;
	font-size: 1.25rem; font-weight: 800; box-shadow: 0 10px 24px rgba(168, 20, 25, .28);
}
.mmc-shop-btn.is-hero:visited, .mmc-shop-btn.is-hero:hover { color: #fff; }
.mmc-shop-btn.is-red:focus-visible { outline: 3px solid var(--red-deep); outline-offset: 3px; }
.mmc-pl-lede { font-size: var(--t-lede); line-height: 1.6; color: var(--ink); margin: .9rem 0 1rem; max-width: 60ch; }
.mmc-pl-facts { margin: 0 0 .6rem; }
.mmc-pl-text .mmc-shop-pd-note { margin-top: .4rem; }
.mmc-pl-text .mmc-shop-pd-note a { color: var(--ink); }
.mmc-pl-call { font-size: .95rem; color: var(--ink-soft); margin: .5rem 0 0; }
.mmc-pl-call a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mmc-pl-call a:hover, .mmc-pl-call a:focus-visible { text-decoration: underline; }

/* options table under the hero (several options) */
.mmc-pl-options { padding-block: 1.5rem 2rem; border-bottom: 1px solid var(--rule); }
.mmc-pl-options .mmc-shop-opts { max-width: 52rem; margin: 0 auto; }

/* specs and warranty on model pages */
.mmc-pl-facts-wrap { max-width: 52rem; margin: 2rem auto 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.mmc-pl-facts-h { font-family: var(--serif); font-size: var(--t-h3); margin: 1.4rem 0 .6rem; }
.mmc-pl-facts-h:first-child { margin-top: 0; }

/* ---------- Will It Fit Your Stairs? ---------- */
.mmc-pl-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 1.6rem; }
.mmc-pl-fit-col { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 1.3rem 1.3rem 1.1rem; display: flex; flex-direction: column; }
.mmc-pl-fit:not(.is-curved) .is-straight, .mmc-pl-fit.is-curved .is-curve { border: 2.5px solid var(--red); }
.mmc-pl-fit-tag { align-self: flex-start; background: var(--ink-soft); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .75rem; border-radius: 999px; margin: 0 0 .9rem; }
.mmc-pl-fit:not(.is-curved) .is-straight .mmc-pl-fit-tag, .mmc-pl-fit.is-curved .is-curve .mmc-pl-fit-tag { background: var(--red); }
.mmc-pl-fit-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.mmc-pl-stair { margin: 0; text-align: center; color: var(--ink); }
.mmc-pl-stair-art svg { display: block; width: 100%; height: auto; max-height: 190px; }
.mmc-pl-stair .mmc-st-t { fill: #fff; }
.mmc-pl-stair .mmc-st-s { fill: var(--tint-deep); }
.mmc-pl-stair polygon, .mmc-pl-stair ellipse { stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mmc-pl-stair figcaption { font-size: .95rem; font-weight: 600; line-height: 1.35; margin-top: .5rem; }
.mmc-pl-fit-note { color: var(--ink-soft); margin: .9rem 0 0; }
.mmc-pl-fit-go { text-align: center; }

/* ---------- reviews ---------- */
.mmc-pl-rev-sum { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; margin: -.4rem 0 1.6rem; font-size: 1.05rem; }
.mmc-pl-rev-sum .mmc-review-google { width: 22px; height: 22px; }
.mmc-pl-rev-sum strong { font-family: var(--serif); font-size: 1.5rem; }
.mmc-pl-reviews .mmc-driver-foot { text-align: center; }

/* ---------- sticky bar (phones) ---------- */
.mmc-pl-sticky { display: none; }
@media (max-width: 900px) {
	.mmc-pl-sticky {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; justify-content: space-between;
		gap: .8rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper);
		border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px rgba(36, 30, 28, .14);
		transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
	}
	.mmc-pl-sticky.is-on { transform: none; visibility: visible; transition: transform .25s ease; }
	.mmc-pl-sticky-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
	.mmc-pl-sticky-tx b { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mmc-pl-sticky-tx small { color: var(--ink-soft); font-size: .85rem; }
	.mmc-pl-sticky .mmc-shop-btn { flex: 0 0 auto; padding: .75rem 1.2rem; font-size: .95rem; min-height: 48px; }
	/* room for the bar, so it never covers the footer or the last line */
	html.has-pl-sticky body { padding-bottom: 76px; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
	.mmc-pl-hero { padding-top: 1rem; }
	.mmc-pl-hero .mmc-shop-crumb { display: none; }
	.mmc-pl-hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.mmc-pl-hero-in > *, .mmc-pl-text > * { min-width: 0; max-width: 100%; }
	.mmc-pl-text { display: contents; }
	.mmc-pl-eyebrow { order: 1; }
	.mmc-pl-text h1 { order: 2; font-size: clamp(2rem, 8.5vw, 2.6rem); }
	.mmc-pl-headline, .mmc-pl-text .mmc-shop-pd-q, .mmc-pl-text .mmc-shop-pd-price, .mmc-pl-text .mmc-shop-liftgate { order: 3; }
	.mmc-pl-media { order: 4; margin: .8rem 0 0; }
	.mmc-pl-media .mmc-shop-gallery-main { max-height: 250px; aspect-ratio: auto; padding: .6rem; }
	.mmc-pl-media .mmc-shop-gallery-main img { max-height: 230px; }
	.mmc-pl-media .mmc-shop-thumbs { margin-top: .5rem; }
	.mmc-pl-photo img { max-height: 250px; }
	.mmc-pl-media .mmc-shop-thumbs { flex-wrap: nowrap; overflow-x: auto; }
	.mmc-pl-media .mmc-shop-thumbs button { flex: 0 0 52px; width: 52px; height: 52px; }
	.mmc-pl-cta { order: 5; }
	.mmc-pl-text > .mmc-shop-48 { order: 5; }
	.mmc-pl-text > .mmc-shop-sku, .mmc-pl-text > .mmc-shop-pd-opts { order: 6; }
	.mmc-pl-lede { order: 7; }
	.mmc-pl-facts { order: 8; }
	.mmc-pl-text > .mmc-shop-pd-note, .mmc-pl-call { order: 9; }
	.mmc-shop-btn.is-hero { max-width: none; font-size: 1.15rem; }
	.mmc-pl-fit { grid-template-columns: minmax(0, 1fr); }
	.mmc-pl-fit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mmc-pl-stair-art svg { max-height: 130px; }
	.mmc-pl-facts-wrap { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.mmc-pl-sticky, .mmc-pl-sticky.is-on { transition: none; }
}
