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

/* Fonte e configurações base */
body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Container geral */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
.header .container {
  width: 90%;
}

.header {
  background: #1a1a1a;
  color: #fff;
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: #9f392d;
}

/* Botão do menu hamburguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Seção Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

/* Pseudo-elemento para background com foto do escritório e blur */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/img/escritorio.jpg") no-repeat center center/cover;
  filter: blur(6px);
  transform: scale(1.1);
  z-index: 0;
}

/* Overlay escuro para garantir legibilidade */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Botão */
.btn {
  background: #9f392d;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background: #ce826f;
}

/* Seções */
.section {
  padding: 60px 0;
  text-align: center;
}

/* Sobre */
.sobre p {
  margin-bottom: 10px;
}

.sobre-texto {
  margin-top: 5px;
}

.sobre-img {
  max-width: 80%;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Ajuste de espaçamento entre seções específicas */
#sobre {
  padding-bottom: 40px;
}

#calculadora {
  padding-top: 40px;
  padding-bottom: 40px;
}

#documentos {
  padding-top: 40px;
  padding-bottom: 40px;
}

#contato {
  padding-top: 40px;
}

/* Calculadora */
.calculadora-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Resultado */
.resultado {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Seção Documentos */
.documentos .documentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas fixas em desktop */
  gap: 20px;
  margin-top: 40px;
  justify-content: center; /* Centraliza as colunas na grid */
}

@media (max-width: 900px) {
  .documentos .documentos-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
  }
}

@media (max-width: 600px) {
  .documentos .documentos-grid {
    grid-template-columns: 1fr; /* 1 coluna em mobile */
  }
}

.documento-card {
  background: #fff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.documento-card .btn {
  margin-top: auto;
}

.documento-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.documento-card p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #555;
}

/* Seção Equipe */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.equipe-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  min-height: 300px;
}

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

.equipe-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
}

.equipe-card h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.equipe-card .cargo {
  font-size: 1rem;
  font-weight: 600;
  color: #9f392d;
  margin-bottom: 10px;
}

.equipe-card .descricao {
  font-size: 0.9rem;
  color: #555;
  margin-top: auto;
}

/* Contato */
.contato a {
  color: #9f392d;
  text-decoration: none;
}

.contato a:hover {
  text-decoration: underline;
}

/* Rodapé */
.footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Portfólio Vitalis */
.portfolio-desc {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: #444;
}

.portfolio-planta {
  margin-bottom: 40px;
}

.planta-img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  display: block;
}

.portfolio-gallery {
  margin-top: 30px;
}

.gallery-main {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-render {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  background: #f9f9f9;
}

.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(26, 26, 26, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.fullscreen-btn:hover {
  background: #9f392d;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: border 0.2s, opacity 0.2s;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border: 2px solid #9f392d;
}

@media (max-width: 900px) {
  .main-render,
  .planta-img {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .gallery-thumbs {
    gap: 5px;
  }

  .thumb {
    width: 55px;
    height: 40px;
  }
}

/* Layout da seção Vitalis - duas colunas */
.portfolio-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-header-img {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vitalis-principal-img {
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.portfolio-desc {
  flex: 2 1 400px;
  min-width: 260px;
  margin: 0;
  text-align: left;
}

.portfolio-desc h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2.2rem;
}

/* Layout de duas colunas para planta e galeria de renders */
.portfolio-content-cols {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-planta,
.portfolio-gallery {
  flex: 1 1 350px;
  min-width: 280px;
  max-width: 600px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 24px 18px 28px 18px;
  margin: 0 auto;
}

.portfolio-planta h3,
.portfolio-gallery h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: #9f392d;
}

@media (max-width: 1100px) {
  .portfolio-content-cols {
    flex-direction: column;
    gap: 24px;
  }
  .portfolio-planta,
  .portfolio-gallery {
    max-width: 100%;
    min-width: 0;
    padding: 18px 8px 22px 8px;
  }
}

/* Melhoria visual para thumbs e renders */
.gallery-thumbs {
  margin-bottom: -10px;
}

.gallery-main {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Responsividade */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Exibe o botão do menu hamburguer */
  .menu-toggle {
    display: block;
  }

  /* Estilo para o menu mobile com animação */
  .nav {
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 70px;
    right: 0;
    background: #1a1a1a;
    width: 100%;
    padding: 0 20px;
    border-radius: 5px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    z-index: 10;
  }

  .nav.active {
    max-height: 300px;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
