/* =============================================
   RESET E BASE
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

.main-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* =============================================
   HEADER & NAV
   ============================================= */
header {
  background-color: #3f3f3e;
  color: #fff;
  padding: 15px 0;
  position: relative;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #e52629;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
}

.logo-container {
  z-index: 1001;
  display: flex;
  align-items: center;
  height: 70px;
  margin-right: auto;
}

.logo {
  height: 80px;
  transition: all 0.2s ease;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover {
  color: #e52629 !important;
  background-color: transparent !important;
}
.menu-toggle:focus {
  outline: none;
  color: #e52629;
}
.menu-toggle::-moz-focus-inner {
  border: 0;
}
.menu-toggle .menu-icon,
.menu-toggle .close-icon {
  display: inline-block;
  transition: opacity 0.2s ease;
}
.menu-toggle .close-icon {
  display: none;
  color: #e52629;
}

.nav-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}
.nav-content.active + .menu-toggle,
.nav-content.active ~ .menu-toggle {
  color: #e52629;
}
.nav-content.active + .menu-toggle .menu-icon,
.nav-content.active ~ .menu-toggle .menu-icon {
  display: none;
}
.nav-content.active + .menu-toggle .close-icon,
.nav-content.active ~ .menu-toggle .close-icon {
  display: inline-block;
}

.menu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-grow: 1;
}
.menu-items li {
  margin: 0 15px;
}
.menu-items a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding: 5px 0;
  font-size: 16px;
  height: auto;
  min-width: 90px;
}
.menu-items a:hover {
  color: #e52629;
  border-bottom: 2px solid #e52629;
}

.social-icons {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.social-icons a {
  margin: 0 10px;
  transition: transform 0.2s ease;
}
.social-icons a:hover {
  transform: translateY(-3px);
}
.social-icons img {
  height: 30px;
  transition: transform 0.2s ease;
}

/* =============================================
   VÍDEO DE FUNDO
   ============================================= */
.video-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 500px;
  overflow: hidden;
}
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid #e52629;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.video-container.loaded .loading-spinner {
  display: none;
}

/* =============================================
   SEÇÕES DE CONTEÚDO
   ============================================= */
section {
  width: 100%;
  padding: 40px 20px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}
section h1 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}
section h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e52629;
}
section p {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
  word-wrap: break-word;
}

/* =============================================
   SEÇÕES ESPECÍFICAS
   ============================================= */
#quem-somos,
#onde-estamos {
  background-color: #3f3f3e;
  color: #fff;
}
#servicos,
#instagram,
#orcamento {
  background-color: #f4f4f4;
  color: #333;
}
#quem-somos {
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 40px 0px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
#quem-somos .content,
#onde-estamos .content,
#por-que-nos-escolher .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
#quem-somos .content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#quem-somos p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
}
#quem-somos .botao-vermelho {
  margin: 0 auto;
}
.quem-somos-bg-image,
.onde-estamos-bg-image,
.porque-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg-image.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}
#onde-estamos {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 20px 0;
}
#por-que-nos-escolher {
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  background-color: #3f3f3e;
  color: #fff;
}
#por-que-nos-escolher h1 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}
#por-que-nos-escolher h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e52629;
}
#por-que-nos-escolher .destaque {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.diferencial {
  background-color: #3f3f3e;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #e52629;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diferencial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.diferencial h2 {
  color: #fff;
  font-size: 1.3em;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}
.diferencial h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #e52629;
}
.diferencial p {
  font-size: 1em;
  line-height: 1.6;
  color: #fff;
}

/* =============================================
   SERVIÇOS - CARDS COM IMAGENS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.card-image {
  height: 180px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.service-card:hover .card-image img {
  transform: scale(1.05);
}
.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-card h2 {
  color: #3f3f3e;
  font-size: 1.3em;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}
.service-card h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #e52629;
}
.service-card p {
  color: #666;
  font-size: 1em;
  line-height: 1.5;
  text-align: left;
  margin-top: auto;
}

.impermeabilizacao-img {
  object-position: center 75%;
}
.recuperacao-img {
  object-position: 0 55% !important;
}
.inspecao-img {
  object-position: center bottom;
}

/* =============================================
   BOTÕES E WHATSAPP FLOAT
   ============================================= */
