/* ============================================================
   Estilos das páginas individuais de projeto (/projetos/*.html)
   ============================================================ */

.page-projeto {
  background: var(--cream);
}

/* Topo simplificado */
.proj-top {
  background: var(--dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(167,131,87,0.2);
}
.proj-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}
.proj-back:hover { color: var(--gold); }
.proj-logo {
  height: 56px;
  width: auto;
}

/* Bandeiras de idioma no header do projeto */
.proj-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.75rem;
}
.proj-lang .lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: all 0.3s;
}
.proj-lang .lang-btn svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  transition: transform 0.3s;
}
.proj-lang .lang-btn:hover svg { transform: scale(1.1); }
.proj-lang .lang-btn.active { border-color: var(--gold); }
.proj-lang .lang-btn:not(.active) { opacity: 0.55; }
.proj-lang .lang-btn:not(.active):hover { opacity: 1; }

@media (max-width: 640px) {
  .proj-lang { margin-right: 0.4rem; gap: 0.3rem; }
  .proj-lang .lang-btn svg { width: 20px; height: 14px; }
}

/* Conteúdo principal */
.proj-main {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.proj-breadcrumb {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.proj-breadcrumb:hover { text-decoration: underline; }

.proj-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 500;
}

.proj-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(167,131,87,0.2);
  border-bottom: 1px solid rgba(167,131,87,0.2);
  margin-bottom: 2.5rem;
}
.proj-meta-item {
  display: flex;
  flex-direction: column;
}
.proj-meta-item .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.proj-meta-item .val {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 500;
}

.proj-description {
  max-width: 760px;
  margin: 0 auto 3rem;
}
.proj-description p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #5a4e40;
  margin-bottom: 1.25rem;
}
.proj-description p:last-child { margin-bottom: 0; }

.proj-gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  text-align: center;
  margin: 2rem 0 1.5rem;
  font-weight: 500;
}

.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.proj-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(44,36,24,0.08);
  background: var(--cream2);
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.proj-gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44,36,24,0.15);
}
.proj-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.proj-gallery figure:hover img { transform: scale(1.05); }

/* ── LIGHTBOX (amplia foto da galeria na mesma aba) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 12, 8, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox[hidden] { display: none; }

.lightbox-inner {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: block;
}
.lightbox-counter {
  color: rgba(255, 253, 240, 0.8);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

/* Botões */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(30, 26, 20, 0.6);
  border: 1px solid rgba(167, 131, 87, 0.4);
  color: var(--cream);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-close {
  top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
}
.lightbox-prev { left: clamp(1rem, 3vw, 2.5rem); }
.lightbox-next { right: clamp(1rem, 3vw, 2.5rem); }

body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-close { width: 40px; height: 40px; top: 0.75rem; right: 0.75rem; }
}

/* CTA do projeto */
.proj-cta {
  background: var(--cream2);
  border: 1px solid rgba(167,131,87,0.2);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 0;
}
.proj-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.proj-cta p {
  color: #6b5d4d;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Rodapé das páginas de projeto */
.proj-footer {
  background: var(--dark);
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 4rem;
}
.proj-footer p {
  color: rgba(195,175,134,0.7);
  font-size: 0.95rem;
}
.proj-footer a {
  color: var(--gold-light);
  text-decoration: none;
}
.proj-footer a:hover { text-decoration: underline; }

/* Responsivo */
@media (max-width: 768px) {
  .proj-top-inner .proj-logo { height: 40px; }
  .proj-top-inner .btn-green { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .proj-meta { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .proj-meta { grid-template-columns: 1fr; }
  .proj-gallery { grid-template-columns: 1fr; }
}
