/* McLaine Motors — site styles */

:root {
  --ink: #0E0C0B;
  --cream: #FAF8F2;
  --gold: #DDB63D;
  --gold-deep: #9C7A1E;
  --bg-muted: #EDE6D6;
  --border: rgba(14, 12, 11, 0.12);
  --shadow: 0 1px 2px rgba(14, 12, 11, 0.08);
  --radius: 4px;
  /* Buttons, search box, badges. Squared off like a sign, not pill-round --
     the pill shape everywhere was the main thing making the site look like
     every template on the internet (2026-10-21). */
  --radius-btn: 3px;

  /* Type. One place to change the whole site's fonts.
     Headings are Arvo, the same slab serif as the McLaine Motor Co. plate
     on the sign, so the site and the sign read as one shop. Everything
     else -- numbers, VINs, small labels -- is the sans, with tabular
     figures where columns need to line up. */
  --font-head: 'Arvo', Georgia, 'Times New Roman', serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-muted);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;   /* no lone word on the last line of a heading */
}

/* Kept for markup that still uses it — now means "figures that line up",
   not "typewriter". */
.mono {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}

/* Figures that sit in columns or get compared at a glance keep
   fixed-width digits, so dropping the mono font didn't cost us the
   alignment it was really there for. */
.toolbar .count,
.card .price,
.card .meta,
.card .photo .badge,
.modal .head-meta,
.modal .head-right .price,
.modal .head-status,
.modal .counter,
.modal .thumb .more-overlay,
.modal .specs ul,
.modal .spec-row,
.modal .close-price,
.lightbox .lb-counter {
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}

/* The dark header and footer bars run edge to edge, so their contents can
   sit closer to the screen edges than the inventory grid, which stays at
   1180px so the cards and text don't stretch too wide to read. */
header.site-header .wrap,
footer.site-footer .wrap {
  max-width: 1560px;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 700px) {
  header.site-header .wrap,
  footer.site-footer .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

header.site-header img.logo {
  height: 64px;
  display: block;
}

header.site-header .call-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s ease;
}

header.site-header .call-cta:hover {
  background: rgba(221, 182, 61, 0.12);
}

/* On a narrow phone the logo + call button ran past the right edge.
   Trimming both a little keeps the whole pill on screen. */
@media (max-width: 460px) {
  header.site-header .wrap { gap: 10px; }
  header.site-header img.logo { height: 50px; }
  header.site-header .call-cta {
    padding: 7px 12px;
    font-size: 13.5px;
    gap: 6px;
  }
}

/* Hero */

.hero {
  position: relative;
  color: var(--cream);
  text-align: center;
  border-bottom: 1px solid rgba(221,182,61,0.35);

  /* The scrim gradient sits ON TOP of the photo. It's what keeps the
     heading readable no matter how bright the sky is in the picture.
     If images/hero.jpg doesn't exist yet, the gradient + ink still
     render on their own and the hero looks like it did before. */
  background-color: var(--ink);
  background-image:
    /* soft dark pool behind the heading so the text stays readable even
       over a light-colored truck, without flattening the whole photo */
    radial-gradient(
      ellipse 58% 46% at 50% 50%,
      rgba(14, 12, 11, 0.66) 0%,
      rgba(14, 12, 11, 0.28) 55%,
      transparent 78%
    ),
    linear-gradient(
      to bottom,
      rgba(14, 12, 11, 0.70) 0%,
      rgba(14, 12, 11, 0.26) 48%,
      rgba(14, 12, 11, 0.80) 100%
    ),
    url('../images/hero.jpg');
  background-size: cover;
  /* If the truck sits too high or too low in the crop, nudge this second
     value. Lower % shows more of the top of the photo, higher % shows
     more of the bottom. 50% is dead center. */
  background-position: center 58%;
  background-repeat: no-repeat;

  /* The photo is 4:3, so at `cover` it always scales to the full hero
     width and gets cropped top/bottom. How much you lose depends purely
     on how tall this box is relative to the window width — which is why
     a wide desktop window used to crop far harder than a narrow one.
     38vw is ~0.75 x 0.51: it keeps roughly half the photo's height in
     frame at every size. Raise it to show more of the truck, lower it
     for a slimmer letterbox. */
  min-height: clamp(340px, 38vw, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 62px;
}

.hero > .wrap { width: 100%; }

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 22px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .hero {
    min-height: 260px;
    padding: 48px 0 46px;
  }
}

/* Toolbar */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.toolbar .count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.toolbar .controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search, For sale / Sold / All, and sort: one height, one border, one
   corner, so the three read as a single bar instead of three different
   browser widgets. The magnifier and the arrow are drawn here rather than
   left to the browser, which draws them differently on every phone. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.toolbar input[type="search"],
