/* ── PROJETOS.HTML — ESTILOS ESPECÍFICOS ── */

/* ── HERO ── */
.projetos-hero { min-height: 60vh; }
.projetos-hero .page-hero-bg { opacity: .25; }

/* ── GALERIA ── */
.galeria-section { padding: 100px 0 80px; background: var(--off-white); }
.galeria-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

/* ── FILTROS ── */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filtro-btn {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}
.filtro-btn:hover { border-color: var(--gold); color: var(--gold); }
.filtro-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── GRID DA GALERIA ── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  transition: opacity .3s, transform .3s;
}
.galeria-item.oculto { display: none; }
.galeria-btn {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.galeria-btn img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.4,0,0.2,1);
}
.galeria-item:hover .galeria-btn img { transform: scale(1.06); }
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14,30,58,.92) 0%, rgba(22,41,81,.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-info { transform: translateY(8px); transition: transform .4s; }
.galeria-item:hover .galeria-info { transform: translateY(0); }
.galeria-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.galeria-nome {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.galeria-local { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.galeria-lupa {
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transition: opacity .4s, transform .4s;
  flex-shrink: 0;
  align-self: flex-end;
}
.galeria-item:hover .galeria-lupa { opacity: 1; transform: translateY(0) scale(1); }

/* ── CTA PORTFÓLIO ── */
.galeria-cta { margin-top: 56px; }
.galeria-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}
.galeria-cta-texto h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.galeria-cta-texto p { font-size: 14px; color: rgba(255,255,255,.5); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,15,29,.95);
  cursor: pointer;
}
.lightbox-inner {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  transition: opacity .25s;
}
.lightbox-caption {
  text-align: center;
  margin-top: 16px;
}
.lightbox-titulo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}
.lightbox-local { font-size: 13px; color: var(--gold-light); margin-top: 4px; }
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3;
  color: rgba(255,255,255,.7);
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s, transform .2s;
}
.lightbox-close:hover { color: var(--white); transform: rotate(90deg); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(159,124,86,.3); color: var(--gold-light); }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
  .galeria-header { grid-template-columns: 1fr; gap: 24px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .galeria-cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

@media (max-width: 480px) {
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-btn img { height: 240px; }
  .galeria-overlay { opacity: 1; }
}
