/* ============================================================
   DarianLamarStudio — /cars-we-wrap page layer ("the coverage
   index"). Loads AFTER darian-configurator.css and only adds;
   every value traces to a token or recipe in the base sheet.
   ============================================================ */

/* --- nav: active real-page tab gets the registration tick --- */
.dl-nav-tabs a.is-page {
  color: var(--ink);
  background: var(--ink-08);
  position: relative;
}
.dl-nav-tabs a.is-page::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
}

/* --- index header (sub-page hero: one breath, text-led) --- */
.cw-hero { padding: 56px 0 48px; }
.cw-hero h1 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.04;
  margin: 10px 0 0;
  text-wrap: balance;
}
.cw-hero .dl-hero-line { width: 120px; margin: 18px 0 16px; animation-delay: .5s; }
.cw-hero-sub {
  max-width: 52ch;
  color: var(--muted);
  margin: 0 0 24px;
}

/* the legend: teaches the two-chip system once, confidently */
.cw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-bottom: 22px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.cw-legend span { display: inline-flex; align-items: center; gap: 8px; }

/* the square glyphs: filled = cut and installed, outline = loaded and ready */
.cw-sq {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
}
.cw-sq-real { background: var(--accent); }
.cw-sq-preview { border: 1px solid var(--accent); background: transparent; }

/* jump-chip index row */
.cw-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cw-jumps a {
  text-decoration: none;
  font-size: 12px;
}

/* --- status chips overlaid on card imagery --- */
.cw-chip {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--scrim-3);
  padding: 5px 9px;
  border-radius: var(--r-s);
}
.cw-chip-real { border: 1px solid var(--line); }
.cw-chip-preview { border: 1px solid var(--accent-dark); color: var(--accent); }

/* --- band header armature: 7/5 split, CTA bottom-aligned --- */
.cw-band-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 32px;
  align-items: end;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .cw-band-head { grid-template-columns: 7fr 5fr; }
  .cw-band-cta { justify-self: end; text-align: right; }
}
.cw-band-head h2 { margin: 0; }
.cw-band-head .cw-band-body {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 56ch;
}
.cw-band-body a { color: var(--ink); }
.cw-band-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 900px) { .cw-band-cta { align-items: flex-end; } }
.cw-band-cta .cw-micro {
  font-size: 11px;
  color: var(--muted-dim);
  margin: 0;
}
.cw-band-cta .cw-alt {
  font-size: 11px;
  color: var(--muted);
}
.cw-band-cta .cw-alt:hover { color: var(--ink); }

/* --- the earned H3: Mopar feature block --- */
.cw-mopar-head {
  margin: 34px 0 6px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cw-mopar-line { margin: 0 0 18px; font-size: 12px; color: var(--muted-dim); }

/* --- make-card grid --- */
.cw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .cw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cw-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.cw-grid + .cw-grid { margin-top: 16px; }

/* card: extends the dl-photo recipe; whole card is a link */
.cw-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--well);
  transition: border-color .3s ease;
}
.cw-card:hover { border-color: var(--muted); }
.cw-card figure { margin: 0; }
.cw-card .cw-img {
  position: relative;
  overflow: hidden;
}
.cw-card .cw-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06) brightness(.94);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.cw-card .cw-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--scrim-2), transparent 42%);
  transition: opacity .6s ease;
  pointer-events: none;
}
.cw-card:hover .cw-img img { transform: scale(1.03); }
.cw-card:hover .cw-img::after { opacity: 0; }

