/* ── Galeria "Nossos Trabalhos" ──────────────────────────────── */
.gallery.section {
  background: var(--color-primary);
  color: #fff;
}
.gallery .section-title { color: #fff; }
.gallery .section-subtitle { color: rgba(255, 255, 255, .7); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 39, .25);
  background: rgba(0,0,0,.92);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* Placeholder elegante enquanto a foto não foi adicionada */
.gallery-item.no-img { cursor: default; }
.gallery-item.no-img img { display: none; }
.gallery-item.no-img::before {
  content: "✂";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(201, 162, 39, .55);
  background: linear-gradient(135deg, #1c1c1c 0%, #000 100%);
}
.gallery-item.no-img .gallery-zoom { display: none; }
.gallery-item.no-img .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 60%); }

/* Overlay em gradiente com legenda + ícone de zoom */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .15) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }

.gallery-overlay .cap {
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  transform: translateY(8px);
  transition: transform .35s ease;
}
.gallery-item:hover .gallery-overlay .cap { transform: translateY(0); }

.gallery-zoom {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(201, 162, 39, .92);
  color: #0a0a0a;
  font-size: 16px;
  transform: scale(.6);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.gallery-item:hover .gallery-zoom { transform: scale(1); opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(8, 8, 14, .92);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  border: 2px solid rgba(201, 162, 39, .5);
}
.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: var(--color-accent); color: #0a0a0a; }

/* ── Logo em destaque no topo (hero) ──────────────────────────── */
.hero-logo {
  height: clamp(96px, 18vw, 160px);
  width: auto;
  margin-bottom: var(--space-5);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
}

/* ── Logo na navbar / footer ──────────────────────────────────── */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-3);
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .brand-logo { height: 34px; }
}
