/* 
 * Confluência dos Mundos - Estilo da Landing Page
 * Tema: Fantasia Medieval
 */

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(to bottom, var(--preto-cosmico), var(--azul-profundo));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--bege-pergaminho);
  padding: 0 var(--espacamento-padrao);
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.particle {
  position: absolute;
  background-color: var(--dourado-antigo);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--dourado-antigo);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--dourado-antigo);
  text-shadow: 0 0 20px rgba(201, 165, 92, 0.5);
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--fonte-subtitulos);
  font-style: italic;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-buttons .btn {
  min-width: 180px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.hero-scroll-indicator span {
  font-family: var(--fonte-subtitulos);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  position: relative;
}

.scroll-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--dourado-antigo);
  border-right: 2px solid var(--dourado-antigo);
  transform: rotate(45deg);
  margin: -10px auto 0;
  animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(0, 0);
  }
}

/* ===== INTRO SECTION ===== */
.intro {
  padding: 6rem 0;
  background-color: var(--bege-pergaminho);
  background-image: url('../assets/images/pergaminho-bg.jpg');
  background-size: cover;
  position: relative;
}

.intro:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: url('../assets/images/border-top.png') repeat-x;
  background-size: auto 100%;
  transform: translateY(-100%);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.intro h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.intro-text {
  margin-bottom: 2rem;
  text-align: left;
}

/* ===== FEATURED SECTIONS ===== */
.featured-section {
  padding: 6rem 0;
  position: relative;
}

.blog-featured {
  background: linear-gradient(rgba(10, 14, 23, 0.8), rgba(26, 43, 71, 0.8)), url('../assets/images/blog-featured-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bege-pergaminho);
}

.showroom-featured {
  background-color: var(--bege-pergaminho);
  background-image: url('../assets/images/pergaminho-bg.jpg');
  background-size: cover;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.blog-featured .section-title h2 {
  color: var(--dourado-antigo);
}

.blog-featured .section-title h2:after {
  background: var(--dourado-antigo);
}

.section-title p {
  font-family: var(--fonte-subtitulos);
  font-style: italic;
  font-size: 1.2rem;
}

.featured-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  min-height: 300px;
  position: relative;
}

.featured-post-image,
.featured-project-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--borda-arredondada);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-post-image img,
.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-image:hover img,
.featured-project-image:hover img {
  transform: scale(1.05);
}

.featured-post-content,
.featured-project-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  display: inline-block;
  font-family: var(--fonte-destaque);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dourado-antigo);
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-featured .featured-title {
  color: var(--bege-pergaminho);
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.featured-date,
.featured-category {
  display: inline-block;
}

.blog-featured .featured-category {
  background-color: var(--roxo-mistico);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.showroom-featured .featured-category {
  background-color: var(--azul-brilhante);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.featured-summary,
.featured-description {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.featured-link {
  font-weight: 700;
  align-self: flex-start;
}

.blog-featured .featured-link {
  color: var(--dourado-antigo);
}

.blog-featured .featured-link:after {
  background-color: var(--dourado-antigo);
}

.showroom-featured .featured-link {
  color: var(--azul-brilhante);
}

.showroom-featured .featured-link:after {
  background-color: var(--azul-brilhante);
}

.section-footer {
  text-align: center;
}

/* ===== SECTIONS OVERVIEW ===== */
.sections-overview {
  padding: 6rem 0;
  background: linear-gradient(rgba(10, 14, 23, 0.8), rgba(26, 43, 71, 0.8)), url('../assets/images/sections-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--bege-pergaminho);
}

.sections-overview .section-title h2 {
  color: var(--dourado-antigo);
}

.sections-overview .section-title h2:after {
  background: var(--dourado-antigo);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.section-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--borda-arredondada);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(201, 165, 92, 0.3);
}

.section-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--dourado-antigo);
}

.section-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(201, 165, 92, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.section-card:hover .section-icon {
  background-color: rgba(201, 165, 92, 0.4);
  transform: scale(1.1);
}

.section-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.section-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dourado-antigo);
}

.section-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-link {
  color: var(--dourado-antigo);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--dourado-antigo);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.section-link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ===== CALL TO ACTION ===== */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(rgba(93, 58, 109, 0.8), rgba(26, 43, 71, 0.8)), url('../assets/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--bege-pergaminho);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dourado-antigo);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-family: var(--fonte-subtitulos);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(201, 165, 92, 0.3);
  border-radius: 50%;
  border-top-color: var(--dourado-antigo);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .featured-content {
    flex-direction: column;
  }
  
  .featured-post-image,
  .featured-project-image {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .sections-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .intro,
  .featured-section,
  .sections-overview,
  .cta-section {
    padding: 4rem 0;
  }
}