.cw-card figcaption {
  padding: 13px 15px 15px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.cw-card .cw-make {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.cw-card .cw-spec {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.cw-card .cw-go {
  margin: 9px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  transition: color .3s ease;
}
.cw-card:hover .cw-go { color: var(--accent); }

/* feature tile: oversized 16:10 lead */
.cw-feature .cw-img img { aspect-ratio: 16 / 10; }
@media (min-width: 980px) { .cw-feature { grid-column: span 3; } }
@media (min-width: 980px) {
  .cw-grid-4 .cw-feature { grid-column: span 4; }
}

/* --- the real before/after stack (X5 chrome delete) --- */
.cw-ba-stack {
  margin: 0;
  display: grid;
  gap: 10px;
}
.cw-ba-stack .cw-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.cw-ba-stack .cw-img img {
  width: 100%;
  filter: saturate(.86) contrast(1.06) brightness(.94);
}
.cw-ba-stack figcaption {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.cw-pos-38 { object-position: center 38%; }

/* --- band 2: proof anchor beside the grid --- */
.cw-daily-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 32px;
  align-items: start;
}
@media (min-width: 980px) {
  .cw-daily-split { grid-template-columns: 5fr 7fr; }
}
.cw-daily-split .cw-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cw-daily-split .cw-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- render bay (signature interstitial, dl-event surface) --- */
.cw-bay {
  background:
    radial-gradient(circle at 82% 18%, var(--accent-dark-tint), transparent 58%),
    var(--soft);
  border-block: 1px solid var(--line);
  padding: 72px 0;
  overflow: hidden;
}
.cw-bay .dl-eyebrow { margin-bottom: 26px; }
.cw-bay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .cw-bay-grid { grid-template-columns: 7fr 5fr; } }
.cw-bay .dl-ba { margin: 0; }
.cw-bay h2 { margin: 12px 0 10px; }
.cw-bay p { color: var(--muted); max-width: 46ch; margin: 0 0 20px; }

/* --- render-bay picker & mint state (mockup simulates the pair cache) --- */
.cw-bay-picker { display: grid; gap: 8px; margin-bottom: 14px; }
.cw-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-pick-row .dl-finish { font-size: 11px; display: inline-flex; align-items: center; gap: 7px; }
.cw-sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-25); flex: none; }
.cw-mint {
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--line);
  border-radius: var(--r-m);
  background: var(--well);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: var(--muted);
}
.cw-mint b { color: var(--ink); letter-spacing: .14em; text-transform: uppercase; }
.cw-mint span { max-width: 42ch; }
.cw-mint .cw-mint-note { color: var(--muted-dim); }
.cw-bay-status { margin: 10px 0 0; font-size: 11px; color: var(--muted-dim); max-width: none; }

.cw-btn-lg { padding: 16px 28px; font-size: 13px; }

/* --- band 3: full-bleed feature (event-photo negative-margin recipe) --- */
/* the bleed escapes the container to the right; clip it at the section
   edge exactly like .dl-event does with overflow:hidden */
#trucks { overflow-x: clip; }
.cw-bleed-wrap {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "card" "bleed";
  gap: 26px 32px;
  align-items: start;
}
.cw-truck-card { grid-area: card; }
.cw-bleed { grid-area: bleed; }
@media (min-width: 980px) {
  .cw-bleed-wrap {
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "card bleed";
  }
}
.cw-bleed {
  position: relative;
  margin: 0;
}
@media (min-width: 980px) {
  .cw-bleed { margin-right: calc((100vw - min(1160px, 100vw - 40px)) / -2); }
  .cw-bleed .cw-img, .cw-bleed .cw-img img { border-radius: var(--r-m) 0 0 var(--r-m); }
}
.cw-bleed .cw-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.cw-bleed .cw-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06) brightness(.94);
}
.cw-bleed figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
/* --- band 4: wide commercial tiles --- */
.cw-wide .cw-img img { aspect-ratio: 16 / 9; }

/* --- closing --- */
.cw-close-honesty {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-dim);
}
.cw-close-contact {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.cw-close-contact a { color: var(--ink); text-decoration: none; }
.cw-close-contact a:hover { color: var(--accent); }
.cw-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* band anchors clear the sticky nav (+ mock strip) */
#muscle, #daily, #trucks, #commercial {
  scroll-margin-top: 76px;
}
@media (max-width: 900px) {
  #muscle, #daily, #trucks, #commercial { scroll-margin-top: 112px; }
}

@media (max-width: 640px) {
  .cw-legend { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cw-hero { padding: 44px 0 40px; }
  .cw-card .cw-make { font-size: 14px; }
  .cw-bay { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-card .cw-img img { transition: none; }
  .cw-card:hover .cw-img img { transform: none; }
  .cw-card .cw-img::after { transition: none; }
}
