@charset "utf-8";

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Menu hamburguer para mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
    position: relative;
  z-index: 120;
}

/*estilo para a imagem*/
.casa {
  margin: 0 auto;
  width: 100%;
  height: auto;
  min-height: 450px;
  background-color: #020305;
  position: relative;
  overflow: hidden;
}

.guindaste_intro {
  margin: 0;
  width: 100%;
  height: 75vh;
  min-height: 450px;
  display: block;
  z-index: 0;
  position: relative;
  background-size: cover;
  object-fit: cover;
  filter: brightness(19%);
}

.casa_h1 {
  text-align: center;
  font-size: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  margin: auto;
  width: 90%;
  line-height: 1.3;
  z-index: 2;
}

/* Estilos para o conteúdo principal */
main {
  height: auto;
  text-align: center;
  background-color: var(--cinza-claro);
}

.titulo {
  text-align: center;
  margin-bottom: 40px;
}

.titulo h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--preto);
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.titulo h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--amarelo);
}

.titulo-2 {
  text-align: center;
  margin-bottom: 40px;
}

.titulo-2 h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--preto);
  position: relative;
  padding-top: 50px;
  padding-bottom: 15px;
  font-weight: 600;
}

.titulo-2 h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--amarelo);
}

.guindastes-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.guindastes-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.guindaste-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.guindaste-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.guindaste-card:hover img {
  filter: brightness(0.9);
}

.guindaste-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.guindaste-card-video {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.guindaste-card-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.guindastes-section .container video {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  border-radius: 6px;
  background: #000;
  object-fit: contain;
}

.videos-horizontal .guindaste-card-video video {
  height: 100%;
  object-fit: cover;
}

.videos-horizontal{
  display: grid;
  object-fit: cover;
  gap: 25px;
}

.videos-container {
  gap: 25px !important;
}

/* ===== MEDIA QUERIES ===== */

/* Tablets */
@media screen and (min-width: 768px) {
  .conteudo {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  
  .texto {
    order: 1;
    text-align: left;
  }
  
  .texto h2 {
    text-align: left;
  }
  
  .imagem {
    order: 2;
  }
  
  .quadratos-card {
    flex: 1 1 250px;
    max-width: 300px;
  }
   
  .casa_p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
  }
}

/* Desktop */
@media screen and (min-width: 1024px) {
  header {
    padding: 0 40px;
  }
  
  .nav-links {
    gap: 25px;
  }
  
  nav a {
    font-size: 1.1rem;
    padding: 10px 15px;
  }
  
  .conteudo {
    gap: 60px;
  }
  
  .quadratos_container {
    margin: 75px 40px;
  }
  
  .lista-esquerda,
  .lista-direita {
    padding: 80px 40px;
  }

  .lightbox-content {
    max-width: 70vw;
    max-height: 75vh;
    padding: 20px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 100%;
  }

  .lightbox-close {
    top: -40px;
    right: 0;
    font-size: 32px;
  }

}

/* Mobile */
@media (max-width: 600px) {
  .guindaste-card img {
    height: 250px;
    object-fit: cover;
  }

  .guindaste-card p {
    font-size: 14px;
  }

    .lightbox-content {
    max-width: 95%;
    max-height: 85vh;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 85vh;
  }

  .lightbox-close {
    top: -35px;
    font-size: 28px;
  }

}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    padding: 20px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 100%;
  }

  .lightbox-close {
    top: -40px;
    font-size: 32px;
  }
}

