* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* Reveal Animation */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp {
  color: green;
  text-decoration: none;
  font-weight: bold;
}

.whatsapp:active {
  color: rgba(0, 71, 99, 1);
  text-decoration: none;
  font-weight: bold;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: "transparent";
  padding: 20px 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.logo {
  height: 75px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.menu a:hover {
  color: rgba(0, 71, 99, 1);
}

/* Banner */
.banner {
  background: url('./images/image2.jpg') no-repeat center center/cover;
  height: 100vh;
  filter: grayscale(65%);
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: left;
  padding-left: 10%;
  padding-top: 80px;
}

.banner-content {
  font-size: 48px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  color: white;
}

.banner-content::after {
  content: '';
  display: block;
  width: 20vw; /* ajuste o tamanho da barra aqui */
  height: 4px;  /* altura da barra */
  background-color: rgba(0, 50, 71, .7); /* verde da barra */
  margin: 10px 0 0 0; /* alinhado à esquerda */
}

.subtitulo {
  color: rgba(0, 50, 71, .7);
  font-size: 18px;
  margin-bottom: 10px;
}

.sobre-section {
  background-color: rgba(0, 50, 71, .7);
  color: #fff;
  padding: 60px 20px;
}

.sobre-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.sobre-section .text {
  flex: 1 1 500px;
  padding-right: 30px;
  font-family: 'Montserrat', sans-serif;
}

.sobre-section .text p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.1rem;
  text-align: justify;
}

.sobre-section .text strong {
  font-weight: 700;
}

.sobre-section .image {
  flex: 1 1 400px;
  text-align: center;
}

.sobre-section .image img {
  max-width: 100%;
  height: auto;
  max-height: 600px; /* ou ajuste conforme necessário */
  object-fit: cover;
  filter: grayscale(100%);
}

.servicos {
  padding: 40px 20px;
  background: url('./images/casas.jpg') no-repeat center center/cover;
  position: relative;
}


.servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 50, 71, 0.9);
}

.servicos .container {
  position: relative;
  z-index: 1;
}

.card {
  background-color: rgba(0, 71, 99, .7);
  border-radius: 12px;
  padding: 24px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px; /* Para evitar que fiquem achatados */
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2.5rem;
  color:  #E8E8E8; /* Cor dourada para criar contraste */
  margin-bottom: 15px;
}

.card p {
  font-weight: bold;
}

/* Footer */
.footer {
  background-color: rgba(0, 30, 42, 1);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-info {
  display: flex;
  gap: 50px;
  margin-top: 20px;
}

  .footer-info h4 {
    color: white;
    margin-bottom: 10px;
  }

  .footer-info p {
    color: white;
  }

.footer-selo img {
  margin-top: 20px;
  height: 50px;
}

/* Responsivo para Mobile */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    display: none;
    /* Esconde o menu normal */
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 200px;
    border: 1px solid #333;
    padding: 10px;
  }

  .menu.active {
    display: flex;
    /* Mostra quando clicar no botão */
  }

  .menu a {
    padding: 10px 0;
    text-align: center;
  }

  .banner-content h1 {
    font-size: 32px;
    /* Reduz o tamanho do título */
  }

  .subtitulo,
  .titulo {
    font-size: 16px;
  }

  .logo {
    height: 40px;
    /* Ajusta a logo */
  }

  .header {
    padding: 10px 20px;
  }

  /* Rodapé */
  .footer-info {
    flex-direction: column;
    gap: 20px;
  }
}

/* Esconde o botão de menu no desktop */
.menu-toggle {
  display: none;
}

/* Seção Portfólio */
.portfolio {
  background-color: rgba(0, 50, 71, .7);
  padding: 40px 0;
}

.portfolio-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
}

.portfolio-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr; /* Um item por linha no mobile */
  gap: 20px;
}
.servicos .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr); /* Dois itens por linha em telas maiores */
  }
  .servicos .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #001E2A;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
}

.portfolio-image {
  width: 100%;
  transition: transform 0.3s ease;
  height: 300px; /* Altura fixa */
  object-fit: cover; /* Ajusta a imagem para preencher o espaço */
  object-position: center;
}

/* Descrição sempre visível */
.portfolio-caption {
  color: #fff;
  padding: 10px;
  opacity: 1;
  /* Mantém a legenda sempre visível */
}

.portfolio-caption h3 {
  margin: 0;
  font-size: 18px;
}

.portfolio-caption p {
  margin: 5px 0 0 0;
  font-size: 14px;
}

.portfolio-image-wrapper {
  position: relative;
}

.watermark {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 90px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.watermarkMMAC {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 50px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 20px 20px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex;
  }
  
  .menu.active {
    transform: translateX(0%);
  }
  
  .menu-toggle {
    font-size: 32px;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
    display: block;
  }
  
  .menu-close {
    align-self: flex-end;
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 20px;
    color: white;
  }

  .container {
    justify-content: space-between;
  }
}

/* Organograma */
.organograma {
  padding: 4rem 0;
  background-color: rgba(0, 50, 71, .7);
}

.organograma-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-logo {
  width: 150px;
  height: auto;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.servicos-lista {
  margin-left: 32px; /* ajuste o valor conforme o recuo desejado */
  margin-top: 5px;
  margin-bottom: 16px;
}
.servicos-lista li {
  margin-bottom: 2px; /* opcional: espaço entre os itens */
}

.contato-section {
  position: relative;
  background: url('./images/casas.jpg') no-repeat center center/cover;
  padding: 60px 0;
  color: #fff;
  overflow: hidden;
}
.contato-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 50, 71, 0.9);
  z-index: 0;
}
.contato-container {
  position: relative;
  z-index: 1;
}

.contato-info {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contato-info h2 {
  color: #ffff;
  font-size: 2.2rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.contato-info h3 {
  color: #ffff;
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 1px;
}

.whatsapp-link {
  color: #549c54;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.contato-form {
  flex: 1;
  background: rgba(30,30,30,0.2);
  padding: 32px;
  border-radius: 12px;
}

.contato-form h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.contato-form p {
  margin-bottom: 24px;
  color: #e0e0e0;
}

.contato-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contato-form label {
  font-weight: 600;
  margin-bottom: 2px;
}

.contato-form input,
.contato-form textarea {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 8px;
}

.contato-form textarea {
  min-height: 80px;
  resize: vertical;
}

.contato-form button {
  background: #6fdc6f;
  color: #222;
  border: none;
  border-radius: 24px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s;
}

.contato-form button:hover {
  background: #4bb84b;
}

@media (max-width: 900px) {
  .contato-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
  }
  .contato-form, .contato-info {
    padding: 0;
  }
}