/* ===== WORK PAGE ===== */

/* Hero */
.work-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  background: url('toby_parsons-nissan-240z-2925432.jpg') center/cover no-repeat;
}
.work-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85), rgba(10,30,10,0.75));
}
.work-hero-content {
  position: relative; z-index: 1;
  text-align: center;
  width: 100%;
}
.work-hero-content h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  margin: 12px 0 10px;
  letter-spacing: -1px;
}
.work-hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

/* Filter tabs */
.work-filters {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 81px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.work-filters .container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  color: #4b5563;
}
.filter-btn:hover {
  border-color: #2a7a2a;
  color: #2a7a2a;
}
.filter-btn.active {
  background: #2a7a2a;
  border-color: #2a7a2a;
  color: #fff;
}

/* Gallery section */
.work-gallery-section {
  padding: 72px 0;
  background: #f9fafb;
}

/* Brand block */
.brand-block {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}
.brand-icon {
  width: 60px; height: 60px;
  min-width: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
}
.dodge-icon  { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.bmw-icon    { background: linear-gradient(135deg, #1a53a0, #2980b9); }
.subaru-icon { background: linear-gradient(135deg, #d4a017, #f0c040); }

.brand-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}
.brand-header p {
  font-size: 14px;
  color: #6b7280;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f3f4f6;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 22px;
  opacity: 0;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card:hover .photo-overlay {
  background: rgba(0,0,0,0.35);
  opacity: 1;
}

/* Brand tags */
.brand-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brand-tags span {
  background: rgba(42,122,42,0.08);
  color: #2a7a2a;
  border: 1px solid rgba(42,122,42,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* CTA */
.work-cta {
  background: linear-gradient(90deg, #1a5c1a, #2a7a2a);
  padding: 64px 0;
}
.work-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.work-cta h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.work-cta p { color: rgba(255,255,255,0.75); font-size: 16px; }
.work-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }
.lb-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
#lb-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
  display: block;
}
#lb-caption {
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  font-size: 14px;
}
.lb-close {
  position: absolute;
  top: -44px; right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* Nav active */
.nav-active { color: #2a7a2a !important; font-weight: 700 !important; }

/* Responsive */
@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .brand-block { padding: 28px 20px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .brand-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-cta-inner { flex-direction: column; }
  .work-filters { top: 73px; }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .work-hero { height: 260px; }
  .filter-btn { padding: 8px 16px; font-size: 13px; }
}
