/* ============================================================
   TABULA RASA — faq.css
   ============================================================ */

body { background: var(--off-white); }

.faq-index { display: flex; flex-direction: column; }
.faq-index-item { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.3rem; border: 1px solid rgba(255,255,255,0.08); border-bottom: none; background: rgba(255,255,255,0.03); text-decoration: none; transition: background 0.2s; }
.faq-index-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-index-item:hover { background: rgba(201,168,76,0.09); }
.faq-index-left { display: flex; align-items: center; gap: 1rem; }
.faq-index-num { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: rgba(201,168,76,0.4); min-width: 2rem; }
.faq-index-label { font-size: 0.8rem; color: rgba(255,255,255,0.72); font-weight: 400; }
.faq-index-count { font-size: 0.68rem; color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); padding: 0.2rem 0.55rem; }
.search-bar-section { background: var(--white); padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: sticky; top: 72px; z-index: 100; }
.search-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.search-wrapper { position: relative; flex: 1; max-width: 520px; }
.search-wrapper svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--text-soft); fill: none; stroke-width: 2; pointer-events: none; }
.search-input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.8rem; border: 1px solid var(--border); background: var(--off-white); font-family: 'Outfit', sans-serif; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.search-input::placeholder { color: #a0b0c0; }
.search-label { font-size: 0.76rem; color: var(--text-soft); font-weight: 300; }
.search-label strong { color: var(--text); font-weight: 600; }
.faq-main { padding: 5rem 0 7rem; }
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.faq-sidebar { position: sticky; top: 144px; }
.sidebar-title { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; padding-bottom: 0.75rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; }
.sidebar-nav-item a { display: flex; align-items: center; padding: 0.7rem 1rem; font-size: 0.8rem; color: var(--text-soft); text-decoration: none; font-weight: 400; border-left: 2px solid transparent; transition: all 0.18s; line-height: 1.4; }
.sidebar-nav-item a:hover, .sidebar-nav-item a.active { color: var(--navy); border-color: var(--gold); background: rgba(201,168,76,0.07); font-weight: 600; }
.sidebar-count { margin-left: auto; font-size: 0.68rem; background: var(--border); color: var(--text-soft); padding: 0.15rem 0.5rem; font-weight: 500; flex-shrink: 0; }
.sidebar-cta { margin-top: 2rem; background: var(--navy); padding: 1.5rem; }
.sidebar-cta p { font-size: 0.8rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }
.sidebar-cta a { display: block; text-align: center; background: var(--gold); color: var(--navy); padding: 0.65rem 1rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.sidebar-cta a:hover { background: var(--gold-lt); }
.faq-section { margin-bottom: 4rem; }
.faq-section:last-child { margin-bottom: 0; }
.faq-section-header { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--border); }
.faq-section-icon { width: 44px; height: 44px; background: rgba(201,168,76,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }
.faq-section-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }
.faq-section-title-group { flex: 1; }
.faq-section-roman { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.2rem; }
.faq-section-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.faq-section-desc { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.3rem; font-weight: 300; line-height: 1.5; }
.faq-section-badge { font-size: 0.7rem; color: var(--text-soft); background: var(--off-white); border: 1px solid var(--border); padding: 0.3rem 0.75rem; flex-shrink: 0; align-self: flex-start; font-weight: 500; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item.hidden { display: none; }
.faq-question { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; user-select: none; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-q-text { font-size: 0.96rem; font-weight: 600; color: var(--navy); line-height: 1.45; flex: 1; transition: color 0.2s; }
details[open] .faq-q-text { color: var(--gold); }
.faq-q-icon { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.25s; margin-top: 0.1rem; }
.faq-q-icon svg { width: 11px; height: 11px; stroke: var(--text-soft); fill: none; stroke-width: 2.5; transition: transform 0.3s; }
details[open] .faq-q-icon { background: var(--gold); border-color: var(--gold); }
details[open] .faq-q-icon svg { stroke: var(--navy); transform: rotate(45deg); }
.faq-answer { padding: 0 2rem 1.5rem 0; font-size: 0.92rem; color: var(--text-soft); line-height: 1.85; font-weight: 300; max-width: 72ch; animation: fadeDown 0.3s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cta-band { background: var(--navy); padding: 6rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -8rem; top: 50%; transform: translateY(-50%); width: 36rem; height: 36rem; border-radius: 50%; border: 1px solid rgba(201,168,76,0.07); pointer-events: none; }
.cta-band-inner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 700; color: var(--white); line-height: 1.25; }
.cta-band h2 em { color: var(--gold); font-style: italic; }
.cta-band p { font-size: 0.96rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.7; margin-top: 1rem; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; min-width: 220px; }
.cta-btn-gold { background: var(--gold); color: var(--navy); padding: 1rem 2.2rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; font-weight: 700; text-align: center; transition: background 0.2s; }
.cta-btn-gold:hover { background: var(--gold-lt); }
.cta-btn-ghost { background: transparent; color: rgba(255,255,255,0.7); padding: 1rem 2.2rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); text-align: center; transition: all 0.2s; }
.cta-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
@media (max-width: 1024px) { .faq-layout { grid-template-columns: 1fr; } .faq-sidebar { position: static; } .cta-band-inner { grid-template-columns: 1fr; gap: 2rem; } .cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* ── FAQ CONTENT COLUMN ──────────────────────────────────── */
.faq-content { min-width: 0; }

/* ── HERO STRIPE (shared with global but needs local context) */
.page-hero .hero-stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

@media (max-width: 768px) {
  .search-bar-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .search-wrapper { max-width: 100%; }
  .faq-section-header { flex-direction: column; gap: 0.8rem; }
  .faq-section-badge { align-self: flex-start; }
  .faq-question { gap: 0.75rem; }
  .faq-answer { padding-right: 0; }
  .cta-actions { flex-direction: column; }
}
