/* ============================================================
   CLIENTES.CSS — Página de Projetos de Clientes
   Organize-se · Ana Personal Organizer
   ============================================================ */

/* ---- HEADER DA PÁGINA ---- */
.clientes-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,240,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #ddd7c4;
  padding: 0 24px;
  height: 68px;
}
.clientes-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.clientes-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: #6b5e4a;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
}
.clientes-header__back:hover { color: #c8972a; }
.clientes-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn--sm {
  padding: 8px 18px;
  font-size: .82rem;
}

/* ---- HERO ---- */
.clientes-hero {
  background: linear-gradient(135deg, #1e1a14 0%, #3a2e1a 100%);
  padding: 72px 24px 60px;
  text-align: center;
}
.clientes-hero__content {
  max-width: 680px;
  margin: 0 auto;
}
.clientes-hero .section__eyebrow {
  color: #e0b84a;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.clientes-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: #faf8f0;
  margin-bottom: 16px;
  line-height: 1.2;
}
.clientes-hero__desc {
  font-size: 1rem;
  color: rgba(250,248,240,.7);
  line-height: 1.8;
}

/* ---- BARRA DE FILTROS ---- */
.clientes-filters-bar {
  background: #faf8f0;
  border-bottom: 1px solid #ece8d8;
  padding: 16px 24px;
  position: sticky;
  top: 68px;
  z-index: 90;
}
.clientes-filters {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cl-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid #ddd7c4;
  background: transparent;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6b5e4a;
  cursor: pointer;
  transition: all .3s ease;
  font-family: 'Lato', system-ui, sans-serif;
}
.cl-filter:hover {
  border-color: #c8972a;
  color: #c8972a;
}
.cl-filter.active {
  background: #c8972a;
  border-color: #c8972a;
  color: #fff;
}

/* ---- GALERIA PRINCIPAL ---- */
.clientes-galeria {
  max-width: 1180px;
  margin: 40px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cl-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #ece8d8;
  aspect-ratio: 3/4;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cl-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
}
.cl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}
.cl-item:hover img {
  transform: scale(1.06);
}
.cl-item__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(30,26,20,.85) 0%, transparent 100%);
  padding: 28px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(6px);
  opacity: 0;
  transition: all .3s ease;
}
.cl-item:hover .cl-item__overlay {
  opacity: 1;
  transform: translateY(0);
}
.cl-item__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(200,151,42,.9);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}
.cl-item__title {
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

/* Hidden items */
.cl-item.hidden {
  display: none;
}

/* Reveal animation */
.cl-item.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.cl-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- LIGHTBOX ---- */
.cl-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,8,5,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cl-lightbox.active {
  display: flex;
}
.cl-lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.cl-lightbox__close:hover { background: rgba(255,255,255,.25); }
.cl-lightbox__img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  gap: 12px;
}
.cl-lightbox__img-wrap img {
  max-height: 82vh;
  max-width: min(700px, 90vw);
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.cl-lightbox__caption {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  text-align: center;
  margin: 0;
}
.cl-lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, opacity .3s;
}
.cl-lightbox__nav:hover { background: rgba(255,255,255,.25); }
.cl-lightbox__prev { left: 16px; }
.cl-lightbox__next { right: 16px; }

/* ---- CTA FINAL ---- */
.clientes-cta {
  background: linear-gradient(135deg, #2c2418 0%, #3a2e1a 100%);
  padding: 72px 24px;
  text-align: center;
}
.clientes-cta__inner {
  max-width: 580px;
  margin: 0 auto;
}
.clientes-cta p {
  color: rgba(250,248,240,.65);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.clientes-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #faf8f0;
  font-weight: 500;
  margin-bottom: 32px;
}
.clientes-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SEÇÃO PREVIEW NO INDEX.HTML
   ============================================================ */
.clientes-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.clientes-preview__card {
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.clientes-preview__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.clientes-preview__img {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.clientes-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}
.clientes-preview__card:hover .clientes-preview__img img {
  transform: scale(1.06);
}
.clientes-preview__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(30,26,20,.85) 0%, transparent 100%);
  padding: 32px 18px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.clientes-preview__info i {
  color: #e0b84a;
  font-size: 1rem;
}
.clientes-preview__cta {
  text-align: center;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1100px) {
  .clientes-galeria { grid-template-columns: repeat(3, 1fr); }
  .clientes-preview__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .clientes-galeria { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .clientes-filters-bar { top: 60px; }
  .cl-lightbox__prev { left: 8px; }
  .cl-lightbox__next { right: 8px; }
}
@media (max-width: 480px) {
  .clientes-galeria { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
  .clientes-header { padding: 0 16px; }
  .clientes-hero { padding: 52px 16px 44px; }
  .clientes-preview__grid { grid-template-columns: 1fr 1fr; }
}
