/* stackerforsale.com ------------------------------------------------------- */
:root {
  --bg: #f3f4f6;          /* brushed aluminum */
  --panel: #ffffff;
  --ink: #1c2530;         /* deep steel */
  --ink-2: #4a5866;
  --ink-3: #7b8794;
  --line: #d7dce2;
  --line-2: #e7eaee;
  --red: #c8102e;         /* racing red: price + primary action only */
  --red-dark: #a30d25;
  --green: #1f8a4c;
  --amber: #b7791f;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
[id] { scroll-margin-top: 80px; }   /* keep anchor targets clear of the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; overflow-x: hidden; font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: var(--radius); font: 600 1rem/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* header */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 30px; height: 22px; background: var(--ink); clip-path: polygon(0 100%, 0 40%, 55% 40%, 55% 0, 100% 0, 100% 100%); border-radius: 2px; }
.brand-text { font: 700 1.45rem/1 var(--display); letter-spacing: .01em; }
.brand-text span { color: var(--red); margin-left: .25rem; }
.nav { display: flex; gap: 1.4rem; margin-left: .5rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-color: var(--red); }
.call { margin-left: auto; text-decoration: none; text-align: right; line-height: 1.1; }
.call-label { display: block; font-size: .75rem; color: var(--ink-3); }
.call-num { font: 700 1.3rem/1 var(--display); letter-spacing: .01em; }
@media (max-width: 760px) {
  .top-row { gap: 1rem; flex-wrap: wrap; padding: .6rem 0; min-height: 0; }
  .nav { order: 3; width: 100%; gap: 1rem; overflow-x: auto; margin: 0; padding-bottom: .1rem; }
  .call-label { display: none; }
}

/* hero */
.hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; padding: 4rem 0 3rem; }
.hero-copy h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 1.2rem 0 1.6rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.hero-stats div { background: var(--panel); padding: 1.1rem 1.25rem; }
.hero-stats dd { margin: 0; font: 700 3rem/1 var(--display); }
.hero-stats dt { color: var(--ink-3); font-size: .95rem; margin-top: .2rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 2rem; } }

