/* Home page, visual refresh Plan C (mockup docs/design/2026-10-05-visual-refresh/v3/home.html, hero C).
 * Loaded only on the landing view (STP_Shell_Home::landing). Tokens from stp-ui.css. */

/* ---------- hero: full-width photo band (the original hero's look, Matt 2026-10-06), find bar overlapping its bottom edge ---------- */
.stp-heroc-banner { position: relative; color: var(--stp-on-dark); background-color: var(--stp-ink);
  background-image: linear-gradient(90deg, rgba(14,15,18,.92) 0%, rgba(14,15,18,.74) 36%, rgba(14,15,18,.28) 66%, rgba(14,15,18,.06) 100%),
  var(--stp-heroc-bg); background-size: cover; background-position: 0 0, 100% 42%; }
.stp-heroc-in { padding-top: 44px; padding-bottom: 104px; }
.stp-heroc-in > * { max-width: 620px; }
.stp-heroc .stp-heroc-h1 { margin: 0; max-width: 720px; font-family: var(--stp-font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .015em; line-height: 1.02; font-size: clamp(42px, 3.8vw, 55px); color: var(--stp-on-dark); }
.stp-heroc-h1 span { display: block; color: var(--stp-yellow); }
.stp-heroc-rule { display: block; width: 70px; height: 4px; background: var(--stp-yellow); margin: 18px 0 16px; }
.stp-heroc-sub { margin: 0; max-width: 540px; font-size: 16.5px; line-height: 1.6; color: #dfe1e5; }
.stp-heroc-sub-m { display: none; }   /* the phone paragraph (≤782px) */
/* Benefit row: icon + one bold upper-case line (the original hero's benefits, without the small second line).
 * Content-sized columns + a fixed gap (never 1fr: the column would be wider than the text, uneven gaps). */
.stp-heroc .stp-heroc-bens { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-auto-flow: column; justify-content: start;
  column-gap: 36px; max-width: none; width: max-content; }
.stp-heroc-bens li { display: flex; align-items: center; gap: 11px; }
.stp-heroc-bens svg { width: 30px; height: 30px; flex: none; color: var(--stp-yellow); }
.stp-heroc-bens b { font-size: 14.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--stp-on-dark); }

.stp-heroc-find { position: relative; z-index: 2; margin: -76px 0 0; padding: 22px 26px 18px; background: var(--stp-surface);
  border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg); box-shadow: 0 18px 44px -18px rgba(14,15,18,.35), var(--stp-shadow); }
.stp-heroc .stp-heroc-find-h { margin: 0 0 12px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; color: var(--stp-ink); }
/* The find-part box laid out as a bar: vehicle left, part right, the follow-up questions full width under both. */
.stp-heroc-find .stp-fp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 24px; align-items: start; }
.stp-heroc-find .stp-fp > :not(.stp-fp-vehicle):not(.stp-fp-part) { grid-column: 1 / -1; }
.stp-heroc-find .stp-fp-head { margin-bottom: 8px; }
.stp-heroc-find .stp-fp-label { font-size: 14.5px; }
.stp-heroc-find .stp-fp-hint { margin: 8px 0 0; font-size: 13px; color: var(--stp-muted); }
/* Part field as one framed box: icon, input, yellow Search inside the frame (mockup .partbox). */
.stp-heroc-find .stp-fp-form { gap: 10px; align-items: center; height: 56px; padding: 0 6px 0 44px; position: relative; box-sizing: border-box;
  border: 1.5px solid var(--stp-ink); border-radius: var(--stp-r); background: var(--stp-surface); }
