/* FAQ page styles — scoped .faq-* prefix. Reuses the coral/navy/cream
   token family from theme.css + reviews.css. */

/* ── Page tokens ──────────────────────────────────────────── */
.faq-page {
  --faq-coral:  #FF6B6B;
  --faq-navy:   #1A1A2E;
  --faq-cream:  #FFF9F0;
  --faq-text:   #2D1B0E;
  --faq-dim:    #8B6F47;
  --faq-border: rgba(255, 107, 107, 0.18);
  --faq-font-display: 'Playfair Display', serif;
  --faq-font-body:    'DM Sans', sans-serif;

  font-family: var(--faq-font-body);
  background: var(--faq-cream);
  color: var(--faq-text);
  margin: 0;
  padding: 0;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.faq-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.15);
}

.faq-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--faq-font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.faq-nav-links {
  display: flex;
  gap: 24px;
}

.faq-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.faq-nav-links a:hover,
.faq-nav-links a[aria-current="page"] {
  color: #fff;
}

/* ── Hero ────────────────────────────────────────────────────── */
.faq-hero {
  background: var(--faq-navy);
  padding: 56px 24px 48px;
  text-align: center;
}

.faq-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.faq-eyebrow {
  font-family: var(--faq-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faq-coral);
  margin: 0 0 14px;
}

.faq-hero-h1 {
  font-family: var(--faq-font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.faq-hero-sub {
  font-family: var(--faq-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 16px auto 0;
  max-width: 480px;
}

/* ── Table of contents ─────────────────────────────────────── */
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--faq-cream);
  border-bottom: 1px solid var(--faq-border);
}

.faq-toc-link {
  font-family: var(--faq-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faq-text);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--faq-coral);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.faq-toc-link:hover {
  background: var(--faq-coral);
  color: #fff;
}

/* ── Main + sections ───────────────────────────────────────── */
.faq-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.faq-section {
  scroll-margin-top: 80px;
  margin-bottom: 56px;
}

.faq-section:last-child {
  margin-bottom: 0;
}

.faq-section-eyebrow {
  font-family: var(--faq-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faq-coral);
  margin: 0 0 12px;
}

.faq-section-h2 {
  font-family: var(--faq-font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--faq-text);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ── Q&A details/summary ───────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-qa {
  background: #fff;
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 2px 16px rgba(26, 26, 46, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
  scroll-margin-top: 80px;
}

.faq-qa[open] {
  border-color: var(--faq-coral);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.12);
}

.faq-qa > .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--faq-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--faq-text);
  line-height: 1.35;
}

.faq-qa > .faq-q::-webkit-details-marker {
  display: none;
}

.faq-q-text {
  flex: 1;
}

.faq-q-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.12);
  color: var(--faq-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--faq-font-body);
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, transform 0.2s;
}

.faq-q-toggle::before,
.faq-q-toggle::after {
  content: '';
  position: absolute;
  background: var(--faq-coral);
  border-radius: 1px;
}

.faq-q-toggle::before {
  width: 12px;
  height: 2px;
}

.faq-q-toggle::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s;
}

.faq-qa[open] > .faq-q .faq-q-toggle {
  background: var(--faq-coral);
}

.faq-qa[open] > .faq-q .faq-q-toggle::before,
.faq-qa[open] > .faq-q .faq-q-toggle::after {
  background: #fff;
}

.faq-qa[open] > .faq-q .faq-q-toggle::after {
  transform: rotate(90deg);
}

.faq-a {
  padding: 0 24px 22px;
}

.faq-a p {
  font-family: var(--faq-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--faq-text);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 27, 14, 0.08);
}

/* ── Footer ─────────────────────────────────────────────────── */
.faq-footer {
  background: var(--faq-navy);
  padding: 28px 24px;
  text-align: center;
}

.faq-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.faq-footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.faq-footer-links a:hover,
.faq-footer-links a[aria-current="page"] {
  color: #fff;
}

.faq-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .faq-nav { padding: 0 20px; }
  .faq-nav-links { gap: 16px; }
  .faq-hero { padding: 40px 20px 36px; }
  .faq-main { padding: 28px 20px 60px; }
  .faq-section { margin-bottom: 40px; }
  .faq-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .faq-toc-link { flex-shrink: 0; }
  .faq-qa > .faq-q { padding: 16px 20px; font-size: 16px; gap: 12px; }
  .faq-a { padding: 0 20px 18px; }
}

/* ── Top Questions (most-asked from /contact inbox) ─────────── */
.faq-top-questions {
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  margin: 28px auto 0;
  max-width: 760px;
  padding: 28px 24px;
}

.faq-top-questions-inner {
  margin: 0 auto;
  max-width: 100%;
}

.faq-top-questions-eyebrow {
  font-family: var(--faq-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faq-coral);
  margin: 0 0 10px;
}

.faq-top-questions-h2 {
  font-family: var(--faq-font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--faq-navy);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.faq-top-questions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.faq-top-questions-item {
  margin: 0;
}

.faq-top-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  background: var(--faq-cream);
  border: 1px solid var(--faq-border);
  border-left: 3px solid var(--faq-coral);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--faq-navy);
  font-family: var(--faq-font-body);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.faq-top-q:hover,
.faq-top-q:focus-visible {
  background: var(--faq-coral);
  color: #fff;
  border-color: var(--faq-coral);
  transform: translateY(-1px);
  outline: none;
}

.faq-top-q-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.faq-top-q-count {
  font-family: var(--faq-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faq-dim);
  flex-shrink: 0;
}

.faq-top-q:hover .faq-top-q-count,
.faq-top-q:focus-visible .faq-top-q-count {
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 720px) {
  .faq-top-questions-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .faq-top-questions {
    margin: 20px 20px 0;
    padding: 22px 18px;
  }
  .faq-top-q { padding: 12px 14px; }
  .faq-top-q-text { font-size: 14px; }
}
