﻿/* =========================================================
   FAQs PAGE
   New page (no design hand-off file to port)  every value below comes
   from assets/css/base/tokens.css, per BRAND-IDENTITY.md §3.

   Scoping: every rule is anchored to .faq-page  see BRAND-IDENTITY.md §2.
   ========================================================= */

.faq-page, .faq-page * { box-sizing: border-box; margin: 0; padding: 0; }

.faq-page a { color: inherit; }
.faq-page svg { display: block; }

/* ---------------- shared: eyebrow + breadcrumb ---------------- */
.faq-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-12);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--fm-gold-pale);
  margin-bottom: var(--fm-space-4);
}
.faq-page .eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--fm-gold);
  flex-shrink: 0;
}

.faq-page .crumb {
  max-width: 1180px;
  margin: 0 auto var(--fm-space-6);
  display: flex;
  align-items: center;
  gap: var(--fm-space-2);
  flex-wrap: wrap;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-11-5);
  letter-spacing: 0.5px;
  color: var(--fm-cream-dim);
}
.faq-page .crumb a { text-decoration: none; transition: color var(--fm-duration-fast) var(--fm-ease); }
.faq-page .crumb a:hover { color: var(--fm-gold-light); }
.faq-page .crumb .sep { color: var(--fm-cream-dim); opacity: 0.5; }
.faq-page .crumb .here { color: var(--fm-gold-light); }

/* ---------------- intro (dark band) ---------------- */
.faq-page .faq-intro {
  background: var(--fm-black);
  padding: var(--fm-space-9) 72px;
  text-align: center;
}
.faq-page .faq-intro .eyebrow { justify-content: center; }
.faq-page .faq-intro-title {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--fm-headline-light);
  margin-bottom: var(--fm-space-5);
}
.faq-page .faq-intro-lede {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-15);
  line-height: 1.75;
  color: var(--fm-cream-dim);
}

/* ---------------- categories (light) ---------------- */
.faq-page .faq-body {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--fm-space-9) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--fm-space-8);
}
.faq-page .faq-category-title {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--fm-ink);
  margin-bottom: var(--fm-space-5);
  padding-bottom: var(--fm-space-3);
  border-bottom: 1px solid var(--fm-divider-strong);
}
.faq-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--fm-space-3);
}

.faq-page .faq-item {
  border: 1px solid var(--fm-divider-card);
  border-radius: var(--fm-radius-lg);
  overflow: hidden;
  transition: border-color var(--fm-duration-base) var(--fm-ease);
}
.faq-page .faq-item:hover { border-color: var(--fm-outline-warm); }

.faq-page .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fm-space-4);
  padding: var(--fm-space-5) var(--fm-space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--fm-font-sans);
  font-weight: 500;
  font-size: var(--fm-text-14);
  color: var(--fm-ink);
}

.faq-page .faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq-page .faq-icon::before,
.faq-page .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--fm-gold-deep);
  transform: translate(-50%, -50%);
  transition: transform var(--fm-duration-base) var(--fm-ease);
}
.faq-page .faq-icon::before { width: 12px; height: 1.5px; }
.faq-page .faq-icon::after { width: 1.5px; height: 12px; }
.faq-page .faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-page .faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--fm-duration-base) var(--fm-ease);
}
.faq-page .faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-page .faq-a {
  overflow: hidden;
  min-height: 0;
}
.faq-page .faq-a::before { content: ''; display: block; height: 0; }
.faq-page .faq-item.is-open .faq-a {
  padding: 0 var(--fm-space-6) var(--fm-space-5);
}
.faq-page .faq-a {
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-13-5);
  line-height: 1.75;
  color: var(--fm-ink-mute);
}

/* ---------------- CTA (dark) ---------------- */
.faq-page .faq-cta {
  background: var(--fm-black);
  padding: var(--fm-space-9) 24px;
  text-align: center;
}
.faq-page .faq-cta h2 {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--fm-headline-light);
  margin-bottom: var(--fm-space-4);
}
.faq-page .faq-cta p {
  max-width: 480px;
  margin: 0 auto var(--fm-space-7);
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-14);
  line-height: 1.7;
  color: var(--fm-cream-dim);
}

@media (max-width: 620px) {
  .faq-page .faq-intro,
  .faq-page .faq-body,
  .faq-page .faq-cta { padding-left: 20px; padding-right: 20px; }
  .faq-page .faq-q { padding: var(--fm-space-4) var(--fm-space-5); }
  .faq-page .faq-item.is-open .faq-a { padding: 0 var(--fm-space-5) var(--fm-space-4); }
}

/* =========================================================
   LIGHT THEME  scoped to .faq-page, see page-about.css's own
   light-theme block for the pattern this follows. Covers both dark
   sections on this page (.faq-intro and .faq-cta).
   ========================================================= */
html[data-theme="light"] .faq-page {
  --fm-black: #ffffff;
  --fm-cream: #000000;
  --fm-cream-dim: #656565;
  --fm-headline-light: #000000;
  --fm-hairline-dark: rgba(0, 0, 0, 0.1);
  --fm-gold-pale: #C9A236;
  --fm-gold-light: #C9A236;
}
