/* =========================================================
   MultiLingua - work.css
   Page-specific styles for work.html
   Depends on: css/style.css
   ========================================================= */

.work-page {
  background:
    radial-gradient(circle at top left, rgba(13, 92, 145, 0.05), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* Hero */
.work-hero {
  position: relative;
  padding: 88px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(13, 92, 145, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.work-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.work-hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.work-hero-content p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
  max-width: 760px;
}

.work-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.badge i {
  color: var(--primary);
}

.work-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.work-hero-visual img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

/* Featured proof */
.work-featured-proof {
  padding-top: 42px;
  padding-bottom: 20px;
}

.work-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

/* Capabilities */
.work-capabilities {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.work-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.work-cap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.work-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 92, 145, 0.18);
}

.work-cap-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(13, 92, 145, 0.08);
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.work-cap-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.work-cap-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* Clients section */
.clients-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.clients-head {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text);
}

.lead {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.clients-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.clients-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.clients-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 92, 145, 0.18);
}

.chip i {
  color: var(--primary);
}

.search {
  position: relative;
}

.search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7a90;
  font-size: 1.08rem;
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px 0 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 92, 145, 0.08);
}

/* Smart layout: columns instead of grid */
.clients-cats {
  column-count: 2;
  column-gap: 22px;
}

.client-cat {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.client-details {
  width: 100%;
}

.client-details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-details summary::-webkit-details-marker {
  display: none;
}

.client-cat-title {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}

.client-details .meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.client-details .count {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5fb;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

.client-details .meta i {
  color: var(--primary);
  transition: transform 0.25s ease;
}

.client-details[open] .meta i {
  transform: rotate(180deg);
}

.client-details .body {
  padding: 0 20px 18px;
}

.client-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.client-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
  transition: 0.2s ease;
}

.client-list li:hover {
  background: #f2f8ff;
  border-color: rgba(13, 92, 145, 0.14);
}

.clients-empty {
  display: block;
  width: 100%;
  padding: 32px 24px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.clients-empty strong {
  display: block;
  color: var(--text);
  font-size: 1.04rem;
}

.clients-empty p {
  margin: 8px 0 0;
}

/* Gallery */
.work-gallery {
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.gallery-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

/* CTA */
.work-final-cta {
  padding-top: 18px;
}

.work-final-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8fbff, #eef5fb);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.work-final-cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.work-final-cta-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 780px;
}

.work-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Utilities */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .work-hero-grid {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .clients-head,
  .work-final-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-summary-grid,
  .work-cap-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-hero-visual img {
    height: 430px;
  }

  .clients-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .work-hero {
    padding: 64px 0 42px;
  }

  .work-summary-grid,
  .work-cap-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .clients-cats {
    column-count: 1;
    column-gap: 0;
  }

  .work-hero-content h1 {
    font-size: 2.5rem;
  }

  .work-hero-visual img {
    height: 340px;
    border-radius: 24px;
  }

  .client-details summary {
    padding: 18px 16px;
  }

  .client-details .body {
    padding: 0 16px 16px;
  }

  .work-final-cta-box,
  .work-cap-card,
  .gallery-card {
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .work-hero-content h1 {
    font-size: 2.15rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .badge,
  .chip {
    width: 100%;
    justify-content: center;
  }

  .work-hero-actions,
  .work-final-cta-actions,
  .clients-actions {
    width: 100%;
  }

  .work-hero-actions .btn,
  .work-final-cta-actions .btn {
    width: 100%;
  }

  .search input {
    min-height: 56px;
    font-size: 0.98rem;
  }

  .gallery-card img {
    height: 240px;
  }
}