/* ============================================================
   RevelleCare — faq.css
   Brand: Teal #0E6B68 · Gold #C9B89A · Porcelain #F8F7F4
   ============================================================ */

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--color-teal, #0E6B68);
  color: #fff;
  border: 1.5px solid var(--color-teal, #0E6B68);
}
.btn-primary:hover { background: #0a5452; border-color: #0a5452; }

/* ── HERO ── */
.faq-hero {
  padding: 80px 0 56px;
  background: var(--color-porcelain, #F8F7F4);
  text-align: center;
  border-bottom: 1px solid rgba(201,184,154,0.25);
}
.faq-hero-inner { max-width: 680px; margin: 0 auto; }
.faq-pill {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal, #0E6B68);
  border: 1px solid var(--color-teal, #0E6B68);
  border-radius: 2px;
  padding: 5px 14px;
  margin-bottom: 1.25rem;
}
.faq-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: #1a1a17;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.faq-hero h1 em { font-style: italic; color: var(--color-teal, #0E6B68); }
.faq-hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #6a6a5e;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Search */
.faq-search-wrap { max-width: 480px; margin: 0 auto; }
.faq-search {
  width: 100%;
  padding: 12px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #1a1a17;
  background: #fff;
  border: 1.5px solid rgba(14,107,104,0.25);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.faq-search:focus { border-color: var(--color-teal, #0E6B68); }
.faq-search::placeholder { color: #aaa; }

/* ── LAYOUT ── */
.faq-body { padding: 64px 0 80px; background: #fff; }
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── SIDEBAR ── */
.faq-sidebar {
  position: sticky;
  top: 100px;
}
.faq-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-cat {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #7a7a6e;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 2px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.3;
  white-space: nowrap;
}
.faq-cat:hover { color: var(--color-teal, #0E6B68); background: rgba(14,107,104,0.05); }
.faq-cat.active {
  color: var(--color-teal, #0E6B68);
  font-weight: 500;
  border-left-color: var(--color-teal, #0E6B68);
  background: rgba(14,107,104,0.06);
}

/* ── FAQ SECTIONS ── */
.faq-section {
  margin-bottom: 52px;
  scroll-margin-top: 110px;
}
.faq-section:last-child { margin-bottom: 0; }
.faq-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--color-teal, #0E6B68);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,184,154,0.35);
  line-height: 1.2;
}

/* ── FAQ ACCORDION ITEMS ── */
.faq-item {
  border-bottom: 1px solid rgba(14,107,104,0.08);
}
.faq-item summary {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a17;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.45;
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--color-teal, #0E6B68); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-teal, #0E6B68);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--color-teal, #0E6B68); }

.faq-ans {
  padding: 0 0 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.faq-ans p {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.78;
  color: #5a5a52;
  margin: 0 0 0.75rem;
}
.faq-ans p:last-child { margin-bottom: 0; }
.faq-ans ul, .faq-ans ol {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: #5a5a52;
  padding-left: 1.4rem;
  margin: 0.5rem 0 0.75rem;
}
.faq-ans li { margin-bottom: 0.35rem; }
.faq-ans a {
  color: var(--color-teal, #0E6B68);
  text-underline-offset: 2px;
}
.faq-ans strong { color: #2a2a22; font-weight: 500; }

/* ── BOTTOM CTA ── */
.faq-cta {
  background: var(--color-teal, #0E6B68);
  padding: 72px 0;
  text-align: center;
}
.faq-cta-inner { max-width: 560px; margin: 0 auto; }
.faq-cta h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}
.faq-cta p {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.faq-cta p a { color: var(--color-gold, #C9B89A); }
.faq-cta .btn-primary {
  background: #fff;
  color: var(--color-teal, #0E6B68);
  border-color: #fff;
}
.faq-cta .btn-primary:hover { background: rgba(255,255,255,0.88); }

/* ── Footer ── */
.site-footer { background: #1a1a17; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 1.6rem;
  color: var(--color-teal, #0E6B68); line-height: 1;
}
.footer-brand-name {
  font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.08em; color: #fff; text-transform: uppercase;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  font-family: 'Jost', sans-serif; font-size: 0.8rem; font-weight: 400;
  color: rgba(255,255,255,0.55); text-decoration: none; letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--color-gold, #C9B89A); }
.footer-legal {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  color: rgba(255,255,255,0.35); line-height: 1.65; max-width: 700px;
}

/* ── Dark mode ── */
[data-theme="dark"] .faq-hero { background: #16201f; }
[data-theme="dark"] .faq-hero h1 { color: #e8e6df; }
[data-theme="dark"] .faq-search { background: #1e2e2c; border-color: rgba(14,107,104,0.3); color: #e8e6df; }
[data-theme="dark"] .faq-body { background: #111410; }
[data-theme="dark"] .faq-section h2 { border-color: rgba(201,184,154,0.2); }
[data-theme="dark"] .faq-item { border-color: rgba(14,107,104,0.15); }
[data-theme="dark"] .faq-item summary { color: #e8e6df; }
[data-theme="dark"] .faq-ans p,
[data-theme="dark"] .faq-ans ul,
[data-theme="dark"] .faq-ans ol { color: #8a8a7e; }
[data-theme="dark"] .faq-cat { color: #6a6a5e; }
[data-theme="dark"] .faq-cat.active { background: rgba(14,107,104,0.12); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-sidebar {
    position: static;
    overflow-x: auto;
  }
  .faq-sidebar ul { flex-direction: row; gap: 4px; flex-wrap: wrap; }
  .faq-cat { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .faq-cat.active { border-bottom-color: var(--color-teal, #0E6B68); border-left: none; }
}
@media (max-width: 600px) {
  .faq-hero { padding: 56px 0 40px; }
  .faq-body { padding: 40px 0 56px; }
  .faq-item summary { font-size: 0.88rem; }
}