.stp-heroc-find .stp-fp-form::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  background: var(--stp-muted); -webkit-mask: var(--stp-heroc-search) center / contain no-repeat; mask: var(--stp-heroc-search) center / contain no-repeat; }
.stp-heroc-find { --stp-heroc-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.stp-heroc-find .stp-fp-input { --has-height: 44px; height: 44px; padding: 0; border: 0 !important; background: none !important; box-shadow: none; font-size: 16px; }
.stp-heroc-find .stp-fp-input:focus-visible { outline: none; }
.stp-heroc-find .stp-fp-form:focus-within { box-shadow: 0 0 0 3px rgba(255,205,0,.55); }
.stp-heroc-find .stp-fp .stp-fp-go, .stp-heroc-find .stp-fp .stp-fp-go:is(:hover, :focus, :active) { height: 44px; min-height: 44px; padding: 0 22px;
  border-radius: var(--stp-r-sm); background: var(--stp-yellow); color: var(--stp-ink); box-shadow: var(--stp-shadow-press); font-weight: 700; font-size: 16px; }
.stp-heroc-find .stp-fp .stp-fp-go:hover { background: var(--stp-yellow-dark); }
/* Vehicle set, part not picked yet: the frame turns yellow (find-part's "next step" rule, on the frame here). */
.stp-heroc-find .stp-fp:has(.stp-fp-vehicle .stp-fp-num.is-done):has(.stp-fp-part .stp-fp-num:not(.is-done)) .stp-fp-input { border: 0; background: none; }
.stp-heroc-find .stp-fp:has(.stp-fp-vehicle .stp-fp-num.is-done):has(.stp-fp-part .stp-fp-num:not(.is-done)) .stp-fp-form { border-color: var(--stp-ink); background: #fffdf3;
  box-shadow: 0 0 0 4px rgba(255,205,0,.55); }   /* the approved yellow "next step" frame (2026-09-29), as a ring round the bar */
.stp-heroc-find .stp-fp-form.is-ready { animation: stp-heroc-ready 1.6s ease-out 1; box-shadow: 0 0 0 4px rgba(255,205,0,.55); }
@keyframes stp-heroc-ready { 0% { box-shadow: 0 0 0 0 rgba(255,205,0,.9); } 35% { box-shadow: 0 0 0 10px rgba(255,205,0,.35); } 100% { box-shadow: 0 0 0 4px rgba(255,205,0,.55); } }
@media (prefers-reduced-motion: reduce) { .stp-heroc-find .stp-fp-form.is-ready { animation: none; } }
/* Garage Y/M/M selects in the bar: three equal fields on one row; the button only appears for typed "Other…" names. */
.stp-heroc-find .stp-finder-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; }
.stp-heroc-find .stp-finder-btn[hidden] { display: none; }
.stp-heroc-find .is-checking .stp-finder-row { opacity: .6; pointer-events: none; transition: opacity .15s; }
.stp-heroc-find .stp-fp-head .stp-fp-clear { margin-left: auto; padding: 2px 10px; font-size: 12.5px; }
.stp-heroc-find .stp-finder-row select, .stp-heroc-find .stp-finder-row input { width: 100%; min-width: 0; height: 48px; --has-height: 48px; }

/* ---------- sections ---------- */
.stp-home-sec { margin-top: 56px; }
.stp-home .stp-sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.stp-home .stp-sec-row h2 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: var(--stp-ink); }
.stp-home .stp-sec-row p { margin: 4px 0 0; color: var(--stp-muted); }
.stp-sec-link { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 4px; white-space: nowrap; font-size: 14px; font-weight: 650;
  color: var(--stp-ink); border-bottom: 1.5px solid var(--stp-yellow); text-decoration: none; }
.stp-sec-link:hover { color: var(--stp-ink); border-bottom-color: var(--stp-ink); }

/* Featured parts: WooCommerce's own loop cards ([products]) as the design-system card (C12). */
.stp-home-featured .woocommerce { margin: 0; }
.stp-home-featured ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 !important; padding: 0; }
.stp-home-featured ul.products::before, .stp-home-featured ul.products::after { content: none; display: none; }
.stp-home-featured .product { display: flex; flex-direction: column; gap: 6px; width: auto !important; margin: 0 !important; padding: 10px 10px 16px;
  text-align: left; background: var(--stp-surface); border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg); box-shadow: var(--stp-shadow); }
.stp-home-featured .product > *, .stp-home-featured .product .stp-fulfil { text-align: left; justify-content: flex-start; margin-left: 0; margin-right: 0; align-self: stretch; }
.stp-home-featured .product figure { margin: 0 0 6px; border-radius: var(--stp-r); overflow: hidden; }
.stp-home-featured .product figure .ct-media-container { aspect-ratio: 4 / 3; }
.stp-home-featured .product figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3 !important; }
.stp-home-featured .product .woocommerce-loop-product__title, .stp-home-featured .product .price, .stp-home-featured .product .stp-fulfil { padding: 0 6px; }
.stp-home-featured .product .woocommerce-loop-product__title { margin: 0; font-size: 15px; font-weight: 620; line-height: 1.35; }
.stp-home-featured .product .woocommerce-loop-product__title a { color: var(--stp-ink); }
.stp-home-featured .product .price { margin-top: auto; padding-top: 4px; font-size: 17px; font-weight: 750; color: var(--stp-ink); }
.stp-home-featured .product .ct-woo-card-actions, .stp-home-featured .product .button { display: none !important; }

/* Parts vehicles */
.stp-vcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stp-vcard { display: flex; flex-direction: column; background: var(--stp-surface); border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg);
  overflow: hidden; box-shadow: var(--stp-shadow); color: var(--stp-ink); text-decoration: none; }
.stp-vcard:hover { color: var(--stp-ink); border-color: var(--stp-line-strong); }
.stp-vimg { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--stp-surface-2); }
.stp-vimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stp-vbadge { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: var(--stp-r-pill); background: var(--stp-yellow);
  color: var(--stp-ink); font-size: 12.5px; font-weight: 700; }
