/* ========================================================
   ALFALUX — HOME CSS
   Estilos exclusivos para a página inicial (Home)
   ======================================================== */

/* ── Hero Video ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-video {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(52px, 4vw, 110px);
  font-weight: 800;
  line-height: 0.99;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Effra', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 16px 48px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
  background: #00b5c1;
  border-color: #00b5c1;
  color: #fff;
}

/* Hero Controls & Scroll */
.hero-mute-btn {
  position: absolute;
  bottom: 44px;
  right: 48px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s;
}

.hero-mute-btn:hover {
  background: rgba(139, 195, 74, 0.35);
  border-color: #00b5c1;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Effra', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ── Mosaico de Produtos (Shortcode) ── */
#sectionMosaico {
  width: 100%;
  display: block;
}

.mosaico-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.mos-cell {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  text-decoration: none;
  transform: translateZ(0); /* Camada de hardware para bordas limpas na animação */
}

.mos-img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transform: scale(1);
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 0;
}

.mos-cell:hover .mos-img {
  transform: scale(1.08);
}

.mos-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 6, 2, 0.8) 0%, rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease !important;
  pointer-events: none;
  z-index: 1;
}

.mos-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 18px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease !important;
  pointer-events: none;
  z-index: 2;
}

.mos-label-top {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #00b5c1;
  margin: 0 0 4px;
}

.mos-label-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.mos-cell:hover .mos-overlay,
.mos-cell:hover .mos-label {
  opacity: 1;
}

.mos-cell:hover .mos-label {
  transform: translateY(0);
}


/* ── Projetos em Destaque (Shortcode Obras) ── */
.section-projetos {
  background: #F5F5F5;
  padding: 100px 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  color: #1A1A1A;
  line-height: 1;
  margin: 0;
}

.section-link {
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0e0500;
  text-decoration: none;
  border-bottom: 1px solid #0e0500;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.section-link:hover {
  color: #00b5c1;
  border-color: #00b5c1;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.projeto-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transform: translateZ(0); /* Camada de hardware */
}

.projeto-card img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transform: scale(1);
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 0;
}

.projeto-card:hover img {
  transform: scale(1.08);
}

.projeto-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.projeto-card-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  pointer-events: none;
  z-index: 2;
}

.projeto-tag {
  display: inline-block;
  font-family: 'Effra', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 5, 0, 0.9);
  padding: 5px 12px;
  margin-bottom: 10px;
}

.projeto-name {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}


/* ── Responsivo Geral da Home ── */

/* Tablet */
@media (max-width: 1024px) {
  .section-projetos {
    padding: 80px 40px;
  }
  
  .projetos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    min-height: 100dvh;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-mute-btn {
    bottom: 20px;
    right: 16px;
  }
  
  .hero-scroll-hint {
    display: none;
  }

  /* Mosaico de Produtos */
  .mosaico-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Projetos em Destaque */
  .section-projetos {
    padding: 56px 20px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .projetos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projeto-name {
    font-size: 14px;
  }

  /* Manifesto Institucional (Resets para blocos montados no Elementor) */
  #sectionManifesto {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  
  #manifestoImg {
    aspect-ratio: 16/9;
  }
  
  #sectionManifesto > div:last-child {
    padding: 48px 20px !important;
  }
  
  #sectionManifesto > div:last-child > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  
  #sectionManifesto > div:last-child > div[style*="font-size:40px"] {
    font-size: 28px !important;
  }
}