/* work.css — /work gallery page styles
 * Owns: all .work-*, .gallery-*, .ba-*, .detail-*, .testimonial-*, .chip styles
 * Does NOT own: global theme variables, .navbar, .footer — those live in theme.css
 */

/* ── NAV LINK ADDITIONS ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-dim); color: #000; }

/* ── HERO ── */
.work-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 80px;
  border-bottom: 1px solid var(--border);
}
.work-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, #1a2a00 0%, var(--bg) 65%),
              radial-gradient(ellipse at 10% 80%, #0d1826 0%, transparent 50%);
}
.work-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.work-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.work-hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 24px;
}
.work-hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.work-hero-stats {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: var(--bg-alt);
}
.work-stat {
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--accent);
}
.work-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.work-stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

/* ── FILTER CHIPS ── */
.work-filter {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.work-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 8px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.chip-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ── GALLERY GRID ── */
.work-gallery {
  padding: 64px 24px;
  background: var(--bg);
}
.work-gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── BEFORE/AFTER CARD ── */
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.ba-container {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  height: 180px;
  overflow: hidden;
}
.ba-before, .ba-after {
  position: relative;
  overflow: hidden;
}
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}
.ba-label-before {
  background: rgba(0,0,0,0.7);
  color: #6b7280;
  border: 1px solid rgba(107,114,128,0.3);
}
.ba-label-after {
  background: rgba(0,0,0,0.7);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.4);
}
.ba-divider {
  background: var(--border);
  position: relative;
  z-index: 3;
}
.ba-divider::before {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 10px;
  padding: 4px 2px;
  border-radius: 2px;
}
.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Before: dirt placeholder visuals */
.ba-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Dirty backgrounds — each vehicle type has distinct color tone */
.ba-dirty-concrete { background: linear-gradient(160deg, #1a1106 0%, #2d1e08 50%, #1a1106 100%); }
.ba-dirty-van      { background: linear-gradient(160deg, #141416 0%, #1e1e18 50%, #141416 100%); }
.ba-dirty-oilfield { background: linear-gradient(160deg, #081210 0%, #0e1e18 50%, #081210 100%); }
.ba-dirty-heavy    { background: linear-gradient(160deg, #130e06 0%, #221608 50%, #130e06 100%); }

/* Legacy class support */
.dirty-truck, .dirty-dump { background: linear-gradient(160deg, #1a1106 0%, #2d1e08 50%, #1a1106 100%); }
.dirty-van { background: linear-gradient(160deg, #141414 0%, #222018 50%, #141414 100%); }
.dirty-rig { background: linear-gradient(160deg, #0a1010 0%, #182020 50%, #0a1010 100%); }
.dirty-heavy { background: linear-gradient(160deg, #160e06 0%, #2a1a08 50%, #160e06 100%); }
.clean-truck, .clean-van, .clean-rig, .clean-heavy {
  background: linear-gradient(160deg, #0a140a 0%, #162416 50%, #0a140a 100%);
}

.dirt-layer {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -42deg,
    transparent,
    transparent 6px,
    rgba(80,50,10,0.18) 6px,
    rgba(80,50,10,0.18) 8px
  );
  z-index: 1;
}
.dirt-streak {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 75%, rgba(100,65,20,0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(90,55,10,0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(60,40,10,0.15) 0%, transparent 70%);
  z-index: 1;
}
/* Vignette to make the dirty truck feel darker/grimier */
.ba-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.clean-sheen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, transparent 60%);
}

/* SVG truck silhouettes in before panels */
.vehicle-svg {
  width: 85%;
  max-width: 180px;
  position: relative;
  z-index: 2;
  opacity: 0.75;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

/* Legacy emoji icons */
.vehicle-icon {
  font-size: 36px;
  position: relative;
  z-index: 2;
  opacity: 0.7;
  filter: grayscale(0.3);
}
.clean-truck .vehicle-icon,
.clean-van .vehicle-icon,
.clean-rig .vehicle-icon,
.clean-heavy .vehicle-icon {
  opacity: 0.9;
  filter: none;
}

/* Card meta */
.gallery-card-meta {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
}
.gallery-card-vehicle {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}
.gallery-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(245,158,11,0.12);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.25);
}
.meta-tag-dim {
  background: var(--bg-alt);
  color: var(--text-dim);
  border-color: var(--border);
}
.meta-tag-show {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.25);
}

/* ── DETAIL BREAKDOWN ── */
.detail-breakdown {
  padding: 80px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-breakdown-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title-work {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 16px;
}
.detail-breakdown-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.detail-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.detail-col {
  background: var(--bg-alt);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.detail-col-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.detail-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 80px 24px;
  background: var(--bg);
}
.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.testimonials-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.testimonials-note {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 40px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}
.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-title {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── BOTTOM CTA ── */
.work-cta {
  padding: 100px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.work-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.work-cta-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 16px;
}
.work-cta-body {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.work-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.work-cta-btn:hover { background: var(--accent-dim); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .work-gallery-inner { grid-template-columns: repeat(2, 1fr); }
  .detail-cols { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .work-gallery-inner { grid-template-columns: 1fr; }
  .work-hero-stats { flex-direction: column; width: 100%; }
  .work-stat-divider { width: 100%; height: 1px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 13px; }
  .ba-container { height: 160px; }
}
