/* ===========================================================================
   faq.css  --  FAQ "Help Centre" for faq.php. Namespaced `.fq-`.
   Same tokens as gallery-cinematic.css (Meridian): ivory page, Sora display,
   DM Sans body, champagne gold, charcoal pills, 20px boxes.
   =========================================================================== */

.fq {
  --ivory:        #fcfbfa;
  --sand:         #e9e0d2;
  --gold:         #ca9e4e;
  --gold-rgb:     202, 158, 78;
  --charcoal:     #111315;
  --charcoal-rgb: 17, 19, 21;
  --ink-2:        #4e565c;
  --hair:         #e6ded0;
  --display-f: "Sora", "Jost", sans-serif;
  --body-f:    "DM Sans", "Inter", sans-serif;
  --gutter:  clamp(20px, 4.5vw, 72px);
  --measure: 1440px;
  --r-box:  20px;
  --r-pill: 999px;
  --e-out:  cubic-bezier(0.16, 1, 0.3, 1);

}
.fq {
  interpolate-size: allow-keywords;   /* lets <details> animate to height:auto */
  position: relative;
  background: var(--ivory);
  border-top: 1px solid var(--hair);
  font-family: var(--body-f);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 9vw, 140px);
}
.fq :where(*, *::before, *::after) { box-sizing: border-box; }
.fq :where(h2, h3, p) { margin: 0; }
.fq a { color: inherit; text-decoration: none; }

.fq-wrap {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

/* ── LEFT: sticky help panel ─────────────────────────────────────────────── */
.fq-aside {
  position: sticky;
  top: 120px;
}
.fq-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.fq-dash { width: 34px; height: 1px; background: var(--gold); }
.fq-title {
  font-family: var(--display-f);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--charcoal);
}
.fq-title span { display: block; color: var(--gold); }
.fq-lede {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 34em;
}

.fq-search {
  position: relative;
  display: block;
  margin: 32px 0 18px;
}
.fq-search i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: .9rem;
  pointer-events: none;
}
.fq-search input {
  width: 100%;
  height: 56px;
  padding: 0 22px 0 52px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: #fff;
  font: 500 .98rem/1 var(--body-f);
  color: var(--charcoal);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.fq-search input::placeholder { color: #9a9f9f; }
.fq-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .14);
}

.fq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fq-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--charcoal);
  font: 600 .85rem/1 var(--body-f);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.fq-chip em {
  font-style: normal;
  font-size: .72rem;
  color: var(--gold);
}
.fq-chip:hover { border-color: var(--gold); }
.fq-chip.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.fq-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.fq-help {
  margin-top: 36px;
  padding: 30px;
  border-radius: var(--r-box);
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 24px 48px -20px rgba(var(--charcoal-rgb), .45);
}
.fq .fq-help h3 {
  color: #fff;
  font-family: var(--display-f);
  font-size: 1.3rem;
  font-weight: 600;
}
.fq-help p { margin-top: 8px; color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.6; }
.fq-help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fq-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .92rem;
  transition: transform .3s var(--e-out), background .25s ease, color .25s ease;
}
.fq-btn:hover { transform: translateY(-2px); }
.fq .fq-btn--gold { background: var(--gold); color: var(--charcoal); }
.fq .fq-btn--ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.fq .fq-btn--ghost:hover { background: #fff; color: var(--charcoal); }
.fq .fq-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--gold);
  font-size: .88rem;
  font-weight: 600;
}
.fq-help-link i { transition: transform .3s var(--e-out); }
.fq-help-link:hover i { transform: translateX(4px); }

/* ── RIGHT: grouped accordion ───────────────────────────────────────────── */
.fq-group + .fq-group { margin-top: clamp(40px, 5vw, 64px); }
.fq-group[hidden] { display: none; }
.fq-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--display-f);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--charcoal);
}
.fq-group-title i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), .12);
  color: var(--gold);
  font-size: .85rem;
}

.fq-item {
  border-radius: var(--r-box);
  background: #fff;
  border: 1px solid var(--hair);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.fq-item + .fq-item { margin-top: 12px; }
.fq-item[hidden] { display: none; }
.fq-item:hover { border-color: rgba(var(--gold-rgb), .55); }
.fq-item[open] {
  border-color: rgba(var(--gold-rgb), .7);
  box-shadow: 0 18px 40px -22px rgba(var(--charcoal-rgb), .25);
}

.fq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-box);
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.fq-num {
  font-family: var(--display-f);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .06em;
  min-width: 2ch;
}
.fq-q {
  font-family: var(--display-f);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--charcoal);
}
.fq-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  transition: background .3s ease, border-color .3s ease, transform .4s var(--e-out);
}
.fq-icon::before,
.fq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--charcoal);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--e-out), background .3s ease;
}
.fq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-item[open] .fq-icon { background: var(--charcoal); border-color: var(--charcoal); transform: rotate(180deg); }
.fq-item[open] .fq-icon::before,
.fq-item[open] .fq-icon::after { background: #fff; }
.fq-item[open] .fq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Smooth open/close where supported (Chrome 131+); instant elsewhere. */
.fq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .45s var(--e-out), content-visibility .45s allow-discrete;
}
.fq-item[open]::details-content { block-size: auto; }

.fq-a { padding: 0 24px 24px calc(24px + 2ch + 18px); }
.fq-a p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
}
.fq-a a { color: var(--charcoal); font-weight: 600; border-bottom: 1px solid rgba(var(--gold-rgb), .6); }
.fq-a a:hover { color: var(--gold); }

.fq mark { background: rgba(var(--gold-rgb), .25); color: inherit; border-radius: 3px; padding: 0 2px; }

.fq-empty {
  padding: 40px 24px;
  border: 1px dashed var(--hair);
  border-radius: var(--r-box);
  text-align: center;
  color: var(--ink-2);
}
.fq-empty a { color: var(--gold); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
/* One column: intro, search and chips first, then the questions, then the
   "Still have a question?" card (aside flattened so its parts can reorder). */
@media (max-width: 991px) {
  .fq-wrap { display: flex; flex-direction: column; gap: 0; }
  .fq-aside { display: contents; }
  .fq-list { order: 1; margin-top: 36px; }
  .fq-help { order: 2; margin-top: 48px; }
}
@media (max-width: 575px) {
  .fq-item summary { gap: 12px; padding: 18px 16px; grid-template-columns: 1fr auto; }
  .fq-num { display: none; }
  .fq-a { padding: 0 16px 20px; }
  .fq-icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .fq-item::details-content { transition: none; }
  .fq-icon, .fq-icon::before, .fq-icon::after, .fq-btn { transition: none; }
}

