/* ==========================================================================
   Work Page Styles — Bold Blue (#004FE8) + Cream + Amber
   Inspired by Verse brand with keyword highlighting
   ========================================================================== */

/* Work page body */
.work-page {
  background: #004FE8;
  margin: 0;
  padding: 0;
}

/* Navigation on blue background */
.nav-blue {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-blue .nav-name {
  color: white;
  font-weight: 600;
}

.nav-blue .nav-links a {
  color: rgba(255,255,255,0.85);
}

.nav-blue .nav-links a:hover,
.nav-blue .nav-links a.active {
  color: white;
}

.nav-blue .nav-toggle span {
  background: white;
}

@media (max-width: 768px) {
  .nav-blue .nav-links {
    background: #004FE8;
    border-bottom-color: rgba(255,255,255,0.2);
  }

  .nav-blue .nav-links a {
    color: rgba(255,255,255,0.85);
  }

  .nav-blue .nav-links a:hover,
  .nav-blue .nav-links a.active {
    color: white;
  }
}

/* Bold blue hero section */
.hero-blue {
  background: #004FE8;
  color: white;
  padding: var(--space-20) var(--page-padding) var(--space-16);
}

.hero-content {
  max-width: 925px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 140px;
  margin-bottom: var(--space-10);
  display: block;
}

.hero-statement {
  font-size: var(--text-2xl);
  line-height: 1.5;
  color: rgba(255,255,255,0.90);
  font-weight: 300;
  font-family: var(--font-display);
  text-align: left;
}

/* Bold keyword highlighting */
.hero-statement strong {
  font-weight: 700;
  color: white;
}

/* Subtle label above logo grid */
.logo-grid-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: var(--space-16);
  margin-bottom: var(--space-4);
}

/* Client description beneath label */
.clients-description {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: var(--space-10);
  font-weight: 300;
  font-family: var(--font-display);
}

/* Logo grid on blue hero */
.logo-grid-blue {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1.5rem;
  align-items: center;
  margin-top: var(--space-16);
  padding-top: var(--space-10);
}

.logo-item-blue {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 80px;
  max-height: 100px;
}

.logo-item-blue img {
  max-height: 80px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.logo-item-blue img:hover {
  opacity: 1;
}

/* Warm cream section for client logos */
.section-cream {
  background: var(--color-cream);
  padding: var(--space-20) var(--page-padding) 5rem;
}

.section-content {
  max-width: 925px;
  margin: 0 auto;
}

.section-label {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #004FE8;
  margin-bottom: var(--space-3);
  font-weight: 700;
}

/* Logo grid on cream */
.logo-grid-cream {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.logo-item-cream {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  max-height: 100px;
}

.logo-item-cream img {
  max-width: 200px;
  max-height: 80px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.logo-item-cream img:hover {
  opacity: 0.7;
}

/* White section for projects with amber accents */
.section-white {
  background: white;
  padding: var(--space-20) var(--page-padding) 5rem;
}

.section-label-amber {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(30, 41, 59, 0.4);
  font-weight: 500;
  margin-bottom: var(--space-16);
}

/* Blue filter buttons */
.filter-buttons {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.filter-btn {
  background: #004FE8;
  color: white;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.filter-btn:hover {
  background: #003abd;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--color-ink);
  box-shadow: inset 0 0 0 2px #004FE8;
}

/* Work section header + keywords */
.work-section-header {
  margin-bottom: var(--space-8);
}

.work-section-title {
  font-size: var(--text-2xl);
  font-weight: 300;
  font-family: var(--font-display);
  color: var(--color-ink);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.work-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.keyword-tag {
  font-size: var(--text-base);
  color: var(--color-gray-dark);
  font-weight: 400;
  line-height: 1.6;
}

.keyword-tag + .keyword-tag::before {
  content: ' · ';
  color: rgba(30, 41, 59, 0.3);
  margin: 0 0.2em;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  max-width: 925px;
  margin: 0 auto;
}

.project-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  transition: transform 0.2s ease;
}

.project-card:hover {
  box-shadow: none;
}

.project-card:hover img {
  transform: translateY(-4px);
}

/* Client name — above description */
.project-client {
  display: block;
  font-size: var(--text-xs);
  color: rgba(30, 41, 59, 0.45);
  font-weight: 500;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-card h3 {
  font-size: var(--text-sm);
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--color-gray-dark);
  line-height: 1.6;
  margin: 0;
}

/* Footer on blue */
.footer-blue {
  background: #004FE8;
  border-top: none;
  color: rgba(255,255,255,0.9);
  padding: var(--space-12) var(--page-padding);
}

.footer-blue a {
  color: rgba(255,255,255,0.9);
}

.footer-blue a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .logo-grid-blue {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  /* Scale text with 2-col card size */
  .project-client {
    font-size: var(--text-sm);
  }

  .project-card h3 {
    font-size: var(--text-base);
  }
}

@media (max-width: 768px) {
  .logo-grid-blue {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1rem;
    margin-top: var(--space-8);
    padding-top: var(--space-4);
  }

  .logo-grid-label {
    margin-top: var(--space-8);
  }

  .logo-item-blue {
    min-height: 60px;
    max-height: 80px;
  }

  .logo-item-blue img {
    max-width: 180px;
    max-height: 70px;
  }

  .hero-blue {
    padding: var(--space-16) var(--page-padding);
  }

  .hero-logo {
    max-width: 100px;
  }

  .hero-statement {
    font-size: var(--text-xl);
  }

  .section-cream {
    padding: var(--space-16) var(--page-padding) var(--space-20);
  }

  .section-white {
    padding: var(--space-16) var(--page-padding) var(--space-20);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Scale text with 1-col card size */
  .project-client {
    font-size: var(--text-md);
  }

  .project-card h3 {
    font-size: var(--text-lg);
  }

  .logo-grid-cream {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }

  .logo-item-cream {
    min-height: 60px;
    max-height: 80px;
  }

  .logo-item-cream img {
    max-width: 160px;
    max-height: 65px;
  }

  .section-label,
  .section-label-amber {
    text-align: left;
  }
}