.toolbar select,
.toolbar .status-tabs {
  height: 42px;
  border: 1px solid rgba(14, 12, 11, 0.2);
  border-radius: var(--radius-btn);
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}

.toolbar input[type="search"] {
  width: 260px;
  padding: 0 14px 0 38px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%239C7A1E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px 50%;
}

.toolbar input[type="search"]::placeholder { color: rgba(14, 12, 11, 0.45); }

.toolbar select {
  padding: 0 38px 0 14px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230E0C0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.toolbar .status-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
}

.toolbar .status-tabs button {
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: rgba(14, 12, 11, 0.7);
  padding: 0 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.toolbar .status-tabs button:hover { color: var(--ink); background: rgba(14, 12, 11, 0.05); }

.toolbar .status-tabs button.on {
  background: var(--ink);
  color: var(--cream);
}

.toolbar input[type="search"]:focus,
.toolbar select:focus,
.toolbar .status-tabs button:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(221, 182, 61, 0.35);
}

.toolbar .search-box,
.toolbar .sort-box { display: block; }

/* Phones: search full width on top, the buttons and sort share the row under it. */
@media (max-width: 560px) {
  .toolbar .controls { width: 100%; }
  .toolbar .search-box { flex: 1 1 100%; }
  .toolbar input[type="search"] { width: 100%; }
  /* The buttons take what they need; the sort box gets the rest, so
     "Newest year" is never cut off. */
  .toolbar .status-tabs { flex: 0 0 auto; }
  .toolbar .status-tabs button { padding: 0 10px; }
  .toolbar .sort-box { flex: 1 1 0; min-width: 0; }
  .toolbar select { width: 100%; padding: 0 30px 0 12px; background-position: right 11px center; }
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding-bottom: 60px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--gold-deep);
  font-family: var(--font-body);
}

/* Nothing for sale at all -- between trucks. Reads as a shop that sells
   out, not a page that failed to load. */
.between {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 10px auto 0;
  padding: 40px 32px 36px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}

.between h2 {
  font-size: clamp(23px, 2.6vw, 29px);
}

.between p {
  margin: 12px auto 0;
  max-width: 46ch;
  color: rgba(14, 12, 11, 0.72);
}

.between .between-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.between .btn-solid,
.between .btn-outline {
  padding: 11px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.between .btn-solid {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}

.between .btn-solid:hover { background: #2a2522; }

.between .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(14, 12, 11, 0.35);
}

.between .btn-outline:hover { border-color: var(--ink); }

/* Card */

.card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 1px var(--gold-deep);
}

.card .photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}

.card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .photo .ribbon {
  position: absolute;
  top: 12px;
  left: -6px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.card .photo .ribbon.sold {
  background: var(--cream);
  color: var(--ink);
}

.card .photo .ribbon.pending {
  background: var(--gold-deep);
  color: var(--cream);
}

.card .body {
  padding: 16px 18px 18px;
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card .title {
  font-family: var(--font-head);
  /* .title is a div, so it doesn't inherit the h1/h2/h3 weight */
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}

.card .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.005em;
  color: var(--gold-deep);
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(14,12,11,0.65);
}

.card .meta span::after {
  content: '·';
  margin-left: 10px;
  color: rgba(14,12,11,0.3);
}

.card .meta span:last-child::after {
  content: '';
  margin: 0;
}

.card .view-btn {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--cream);
  border: none;
}

.card .photo .photo-badges {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.card .photo .badge {
  padding: 3px 9px;
  border-radius: var(--radius-btn);
  background: rgba(14, 12, 11, 0.7);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
}

.card .photo .badge.video {
  background: var(--gold);
  color: var(--ink);
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 11, 0.78);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  z-index: 100;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--cream);
  max-width: 1000px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

.modal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--cream);
}

.modal .modal-head h2 {
  font-size: 22px;
  line-height: 1.2;
}

.modal .head-meta {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(250,248,242,0.6);
}

.modal .head-right {
  text-align: right;
  margin-left: auto;
}

.modal .head-right .price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 25px;
}

.modal .head-status {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(250,248,242,0.65);
}

.modal .close-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--cream);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

/* Stage */

.modal .stage {
  background: #000;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.modal .stage img,
.modal .stage iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.modal .stage img { object-fit: cover; }

.modal .stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ink);
  border-top: 1px solid rgba(221,182,61,0.25);
}