.orcamento-button,
.botao-vermelho {
  background: #e52629;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.orcamento-button {
  margin-left: 20px;
}
.orcamento-button:hover,
.botao-vermelho:hover {
  background: #c41e21;
  transform: scale(1.05);
}

.botao-vermelho {
  background: #e52629;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  transition: background-color 0.2s, transform 0.2s;
  display: inline-block;
  margin-top: 10px;
}
.botao-vermelho:hover {
  background: #c41e21;
  transform: scale(1.05);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.2s ease;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}
.whatsapp-float img {
  width: 40px;
  height: 40px;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
button,
#orcamento button {
  background-color: #25d366;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  width: auto;
  margin: 20px auto 0;
  white-space: nowrap;
}
button:hover,
#orcamento button:hover {
  background-color: #128c7e;
}
#orcamento {
  text-align: center;
}
#orcamento p {
  text-align: center;
  margin: 0 auto;
}
#orcamento a {
  display: inline-block;
  text-decoration: none;
  margin: 20px auto 0;
  width: auto;
}

/* =============================================
   INSTAGRAM
   ============================================= */
.instagram {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.instagram-feed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
}
.instagram-feed img {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  max-width: 120px;
  height: auto;
}

/* =============================================
   MAPA
   ============================================= */
.mapa-estatico {
  width: 100%;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  margin: 10px auto;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background-color: #3f3f3e;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  border-top: 2px solid #e52629;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
}
.footer-section {
  margin-bottom: 20px;
}
.footer-logo {
  height: 50px;
  margin-bottom: 15px;
}
.footer-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2em;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  width: 100%;
}
.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #e52629;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section li {
  margin-bottom: 8px;
}
.footer-section a,
.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 3px;
}
.footer-section a:hover,
.footer-section ul li a:hover {
  color: #e52629;
}
.footer-section ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e52629;
  transition: width 0.2s ease;
}
.footer-section ul li a:hover::after {
  width: 100%;
}
.footer-social-icons {
  display: flex !important;
  justify-content: center;
  gap: 0px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-social-icons a {
  transition: transform 0.2s ease;
  display: inline-block;
}
.footer-social-icons a:hover {
  transform: translateY(-3px);
}
.footer-social-icons img {
  transition: transform 0.2s ease;
}
.footer-social-icons a:hover img {
  transform: scale(1.1);
}
.contact-info img {
  width: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 30px;
  font-size: 0.9em;
  color: #999;
}

/* =============================================
     RESPONSIVIDADE
     ============================================= */

/* 1200px para baixo */
@media (max-width: 1200px) {
  .menu-items li {
    margin: 0 12px;
  }

  .social-icons {
    margin-left: 20px;
  }
}

/* 1150px para baixo - Ajustes específicos */
@media (max-width: 1150px) {
  nav {
    padding: 0 5%;
    height: 90px;
    display: flex;
    align-items: center;
  }

  .nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .menu-items {
    display: flex;
    margin-right: 15px;
  }

  .menu-items li {
    margin: 0 12px;
  }

  .menu-items li:last-child {
    margin-right: 15px;
  }

  .social-icons {
    margin-left: 0;
    margin-right: 20px;
    gap: 12px;
    padding: 15px 0 15px 20px;
    display: flex;
    align-items: center;
  }

  .social-icons a {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .social-icons img {
    height: 28px;
    width: auto;
    transition: transform 0.3s ease;
  }

  .logo {
    height: 70px;
  }

  .logo-container {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: auto;
  }
}

/* 1053px para baixo - Ativa menu hamburguer */
@media (max-width: 1053px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(63, 63, 62, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
  }

  .nav-content.active {
    transform: translateY(0);
  }

  .menu-items,
  .social-icons {
    display: none;
  }

  .nav-content.active .menu-items,
  .nav-content.active .social-icons {
    display: flex;
  }

  .menu-items {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 25px;
  }

  .menu-items li {
    margin: 15px 0;
  }

  .menu-items a {
    font-size: 1.2em;
    padding: 10px 20px;
  }

  .social-icons {
    flex-direction: row;
    margin-top: 20px;
  }

  .logo {
    height: 60px;
  }

  .logo-container {
    width: 100%;
    justify-content: center;
  }
}

/* 992px para baixo */
@media (max-width: 992px) {
  .video-container {
    height: 500px;
  }

  .menu-items li {
    margin: 0 10px;
  }

  .social-icons {
    margin-left: 15px;
  }

  .social-icons a {
    margin: 0 6px;
  }
}

/* 900px para baixo */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(63, 63, 62, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
  }

  .menu-items,
  .social-icons {
    display: none;
  }

  .nav-content.active {
    transform: translateY(0);
  }

  .nav-content.active .menu-items,
  .nav-content.active .social-icons {
    display: flex;
  }

  .menu-items {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    flex-grow: 0;
  }

  .menu-items li {
    margin: 15px 0;
  }

  .menu-items a {
    font-size: 1.2em;
    padding: 10px 20px;
  }

  .social-icons {
    flex-direction: row;
    margin-top: 20px;
    margin-left: 0;
  }

  .social-icons a {
    margin: 0 10px;
  }

  .social-icons img {
    height: 25px;
  }

  .logo-container {
    justify-content: center;
    width: 100%;
  }

  .logo {
    height: 70px;
    margin: 0 auto;
  }
}

/* 871px-831px - Ajuste específico */
@media (max-width: 871px) and (min-width: 831px) {
  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
  }

  .social-icons img {
    height: 30px;
    width: auto;
  }

  .social-icons a {
    margin: 0 5px;
  }
}

