/* ============ FAQ PAGE STYLES ============ */

/* --- FAQ Hero --- */
.faq-hero {
  padding: var(--space-16) 0 var(--space-10);
  background: var(--color-bg-white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.faq-hero-content {
  position: relative;
  z-index: 5;
  max-width: 700px;
  margin: 0 auto;
}

.faq-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 84px);
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-top: var(--space-3);
  letter-spacing: -0.02em;
}

.faq-hero p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-top: var(--space-5);
}

.faq-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 25vw;
  font-weight: 700;
  color: var(--color-bg-cream);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}

/* --- FAQ Search --- */
.faq-search-section {
  padding-bottom: var(--space-10);
  background: var(--color-bg-white);
}

.faq-search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-bg-cream);
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid var(--color-divider);
  transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.faq-search-box:focus-within {
  background: white;
  box-shadow: 0 15px 40px rgba(181, 132, 68, 0.12);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.faq-search-box svg {
  color: var(--color-gold);
  margin-right: 16px;
}

.faq-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text-primary);
  outline: none;
}

.faq-search-box input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* --- FAQ Layout --- */
.faq-content {
  padding: var(--space-12) 0 var(--space-16);
  background: var(--color-bg-cream);
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* --- FAQ Sidebar --- */
.faq-sidebar {
  position: sticky;
  top: 120px;
}

.faq-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-nav-item {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  padding: 16px 24px;
  border-radius: 12px;
  background: transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-nav-item:hover {
  background: rgba(181, 132, 68, 0.05);
  color: var(--color-gold);
}

.faq-nav-item.active {
  background: white;
  color: var(--color-gold);
  box-shadow: 0 10px 25px rgba(26, 64, 49, 0.05);
  transform: translateX(10px);
}

/* --- FAQ Category Section --- */
.faq-category-section {
  margin-bottom: var(--space-10);
}

.faq-category-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

/* --- FAQ Accordion --- */
.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: var(--space-2);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 64, 49, 0.04);
}

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

.faq-question span {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.faq-plus {
  position: relative;
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  background: var(--color-gold);
  transition: all 0.3s;
}

.faq-plus::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-plus::after {
  height: 100%;
  width: 2px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.active .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.2, 1, 0.2, 1), padding 0.5s ease;
  padding: 0 32px;
}

.faq-item.active .faq-answer {
  max-height: 400px; /* High enough to contain content */
  padding-bottom: 32px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}

/* --- FAQ CTA --- */
.faq-cta-section {
  padding: var(--space-16) 0;
  background: var(--color-bg-white);
}

.faq-cta-section h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.faq-cta-btns {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* --- No Results --- */
.faq-no-results {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  background: white;
  border-radius: 24px;
  border: 1px dashed var(--color-divider);
}

.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-results-content svg {
  color: var(--color-gold);
  opacity: 0.5;
}

.no-results-content h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-text-primary);
}

.no-results-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    margin-bottom: var(--space-6);
  }

  .faq-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .faq-nav::-webkit-scrollbar {
    display: none;
  }

  .faq-nav-item {
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 12px;
  }

  .faq-nav-item.active {
    transform: none;
  }
}

@media (max-width: 768px) {
  .faq-hero h1 {
    font-size: 48px;
  }

  .faq-question {
    padding: 20px;
  }

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

  .faq-cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Smooth Fade Animations --- */
.faq-item {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.98);
  animation: faqItemFade 0.8s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

@keyframes faqItemFade {
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.faq-answer p {
  opacity: 0;
  transition: opacity 0.5s ease;
  transition-delay: 0.1s;
}

.faq-item.active .faq-answer p {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
  
  .faq-search-box,
  .faq-nav-item,
  .faq-question,
  .faq-plus,
  .faq-answer,
  .faq-answer p {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .faq-answer p {
    opacity: 1;
  }
}

