/* RESET */
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;

  background-image: url("background/pedrabranca2.jpeg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #2b2b2b;
}


/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: 
    url("background/blackstonecinza.jpg") center / cover no-repeat,
    #0f0f0f; /* fallback */

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  animation: headerFade 0.6s ease forwards;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Animação de entrada elegante */
@keyframes headerFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 1300px;
  margin: 0 auto;

  padding: 14px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 0;
}

.logo-text span {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}


/* links do menu */
.nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

/* underline animado elegante */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: #c9a75a;
  transition: width 0.35s ease;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  width: 100%;
}

/* botão contato */
.btn-header {
  background: #c9a75a;
  padding: 10px 24px;
  border-radius: 30px;
  color: #000;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 500;
  text-transform: uppercase;

  transition: all 0.3s ease;
}

.btn-header:hover {
  background: #b99645;
  transform: translateY(-2px);
}


.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  opacity: 0.75;
}

/* PROJETOS RECENTES */
.projetos-destaque {
  background: transparent;
  padding: 20px 0 80px /* topo menor */
}

.projetos-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  overflow: visible;
}

.projetos-texto h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 15px;
}

.projetos-texto p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.7;
}

.btn-portfolio {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #333;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  border-radius: 30px;
}

/* CARROSSEL */
.carrossel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 50px;
}

.carrossel::-webkit-scrollbar {
  display: none;
}

.carrossel img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
  transition: 
    transform 0.4s ease,
    box-shadow 0.4s ease,
    filter 0.4s ease;
}
.carrossel img:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  filter: brightness(1.08);
  opacity: 1;

}


/* SECTION PADRÃO */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
}

.section-header p {
  opacity: 0.7;
}