.stp-vbody { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 16px; }
.stp-vname { font-size: 16px; font-weight: 700; color: var(--stp-ink); }
.stp-vmeta { font-size: 13px; color: var(--stp-muted); }
.stp-vlink { display: inline-flex; align-items: center; gap: 3px; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 650; }
.stp-vcard:hover .stp-vlink { text-decoration: underline; }

/* Why us */
.stp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px; background: var(--stp-surface);
  border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg); box-shadow: var(--stp-shadow); }
.stp-why-item { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-left: 1px solid var(--stp-line); }
.stp-why-item:first-child { border-left: 0; }
.stp-why-item b { font-size: 15.5px; color: var(--stp-ink); }
.stp-why-item span { font-size: 14px; line-height: 1.5; color: var(--stp-muted); }
.stp-home { padding-bottom: var(--stp-sec); }

/* ---------- narrower ---------- */
@media (max-width: 1100px) {
  .stp-heroc-in { padding-top: 36px; padding-bottom: 96px; }
  .stp-heroc .stp-heroc-h1 { font-size: 40px; }
  .stp-heroc .stp-heroc-bens { grid-auto-flow: row; grid-template-columns: repeat(2, max-content); column-gap: 40px; row-gap: 14px; width: auto; }
  .stp-heroc-find .stp-fp { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stp-home-featured ul.products, .stp-vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stp-why-item:nth-child(3) { border-left: 0; }
  .stp-why-item:nth-child(n+3) { border-top: 1px solid var(--stp-line); }
}
/* Phones/tablets: a short band (sub hidden on phones), benefits as four icon-over-text columns, the find card still
 * overlapping the band's bottom edge (the original hero's phone layout). */
@media (max-width: 900px) {
  .stp-heroc-banner { background-image: linear-gradient(160deg, rgba(14,15,18,.9) 0%, rgba(14,15,18,.65) 45%, rgba(14,15,18,.25) 100%),
    var(--stp-heroc-bg); background-position: 0 0, 70% center; }
  .stp-heroc-in { padding-top: 26px; padding-bottom: 72px; }
  .stp-heroc .stp-heroc-h1 { font-size: 34px; }
  .stp-heroc .stp-heroc-bens { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; margin-top: 20px; max-width: 520px; }
  .stp-heroc-bens li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stp-heroc-bens svg { width: 24px; height: 24px; }
  .stp-heroc-bens b { font-size: 11px; line-height: 1.25; white-space: normal; letter-spacing: .02em; }
  .stp-heroc-find { margin-top: -52px; padding: 20px; }
  .stp-heroc .stp-heroc-find-h { font-size: 19px; }
}
/* Phones (the original hero's phone layout, Matt 2026-10-06 "the old mobile hero looked much better"): the engine large
 * on the right, a narrow text column on the left with a sideways fade, the short paragraph, benefits 4 across. */
@media (max-width: 782px) {
  /* The photo (150% wide, 16:9, lifted 71px) ends at 84.375vw - 71px; the dark fade finishes just above that line so a
   * tall band never shows the photo's bottom edge. */
  .stp-heroc-banner { background-image: linear-gradient(180deg, rgba(6,7,9,0) calc(84.375vw - 200px), rgba(6,7,9,.97) calc(84.375vw - 78px)),
    linear-gradient(90deg, rgba(6,7,9,.9) 0%, rgba(6,7,9,.6) 40%, rgba(6,7,9,.16) 62%, rgba(6,7,9,.04) 100%), var(--stp-heroc-bg);
    background-size: 100% 100%, 100% 100%, 150% auto; background-position: 0 0, 0 0, 65% -71px; background-repeat: no-repeat; }
  .stp-heroc-in { padding-top: 20px; padding-bottom: 76px; }
  .stp-heroc .stp-heroc-h1 { font-size: 26px; max-width: 220px; }
  .stp-heroc-rule { margin: 12px 0 10px; }
  .stp-heroc-sub { display: none; }
  .stp-heroc .stp-heroc-sub-m { display: block; margin: 0; max-width: 210px; font-size: 13.5px; line-height: 1.55; color: #e8e9eb; }
  .stp-heroc .stp-heroc-bens { margin-top: 24px; }
  .stp-heroc-find { margin-top: -58px; }
}
/* Wide phones / small tablets: Year · Make · Model on one row (stp-garage.css puts Model on its own row at ≤782px). */
@media (min-width: 601px) and (max-width: 782px) {
  .stp-heroc-find .stp-finder-row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .stp-heroc-find .stp-finder-row .stp-finder-field-model { grid-column: auto; }
}
@media (max-width: 600px) {
  .stp-heroc-bens b { font-size: 10px; }
  .stp-heroc-find { padding: 18px 16px; }
  .stp-heroc-find .stp-finder-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stp-heroc-find .stp-finder-row > :nth-child(3), .stp-heroc-find .stp-finder-row > :last-child { grid-column: 1 / -1; }
  .stp-heroc-find .stp-fp-form { flex-direction: row; }
  .stp-heroc-find .stp-fp-input { flex: 1; width: auto; }
  .stp-heroc-find .stp-fp .stp-fp-go { width: auto; padding: 0 16px; }
  .stp-home-sec { margin-top: 40px; }
  .stp-home .stp-sec-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stp-home .stp-sec-row h2 { font-size: 22px; }
  .stp-home-featured ul.products, .stp-vcards { gap: 12px; }
  .stp-home-featured .product { padding: 6px 6px 12px; }
  .stp-home-featured .product .woocommerce-loop-product__title { font-size: 13.5px; }
  .stp-vname { font-size: 14.5px; }
  .stp-vbody { padding: 12px; }
  .stp-vbadge { left: 8px; bottom: 8px; font-size: 11.5px; }
  .stp-why { grid-template-columns: minmax(0, 1fr); }
  .stp-why-item { border-left: 0 !important; border-top: 1px solid var(--stp-line); }
  .stp-why-item:first-child { border-top: 0; }
}

/* Parts vehicles: last on the page, a full-width brand band (2026-10-09). */
.stp-home-vband { margin-top: 64px; padding: 48px 0 56px; background: var(--stp-brand-soft); border-top: 1px solid var(--stp-brand-line); }
.stp-home-vband .stp-sec-row p { margin: 4px 0 0; color: var(--stp-ink-2); }
.stp-home-vband .stp-sec-link { border-bottom-color: var(--stp-ink); }
.stp-home > .stp-home-vband:last-child { margin-bottom: calc(-1 * var(--stp-sec)); }   /* meets the footer */
body.stp-home-landing .stp-ftr { margin-top: 0; }
@media (max-width: 600px) { .stp-home-vband { margin-top: 44px; padding: 32px 0 40px; } }

/* Part-type sections (2026-10-09): dark header bar, the section's part photo fading in on the right, yellow button */
.stp-cat-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px;
  padding: 26px 28px; border-radius: var(--stp-r-lg); overflow: hidden; background: var(--stp-charcoal); isolation: isolate; }
.stp-cat-head::before { content: ""; position: absolute; inset: 0 0 0 45%; z-index: -1; background: var(--stp-cat-img, none) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); opacity: .55; }
.stp-cat-txt h2 { margin: 0; font-family: var(--stp-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .015em;
  font-size: 40px; line-height: 1; color: #fff; }
.stp-cat-txt p { margin: 6px 0 0; font-size: 15px; color: #c9ccd2; }
.stp-cat-kicker { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--stp-yellow); }
.stp-cat-cta { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 8px 8px 8px 20px; white-space: nowrap; font-size: 14.5px; font-weight: 700;
  text-decoration: none; border-radius: var(--stp-r-pill); background: var(--stp-yellow); color: var(--stp-ink); transition: background .15s; }
.stp-cat-cta:hover { background: #fff; color: var(--stp-ink); }
.stp-cat-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--stp-ink); color: var(--stp-yellow); transition: transform .15s; }
.stp-cat-cta:hover .stp-cat-arrow { transform: translateX(3px); }
@media (max-width: 600px) {
  .stp-cat .stp-cat-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
  .stp-cat-head::before { inset: 0; opacity: .3; -webkit-mask-image: none; mask-image: none; }
  .stp-cat-txt h2 { font-size: 34px; }
}

/* Why strip: last on the page, after the parts-vehicles band (2026-10-09) */
.stp-home-vband + .stp-home-why { margin-top: var(--stp-sec); }

/* Scroll cue between the find box and the first section (2026-10-09) */
html:has(.stp-cue) { scroll-behavior: smooth; }
.stp-home-featured { scroll-margin-top: calc(var(--stp-hdr-pin, 68px) + 16px); }
.stp-cue-wrap { display: flex; justify-content: center; margin-top: 40px; }
.stp-cue-wrap + .stp-home-sec { margin-top: 32px; }
.stp-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--stp-ink); text-decoration: none; }
.stp-cue:hover { color: var(--stp-ink); }
.stp-cue-txt { font-family: var(--stp-font-display); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.stp-cue-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--stp-yellow); }
@keyframes stp-cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.stp-cue-ic svg { animation: stp-cue-bob 1.8s ease-in-out infinite; }
.stp-cue:hover .stp-cue-ic svg { animation-duration: .9s; }
@media (prefers-reduced-motion: reduce) { .stp-cue-ic svg { animation: none; } html:has(.stp-cue) { scroll-behavior: auto; } }
@media (max-width: 600px) { .stp-cue-wrap { margin-top: 28px; } .stp-cue-txt { font-size: 18px; } }
