/**
 * faq.css – FAQ page only (Meander Himalaya)
 * Scoped to .page-faq to avoid conflicts with style.css and content-pages.css.
 * Load after style.css, responsive-global.css, and content-pages.css.
 */

/* ============================================
   FAQ Hero
   ============================================ */
.page-faq .detail-hero.faq-hero,
.page-faq .faq-hero {
  margin-top: 70px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 35vh;
}

/* ============================================
   FAQ Section container
   ============================================ */
.page-faq .faq-section {
  background: var(--page-bg);
  padding: 4rem 0 5rem;
}

/* ============================================
   FAQ Intro text
   ============================================ */
.page-faq .faq-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-faq .faq-intro a,
.page-faq .faq-intro p a {
  color: #D7A84B;
  text-decoration: none;
  border-bottom: 1px solid rgba(215, 168, 75, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-intro a:hover,
.page-faq .faq-intro p a:hover {
  color: #e0c078;
  border-bottom-color: #e0c078;
}

/* ============================================
   FAQ List
   ============================================ */
.page-faq .faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================================
   FAQ Item (card) – closed / open states
   ============================================ */
.page-faq .faq-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(197, 160, 89, 0.08) 100%);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-item:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  border-color: rgba(197, 160, 89, 0.35);
}

.page-faq .faq-item.open {
  border-color: #D7A84B;
  box-shadow: 0 8px 28px rgba(215, 168, 75, 0.25);
}

/* ============================================
   FAQ Question (button)
   ============================================ */
.page-faq .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-faq .faq-question:hover {
  background: rgba(197, 160, 89, 0.1);
  color: #fff;
}

.page-faq .faq-question:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.page-faq .faq-question span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-faq .faq-question span i:first-child {
  color: #D7A84B;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Chevron icon – rotates when open (JS adds .open to .faq-item) */
.page-faq .faq-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

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

/* ============================================
   FAQ Answer – visibility by [hidden]
   ============================================ */
.page-faq .faq-section .faq-answer {
  max-height: none;
  overflow: visible;
  border-top: 1px solid rgba(215, 168, 75, 0.3);
}

.page-faq .faq-answer[hidden] {
  display: none !important;
}

.page-faq .faq-section .faq-answer:not([hidden]) {
  display: block !important;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  max-height: none;
  background: linear-gradient(180deg, rgba(26, 29, 33, 0.95) 0%, rgba(15, 17, 19, 0.98) 100%);
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Answer text – dark panel, light text, gold links */
.page-faq .faq-answer,
.page-faq .faq-answer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2dccf;
}

.page-faq .faq-answer .faq-answer-content {
  margin: 0;
  padding-left: 0;
  color: #e2dccf;
}

.page-faq .faq-answer strong {
  color: #e8e2d4;
  font-weight: 600;
}

.page-faq .faq-answer a {
  color: #D7A84B;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(215, 168, 75, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-answer a:hover {
  color: #e0c078;
}

/* ============================================
   Book Adventure CTA (bottom section)
   ============================================ */
.page-faq .book-adventure-section {
  background: var(--page-bg);
  padding: 4rem 0;
}

.page-faq .book-adventure-section h2 {
  color: #fff;
  border-bottom-color: var(--accent-color);
}

.page-faq .book-adventure-section p,
.page-faq .book-adventure-section .book-adventure-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin: 1.5rem 0 2.5rem;
}

.page-faq .book-adventure-section .book-adventure-btn {
  background: var(--accent-color);
  color: var(--dark-color);
}

.page-faq .book-adventure-section .book-adventure-btn:hover {
  background: #e0c078;
  color: var(--dark-color);
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.35);
}

/* ============================================
   Responsive – FAQ
   ============================================ */
@media (max-width: 768px) {
  .page-faq .faq-question {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .page-faq .faq-answer p {
    padding-left: 0;
    font-size: 1rem;
    line-height: 1.75;
  }

  .page-faq .faq-section .faq-answer:not([hidden]) {
    padding: 1rem 1.25rem 1.25rem;
  }

  .page-faq .faq-item .faq-icon {
    font-size: 0.85rem;
  }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-question,
  .page-faq .faq-icon {
    transition: none;
  }
}
