/* FAQ Page Styles */

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 80px 0 100px;
  text-align: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ Navigation — sticky below site header */
.faq-nav-section {
  background: #fefdfb;
  padding: 24px 0;
  border-bottom: 1px solid #e2e0dc;
  position: sticky;
  top: 64px; /* site header height on desktop */
  z-index: 100;
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.faq-nav-link {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 24px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-nav-link:hover {
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.1) 0%, rgba(123, 63, 157, 0.1) 100%);
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
}

.faq-nav-link.active {
  background: linear-gradient(135deg, var(--color-primary-pink) 0%, var(--color-primary-purple) 100%);
  border-color: transparent;
  color: #ffffff;
}

/* FAQ Content */
.faq-content-section {
  padding: 64px 0;
  background: #f8f7f5;
}

.faq-category {
  margin-bottom: 64px;
  scroll-margin-top: 140px; /* header + sticky faq nav */
}

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

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e0dc;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.faq-question {
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary-purple);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid #f0efed;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
  font-size: 1rem;
}

.faq-answer a {
  color: var(--color-primary-purple);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--color-primary-pink);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: #fefdfb;
  text-align: center;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 12px;
  padding: 32px 48px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-method {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.contact-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-purple);
  text-decoration: none;
  margin-bottom: 8px;
}

.contact-value:hover {
  color: var(--color-primary-pink);
}

.contact-note {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .faq-nav {
    gap: 8px;
  }

  .faq-nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  /* Sticky nav offset: site header ~58px on 768px */
  .faq-nav-section {
    top: 58px;
    padding: 12px 0;
  }

  /* Wrap tabs — all visible, no hidden overflow */
  .faq-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-nav-link {
    font-size: 0.8125rem;
    padding: 7px 14px;
  }

  .faq-content-section {
    padding: 48px 0;
  }

  .faq-category {
    margin-bottom: 48px;
    scroll-margin-top: 120px;
  }

  .category-title {
    font-size: 1.25rem;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px 16px;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .contact-options {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
    padding: 24px 32px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 48px 0 64px;
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .faq-nav-section {
    top: 54px;
  }

  .faq-category {
    margin-bottom: 40px;
  }

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

  .faq-question {
    padding: 14px 16px;
    font-size: 0.9375rem;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }

  .faq-answer p {
    font-size: 0.9375rem;
  }
}
