/* Reset e fontes básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('background.jpg') no-repeat center center fixed;
  background-attachment: fixed;
  background-size: cover;
  background-color: #000;
}

/* ESTRUTURA PRINCIPAL CORRIGIDA */
.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px 20px;
  gap: 30px;
}

/* Camada escura sobre o fundo */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* CONTEÚDO PRINCIPAL - DEFINIÇÃO ÚNICA E LIMPA */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 400px;
  width: 90%;
  margin: 0 auto;
}

/* Logo da empresa */
.logo {
  width: 260px;
  margin-bottom: 10px;
}

/* Slogan */ 
.descricao {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Site */
.site {
  color: #ffffff;
  font-size: 14px;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 10px;
}

/* Ícones de contato */
.icones-contato {
  margin-bottom: 20px;
}
.icones-contato a {
  color: white;
  font-size: 20px;
  margin: 0 10px;
}

/* Botões */
.botoes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background-color: white;
  color: black;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s;
  width: 100%;
  max-width: 100%;
}

.botao:hover {
  background-color: #f0f0f0;
}

/* Ícone à esquerda */
.icone {
  font-size: 24px;
  color: black;
}

/* Texto do botão */
.texto-botao {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.texto-botao strong {
  font-size: 16px;
  color: black;
  line-height: 1.2;
}

.texto-botao span {
  font-size: 13px;
  color: #444;
}

/* Seta à direita */
.seta {
  font-size: 18px;
  color: #aaa;
}

/* ============================================
   SOLUÇÃO DEFINITIVA PARA VÍDEO - ALINHAMENTO CORRETO
   O problema era o padding horizontal do .content
   ============================================ */

/* Wrapper externo - Controla margens e garante largura total */
.video-wrapper {
  /* O .content tem max-width: 400px e width: 90% */
  /* O .botoes tem padding: 14px 20px; */
  /* O .video-wrapper precisa ter a mesma largura dos botões */
  width: 100%;
  max-width: 100%;
  margin: 40px 0; /* Margens aumentadas */
  
  /* CORREÇÃO: Adicionar o mesmo padding horizontal dos botões ao wrapper do vídeo */
  /* Isso garante que o vídeo tenha a mesma largura visual dos botões */
  padding: 0 20px; 
  box-sizing: border-box;
}

/* Container interno - Padding-top trick para aspect ratio */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  border-radius: 12px; /* MESMO border-radius dos botões */
  background-color: #000;
}

/* Iframe - Preenche 100% do container */
.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* BOTÃO DA ÁREA DO ARQUITETO */
.botao-destaque {
  display: block;
  width: 100%;
  height: 160px;
  margin-top: 20px;
  background-image: url('baground-btn.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 3px solid #ffffff;
  transform: scale(1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.botao-destaque:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(255,255,255, 0.3);
}

.destaque-overlay {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 18px;
  font-weight: bold;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 10px;
}

.destaque-overlay i {
  font-size: 20px;
}

/* SEÇÕES INDEPENDENTES */
.cases-section,
.depoimentos-section,
.google-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.cases-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.titulo-cases {
  font-size: 30px;
  color: white;
  text-align: center;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.titulo-cases::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ffffff;
  margin: 8px auto 0;
  border-radius: 3px;
}

.case-destaque {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: 0;
}

.case-destaque img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.case-destaque h4 {
  font-size: 18px;
  color: #222;
  margin-bottom: 8px;
}

.case-destaque p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.case-destaque a {
  display: inline-block;
  background: #000000;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.case-destaque a:hover {
  background-color: #0076A5;
}

/* SEÇÃO DE DEPOIMENTOS */
.depoimentos-section {
  text-align: center;
  padding: 0;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  width: 100%;
}

.carousel-item {
  display: none;
  transition: opacity 0.5s ease;
  width: 100%;
  max-width: 560px;
}

.carousel-item.active {
  display: block;
}

.carousel-item iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
  max-width: 560px;
}

.carousel-control {
  background: transparent;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #007bff;
  z-index: 10;
  flex-shrink: 0;
}

.carousel-dots {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots span {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.carousel-dots .active {
  background-color: #007bff;
}

/* SEÇÃO GOOGLE */
.google-section {
  text-align: center;
  padding: 0;
}

/* RESPONSIVIDADE GERAL */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 40px 15px 15px;
    gap: 25px;
  }
  
  .content,
  .cases-section,
  .depoimentos-section,
  .google-section {
    max-width: 100%;
    width: 95%;
  }
  
  .logo {
    width: 280px;
  }
  
  .titulo-cases {
    font-size: 26px;
  }
  
  .carousel {
    gap: 15px;
  }
  
  .carousel-control {
    font-size: 35px;
  }
  
  .carousel-item iframe {
    max-width: 100%;
    height: auto;
  }
  
  /* VÍDEO INSTITUCIONAL EM TABLETS */
  .video-wrapper {
    margin: 35px 0;
    padding: 0 15px; /* Ajuste de padding para tablets */
  }
}

/* RESPONSIVIDADE PARA MOBILE */
@media (max-width: 480px) {
  .main-wrapper {
    padding: 50px 10px 15px;
    gap: 20px;
  }
  
  .content,
  .cases-section,
  .depoimentos-section,
  .google-section {
    max-width: 100%;
    width: 98%;
  }
  
  .logo {
    width: 280px;
    margin-bottom: 15px;
  }
  
  .titulo-cases {
    font-size: 22px;
  }
  
  .carousel {
    gap: 10px;
    flex-direction: column;
  }
  
  .carousel-control {
    font-size: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  .carousel-item {
    position: relative;
    padding: 0 50px;
  }
  
  .carousel-item iframe {
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
  }
  
  .carousel-dots {
    margin-top: 10px;
    gap: 6px;
  }
  
  .carousel-dots span {
    width: 10px;
    height: 10px;
  }
  
  /* VÍDEO INSTITUCIONAL NO MOBILE */
  .video-wrapper {
    margin: 30px 0;
    padding: 0 10px; /* Ajuste de padding para mobile */
  }
}

/* RESPONSIVIDADE PARA TELAS MUITO PEQUENAS */
@media (max-width: 360px) {
  .main-wrapper {
    padding: 40px 8px 15px;
  }
  
  .logo {
    width: 260px;
  }
  
  .titulo-cases {
    font-size: 20px;
  }
  
  .carousel-item {
    padding: 0 45px;
  }
  
  .carousel-control {
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
  
  .carousel-control.prev {
    left: 5px;
  }
  
  .carousel-control.next {
    right: 5px;
  }
  
  .carousel-item iframe {
    min-height: 180px;
  }
  
  .video-wrapper {
    margin: 25px 0;
    padding: 0 8px; /* Ajuste de padding para telas muito pequenas */
  }
}