.modal .stage-left,
.modal .stage-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal .ghost-btn {
  background: transparent;
  border: 1px solid rgba(221,182,61,0.55);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal .ghost-btn:hover { background: rgba(221,182,61,0.15); }

.modal .ghost-btn.video-toggle {
  border-color: var(--gold);
  color: var(--gold);
}

/* "Copy Link" — turns gold for a moment to confirm the link is on the
   clipboard. Without the confirmation nobody trusts that it worked. */
.modal .ghost-btn.copied {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.modal .counter {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(250,248,242,0.6);
  margin-left: 6px;
}

/* Thumbnails */

.modal .thumbs {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--ink);
}

.modal .thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  background: #000;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
}

.modal .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.modal .thumb:hover img { opacity: 1; }
.modal .thumb.active { border-color: var(--gold); }
.modal .thumb.active img { opacity: 1; }

.modal .thumb .more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,12,11,0.72);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
}

/* Modal body */

.modal .modal-body {
  padding: 26px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
}

/* A truck with no write-up yet. Without this the specs would sit in the left
   half of a two-column grid with an empty right half beside them, which reads
   as a page that failed to load rather than one with nothing to add. */
.modal .modal-body.solo {
  grid-template-columns: 1fr;
}

/* No write-up but a spec list: the list on the left, the details and the
   price on the right, so half the page isn't left blank (2026-10-21). */
.modal .modal-body.solo .side.has-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
  row-gap: 24px;
  align-items: start;
}

.modal .modal-body.solo .side.has-specs > .specs { grid-column: 1; grid-row: 1 / span 2; }
.modal .modal-body.solo .side.has-specs > .spec-table,
.modal .modal-body.solo .side.has-specs > .close-block { grid-column: 2; }
.modal .modal-body.solo .side.has-specs > .spec-table { border-top: 0; padding-top: 0; }

.modal .modal-body.solo .side:not(.has-specs) { max-width: 620px; }

.modal h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.modal .read p {
  margin: 0 0 11px;
  font-size: 16.5px;
}

.modal .side { display: flex; flex-direction: column; gap: 24px; }

.modal .specs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal .spec-table {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.modal .spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.005em;
}

.modal .spec-row .k {
  color: rgba(14,12,11,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.modal .close-block {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.modal .close-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 27px;
  color: var(--gold);
}

.modal .close-block a.call {
  display: block;
  margin-top: 14px;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
}

.modal .close-block a.email {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  word-break: break-word;
}

.modal .close-block a.email:hover {
  text-decoration: underline;
}

.modal .close-block .note {
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(250,248,242,0.55);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.96);
  display: none;
  z-index: 200;
}

.lightbox.open { display: block; }

/* The filmstrip lives down the RIGHT side, not across the bottom.
   The photo is 4:3 in a landscape window, so its HEIGHT is the only thing
   that limits it -- there is always spare width and never spare height. A
   filmstrip along the bottom comes straight out of the picture; the same
   filmstrip on the side costs width nobody was using. Keeps both. */
.lightbox .lb-stage {
  position: absolute;
  inset: 0 132px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Clear of the prev/next buttons, which are 48px across. */
  padding: 8px 64px 8px;
}

/* Fill the stage, don't sit at the photo's own pixel size.
   max-width/max-height alone only set a CEILING -- a small photo then renders
   at its natural size and floats in the middle of a full-screen black panel,
   which reads as "the viewer is tiny" when the real problem is the photo.
   width/height + contain scales to fit in both directions and never crops. */
.lightbox .lb-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(14,12,11,0.6);
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
}

.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(14,12,11,0.6);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox .lb-nav.prev { left: 20px; }
.lightbox .lb-nav.next { right: 152px; }

.lightbox .lb-counter {
  position: absolute;
  bottom: 14px;
  left: calc(50% - 66px);      /* centred on the stage, not the window */
  transform: translateX(-50%);
  background: rgba(8,7,6,0.62);
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(250,248,242,0.7);
}

.lightbox .lb-rail {
  position: absolute;
  top: 72px;                 /* starts below the close button */
  right: 0;
  bottom: 0;
  left: auto;
  width: 132px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(0,0,0,0.5);
}

