/* FAQ Page Styles
 * Styles moved from style.css (lines ~3975–~4319).
 * Template: page-faq.php
 */

.faq-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 16px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Section 1: Hero */
.faq-hero {
  text-align: center;
  padding: 40px 16px;
  margin-bottom: 40px;
}

.faq-hero-content h1 {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 700;
  color: rgb(var(--color-accent));
}

.faq-hero-subtitle {
  font-size: 16px;
  margin: 0;
  color: rgb(var(--color-text-muted));
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section 2: Search */
.faq-search {
  margin-bottom: 48px;
}

.faq-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.faq-search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid rgb(var(--color-border-light));
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-search-input:focus {
  outline: none;
  border-color: rgb(var(--color-primary));
  box-shadow: 0 0 0 3px rgba(20, 112, 120, 0.1);
}

.faq-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  color: rgb(var(--color-text-muted));
  transition: color 0.3s ease;
}

.faq-search-btn:hover {
  color: rgb(var(--color-primary));
}

.faq-search-results {
  margin-top: 16px;
  padding: 16px;
  background: rgb(var(--color-bg-section));
  border-radius: 8px;
  text-align: center;
  color: rgb(var(--color-text-muted));
}

.faq-search-results p {
  margin: 0;
}

.faq-search-results a {
  color: rgb(var(--color-primary));
  text-decoration: none;
}

.faq-search-results a:hover {
  text-decoration: underline;
}

/* Section 3: FAQ Groups */
.faq-groups {
  margin-bottom: 60px;
}

.faq-group {
  margin-bottom: 48px;
}

.faq-group-title {
  font-size: 24px;
  margin: 0 0 24px;
  color: rgb(var(--color-accent));
  position: relative;
  padding-bottom: 12px;
}

.faq-group-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: rgb(var(--color-accent));
  border-radius: 2px;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgb(var(--color-white));
  border: 1px solid rgb(var(--color-border-light));
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: rgb(var(--shadow-card-sm));
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgb(var(--color-bg-hover));
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgb(var(--color-text-body));
  flex: 1;
  padding-right: 16px;
}

.faq-toggle {
  font-size: 24px;
  color: rgb(var(--color-primary));
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
}

.faq-answer p {
  margin: 0;
  color: rgb(var(--color-text-body));
  line-height: 1.7;
  font-size: 15px;
}

/* CTA Inline */
.faq-cta-inline {
  text-align: center;
  padding: 40px 24px;
  background: rgb(var(--color-bg-section));
  border-radius: 16px;
  margin: 48px 0;
}

.faq-cta-inline h3 {
  font-size: 22px;
  margin: 0 0 24px;
  color: rgb(var(--color-primary));
}

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

.faq-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faq-btn-primary {
  background: rgb(var(--color-primary));
  color: rgb(var(--color-white));
}

.faq-btn-primary:hover {
  background: #0f5a61;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 112, 120, 0.3);
}

.faq-btn-secondary {
  background: transparent;
  color: rgb(var(--color-primary));
  border-color: rgb(var(--color-primary));
}

.faq-btn-secondary:hover {
  background: rgb(var(--color-primary));
  color: rgb(var(--color-white));
  transform: translateY(-2px);
}

/* Section 4: CTA Final */
.faq-cta {
  text-align: center;
  padding: 60px 16px;
  background: linear-gradient(135deg, rgba(var(--color-hero-grad-start), 0.75) 0%, rgba(var(--color-hero-grad-end), 0.75) 100%),
    var(--astra-hero-secondary) center/cover no-repeat;
  color: rgb(var(--color-white));
  border-radius: 16px;
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.faq-cta .faq-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.faq-cta h2 {
  font-size: 28px;
  margin: 0 0 32px;
  font-weight: 600;
  color: rgb(var(--color-accent));
}

.faq-cta .faq-btn-primary {
  background: rgb(var(--color-white));
  color: rgb(var(--color-primary));
}

.faq-cta .faq-btn-primary:hover {
  background: rgb(var(--color-bg-hover));
  color: rgb(var(--color-primary));
  transform: translateY(-2px);
  box-shadow: rgb(var(--shadow-btn-hover));
}

.faq-cta .faq-btn-secondary {
  background: transparent;
  color: rgb(var(--color-white));
  border-color: rgb(var(--color-white));
}

.faq-cta .faq-btn-secondary:hover {
  background: rgb(var(--color-white));
  color: rgb(var(--color-primary));
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-hero-content h1 {
    font-size: 24px;
  }

  .faq-hero-subtitle {
    font-size: 14px;
  }

  .faq-group-title {
    font-size: 20px;
  }

  .faq-question h3 {
    font-size: 16px;
  }

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

  .faq-cta-buttons {
    flex-direction: column;
  }

  .faq-btn {
    width: 100%;
    text-align: center;
  }
}