/* ============================================================
   LP SEGMENTOS — Indústria & Construtora
   Componentes adicionais às LPs B2B. Herda tokens de site.css
   (mesma identidade visual v2: dark + accent #FFCD29 + Inter).
   Aditivo: não altera nenhuma classe usada nas páginas atuais.
   ============================================================ */

/* ---- Hero: linha dos 3 pilares + grupo de CTAs ---- */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-bottom: 2rem;
}
.hero-pillar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.hero-pillar .emo { font-size: 1.35rem; line-height: 1; }
.hero-pillar small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .hero-pillars { justify-content: center; gap: 1rem 1.5rem; }
}

/* ---- Grid de produtos com FOTO (proporção 70/30) ---- */
.products-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.product-photo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.product-photo:hover { transform: translateY(-5px); border-color: var(--accent); }
.product-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #111;
}
.product-photo-body { padding: 1.35rem 1.4rem 1.6rem; }
.product-photo-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
}
.product-photo-body h3 i { color: var(--accent); }
.product-photo-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.62; }
@media (max-width: 768px) { .products-photo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .products-photo-grid { grid-template-columns: 1fr; } }

/* ---- 3 Pilares (Agilidade / Qualidade / Confiança) ---- */
#pilares { background: #0d0d0d; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.75rem 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
.pillar-emoji { font-size: 2.9rem; line-height: 1; display: block; margin-bottom: 1.25rem; }
.pillar-card h3 { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 0.85rem; }
.pillar-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.72; }
@media (max-width: 768px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ---- Galeria de Projetos / Obras + Lightbox ---- */
#galeria { background: var(--bg-primary); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cat {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
}
.gallery-zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.glightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.glightbox.open { display: flex; }
.glightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,0.7); }
.glightbox button {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.glightbox button:hover { background: var(--accent); color: #000; }
.glightbox .gl-close { top: 1.5rem; right: 1.5rem; }
.glightbox .gl-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.glightbox .gl-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.glightbox .gl-cap { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: #ccc; font-size: 0.85rem; padding: 0 1rem; }

/* ---- Fabricação / Engenharia (foto escurecida + checklist) ---- */
.fabricacao { position: relative; background: #0a0a0a; overflow: hidden; }
.fabricacao-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.fabricacao-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.96) 30%, rgba(10,10,10,0.74) 100%);
  z-index: 1;
}
.fabricacao .container { position: relative; z-index: 2; }
.fab-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2.25rem;
  margin-top: 2.25rem;
  max-width: 780px;
}
.fab-checklist li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.55; }
.fab-checklist li i { color: var(--accent); margin-top: 0.18rem; flex-shrink: 0; }
.fab-checklist li strong { color: var(--white); font-weight: 700; }
@media (max-width: 600px) { .fab-checklist { grid-template-columns: 1fr; } }

/* ---- Carrossel infinito de logos de clientes (monocromático) ---- */
.clientes-block { text-align: center; }
.clientes-stat { font-size: 1.05rem; color: var(--text-secondary); margin-top: 0.5rem; }
.clientes-stat b { color: var(--accent); }
.artflex-clientes-grid {
  overflow: hidden;
  margin-top: 2.5rem;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.artflex-clientes-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: artflex-clientes-scroll 50s linear infinite;
}
.artflex-clientes-grid:hover .artflex-clientes-track { animation-play-state: paused; }
@keyframes artflex-clientes-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 24px)); } }
.artflex-clientes-track img {
  height: 60px; width: auto; max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}
.artflex-clientes-track img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 768px) { .artflex-clientes-track { gap: 32px; } .artflex-clientes-track img { height: 46px; max-width: 118px; } }

/* ---- CTA Final (Giant Button) ---- */
.cta-final { position: relative; background: #0a0a0a; overflow: hidden; text-align: center; border-top: 3px solid var(--accent); }
.cta-final-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; opacity: 0.28; }
.cta-final-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,10,10,0.55), rgba(10,10,10,0.97)); z-index: 1; }
.cta-final .container { position: relative; z-index: 2; }
.btn-giant {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: #000;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1.4rem 3rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(255,205,41,0.25);
}
.btn-giant:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 14px 44px rgba(255,205,41,0.42); }
.cta-final-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.cta-final-note i { color: var(--accent); margin-right: 0.4rem; }
@media (max-width: 600px) { .btn-giant { font-size: 1.05rem; padding: 1.15rem 1.75rem; width: 100%; justify-content: center; } }

/* ---- Catálogo (download) ---- */
.catalogo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.catalogo-cta i { color: var(--accent); }
.catalogo-cta:hover { color: var(--white); }
