/* =========================================
   FAQS PAGE STYLES
   ========================================= */

/* HERO */
.faq-hero {
  position: relative;
  background-image: url('textured-bg.webp');
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.57);
  z-index: 1;
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem 5rem;
}

.faq-hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: hsl(44, 14%, 32%);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.faq-hero-heading em {
  font-style: italic;
  font-weight: 300;
}

.faq-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.faq-hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* FAQ ACCORDION SECTION */
.faq-accordion-section {
  background-color: hsl(44, 14%, 32%);
  padding: 4rem 2rem 6rem;
}

.faq-accordion-inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid rgba(240, 235, 227, 0.25);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(240, 235, 227, 0.25);
}

.faq-trigger-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  text-align: left;
}

.faq-trigger span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 300;
  color: #f0ebe3;
  line-height: 1.4;
}

.faq-icon {
  color: #f0ebe3;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
}

.faq-item.open .faq-body {
  max-height: 600px;
  padding: 0 0 1.4rem;
}

.faq-body p {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(240, 235, 227, 0.82);
  line-height: 1.85;
  margin: 0 0 0.8rem 0;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-list {
  margin: 0.5rem 0 0.8rem 1.2rem;
  padding: 0;
  list-style: disc;
}

.faq-list li {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(240, 235, 227, 0.82);
  line-height: 1.85;
  margin-bottom: 0.4rem;
}

.faq-list li strong {
  color: rgba(240, 235, 227, 0.95);
  font-weight: 500;
}

/* CTA SECTION */
.faq-cta-section {
  position: relative;
  background-image: url('toothbrush-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-cta-wave-top {
  width: 100%;
  line-height: 0;
  margin-bottom: -2px;
}

.faq-cta-wave-top svg {
  display: block;
  width: 100%;
  height: 80px;
}

.faq-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 2rem 3rem;
  text-align: center;
  z-index: 1;
}

.faq-cta-monogram {
  width: 180px;
  height: auto;
  display: block;
}

.faq-cta-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: hsl(23, 32%, 35%);
  margin: 0;
  letter-spacing: 0.01em;
}

.faq-cta-btn {
  display: inline-block;
  background: hsl(44, 14%, 32%);
  color: #f0ebe3;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  margin-top: 0.5rem;
  transition: background 0.25s ease;
}

.faq-cta-btn:hover {
  background: hsl(44, 14%, 22%);
}

.faq-cta-wave-bottom {
  width: 100%;
  line-height: 0;
  margin-top: -2px;
}

.faq-cta-wave-bottom svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .faq-hero {
    min-height: 0;
  }

  .faq-hero-content {
    padding: 1.5rem 1.5rem 4rem;
  }

  .faq-hero-heading {
    font-size: 2.2rem;
  }

  .faq-accordion-section {
    padding: 3rem 1.5rem 4rem;
  }

  .faq-trigger span {
    font-size: 1.45rem;
  }

  .faq-cta-wave-top,
  .faq-cta-wave-bottom {
    display: none;
  }

  .faq-cta-section {
    border-top: 2px solid hsl(44, 14%, 32%);
    border-bottom: 2px solid hsl(44, 14%, 32%);
    background-position: right center;
  }
}
