/* ── FAQ PAGE ── */

.faq-hero {
  background: var(--steel-blue);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    linear-gradient(rgba(214,224,240,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,224,240,0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.faq-hero .container { position: relative; }

.faq-hero-sub {
  color: var(--light-steel-blue);
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* Search bar */
.faq-search-wrap {
  margin-top: 2rem;
  max-width: 480px;
  position: relative;
}

.faq-search {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(214,224,240,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.faq-search::placeholder { color: rgba(214,224,240,0.5); }
.faq-search:focus { border-color: var(--gold); background: rgba(255,255,255,0.12); }

.faq-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(214,224,240,0.5);
  pointer-events: none;
}

/* Layout */
.faq-section { background: var(--light-gray); }

.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar */
.faq-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.faq-sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.faq-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.faq-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.faq-sidebar-link:hover { background: var(--white); color: var(--steel-blue); }
.faq-sidebar-link.active { background: var(--steel-blue); color: var(--white); }
.faq-sidebar-link.active .faq-sidebar-icon { color: var(--gold); }

.faq-sidebar-icon { font-size: 1rem; flex-shrink: 0; }

.faq-sidebar-divider { height: 1px; background: rgba(31,56,100,0.1); margin: 0.75rem 0; }

.faq-still-help {
  background: var(--steel-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
}

.faq-still-help p {
  font-size: 0.8375rem;
  color: var(--light-steel-blue);
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

/* FAQ Body */
.faq-body { display: flex; flex-direction: column; gap: 2.5rem; }

.faq-group { scroll-margin-top: calc(var(--nav-height) + 1.5rem); }

.faq-group-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--steel-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}

.faq-group-icon { font-size: 1.25rem; }

/* Accordion */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31,56,100,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open   { box-shadow: var(--shadow-md); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

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

.faq-question-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--steel-blue);
  line-height: 1.4;
}

.faq-item.open .faq-question-text { color: var(--steel-blue); }

.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s;
  color: var(--steel-blue);
}

.faq-item.open .faq-chevron {
  background: var(--gold);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  border-top: 1px solid var(--light-gray);
  padding-top: 1rem;
}

.faq-answer-inner a { color: var(--gold); text-decoration: underline; }
.faq-answer-inner strong { color: var(--text-dark); }

.faq-answer-inner ul {
  margin: 0.625rem 0 0.625rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-answer-inner ul li {
  list-style: disc;
  font-size: 0.9375rem;
  color: var(--text-mid);
}

/* No results */
.faq-no-results {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.faq-no-results.visible { display: block; }

/* Still have questions banner */
.faq-cta-banner {
  background: var(--steel-blue);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.faq-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(201,168,76,0.1) 0%, transparent 70%);
}

.faq-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.faq-cta-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.faq-cta-sub { color: var(--light-steel-blue); font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }

  .faq-sidebar {
    position: static;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
  }

  .faq-sidebar-links { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }

  .faq-sidebar-link {
    padding: 0.4rem 0.875rem;
    border: 1px solid rgba(31,56,100,0.12);
    border-radius: 999px;
    font-size: 0.8rem;
  }

  .faq-sidebar-divider { display: none; }
  .faq-still-help { display: none; }

  .faq-cta-inner { flex-direction: column; text-align: center; }
  .faq-cta-inner .btn { width: 100%; justify-content: center; }
}
