/**
 * FAQ / Help Centre page — body sections only (nav + footer from the theme).
 * Scoped under .faq-page; uses the theme design tokens.
 * @package Altojive
 */

.faq-page { color: var(--text-primary); }
.faq-page [hidden] { display: none !important; }

/* ── HERO ── */
.faq-page .fq-hero {
  background: var(--navy);
  padding: 72px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faq-page .fq-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.faq-page .fq-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  position: relative;
}
.faq-page .fq-hero__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}
.faq-page .fq-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.65;
  position: relative;
}
.faq-page .fq-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
}
.faq-page .fq-search__icon { padding: 0 14px; color: var(--text-muted); display: flex; align-items: center; flex-shrink: 0; }
.faq-page .fq-search__icon svg { width: 18px; height: 18px; }
.faq-page .fq-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  padding: 14px 16px 14px 0;
  background: transparent;
  min-width: 0;
}
.faq-page .fq-search input::placeholder { color: #b8bccb; }

/* ── LAYOUT ── */
.faq-page .fq-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.faq-page .fq-wrap--empty { display: block; text-align: center; }
.faq-page .fq-empty { color: var(--text-muted); font-size: 0.9375rem; }

/* ── SIDEBAR ── */
.faq-page .fq-sidebar { position: sticky; top: 90px; }
.faq-page .fq-sidebar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
}
.faq-page .fq-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.faq-page .fq-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.faq-page .fq-sidebar__link:hover { background: var(--grey-50); color: var(--navy); }
.faq-page .fq-sidebar__link.is-active {
  background: var(--grey-50);
  color: var(--navy);
  border-left-color: var(--yellow);
  font-weight: 700;
}
.faq-page .fq-sidebar__link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Mobile category select */
.faq-page .fq-cat-select {
  display: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  background: var(--grey-50);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239499b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  outline: none;
  margin-bottom: 32px;
}

/* ── CONTENT ── */
.faq-page .fq-content { min-width: 0; }
.faq-page .fq-section { margin-bottom: 56px; scroll-margin-top: 90px; }
.faq-page .fq-section:last-of-type { margin-bottom: 0; }
.faq-page .fq-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.faq-page .fq-section__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-page .fq-section__icon svg { width: 17px; height: 17px; color: var(--yellow); }
.faq-page .fq-section__title { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--navy); }

/* Accordion */
.faq-page .fq-acc { display: flex; flex-direction: column; }
.faq-page .fq-item { border-bottom: 1px solid var(--border); }
.faq-page .fq-item:first-child { border-top: 1px solid var(--border); }
.faq-page .fq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-page .fq-trigger__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  line-height: 1.4;
}
.faq-page .fq-trigger__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--grey-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-page .fq-trigger__icon svg { width: 14px; height: 14px; color: var(--navy); transition: transform 0.25s; }
.faq-page .fq-item.is-open .fq-trigger__icon { background: var(--yellow); }
.faq-page .fq-item.is-open .fq-trigger__icon svg { transform: rotate(45deg); }
.faq-page .fq-body { display: none; padding-bottom: 20px; }
.faq-page .fq-item.is-open .fq-body { display: block; }
.faq-page .fq-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }
.faq-page .fq-body p + p { margin-top: 10px; }
.faq-page .fq-body a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

/* No results */
.faq-page .fq-no-results { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.faq-page .fq-no-results svg { width: 48px; height: 48px; color: var(--border); margin-bottom: 16px; }
.faq-page .fq-no-results p { font-size: 0.9375rem; }
.faq-page .fq-no-results a { color: var(--navy); font-weight: 600; }

/* ── CTA BANNER ── */
.faq-page .fq-cta { background: var(--navy); padding: 72px 40px; text-align: center; }
.faq-page .fq-cta__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(245,197,24,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.faq-page .fq-cta__icon svg { width: 26px; height: 26px; color: var(--yellow); }
.faq-page .fq-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: #fff; margin-bottom: 12px; }
.faq-page .fq-cta__sub { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.faq-page .fq-cta__buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.faq-page .fq-btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.faq-page .fq-btn-yellow:hover { opacity: 0.9; }
.faq-page .fq-btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 30px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.faq-page .fq-btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* ══ Tablet (≤ 900px) ══ */
@media (max-width: 900px) {
  .faq-page .fq-hero { padding: 56px 24px 64px; }
  .faq-page .fq-hero__title { font-size: 2rem; }
  .faq-page .fq-wrap { grid-template-columns: 1fr; padding: 48px 24px; gap: 0; }
  .faq-page .fq-sidebar { display: none; }
  .faq-page .fq-cat-select { display: block; }
  .faq-page .fq-cta { padding: 56px 24px; }
}

/* ══ Mobile (≤ 600px) ══ */
@media (max-width: 600px) {
  .faq-page .fq-hero { padding: 44px 20px 52px; }
  .faq-page .fq-hero__title { font-size: 1.625rem; }
  .faq-page .fq-hero__sub { font-size: 0.9rem; }
  .faq-page .fq-wrap { padding: 40px 20px; }
  .faq-page .fq-trigger__q { font-size: 0.875rem; }
  .faq-page .fq-cta { padding: 48px 20px; }
  .faq-page .fq-cta__title { font-size: 1.375rem; }
  .faq-page .fq-cta__buttons { flex-direction: column; }
  .faq-page .fq-btn-yellow,
  .faq-page .fq-btn-ghost { display: block; text-align: center; }
}
