/* =================== BASE =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
}
h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #e60000;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #000000;
}

/* =================== FAQ CONTAINER =================== */
section.faq-category {
  margin-bottom: 4rem;
  background-color: #f5f5f5;
  border-left: 8px solid #e60000;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease-in-out;
}
section.faq-category:hover {
  transform: scale(1.01);
}
.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

/* =================== DETALHES DO FAQ =================== */
details {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #e60000;
  padding: 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}
details:hover {
  background: #fdfdfd;
}
summary {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e60000;
  position: relative;
  padding-right: 2rem;
  cursor: pointer;
}
summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.6rem;
  color: #333;
  transition: transform 0.3s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
  color: #e60000;
}
details p, details ul {
  margin-top: 1rem;
  color: #333;
  animation: fadeIn 0.5s ease-in-out forwards;
  opacity: 0;
}
details[open] p,
details[open] ul {
  opacity: 1;
}
ul {
  list-style: disc;
  padding-left: 2rem;
}

/* =================== TOGGLE DARK/LIGHT =================== */
.toggle-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #e60000;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}
.toggle-theme:hover {
  background: #b80000;
}
body.light-mode {
  background: #ffffff;
  color: #333;
}
body.light-mode .faq-category {
  background: #f9f9f9;
}
body.light-mode details {
  background: #ffffff;
  color: #333;
}

/* =================== WHATSAPP CTA =================== */
.cta-float {
  position: fixed;
  bottom: 2rem;
  right: 1.2rem;
  background-color: #25D366;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.cta-float:hover {
  background-color: #1ebe5d;
}

/* =================== SCROLL TO TOP =================== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 1.5rem;
  z-index: 999;
  background-color: #ffffff;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#scrollTopBtn:hover {
  background-color: #b30000;
}

/* =================== ANIMAÇÕES =================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================== RESPONSIVO =================== */
@media screen and (max-width: 768px) {
  body {
    padding: 1rem;
  }
  section.faq-category {
    padding: 1rem;
  }
  summary {
    font-size: 1rem;
  }
}
