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

body {
  font-family: 'Lora', serif;
  background: radial-gradient(circle at center, #f9f7ff 0%, #d8c9e8 100%);
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #1a1a2e;
}

h1 {
  font-size: 2.8rem;
  margin: 1rem 0;
}

h2 {
  font-size: 2.2rem;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}

p, cite {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: #444;
}

cite {
  font-style: italic;
  display: block;
  margin-top: 1rem;
  color: #777;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #e6f2ff, #d8c9e8, #f0e6f7);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo-container {
  margin-bottom: 1rem;
}

.main-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-mystic {
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: none;
  background: linear-gradient(135deg, #D4AF37, #B19CD9);
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-mystic:hover {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.1);
}

/* ===== RITUAL SECTION (PARALLAX) ===== */
.ritual-section {
  padding: 5rem 10%;
  background: linear-gradient(180deg, #f9f7ff 0%, #d8c9e8 100%);
  position: relative;
  overflow-x: hidden;
}

.ritual-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.ritual-text {
  flex: 1;
  min-width: 300px;
  font-family: 'Lora', serif;
  line-height: 1.8;
}

.ritual-text h2 {
  font-size: 2.2rem;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
}

.ritual-text p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.ritual-video-container {
  flex: 1;
  min-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  aspect-ratio: 16 / 9;
}

.ritual-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

/* Parallax effect on scroll */
.ritual-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/night-sky.jpg') no-repeat center center/cover;
  opacity: 0.1;
  z-index: -1;
  will-change: transform;
}

.ritual-section:hover {
  background-position: 50% 50%;
  background-size: 110%;
}

/* Animation for the video on hover */
.ritual-video-container:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .ritual-container {
    flex-direction: column;
    gap: 2rem;
  }

  .ritual-text {
    order: 1;
  }

  .ritual-video-container {
    order: 2;
  }
}

/* ===== BLEND SECTION ===== */
.blend-section {
  display: flex;
  align-items: center;
  padding: 5rem 10%;
  gap: 5rem;
  background: #fff;
  overflow: visible; /* ✅ CORREÇÃO: permitir animação de entrada */
}

.blend-image img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 500px;
}

.blend-text {
  flex: 1;
  min-width: 300px;
  opacity: 1; /* ✅ CORREÇÃO: garantir que o container esteja visível */
  transform: none; /* ✅ CORREÇÃO: evitar transformações que bloqueiam o observer */
}

.blend-text h2 {
  color: #1a1a2e;
  margin-bottom: 2rem;
}

.ingredient {
  margin-top: 1.8rem;
  padding-left: 1.5rem;
  border-left: 3px solid #D4AF37;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s ease;
}

.ingredient.visible {
  opacity: 1;
  transform: translateX(0);
}

.ingredient strong {
  display: block;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* ===== GALLERY CAROUSEL ===== */
.gallery {
  padding: 5rem 10%;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 3rem;
  color: #1a1a2e;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background-color: #f9f7ff;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.8);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(212, 175, 55, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #D4AF37;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 5rem 10%;
  gap: 2rem;
  background: #f5f0ff;
  text-align: center;
}

.benefit {
  padding: 2rem;
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

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

.icon {
  font-size: 2.5rem;
  color: #D4AF37;
  margin-bottom: 1rem;
}

.benefit h3 {
  color: #1a1a2e;
  margin-bottom: 0.8rem;
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  text-align: center;
  padding: 4rem 10%;
  background: #f9f0ff;
  border-left: 5px solid #D4AF37;
  margin: 0;
  font-style: italic;
  position: relative;
}

.testimonial::before {
  content: "\"";
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.1);
  position: absolute;
  top: -20px;
  left: 10%;
  font-family: Georgia, serif;
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: url('../images/night-sky.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  background-attachment: fixed;
}

.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-final p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.btn-large {
  padding: 1.3rem 3rem;
  background: linear-gradient(135deg, #D4AF37, #B19CD9);
  border: none;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.4s ease;
}

.btn-large:hover {
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.8), 0 10px 30px rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
}

/* ===== FOOTER ===== */
footer {
  background: #16213e;
  color: #f0e6f7;
  text-align: center;
  padding: 4rem 2rem 2rem;
  font-family: 'Lora', serif;
}

.footer-poem {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #D4AF37;
  font-style: italic;
  margin: 1.8rem 0 1rem;
  letter-spacing: 0.6px;
  opacity: 0.95;       /* ✅ Opacidade ligeiramente maior — não tão translúcida */
  text-align: center;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(212, 175, 55, 0.3); /* ✅ Brilho sutil */
  line-height: 1.4;    /* ✅ Melhora a legibilidade com espaçamento entre linhas */
  animation: fadeInPoem 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInPoem {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.95; transform: translateY(0); }
}

footer .logo-small {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #D4AF37;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

footer .social-icons img {
  width: 40px;
  height: 40px;
  filter: brightness(0.8) grayscale(0.3);
  transition: all 0.4s ease;
}

footer .social-icons img:hover {
  filter: brightness(1.2) grayscale(0);
  transform: translateY(-3px);
}

footer p {
  font-size: 1rem;
  color: #cdd6e0;
  margin: 0.5rem 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

footer .hidden-signature {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  text-align: center;
  color: #D4AF37; /* ✅ Dourado antigo — visível e místico */
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  opacity: 0.8; /* ✅ Opacidade suave, mas legível */
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 1.5rem;
}

footer .signature {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #D4AF37;
  opacity: 0.8;
}

footer .signature:hover {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ===== PARTICLES ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blend-section {
    flex-direction: column;
    padding: 3rem 5%;
    gap: 2rem;
  }

  .blend-image img {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .btn-mystic,
  .btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1.1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .main-logo {
    max-width: 150px;
  }

  .carousel-container {
    max-width: 100%;
    margin: 0 10px;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .music-control {
    width: 45px;
    height: 45px;
    font-size: 16px;
    top: 15px;
    right: 15px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ❤️ Pequeno coração pulsando */
.pulse-heart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: #D4AF37;
  border-radius: 50%;
  opacity: 0.1;
  animation: pulse 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

/* ===== POPUP DE CONVERSÃO ===== */
.conversion-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(216, 201, 232, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  max-width: 400px;
  margin: 20px;
}

.popup-content p {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #444;
}

.popup-content .btn-mystic {
  margin-top: 20px;
  background: linear-gradient(135deg, #D4AF37, #B19CD9);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== CONTADOR ===== */
.counter {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: #666;
  background: #f9f7ff;
}

/* ===== MUSIC CONTROL ===== */
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #B19CD9);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-control:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.music-control i {
  margin-left: 2px;
}

/* ===== QR CODE ===== */
.qr-code-container {
  margin-top: 3rem;
  text-align: center;
  padding: 0 1rem;
}

.qr-wrapper {
  display: inline-block;
  background: rgba(216, 201, 232, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.qr-code {
  width: 80px;
  height: 80px;
  opacity: 0.9;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.qr-code:hover {
  opacity: 1;
  transform: scale(1.05);
}

.qr-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #D4AF37;
  font-style: italic;
  letter-spacing: 0.2px;
  font-family: 'Lora', serif;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.qr-text:hover {
  opacity: 1;
}
