/* =========== RESET & BASE =========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #FFFFFF 0%, #89ABE3FF 100%);
  /* O gradiente vai de branco para o azul serenidade */
  color: #89ABE3FF; /* Azul Serenidade para textos */
  overflow-x: hidden;
}

/* ========= SPLASH / APRESENTAÇÃO ========= */
#splash {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 2s ease-in-out both;
  text-align: center;
}

#main-logo {
  width: 220px;
  height: auto;
  animation: float 3s ease-in-out infinite;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

.tagline {
  font-size: 1.5em;
  margin-bottom: 40px;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.gardens {
  display: flex;
  gap: 80px;
  margin-bottom: 40px;
  justify-content: center;
}

.garden-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.garden-item img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.15));
}

.garden-item:hover {
  transform: scale(1.1);
}

/* Botão Documentação */
#doc-btn {
  background-color: #FFFFFF;
  color: #89ABE3FF;
  border: 2px solid #89ABE3FF;
  font-size: 1em;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
#doc-btn:hover {
  background-color: #89ABE3FF;
  color: #FFFFFF;
}

/* ANIMAÇÕES SPLASH */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* =========== MAPA FICTÍCIO =========== */
#mapa {
  padding: 60px 20px;
  text-align: center;
}

#mapa h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 0 0 5px rgba(137,171,227,0.8);
}

#mapa p {
  margin-bottom: 30px;
  font-size: 1em;
  color: #333;
}

.garden-map {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

/* Cada "map-section" representa um jardim com seus túmulos */
.map-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 20px;
  width: 80%;
  max-width: 600px;
}

.map-section h3 {
  margin-bottom: 20px;
  color: #89ABE3FF;
}

.tomb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.tomb {
  background-color: #89ABE3FF;
  color: #FFFFFF;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* =========== SECTION DOCUMENTAÇÃO =========== */
#docs {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  max-height: 0; /* inicia colapsado */
  transition: max-height 1s ease-in-out, padding 0.5s;
  padding: 0 20px;
  position: relative;
}

#docs.expanded {
  max-height: 5000px; /* suficiente para exibir todo o conteúdo */
  padding: 40px 20px;
}

.docs-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #333; /* Texto interno fica em cinza escuro para boa leitura */
}

.docs-content h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #89ABE3FF;
}

.docs-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.2em;
  color: #89ABE3FF;
  text-decoration: underline;
}

.docs-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.docs-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.docs-content li {
  margin-bottom: 5px;
}

/* ========= RESPONSIVIDADE ========= */
@media (max-width: 768px) {
  .gardens {
    flex-direction: column;
    gap: 40px;
  }
  #main-logo {
    width: 180px;
  }
  .tagline {
    font-size: 1.2em;
    margin-bottom: 30px;
  }
  .garden-item img {
    width: 110px;
  }
  .tomb-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1em;
    margin-bottom: 20px;
  }
  #doc-btn {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .map-section {
    width: 90%;
  }
}
