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

.faq-body { background: #F4EBD6; }

/* ---------- HERO ---------- */
.faq-hero {
  position: relative;
  padding: 9.5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(212,165,0,0.15) 0%, transparent 58%),
    linear-gradient(160deg, #2A1708 0%, #1C0E04 55%, #140A03 100%);
}
.faq-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,0,0.55), transparent);
}
.faq-hero-inner { position: relative; z-index: 1; }
.faq-hero .eyebrow { color: #FFD100; }
.faq-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #FBF4E4;
  margin-bottom: 1.15rem;
}
.faq-title .gold { color: #E0B93C; font-style: italic; }
.faq-lede {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #E3CDA2;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

/* ---------- SEARCH ---------- */
.faq-search-wrap {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
}
.faq-search-icon {
  position: absolute;
  left: 1.05rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #B08F4E;
  pointer-events: none;
}
.faq-search {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 2.9rem;
  font-size: 0.92rem;
  color: #F7EEDA;
  background: rgba(255,240,205,0.06);
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background-clip: padding-box;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.faq-search::placeholder { color: #9A7C46; }
.faq-search:focus {
  border-color: rgba(212,165,0,0.6);
  background: rgba(255,240,205,0.10);
  box-shadow: 0 0 0 3px rgba(212,165,0,0.14);
}
.faq-search::-webkit-search-cancel-button { filter: invert(0.7) sepia(1) saturate(3) hue-rotate(5deg); }

/* ---------- MAIN ---------- */
.faq-main {
  padding: 3.25rem 0 5.5rem;
  background:
    linear-gradient(165deg, rgba(250,241,222,0.70) 0%, rgba(247,236,212,0.64) 100%),
    url('../images/why-bg.jpg') center center / cover no-repeat;
}

/* ---------- FILTER CHIPS ---------- */
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}
.faq-chip {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4A3212;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(120,70,0,0.22);
  padding: 0.55rem 1.05rem;
  border-radius: 50px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.faq-chip:hover { border-color: var(--gold); background: rgba(255,255,255,0.7); }
.faq-chip.active {
  background: linear-gradient(145deg, #FFD84A, #D4A500);
  border-color: rgba(255,209,0,0.7);
  color: #1E1004;
}
.faq-chip:active { transform: scale(0.96); }
.faq-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- ITEMS ---------- */
.faq-list { max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }

.faq-item {
  background: linear-gradient(150deg, rgba(255,253,247,0.94), rgba(253,244,227,0.90));
  border: 1px solid rgba(212,165,0,0.30);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60,30,5,0.07);
  transition: border-color 0.35s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.30,1);
}
.faq-item[open] {
  border-color: rgba(212,165,0,0.62);
  box-shadow: 0 12px 30px rgba(60,30,5,0.13);
}
.faq-item.is-hidden { display: none; }

.faq-q {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1B0E03;
  transition: color 0.3s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: #6B3F00; }
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: 15px; }
.faq-q > span { flex: 1; }

/* plus that becomes a minus */
.faq-mark {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(212,165,0,0.45);
  background: rgba(255,209,0,0.10);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.45s cubic-bezier(0.16,1,0.30,1);
}
.faq-mark::before, .faq-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: #8A5A0A;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.30,1), background 0.3s ease;
}
.faq-mark::before { width: 12px; height: 1.8px; transform: translate(-50%,-50%); }
.faq-mark::after  { width: 1.8px; height: 12px; transform: translate(-50%,-50%); }
.faq-item[open] .faq-mark {
  background: linear-gradient(145deg, #FFD84A, #D4A500);
  border-color: rgba(255,209,0,0.75);
  transform: rotate(180deg);
}
.faq-item[open] .faq-mark::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item[open] .faq-mark::before { background: #1E1004; }

.faq-a {
  padding: 0 1.35rem 1.3rem;
  animation: faqOpen 0.5s cubic-bezier(0.16,1,0.30,1);
}
.faq-a p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: #3A2408;
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(120,70,0,0.14);
  padding-top: 1rem;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- EMPTY STATE + NOTE ---------- */
.faq-empty {
  display: none;
  max-width: 34rem;
  margin: 2rem auto;
  text-align: center;
  font-size: 0.93rem;
  line-height: 1.75;
  color: #6B4A12;
}
.faq-empty.show { display: block; }

.faq-note {
  max-width: 46rem;
  margin: 2.75rem auto 0;
  text-align: center;
  font-size: 0.79rem;
  line-height: 1.75;
  color: #6B4A12;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(120,70,0,0.18);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .faq-hero { padding: 7.5rem 0 3.5rem; }
  .faq-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; }
  .faq-chip { flex-shrink: 0; }
  .faq-q { font-size: 0.99rem; padding: 1rem 1.1rem; gap: 0.75rem; }
  .faq-a { padding: 0 1.1rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
  .faq-item[open] .faq-mark { transform: none; }
}
