/* =============================================
   EuroCustomAutos — Bespoke / Custom work page
   ============================================= */

/* --- Intro split --- */
.bespoke-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.bespoke-intro-content .eyebrow { margin-bottom: 16px; }

.bespoke-intro-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--asphalt);
  line-height: 1.05;
  margin-bottom: 24px;
}

.bespoke-intro-content h2 .volt-underline {
  display: inline-block;
  border-bottom: 3px solid var(--volt);
  padding-bottom: 2px;
  line-height: 1;
}

.bespoke-intro-content p {
  font-size: 16px;
  color: var(--dust);
  line-height: 1.75;
  margin-bottom: 16px;
}
.bespoke-intro-content p:last-of-type { margin-bottom: 32px; }

.bespoke-intro-figure {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--offwhite);
}
.bespoke-intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bespoke-intro-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 16px;
  padding: 6px 12px;
  background: var(--asphalt);
  color: var(--concrete);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* --- Capabilities grid (reuses service-card pattern) --- */
.bespoke-capabilities {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--offwhite);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cap-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--offwhite);
  transition: background var(--transition);
}
.cap-card:nth-child(3n) { border-right: none; }
.cap-card:nth-child(n+4) { border-bottom: none; }
.cap-card:hover { background: var(--concrete); }

.cap-card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.cap-card-icon svg { width: 100%; height: 100%; }

.cap-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--asphalt);
  margin-bottom: 10px;
}

.cap-card p {
  font-size: 14px;
  color: var(--dust);
  line-height: 1.7;
}

/* --- Work gallery --- */
.work-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.work-filter {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--asphalt);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.work-filter:hover { background: var(--offwhite); }
.work-filter.active {
  background: var(--asphalt);
  color: var(--concrete);
  border-color: var(--asphalt);
}

/* masonry via CSS columns */
.work-grid {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width: 1024px) { .work-grid { column-count: 3; } }
@media (max-width: 720px)  { .work-grid { column-count: 2; } }
@media (max-width: 440px)  { .work-grid { column-count: 1; } }

.work-tile {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--offwhite);
  cursor: pointer;
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  line-height: 0;
  transition: border-color var(--transition);
}
.work-tile:hover { border-color: var(--border-strong); }
.work-tile img,
.work-tile video {
  width: 100%;
  height: auto;
  display: block;
}
.work-tile .work-vbadge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(26,26,26,0.85);
  color: var(--volt);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Lightbox */
.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,15,15,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.work-lightbox[hidden] { display: none; }

.wlb-stage {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wlb-stage img,
.wlb-stage video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  display: block;
}

.wlb-caption {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(232,228,220,0.85);
  font-size: 14px;
  font-family: var(--font-body);
}

.wlb-close,
.wlb-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--concrete);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.wlb-close:hover,
.wlb-nav:hover { background: rgba(255,255,255,0.18); }

.wlb-close { top: 24px; right: 24px; width: 42px; height: 42px; }
.wlb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.wlb-prev { left: 20px; }
.wlb-next { right: 20px; }

@media (max-width: 600px) {
  .work-lightbox { padding: 16px; }
  .wlb-nav { width: 40px; height: 40px; }
  .wlb-prev { left: 8px; }
  .wlb-next { right: 8px; }
}

/* --- Alcantara spectrum --- */
.spectrum-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--asphalt);
}

.spectrum-section .eyebrow { color: rgba(232,228,220,0.55); }

.spectrum-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.spectrum-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--concrete);
  line-height: 1.05;
  max-width: 18ch;
}
.spectrum-head h2 .volt-underline {
  display: inline-block;
  border-bottom: 3px solid var(--volt);
  padding-bottom: 2px;
  line-height: 1;
}
.spectrum-head p {
  font-size: 15px;
  color: rgba(232,228,220,0.55);
  line-height: 1.7;
  max-width: 34ch;
}

.spectrum-photo {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16/7;
  background: #111;
}
.spectrum-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Colour card toolbar */
.colour-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.colour-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  max-width: 320px;
}
.colour-search-wrap svg {
  position: absolute;
  left: 14px;
  color: rgba(232,228,220,0.5);
  pointer-events: none;
}
.colour-search {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--concrete);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 11px 14px 11px 38px;
  transition: border-color var(--transition);
}
.colour-search::placeholder { color: rgba(232,228,220,0.45); }
.colour-search:focus { outline: none; border-color: var(--volt); }

/* Download button on the dark section */
.spectrum-section .btn-primary.colour-dl {
  background: var(--concrete);
  color: var(--asphalt);
  border: 1px solid var(--concrete);
}
.spectrum-section .btn-primary.colour-dl:hover { background: var(--offwhite); border-color: var(--offwhite); }

/* Colour grid */
.colour-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}
.colour-chip {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: border-color var(--transition), transform var(--transition);
}
.colour-chip:hover { border-color: rgba(255,255,255,0.45); transform: translateY(-2px); }
.colour-chip.copied { border-color: var(--volt); }
.colour-chip .chip-swatch {
  display: block;
  height: 52px;
}
.colour-chip .chip-code {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(232,228,220,0.72);
  padding: 6px 8px;
}
.colour-chip.copied .chip-code { color: var(--volt); }

.spectrum-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(232,228,220,0.45);
  line-height: 1.7;
  max-width: 70ch;
}

/* --- Process --- */
.process-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.process-section .eyebrow { margin-bottom: 16px; }
.process-section > .container > h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--asphalt);
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--offwhite); }

.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--border-strong);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--asphalt);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--dust);
  line-height: 1.7;
}

/* --- CTA banner (self-contained) --- */
.cta-banner {
  background: var(--asphalt);
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-banner-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--concrete);
  margin-bottom: 8px;
}
.cta-banner-inner p { color: var(--dust); font-size: 16px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .btn-primary {
  background: var(--concrete);
  color: var(--asphalt);
  border-color: var(--concrete);
}
.cta-banner .btn-primary:hover { background: var(--offwhite); border-color: var(--offwhite); }
.cta-banner .btn-ghost {
  color: var(--concrete);
  border-color: rgba(255,255,255,0.25);
}
.cta-banner .btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .bespoke-intro { grid-template-columns: 1fr; gap: 40px; }
  .bespoke-intro-figure { aspect-ratio: 16/10; max-height: 380px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { border-right: none; }
  .cap-card:nth-child(n+1) { border-bottom: 1px solid var(--border); }
  .cap-card:last-child { border-bottom: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(even) { border-right: none; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { justify-content: center; }
  .colour-card-bar { flex-direction: column; align-items: stretch; }
  .colour-search-wrap { max-width: none; }
  .colour-dl { justify-content: center; }
  .colour-card { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
}