/* sections */
.section { padding: 3rem 0; }
.section-tight { padding: 1.5rem 0 3rem; }
.narrow { max-width: 640px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.more { font-weight: 600; color: var(--ink-2); }
.page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.count { color: var(--ink-3); font-weight: 500; margin: 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: .6rem; left: .6rem; font: 600 .78rem/1 var(--body); padding: .35rem .5rem; border-radius: 2px; background: var(--ink); color: #fff; }
.tag-order { background: var(--amber); }
.tag-pending { background: var(--ink-3); }
.tag-used { background: var(--ink-2); }
.tag-sale { left: auto; right: .6rem; background: var(--red); }
.card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-loc { display: flex; align-items: center; gap: .35rem; color: var(--ink-2); font-size: .92rem; font-weight: 500; margin: 0; }
.card-loc svg { color: var(--red); flex: 0 0 auto; }
.card-loc a, .loc-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.card-loc a:hover, .loc-link:hover { color: var(--red); text-decoration-color: var(--red); }
.card-stock { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: .85rem; }
.plate { display: grid; grid-template-columns: repeat(4, 1fr); margin: .25rem 0 0; border: 1px solid var(--line); border-radius: 2px; }
.plate div { padding: .45rem .55rem; border-left: 1px solid var(--line); }
.plate div:first-child { border-left: 0; }
.plate dt { font-size: .7rem; color: var(--ink-3); }
.plate dd { margin: 0; font: 600 1.05rem/1.1 var(--display); }
.card-price { margin: .25rem 0 0; display: flex; align-items: baseline; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.card-price .now { font: 700 1.6rem/1 var(--display); color: var(--red); }
.card-price.is-call .now { color: var(--ink); }
.card-price s { color: var(--ink-3); font-size: .95rem; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem 1rem; align-items: end; background: var(--panel); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.filters label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.filters select { font: 500 .95rem var(--body); color: var(--ink); padding: .55rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.filter-actions { display: flex; gap: .5rem; }
.filter-actions .btn { padding: .6rem 1rem; }
.empty { background: var(--panel); border: 1px dashed var(--line); padding: 3rem 1.5rem; text-align: center; border-radius: var(--radius); }
.empty h2 { margin-bottom: .5rem; }

/* why */
.why { background: var(--ink); color: #e9edf1; padding: 3.5rem 0; }
.why h2 { color: #fff; margin-bottom: 1rem; }
.why p { color: #c6ced6; max-width: 38em; }
.why-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; align-content: start; }
.why-list li { padding-left: 1rem; border-left: 3px solid var(--red); color: #c6ced6; }
.why-list strong { color: #fff; display: block; font-weight: 600; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.quote { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.quote p { font-size: 1.05rem; }
.quote footer { color: var(--ink-3); font-weight: 500; }

/* detail */
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 2rem; align-items: start; }
.detail-side { position: sticky; top: 84px; display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail-side { position: static; } }
.detail-media, .detail-side { min-width: 0; max-width: 100%; }
.gallery { margin: 0; }
.gallery-main { position: relative; background: var(--line-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; max-height: 75vh; object-fit: contain; background: #fff; }
.empty-media { display: grid; place-items: center; color: var(--ink-3); }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(28,37,48,.75); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gal-btn:hover { background: var(--ink); }
.gal-btn.prev { left: .75rem; } .gal-btn.next { right: .75rem; }
.gal-count { position: absolute; right: .75rem; bottom: .75rem; background: rgba(28,37,48,.75); color: #fff; font-size: .8rem; padding: .25rem .5rem; border-radius: 2px; }
.thumbs { display: flex; gap: .4rem; overflow-x: auto; max-width: 100%; padding: .6rem 0 .3rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.thumbs button { flex: 0 0 auto; width: 96px; padding: 0; border: 2px solid transparent; border-radius: 2px; background: none; cursor: pointer; opacity: .7; }
.thumbs button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1px; }
.thumbs button.is-active, .thumbs button:hover { opacity: 1; border-color: var(--red); }
.video, .desc, .feats { margin-top: 2rem; }
.video h2, .desc h2, .feats h2 { margin-bottom: .75rem; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.desc p { max-width: 70ch; color: var(--ink-2); }
.feats ul { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.feats li { break-inside: avoid; margin-bottom: .3rem; }
@media (max-width: 640px) { .feats ul { columns: 1; } }

.buy, .specs, .inquire, .calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.status-line { display: flex; align-items: center; gap: .45rem; color: var(--ink-2); font-weight: 500; font-size: .9rem; margin-bottom: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.dot-available { background: var(--green); } .dot-on_order { background: var(--amber); }
.buy h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .75rem; }
.price { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 .25rem; }
.price .now { font: 700 2.6rem/1 var(--display); color: var(--red); }
.price.is-call .now { color: var(--ink); font-size: 2rem; }
.price s { color: var(--ink-3); }
.save { color: var(--green); font-weight: 600; font-size: .95rem; }
.calc-cta { display: flex; align-items: center; gap: .8rem; margin: .9rem 0 0; padding: .8rem .9rem; text-decoration: none; color: var(--ink);
  background: #fff5f6; border: 1.5px solid var(--red); border-radius: var(--radius); box-shadow: inset 4px 0 0 var(--red); }
.calc-cta:hover { background: #fdecee; }
.calc-cta-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; flex: 0 0 auto; }
.calc-cta-text { display: grid; gap: .1rem; min-width: 0; }
.calc-cta-text strong { font: 600 1.15rem/1.15 var(--display); letter-spacing: .005em; }
.calc-cta-sub { font-size: .85rem; color: var(--ink-2); }
.calc-cta-arrow { margin-left: auto; font-size: 1.8rem; line-height: 1; color: var(--red); }
.buy-actions { display: grid; gap: .5rem; margin: 1rem 0 .75rem; }
.fine { font-size: .82rem; color: var(--ink-3); margin: 0; }
.specs { margin: 0; }
.specs h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line-2); }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.inquire h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.inquire form { display: grid; gap: .75rem; }
.inquire label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.inquire input, .inquire textarea { font: 400 1rem var(--body); padding: .65rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; color: var(--ink); }
.inquire textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-error { background: #fdecee; color: var(--red-dark); padding: .6rem .8rem; border-radius: var(--radius); font-weight: 500; }
.ok { background: #e9f6ee; border: 1px solid #bfe3cc; padding: 1rem; border-radius: var(--radius); }
.ok p:last-child { margin: 0; }

/* payment calculator */
.calc h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.calc-grid label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.calc-grid label:nth-child(3), .calc-grid label:nth-child(4) { grid-column: span 1; }
.calc-grid input, .calc-grid select { font: 500 1rem var(--body); color: var(--ink); padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; background: #fff; }
.money { position: relative; display: block; }
.money::before { content: "$"; position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; }
.money input { padding-left: 1.5rem; font-family: var(--display); font-size: 1.15rem; }
.calc-out { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.calc-pay { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; }
.calc-pay span { font: 700 2.6rem/1 var(--display); color: var(--ink); }
.calc-pay small { color: var(--ink-3); font-size: .9rem; }
.calc-terms { margin: 0 0 .75rem; }
.calc-terms div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-top: 1px solid var(--line-2); font-size: .9rem; }
.calc-terms dt { color: var(--ink-3); }
.calc-terms dd { margin: 0; font-weight: 600; text-align: right; }
.calc-empty { color: var(--ink-2); font-weight: 500; }
.calc .fine { line-height: 1.45; }
@media (max-width: 400px) { .calc-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--panel); border-top: 1px solid var(--line); margin-top: 2rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
.foot-grid a { display: block; text-decoration: none; padding: .15rem 0; }
.foot-grid a:hover { color: var(--red); }
.foot-brand { font: 700 1.4rem/1 var(--display); color: var(--ink); margin-bottom: .6rem; }
.foot-h { font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.foot-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); padding: 1rem 0 1.5rem; border-top: 1px solid var(--line-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
