/* FAQ page — "Ask first"
   The page's job is to hand over one specific answer fast, so the hero is a
   working filter rather than a banner. Palette and faces are the site's own;
   IBM Plex Mono is the third voice, used only for small structural labels —
   the vernacular of a printed price tag. */

.faq-page {
  --faq-ink: #262223;
  --faq-oxblood: #8C1B24;
  --faq-amber: #F2A649;
  --faq-paper: #F2F2F2;
  --faq-card: #fff;
  --faq-rule: rgba(38, 34, 35, 0.12);
  --faq-muted: rgba(38, 34, 35, 0.62);

  background-color: var(--faq-paper);
}

/* Small caps utility voice — eyebrows, counters, labels */
.faq-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.faq-hero {
  background-color: var(--faq-oxblood);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(3rem, 7vw, 4.5rem);
}

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

.faq-hero .faq-eyebrow {
  color: var(--faq-amber);
  margin-bottom: 1.25rem;
}

.faq-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 1.75rem;
}

/* Search field — the hero's actual content */
.faq-search {
  position: relative;
  display: block;
}

.faq-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faq-muted);
  font-size: 1.05rem;
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 1rem 1.15rem 1rem 3.1rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #fff;
  color: var(--faq-ink);
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}

.faq-search-input::placeholder {
  color: var(--faq-muted);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--faq-amber);
}

.faq-search-input:focus-visible {
  outline: 3px solid var(--faq-amber);
  outline-offset: 2px;
}

/* Clear the browser's native search affordance; the field is short enough */
.faq-search-input::-webkit-search-decoration,
.faq-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ── Question list ────────────────────────────────────────────────── */

.faq-body {
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem clamp(3.5rem, 8vw, 5rem);
}

.faq-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-count {
  color: var(--faq-muted);
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Each question is a card with a spine, like a tag on a rack. The spine
   carries the open/closed state so no extra ornament is needed. */
.faq-item {
  position: relative;
  background-color: var(--faq-card);
  border-radius: 10px;
  border-left: 4px solid var(--faq-oxblood);
  overflow: hidden;
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-left-color: var(--faq-amber);
  box-shadow: 0 6px 20px rgba(38, 34, 35, 0.09);
}

.faq-q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-q-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--faq-ink);
  transition: color 0.2s ease;
}

.faq-item[open] .faq-q-text,
.faq-q:hover .faq-q-text {
  color: var(--faq-oxblood);
}

/* Plus that becomes a minus — drawn, not an icon font, so it stays hairline */
.faq-q-mark {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  align-self: center;
}

.faq-q-mark::before,
.faq-q-mark::after {
  content: '';
  position: absolute;
  background-color: var(--faq-oxblood);
  transition: transform 0.22s ease, background-color 0.2s ease;
}

.faq-q-mark::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-q-mark::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  transform: translateX(-50%) scaleY(1);
}

.faq-item[open] .faq-q-mark::before,
.faq-item[open] .faq-q-mark::after {
  background-color: var(--faq-amber);
}

.faq-item[open] .faq-q-mark::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-q:focus-visible {
  outline: 3px solid var(--faq-oxblood);
  outline-offset: -3px;
  border-radius: 6px;
}

.faq-a {
  padding: 0 1.4rem 1.35rem;
}

.faq-a p {
  margin: 0;
  padding-top: 0.35rem;
  border-top: 1px solid var(--faq-rule);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--faq-muted);
  white-space: pre-line;
}

/* ── Empty state: the page's signature ───────────────────────────────
   A search with no result is the one moment this page can be more useful
   than a printed sheet, so it hands the question straight to the chatbot. */

.faq-empty {
  background-color: var(--faq-ink);
  color: #fff;
  border-radius: 12px;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
}

.faq-empty[hidden] {
  display: none;
}

.faq-empty-label {
  color: var(--faq-amber);
  margin-bottom: 1rem;
}

.faq-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  margin: 0 0 0.75rem;
}

.faq-empty-text {
  font-family: 'Lato', sans-serif;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.faq-empty-query {
  color: #fff;
  font-style: italic;
}

.faq-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--faq-amber);
  background-color: transparent;
  color: var(--faq-amber);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-ask-btn:hover {
  background-color: var(--faq-amber);
  color: var(--faq-ink);
}

.faq-ask-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.faq-empty-alt {
  margin: 1.5rem 0 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.faq-empty-alt a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.faq-empty-alt a:hover {
  color: #fff;
}

.faq-empty-sep {
  padding: 0 0.6rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Closing band ─────────────────────────────────────────────────── */

.faq-close {
  border-top: 1px solid var(--faq-rule);
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  background-color: var(--faq-card);
}

.faq-close-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
}

.faq-close .faq-eyebrow {
  color: var(--faq-muted);
  flex: 1 0 100%;
}

.faq-close-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--faq-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--faq-oxblood);
  padding-bottom: 2px;
}

.faq-close-link:hover {
  color: var(--faq-oxblood);
}

/* ── Motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-q-text,
  .faq-q-mark::before,
  .faq-q-mark::after,
  .faq-ask-btn {
    transition: none;
  }
}
