/* ============================================================
   SHRADHYA TECH SOLUTIONS — faq-page.css
   Standalone FAQ page styles
   ============================================================ */

/* ── Search bar ── */
.faq-search-wrap {
  max-width: 680px; margin: 0 auto 2rem;
}
.faq-search-inner {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 50px; padding: .1rem .1rem .1rem 1.4rem;
  transition: border-color .3s, box-shadow .3s;
}
.faq-search-inner:focus-within {
  border-color: rgba(0,87,184,.5);
  box-shadow: 0 0 0 4px rgba(0,87,184,.07);
}
.faq-s-ico { font-size: 1.1rem; flex-shrink: 0; margin-right: .5rem; }
.faq-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--fb); font-size: .95rem;
  padding: .85rem 0;
}
.faq-search-input::placeholder { color: var(--muted); }
.faq-s-count {
  background: linear-gradient(135deg,var(--teal),var(--teal-2));
  color: var(--dark); font-size: .72rem; font-weight: 800;
  padding: .35rem .9rem; border-radius: 50px; margin-right: .4rem;
  white-space: nowrap; min-width: 60px; text-align: center;
}

/* ── Category chips ── */
.faq-chips {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.faq-chip {
  padding: .45rem 1.2rem; border-radius: 50px; cursor: pointer;
  font-size: .8rem; font-weight: 600; font-family: var(--fb);
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); transition: all .25s;
}
.faq-chip:hover, .faq-chip.active {
  background: linear-gradient(135deg,var(--teal),var(--teal-2));
  color: var(--dark); border-color: transparent;
  box-shadow: 0 0 20px rgba(0,87,184,.3);
}

/* ── Accordion ── */
.faq-accordion { max-width: 820px; margin: 0 auto 3rem; }

.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: .85rem; overflow: hidden;
  transition: border-color .28s, box-shadow .28s;
}
.faq-item:hover { border-color: rgba(0,87,184,.3); }
.faq-item.open  {
  border-color: rgba(0,87,184,.4);
  box-shadow: 0 1px 3px rgba(16,21,28,.08);
}

.faq-q {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; cursor: pointer;
  font-family: var(--fh); font-size: .95rem; font-weight: 700;
  color: var(--text); user-select: none;
  transition: color .25s;
}
.faq-item.open .faq-q, .faq-q:hover { color: var(--teal); }

.faq-q-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(0,87,184,.1); border: 1px solid rgba(0,87,184,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: all .28s;
}
.faq-item.open .faq-q-icon {
  background: linear-gradient(135deg,var(--teal),var(--teal-2));
}

.faq-q-text { flex: 1; line-height: 1.4; }

.faq-chevron {
  font-size: 1.1rem; color: var(--muted); flex-shrink: 0;
  transition: transform .32s cubic-bezier(.4,0,.2,1), color .25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--teal); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1), padding .32s ease;
  padding: 0 1.4rem 0 1.4rem;
  color: var(--muted); font-size: .88rem; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.4rem 1.3rem 1.4rem; }
.faq-a ul { padding-left: 1.2rem; margin: .5rem 0; }
.faq-a li { margin-bottom: .3rem; }
.faq-a strong { color: var(--text); }

/* ── Category label inside answer ── */
.faq-cat-pill {
  display: inline-block; font-size: .62rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: rgba(0,87,184,.08);
  border: 1px solid rgba(0,87,184,.18); border-radius: 50px;
  padding: .2rem .7rem; margin-bottom: .7rem;
}

/* ── No results ── */
.faq-no-results {
  text-align: center; padding: 3rem 1rem;
  color: var(--muted);
}
.faq-no-icon { font-size: 3rem; margin-bottom: 1rem; }
.faq-no-results h3 { font-family: var(--fh); color: var(--text); margin-bottom: .5rem; }
.faq-no-results a  { color: var(--teal); }

/* ── Bottom CTA ── */
.faq-bottom-cta {
  text-align: center; margin-top: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem 2rem;
  max-width: 600px; margin: 0 auto;
}
.faq-cta-icon  { font-size: 2.5rem; margin-bottom: .8rem; }
.faq-cta-title { font-family: var(--fh); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.faq-cta-sub   { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.faq-cta-btns  { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ── Light theme overrides ── */
.faq-search-inner,
.faq-search-inner,
.faq-search-inner { background: var(--card); }

.faq-search-input,
.faq-search-input,
.faq-search-input { color: var(--text); }

@media(max-width:600px) {
  .faq-q { padding: .9rem 1rem; font-size: .88rem; }
  .faq-a { padding: 0 1rem 0; }
  .faq-item.open .faq-a { padding: 0 1rem 1rem; }
  .faq-cta-btns { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════
   STICKY SEARCH + CHIPS BAR
   ══════════════════════════════════════════════════════ */
.faq-sticky-bar {
  position: sticky;
  top: 72px;                          /* clears the fixed nav height */
  z-index: 800;
  background: var(--dark);
  padding: 1rem 0 .9rem;
  margin: 0 -5%;                      /* stretch edge-to-edge under inner padding */
  padding-left: 5%; padding-right: 5%;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  transition: background .4s;
}

/* Light themes */
.faq-sticky-bar,
.faq-sticky-bar,
.faq-sticky-bar {
  background: var(--dark);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* Remove bottom margin from search & chips since bar handles spacing */
.faq-sticky-bar .faq-search-wrap  { margin-bottom: .85rem; }
.faq-sticky-bar .faq-chips        { margin-bottom: 0; }

/* Give accordion breathing room so first item isn't hidden under bar */
.faq-accordion { scroll-margin-top: 180px; }
.faq-item      { scroll-margin-top: 180px; }

@media(max-width: 768px) {
  .faq-sticky-bar { top: 60px; }
}
