@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Poppins:wght@400;500;600&family=League+Spartan:wght@600;700&display=swap");

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

a,
button {
  transition: all 0.3s ease;
}

/* ============ HERO ============ */
.faq-hero {
  position: relative;
  height: 480px;
  background: url("/assets/images/faq-hero-img.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 7rem 2rem 0 2rem;
  border-radius: 12px;
  height: 80vh;
}

.faq-hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
}

.faq-hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.faq-hero h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
}

.faq-hero p {
  max-width: 800px;
  font-size: 25px;
  color: #eee;
  margin-bottom: 25px;
}

.hero-btn {
  background: #e10600;
  color: #fff;
  padding: 20px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.hero-btn:hover {
  background-color: #b40f09;
  box-shadow: 1px 1px 10px white;
}

/* ============ FAQ WHITE SECTION ============ */
.faq-section {
  background: #fff;
  padding: 40px 20px;
}

/* FILTERS */
.faq-filters {
  max-width: 800px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-filter-btn {
  background: #e0dddd;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  color: #444;
  transition: all 0.25s ease;
  font-family: "Montserrat", sans-serif;
}

.faq-filter-btn:hover {
  background: #cfcfcf;
  transform: translateY(-2px);
}

.faq-filter-btn.active {
  background: #e10600;
  color: #fff;
  box-shadow: 0 1px 10px rgba(225, 6, 0, 0.55);
}

/* FAQ LIST */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #f7f5f5;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 18px 30px;
  transition: all 0.25s ease;
  box-shadow: 1px 1px 0px #e0e0e0;
  cursor: pointer;
}

.faq-item:hover {
  background: #e0e0e0;
}

.faq-question {
  width: 100%;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h5 {
  font-size: 19px;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.faq-category {
  font-size: 15px;
  color: #777;
  justify-self: start;
  margin: 0;
  margin-top: 6px;
}

.faq-icon {
  color: #e10600;
  font-size: 18px;
  transition: transform 0.3s;
}

.faq-answers {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border-top: 1px solid #ccc;
  color: #444;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  transition: max-height 0.45s ease, opacity 0.25s ease, padding 0.35s ease;
}

.faq-item.open .faq-answers {
  max-height: 500px; /* safe large value */
  opacity: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  transition: transform 0.35s ease;
}

.faq-see-more {
  padding: 10px 20px;
}

.faq-see-more a {
  background: red;
  color: #fff;
  text-align: center;
  padding: 15px 40px;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 700 !important;
  font-size: 16px;
}

.faq-see-more a:hover {
  transform: scale(1.05);
}
/* ============ BOTTOM CTA ============ */
.faq-bottom-cta {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.faq-bottom-cta h2 {
  color: #ccc;
  font-size: 40px;
  margin-bottom: 10px;
}

.faq-bottom-cta p {
  color: #ccc;
  margin-bottom: 25px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #e10600;
  color: #fff;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-email {
  border: 1px solid #444;
  color: #fff;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #b40f09;
  box-shadow: 1px 1px 5px #e10600;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.btn-email:hover {
  box-shadow: 1px 1px 5px white;
  transition: all 0.3s ease;
  transform: scale(1.05);
}

/* Disable theme smooth scroll safely */
#smooth-wrapper {
  position: static !important;
  height: auto !important;
  overflow: visible !important;
}

#smooth-content {
  transform: translate3d(0, 0, 0) !important;
  will-change: auto !important;
}

/* ============ FAQ MOBILE FIX (≤640px) ============ */
@media (max-width: 640px) {
  /* HERO */
  .faq-hero {
    height: auto;
    min-height: 70vh;
    margin: 4.5rem 0 0 0;
    border-radius: 0;
    padding: 10px 10px;
    background-position: 40%;
  }

  .faq-hero-content {
    margin-top: 2rem;
  }

  .faq-section {
    margin: 0px;
  }

  .faq-heading h2 {
    font-size: 20px;
  }

  .faq-subtitle {
    font-size: 12px;
  }

  .faq-hero-overlay {
    border-radius: 0;
  }

  .faq-hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .faq-hero p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .hero-btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  /* FILTER BUTTONS */
  .faq-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  .faq-filter-btn {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 5px;
  }

  .faq-item {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .faq-question {
    gap: 10px;
    align-items: flex-start;
  }

  .faq-question h5 {
    font-size: 15px;
    line-height: 1.3;
    text-align: start;
  }

  .faq-category {
    font-size: 12px;
  }

  .faq-icon {
    font-size: 16px;
    margin-top: 4px;
  }

  .faq-answers {
    padding-top: 8px;
  }

  .faq-answers p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* BOTTOM CTA */
  .faq-bottom-cta {
    padding: 50px 16px;
  }

  .faq-bottom-cta h2 {
    font-size: 26px;
  }

  .faq-bottom-cta p {
    font-size: 14px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .cta-actions a {
    width: fit-content;
    padding: 20px 25px;
    font-weight: normal;
  }
}