/* 768px para baixo */
@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .main-container {
    padding-top: 70px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    padding: 0 15px;
  }

  .nav-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(63, 63, 62, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
    overflow: hidden;
  }

  .nav-content.active {
    transform: translateY(0);
  }

  .menu-items {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    flex-grow: 0;
  }

  .menu-items li {
    margin: 15px 0;
  }

  .menu-items a {
    font-size: 1.2em;
    padding: 10px 20px;
  }

  .social-icons {
    margin-left: 0;
  }

  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .logo {
    height: 80px;
    position: relative;
    left: 0;
    transform: none;
    margin: 0 auto;
  }

  section {
    padding: 30px 15px !important;
  }

  h1 {
    font-size: 1.8em !important;
  }

  p,
  li {
    font-size: 1em !important;
  }

  .video-container {
    height: 400px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-image {
    height: 150px;
  }

  .service-card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .service-card:hover .card-image img {
    transform: none;
  }

  #por-que-nos-escolher {
    padding: 40px 0;
  }

  #por-que-nos-escolher h1 {
    font-size: 2em;
  }

  .instagram {
    flex-direction: column;
    gap: 25px;
  }

  .engenheiro-foto {
    flex: 0 0 auto;
    width: 70%;
    max-width: 300px;
  }

  #mapa-estatico {
    z-index: 1;
    position: relative;
  }
}

/* 576px para baixo */
@media (max-width: 576px) {
  .logo {
    height: 70px;
  }

  .social-icons img {
    height: 25px;
  }

  .video-container {
    height: 300px;
  }

  #mapa-estatico {
    height: 300px;
  }
}

/* 480px para baixo */
@media (max-width: 480px) {
  .card-image {
    height: 120px;
  }

  #por-que-nos-escolher {
    padding: 30px 0;
  }

  .engenheiro-foto {
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* 1024x600 - Ajuste específico para tablets */
@media (width: 1024px) and (height: 600px) {
  header {
    padding-left: 0 !important;
  }

  .logo-container {
    margin-left: -25px !important;
    transform: translateX(-5px);
  }

  nav {
    justify-content: flex-start;
    padding-right: 3%;
  }

  .menu-items li:first-child {
    margin-left: 15px;
  }
}