.lightbox .lb-thumb {
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  padding: 0;
  border: 2px solid transparent;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.lightbox .lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.lightbox .lb-thumb.active { border-color: var(--gold); }
.lightbox .lb-thumb.active img,
.lightbox .lb-thumb:hover img { opacity: 1; }

/* Responsive */

@media (max-width: 820px) {
  .modal .modal-body { grid-template-columns: 1fr; gap: 26px; }
  .modal .modal-body.solo .side.has-specs { display: flex; flex-direction: column; }
  .modal .modal-body.solo .side.has-specs > .spec-table { border-top: 1px solid var(--border); padding-top: 14px; }
  .modal .thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 560px) {
  .modal .modal-head { flex-wrap: wrap; }
  .modal .head-right { text-align: left; margin-left: 0; }
  /* Three across: nine thumbnails make three full rows, so the "+27" tile
     doesn't end up alone on a row of its own. */
  .modal .thumbs { grid-template-columns: repeat(3, 1fr); }
  .lightbox .lb-stage { padding: 6px 8px 6px; inset: 0 0 84px 0; }
  .lightbox .lb-rail {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: 84px;
    flex-direction: row;
    overflow-x: auto; overflow-y: hidden;
  }
  .lightbox .lb-thumb { width: 84px; height: 60px; }
  .lightbox .lb-counter { bottom: 92px; left: 50%; }
  .lightbox .lb-nav { top: calc(50% - 42px); }
  .lightbox .lb-nav.next { right: 8px; }
  .lightbox .lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox .lb-nav.prev { left: 8px; }
  .lightbox .lb-nav.next { right: 8px; }
}

/* Sell / trade band */

.sell-band {
  background: var(--ink);
  color: var(--cream);
  margin-top: 56px;
  padding: 54px 0;
  border-top: 3px solid var(--gold);
  text-align: center;
}

.sell-band h2 {
  font-size: clamp(25px, 3vw, 33px);
  color: var(--cream);
}

.sell-band .eyebrow,
.merch .eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.merch .eyebrow { color: var(--gold-deep); }

.sell-band p {
  max-width: 60ch;
  margin: 14px auto 0;
  color: rgba(250, 248, 242, 0.72);
  font-size: 16px;
}

.sell-band .sell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.sell-band .btn-solid,
.sell-band .btn-outline {
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.sell-band .btn-solid {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}

.sell-band .btn-solid:hover { background: #e9c757; }

.sell-band .btn-outline {
  border: 1px solid var(--gold);
  color: var(--cream);
}

.sell-band .btn-outline:hover { background: rgba(221, 182, 61, 0.12); }

/* The email address is long — let it wrap rather than run off a phone. */
@media (max-width: 460px) {
  .sell-band .btn-solid,
  .sell-band .btn-outline {
    white-space: normal;
    width: 100%;
    max-width: 320px;
  }
}

/* Header: the Shop link sits on the left, just right of the logo */

header.site-header .header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Gold caps with a gold underline, so it reads as a link next to the call
   button without competing with it. */
header.site-header .merch-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

header.site-header .merch-link:hover { color: #e9c757; }

/* No room for it next to the logo and the call button on a narrow phone,
   so phones get a Shop button under the Current Inventory heading instead. */
@media (max-width: 520px) {
  header.site-header .merch-link { display: none; }
}

.hero .merch-jump { display: none; }

@media (max-width: 520px) {
  .hero .merch-jump {
    display: inline-block;
    margin-top: 16px;
    padding: 7px 18px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-btn);
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* Merch */

.merch {
  padding: 54px 0 64px;
  scroll-margin-top: 90px;
}

.merch h2 {
  font-size: clamp(25px, 3vw, 33px);
  margin-bottom: 24px;
}


.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.merch-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* The mockups are on white, so the picture box is white too. */
.merch-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.merch-photo.has-more { cursor: pointer; }

/* Round ink buttons on either side of a picture, as on the truck photos. */
.merch-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(14, 12, 11, 0.85);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.merch-arrow:hover { background: var(--ink); color: var(--gold); }

.merch-prev { left: 10px; }
.merch-next { right: 10px; }

/* Pinned to the box so every card's picture is the same square, whatever
   shape the mockup is. */
.merch-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.merch-flip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}

.merch-body {
  padding: 16px 18px 18px;
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.merch-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18.5px;
  line-height: 1.3;
}

.merch-detail {
  font-size: 14px;
  color: rgba(14, 12, 11, 0.7);
}

.merch-price {
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.merch-buy {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.merch-buy:hover { background: #e9c757; }

.merch-buy.merch-call {
  background: transparent;
  border-color: var(--ink);
}

.merch-buy.merch-call:hover { background: rgba(14, 12, 11, 0.06); }

.merch-arrow:focus-visible,
.merch-buy:focus-visible,
header.site-header .merch-link:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* Footer */

footer.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 242, 0.7);
  padding: 30px 0;
  border-top: 3px solid var(--gold);
  font-size: 14px;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

footer.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
}

footer.site-footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

footer.site-footer .footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
}

footer.site-footer .footer-place {
  margin-top: 2px;
  font-size: 13.5px;
  color: rgba(250, 248, 242, 0.55);
}