/* CATÁLOGO */
details {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

summary {
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

summary::-webkit-details-marker {
  display: none;
}

/* GALERIA */
.catalogo-item {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.catalogo-item img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s;
}

.catalogo-item img:hover {
  transform: scale(1.05);
}

/* BOTÃO WHATSAPP */
.btn-secundario {
  background: #25d366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-secundario:hover {
  background: #1ebc57;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

/* CONTATO */
.contato-info {
  text-align: center;
  line-height: 2;
}

/* FOOTER */
.footer {
  background: #0f0f0f;
  color: #aaa;
  text-align: center;
  padding: 22px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .projetos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .catalogo-item img {
    width: 48%;
    height: 120px;
  }

  .btn-secundario {
    width: 100%;
    justify-content: center;
  }

  .hero h2 {
    font-size: 32px;
  }
}

/* LIGHTBOX CSS*/


.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* Overlay clicável */
.lightbox-overlay {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.hero {
  padding: 50px 20px;
}

.hero-bg {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;

  padding: 50px 160px; /* controla altura visual */

  background-image: url("background/blackstone.PNG");
  background-size: cover;
  background-position: center;

  text-align: center;
  color: #fff;

  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  animation: heroUp 0.8s ease forwards;
}
@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.hero-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px; /* antes 40px */
  margin-bottom: 14px;
}

.hero-card p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 22px;
  opacity: 0.8;
}

.btn-hero {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 25px;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;

  background: #c9a75a;
  color: #000;
  transition: all 0.3s ease;
}


.btn-hero:hover {
  background: #b99645;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 15px;
  }

  .hero-card {
    padding: 32px 22px;
  }

  .hero-card h2 {
    font-size: 26px;
  }
}

.header.scrolled {
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ===== CATÁLOGO ===== */

details {
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

details[open] {
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* título */
summary {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

/* remove seta padrão */
summary::-webkit-details-marker {
  display: none;
}

/* seta elegante */
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "–";
}

/* conteúdo interno */
.catalogo-item {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}

/* imagens */
.catalogo-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.catalogo-item img:hover {
  transform: scale(1.03);
}

/* botão */
.btn-secundario {
  grid-column: span 2;
  justify-self: center;

  margin-top: 14px;
  padding: 10px 26px;
  background: #c9a75a;
  color: #000;
  border-radius: 25px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-secundario:hover {
  background: #b99645;
  transform: translateY(-2px);
}

#catalogo-novo {
  padding: 80px 5%;
  background: transparent;
  text-align: center;
}

#catalogo-novo h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 500;
}

.filtros {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 0;
}

.filtros li {
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
  color: #555;
  position: relative;
}

.filtros li.ativo {
  color: #000;
}

.filtros li.ativo::after {
  content: "";
  width: 100%;
  height: 2px;
  background: #c9a24d;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.galeria img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* animação de saída */
.item.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* animação de entrada */
.item.show {
  opacity: 1;
  transform: scale(1);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

#lightbox.ativo {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

#lightbox.ativo img {
  transform: scale(1);
}

/* ===== SETAS DO CARROSSEL ===== */

.carrossel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* botões laterais */
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;

  background: rgba(15, 15, 15, 0.65);
  color: #fff;
  font-size: 26px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 👇 CONTROLE REAL DE VISIBILIDADE */
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

/* quando o JS liberar */
.carrossel-btn.ativo {
  opacity: 1;
  pointer-events: auto;
}

.carrossel-btn:hover {
  background: rgba(15, 15, 15, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.carrossel-btn.left {
  left: 10px;
}

.carrossel-btn.right {
  right: 10px;
}

/* esconde em mobile */
@media (max-width: 600px) {
  .carrossel-btn {
    display: none;
  }
}
#projetos {
  scroll-margin-top: 110px;
}

#catalogo-novo {
  scroll-margin-top: 110px;
}

#contato {
  scroll-margin-top: 110px;
}

/* ===== FOOTER CONTATO ===== */

.footer-contato {
  background: #0f0f0f;
  color: #ccc;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-col a {
  color: #c9a75a;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* botões sociais */
.footer-btn {
  display: inline-block;
  margin-bottom: 12px;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-btn.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

.footer-btn.whatsapp {
  background: #25d366;
  color: #000;
}

.footer-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* rodapé inferior */
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ===========================
   RESPONSIVO – MOBILE FIRST
   =========================== */

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.carrossel-wrapper {
  overflow: hidden;
}

/* ---------- FOOTER ---------- */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- HEADER (MOBILE MELHORADO) ---------- */

@media (max-width: 768px) {

  .header {
    height: auto;
  }

  .header-content {
    padding: 14px 20px;
    gap: 14px;
  }

  .logo {
    gap: 10px;
  }

  .logo img {
    height: 48px;
  }

  .logo-text h1 {
    font-size: 17px;
    line-height: 1.1;
  }

  .logo-text span {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 12px;
    padding: 6px 0;
  }

  .btn-header {
    padding: 7px 16px;
    font-size: 11px;
    border-radius: 999px;
  }

}

/* ---------- OFFSET DO SCROLL (ANCORAS) ---------- */

@media (max-width: 768px) {
  #projetos,
  #catalogo-novo,
  #contato {
    scroll-margin-top: 90px;
  }
}

/* ---------- HERO ---------- */

@media (max-width: 600px) {

  .hero-card {
    padding: 28px 20px;
  }

  .hero-card h2 {
    font-size: 24px;
  }

  .hero-card p {
    font-size: 13px;
  }

}

/* ---------- CARROSSEL ---------- */

@media (max-width: 600px) {

  .carrossel {
    padding: 15px 20px;
    gap: 12px;
  }

  .carrossel img {
    width: 220px;
    height: 150px;
  }

}

/* ---------- CATÁLOGO ---------- */

@media (max-width: 600px) {

  summary {
    font-size: 18px;
  }

  .catalogo-item {
    grid-template-columns: 1fr;
  }

  .btn-secundario {
    width: 100%;
    text-align: center;
  }

}

/* ---------- FOOTER FINAL ---------- */

@media (max-width: 500px) {

  .footer-contato {
    padding: 50px 20px 25px;
  }

  .footer-col h4 {
    font-size: 16px;
  }

  .footer-col p {
    font-size: 13px;
  }

  .footer-btn {
    width: 100%;
    text-align: center;
  }

}

@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .logo {
    justify-content: center;
    text-align: center;
  }

  .logo img {
    height: 46px;
  }

  .logo-text h1 {
    font-size: 18px;
    line-height: 1.1;
  }

  .logo-text span {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .btn-header {
    padding: 7px 18px;
    font-size: 11px;
  }

}