@media screen and (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  header {
    height: auto;
    padding: 15px 20px;
  }
  
  .casa {
    height: 400px;
    min-height: 400px;
  }
  
  .guindaste_intro {
    height: 400px;
    min-height: 400px;
  }
  
  .nootbook {
    height: 400px;
  }
  
  .casa_h1 {
    top: 50%;
    font-size: 2.5rem;
    text-align: center;
  }
  
  .casa_p {
    top: 55%;
    font-size: 0.9rem;
  }
  
  .servicos_titulo h2 {
    margin: 30px 15px;
  }
  
  .quadratos_container {
    margin: 30px 15px;
  }
  
  .sobrenos {
    padding: 40px 0;
    margin: 40px 0 0 0;
  }
  
  .texto {
    padding: 10px;
  }
  
  .lista-esquerda,
  .lista-direita,
  .lista-meio {
    padding: 30px 15px;
  }
  
  footer {
    min-height: 400px;
  }
  
  .guindastes-section .container {
    grid-template-columns: 1fr;
  }
  
  .videos-container {
    grid-template-columns: 1fr !important;
  }
  
  .videos-horizontal {
    grid-template-columns: 1fr;
  }
}

/* Telas muito pequenas - FOCO EM 420px */
@media screen and (max-width: 480px) {
  .casa {
    height: 350px;
    min-height: 350px;
  }
  
  .guindaste_intro {
    height: 350px;
    min-height: 350px;
  }
  
  .casa_h1 {
    top: 50%;
    font-size: 2rem;
    text-align: center;
    width: 90%;
  }
  
  .casa_p {
    top: 50%;
    font-size: 0.8rem;
  }
  
  .quadratos-card {
    margin: 5px;
    padding: 15px 10px;
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .lista-esquerda,
  .lista-direita,
  .lista-meio {
    font-size: 0.85rem;
    padding: 20px 10px;
  }
  
  .guindastes-section {
    padding: 30px 15px;
  }
  
  .guindastes-section .container {
    gap: 20px;
  }
  
  .guindaste-card img {
    height: 220px;
  }
  
  .titulo h2,
  .titulo-2 h2 {
    font-size: 1.5rem;
  }
  
  .guindastes-section .container video {
    max-height: 300px;
  }

  .lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    padding: 0 10px;
  }

  .lightbox img {
    max-width: calc(100vw - 20px);
    max-height: 80vh;
  }

  .lightbox-close {
    top: -30px;
    right: 5px;
    font-size: 24px;
  }

}

/* Versão flutuante para mobile */
.whatsapp-float {
  position: fixed;
  width: 66px;
  height: 66px;
  bottom: 44px;
  right: 44px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-img {
  width: 40px;
  height: 40px;
}

/* checkbox controlador (escondido visualmente) */
.menu-toggle-checkbox {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Menu hamburguer para mobile (agora é label) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  position: relative;
  z-index: 120;
}


.menu-toggle-checkbox {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* linhas do hamburguer */
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #000;
  display: block;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}


/* quando o checkbox estiver marcado: abrir painel + overlay e transformar icon */
.menu-toggle-checkbox:checked ~ .mobile-panel {
  transform: translateX(0);
}

.menu-toggle-checkbox:checked ~ .overlay {
  opacity: 1;
  visibility: visible;
}

/* transformar hamburger em X */
.menu-toggle-checkbox:checked ~ header .menu-toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle-checkbox:checked ~ header .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.menu-toggle-checkbox:checked ~ header .menu-toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* garantir que overlay seja clicável e fique atrás do botão (z-index) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 95;
  cursor: pointer;
}

/* painel já tinha transform translateX(100%) por padrão */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: -6px 0 20px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 100;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-logo {
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

.mobile-logo img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.mobile-panel a {
  padding: 15px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: var(--preto);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.mobile-panel a:hover {
  background-color: #f9f9f9;
  color: var(--amarelo);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}


.mobile-contato {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

.mobile-email {
  padding: 12px 10px;
  text-decoration: none;
  color: var(--preto);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  text-align: left;
}

.mobile-email:hover {
  background-color: #f9f9f9;
  color: var(--amarelo);
  padding-left: 15px;
}

@media screen and (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links { display: none; }
}

/* responsivo: mostrar botão apenas em telas pequenas */
@media screen and (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links { display: none; }
}

/* esconder painel/overlay em telas grandes (mantém nav desktop) */
@media (min-width: 768px) {
  .overlay,
  .mobile-panel {
    display: none;
  }
  .nav-links {
    display: flex !important;
  }
}