/* ==========================================================
   The Wrench Club: "Come find the shop" truck band
   Loaded after styles.css; reuses its tokens (--gold-grad, --hazard, --slant, --wrap).
   Image: truck-warehouse.jpg (1600w) / truck-warehouse-800.jpg (800w)
   ========================================================== */
.truck-band {
  position: relative; margin-top: 28px;
  /* gold rim: the inner panel is inset 3px, so gold shows along both slanted edges */
  padding-block: 3px;
  background: var(--gold-grad);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.truck-band-inner {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); align-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 14px),
    linear-gradient(90deg, #0b0b0d 0%, var(--c0) 60%);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
/* caution-tape strip riding the slanted bottom edge */
.truck-band-inner::before {
  content: ""; position: absolute; z-index: 2; left: 0; bottom: 0;
  width: min(34%, 420px); height: 10px; background: var(--hazard);
  transform-origin: left bottom; transform: translateY(-1px) skewY(-2.3deg);
}
.truck-band-copy {
  position: relative; z-index: 1;
  padding: calc(var(--slant) + 30px) 28px calc(var(--slant) + 34px) max(24px, (100vw - var(--wrap)) / 2);
}
.truck-band-copy .kicker { margin-bottom: 14px; }
.truck-band-copy h2 { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: .93; }
.truck-band-copy h2 .hl { padding-right: .04em; }
.truck-band-addr {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  font-family: var(--ui); font-weight: 600; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); line-height: 1.35;
}
.truck-band-addr .shop-band-pin { width: 36px; height: 36px; }

.truck-band-media {
  --edge: clamp(46px, 7vw, 96px);   /* diagonal cut on the photo's left edge */
  position: relative; margin: 0; align-self: stretch;
  background: var(--gold-grad);       /* shows as a 7px gold line along the cut */
  clip-path: polygon(var(--edge) 0, 100% 0, 100% 100%, 0 100%);
}
.truck-band-media img {
  display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: 50% 60%;
  clip-path: polygon(calc(var(--edge) + 7px) 0, 100% 0, 100% 100%, 7px 100%);
}
/* soft dark grade at the top/bottom so the photo sits inside the band */
.truck-band-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,10,.35) 0%, transparent 22%, transparent 80%, rgba(8,8,10,.4) 100%);
  clip-path: polygon(calc(var(--edge) + 7px) 0, 100% 0, 100% 100%, 7px 100%);
}

/* ---------- Tablet / mobile: copy stacked over a full-width photo ---------- */
@media (max-width: 960px) {
  .truck-band-inner { grid-template-columns: 1fr; }
  .truck-band-copy {
    width: min(var(--wrap), 100% - 48px); margin-inline: auto;
    padding: calc(var(--slant) + 26px) 0 28px;
  }
  .truck-band-media { --edge: 18px; clip-path: polygon(0 var(--edge), 100% 0, 100% 100%, 0 100%); }
  .truck-band-media img,
  .truck-band-media::after { clip-path: polygon(0 calc(var(--edge) + 6px), 100% 6px, 100% 100%, 0 100%); }
  .truck-band-media img { height: auto; }
  /* move the tape to the top-right corner, clear of the photo */
  .truck-band-inner::before { left: auto; right: 0; bottom: auto; top: calc(var(--slant) * .5 + 8px); width: 30%; transform: none; }
}
@media (max-width: 560px) {
  .truck-band { margin-top: 20px; }
  .truck-band-copy { width: calc(100% - 36px); padding-top: calc(var(--slant) + 22px); padding-bottom: 24px; }
  .truck-band-copy h2 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .truck-band-addr { font-size: .9rem; gap: 10px; margin-top: 16px; }
  .truck-band-addr .shop-band-pin { width: 32px; height: 32px; }
  /* a touch taller than 16:9 so the whole truck clears the slanted bottom edge */
  .truck-band-media img { aspect-ratio: 16 / 9.8; object-position: 50% 72%; }
}
