/* ======================================================= */
/* ARQUIVO: css/style.css                                */
/* CONTEÚDO: Todo o CSS de estilos embutidos do index.html */
/* ======================================================= */

:root{
  --accent:#0066cc;
  --accent-2:#00bfa5;
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#6b7280;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,var(--bg),#ffffff);color:#0f172a;}
header{position:fixed;left:0;right:0;top:0;background:rgba(255,255,255,0.95);backdrop-filter:blur(6px);border-bottom:1px solid rgba(15,23,42,0.04);z-index:50}
.nav{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:46px;height:46px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;color:white;font-weight:800}
nav a{margin:0 8px;color:var(--muted);text-decoration:none;font-weight:600}
.cta{display:flex;gap:8px}
.btn{background:var(--accent);color:#fff;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;gap:8px;transition:0.3s;}
.btn:hover{opacity:0.85;}
.btn.secondary{background:transparent;color:var(--accent);border:2px solid rgba(0,102,204,0.12)}
section{max-width:1200px;margin:30px auto;padding:0 20px}
.services{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.service-card{background:var(--card);padding:18px;border-radius:12px;box-shadow:0 8px 24px rgba(2,6,23,0.04);transition:transform .25s ease, box-shadow .2s}
.service-card:hover{transform:translateY(-6px);box-shadow:0 16px 44px rgba(2,6,23,0.08)}
.service-card img{width:100%;border-radius:10px;margin-bottom:10px}

/* GALERIA E FILTRO */
.gallery-wide{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:20px}
.gallery-wide img{width:100%;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.2);transition: transform 0.3s ease, opacity 0.4s ease;display:block;opacity:1;}
.gallery-wide img:hover{transform: scale(1.05);}
#filtros{margin-bottom:16px;text-align:center;}
#filtros button{margin:0 5px;padding:8px 14px;border:none;border-radius:6px;background:#007BFF;color:white;cursor:pointer;transition:0.3s;}
#filtros button:hover{background:#0056b3;}
#filtros button.active{background:#0056b3;}

/* Regras para o Filtro da Galeria */
.gallery-wide .foto {
    transition: transform 0.3s ease, opacity 0.4s ease, display 0.4s step-end;
}
.gallery-wide .foto.hide {
    opacity: 0 !important;
    display: none !important;
}

/* Regras Lightbox customizado */
.gallery-wide a {
    display: inline-block;
    margin: 10px;
}
.gallery-wide img {
    max-width: 200px; /* Ajuste para o tamanho desejado */
    height: auto;
    border-radius: 6px;
}
#close-lightbox {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    line-height: 44px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10000;
}

.floating-whatsapp{position:fixed;bottom:20px;right:20px;background:#25D366;color:#fff;padding:12px 18px;border-radius:30px;font-weight:bold;box-shadow:0 4px 14px rgba(0,0,0,0.2);z-index:999;text-decoration:none}
.floating-whatsapp:hover{background:#20b954}
.contact{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.form{background:var(--card);padding:16px;border-radius:12px;box-shadow:0 8px 24px rgba(2,6,23,0.04);flex:1;min-width:280px}
.form input,.form textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #e6eef8;margin-bottom:10px}
.pill{background:rgba(0,102,204,0.06);padding:8px 12px;border-radius:999px;color:var(--accent);font-weight:700}
footer{padding:30px 20px;background:#0f172a;color:#fff;margin-top:40px}
.footer-grid{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.sobre-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:20px}

/* Carrossel Full-Width */
.carrossel-container-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}
.slides-full { position: relative; }
.slide-full {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide-full.active {
  opacity: 1;
  position: relative;
}
.slide-full img {
 width: 100%;
 height: auto;
 object-fit: contain;
 display: block;
 max-height: 500px;
 margin: 0 auto;
}
.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  max-width: 700px;
  background: rgba(0,0,0,0.35);
  padding: 20px;
  border-radius: 12px;
}
.slide-text h2 { font-size: 32px; margin-bottom: 12px; }
.slide-text p { font-size: 18px; margin-bottom: 16px; }
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,102,204,0.6);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
  transition: 0.3s;
}
.nav-button:hover { background: rgba(0,102,204,0.9); }
.nav-button.prev { left: 10px; }
.nav-button.next { right: 10px; }
.indicadores-full {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}
.dot-full {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.dot-full.active { background: #0066cc; }

/* FAQ */
#faq { max-width:800px; margin:40px auto; padding:0 20px; }
.faq-item { margin-bottom:12px; border-radius:8px; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,0.05); }
.faq-question {
  width:100%;
  text-align:left;
  padding:12px 16px;
  background:var(--accent);
  color:#fff;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition: background 0.3s;
}
.faq-question:hover { background: #005bb5; }
.faq-answer {
  max-height:0;
  overflow:hidden;
  background:var(--card);
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding:0 16px;
}
.faq-answer p { margin:12px 0; color:var(--muted); }
.arrow { display:inline-block; transition: transform 0.3s ease; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-item.open .faq-answer { padding:12px 16px; }

/* Ícones de pagamento */
.payment-icons img {
  width: 40px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* ======================================================= */
/* REGRAS PARA GARANTIR FECHAMENTO DO LIGHTBOX (CRÍTICO)   */
/* ======================================================= */

/* 1. Garante que o fundo escuro (Overlay) aceite cliques e fique no topo */
/* O Lightbox (2.11.x) já tem um z-index alto, mas esta regra assegura que não haja sobreposição. */
.lightboxOverlay {
    pointer-events: auto !important; /* Permite cliques na camada escura */
    z-index: 9998 !important; /* Deve ser alto, mas ligeiramente menor que o botão customizado */
}

/* 2. Regra para garantir que o botão nativo do Lightbox não está escondido */
/* A função fecharLightbox() tenta clicar neste elemento ou no overlay. */
/* Se este botão nativo estiver escondido, o JS pode falhar. */
/* Certifique-se de que NÃO HÁ NENHUMA REGRA no seu CSS escondendo este elemento. */
.lightbox .lb-close {
    /* Não adicione 'display: none;' aqui! */
    /* Deixe-o visível ou esconda apenas se você tiver certeza de que não afeta a funcionalidade. */
    /* Para segurança máxima, podemos garantir que ele esteja clicável: */
    cursor: pointer !important;
}

/* ======================================================= */
/* REGRAS RESPONSIVAS - MOBILE FIRST                      */
/* ======================================================= */
/* ============================================= */
/* Esconde o botão no desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--accent);
}

/* Ajustes Mobile */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
  }

  /* Menu fechado por padrão */
  nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 80px;
    right: 10px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 200px;
    z-index: 999;
  }

  nav a {
    display: block;
    padding: 12px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
  }

  /* Quando clicar no hambúrguer */
  nav.open {
    display: flex;
  }

  /* Botão aparece no mobile */
  .menu-toggle {
    display: block;
  }

  /* Grid vira 1 coluna */
  .services,
  .sobre-grid {
    grid-template-columns: 1fr;
  }

  /* Galeria em 2 colunas */
  .gallery-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cards ocupam 100% */
  .service-card,
  .faq-item,
  .sobre-grid > div {
    width: 100%;
    margin-bottom: 16px;
  }

  /* Contato em coluna */
  .contact {
    flex-direction: column;
    align-items: stretch;
  }

  .form,
  .contact > div {
    width: 100%;
  }

  /* Ajusta textos do carrossel */
  .slide-text {
    padding: 14px;
    font-size: 14px;
    max-width: 90%;
  }

  .slide-text h2 { font-size: 22px; }
  .slide-text p { font-size: 14px; }

  /* Rodapé centralizado */
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}