/* ══════════════════════════════════════
   BRAYMONT — WORK PAGE CSS
══════════════════════════════════════ */

/* ── PAGE HEADER ── */
.work-header {
  position: relative;
  z-index: 1;
  padding: 10rem 5% 5rem;
  text-align: center;
  overflow: hidden;
}
.work-header-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.work-header-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.work-header-title span {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-header-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
}

/* ── FILTER TABS ── */
.work-filters {
  position: relative;
  z-index: 1;
  padding: 0 5% 3rem;
}
.work-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.55rem 1.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.filter-btn.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
}

/* ── WORK GRID ── */
.work-grid-section {
  position: relative;
  z-index: 1;
  padding: 0 5% 6rem;
  width: 100%;
  box-sizing: border-box;
}
.work-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

/* ── WORK CARD ── */
.work-card {
  display: grid;
  grid-template-columns: 500px 1fr;
  grid-auto-flow: column;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(43,53,255,0.12);
}

/* Card image */
.wc-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  overflow: hidden;
  background: #f0f0f8;
}
.wc-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: none;
}
.work-card:hover .wc-image img { 
  transform: none;
}

.wc-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(43,53,255,0.06), rgba(43,53,255,0.02));
  color: rgba(43,53,255,0.3);
}

/* Overlay on hover */
.wc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,53,255,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-card:hover .wc-overlay { opacity: 1; }
.wc-view-btn {
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Featured badge */
.wc-featured-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  z-index: 3;
}

/* Card content */
.wc-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.wc-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.wc-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
}
.wc-year {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.wc-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
}
.wc-client {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.wc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* ── NEW: CHALLENGE & SOLUTION SECTIONS ── */
.wc-section {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
}
.wc-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.4rem;
}
.wc-section-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ── RESULTS TAGS ── */
.wc-results-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.wc-result-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(43,53,255,0.06);
  border: 1px solid rgba(43,53,255,0.15);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-primary);
}

/* ── SKILLS ── */
.wc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.wc-skill {
  padding: 0.25rem 0.7rem;
  background: rgba(43,53,255,0.07);
  border: 1px solid rgba(43,53,255,0.15);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue-primary);
}

/* ── VIEW FULL BUTTON ── */
.wc-view-full {
  margin-top: auto;
  padding: 0.7rem 1.2rem;
  background: transparent;
  border: 1px solid var(--blue-primary);
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-primary);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}
.wc-view-full:hover {
  background: var(--blue-primary);
  color: #fff;
  transform: translateX(2px);
}

/* ── PROJECT MODAL ── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.project-modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 80px rgba(43,53,255,0.15);
}
.project-modal.open .modal-panel { transform: translateY(0); }

.modal-close {
  position: sticky;
  top: 1.2rem;
  float: right;
  margin: 1.2rem 1.2rem 0 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,53,255,0.08);
  border: none;
  border-radius: 50%;
  color: var(--blue-primary);
  cursor: pointer;
  transition: background 0.25s;
  z-index: 10;
}
.modal-close:hover { background: rgba(43,53,255,0.15); }

.modal-inner { padding: 0 2.5rem 3rem; clear: both; }

.modal-head { margin-bottom: 2rem; }
.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
  margin: 0.8rem 0 0.5rem;
}
.modal-client {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.modal-client strong { color: #0a0a0a; }

/* Modal images */
.modal-cover {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}
.modal-cover-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}
.modal-cover-img:hover {
  transform: scale(1.02);
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}
.modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s;
  cursor: pointer;
}
.modal-img:hover {
  transform: scale(1.02);
}

/* ── IMAGE LIGHTBOX ── */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.image-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}
.lightbox-container {
  position: relative;
  z-index: 2001;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2002;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Modal body */
.modal-body { display: flex; flex-direction: column; gap: 2rem; }
.modal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.modal-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.8rem;
}
.modal-text {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.8;
}

/* Results */
.modal-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.modal-result-item {
  padding: 0.8rem 1.4rem;
  background: rgba(43,53,255,0.06);
  border: 1px solid rgba(43,53,255,0.15);
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-primary);
}

/* ── CTA BAND (reuse from home) ── */
.cta-band {
  position: relative;
  z-index: 1;
  padding: 5rem 5%;
  overflow: hidden;
  text-align: center;
}
.cta-band-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(43,53,255,0.08), transparent 70%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cta-band-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
}
.cta-band-title span {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-band-sub { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card {
    grid-template-columns: 380px 1fr;
    width: 100%;
  }
  .modal-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .modal-inner { padding: 0 1.5rem 2.5rem; }
  .modal-panel { max-height: 95vh; border-radius: 20px 20px 0 0; max-width: 950px; }
}
@media(max-width:600px) {
  .work-header { padding: 8rem 5% 3rem; }
  .work-card {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .wc-image {
    min-height: 200px;
  }
  .wc-content {
    padding: 1.2rem;
  }
  .modal-images { 
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .modal-img {
    aspect-ratio: 16/9;
  }
  .lightbox-container {
    width: 95%;
    max-height: 95vh;
  }
  .lightbox-img {
    max-height: 90vh;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}