/* ===========================
   FAQ PAGE STYLES
=========================== */

/* Active nav link */
.nav-link--active {
  color: var(--primary) !important;
}
.nav-link--active::after {
  left: 16px !important;
  right: 16px !important;
}

/* ─── FAQ Hero ─────────────────────────── */
.faq-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 80px;
  overflow: hidden;
  text-align: center;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(196,100%,30%,0.18) 0%, transparent 70%),
              linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  z-index: 0;
}
.faq-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, hsla(196,100%,44%,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 30%, hsla(196,100%,44%,0.04) 0%, transparent 40%);
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-search-wrap { margin-top: 40px; }

.faq-search {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 540px;
  margin: 0 auto;
  background: hsla(218,45%,100%,0.05);
  border: 1.5px solid var(--glass-border);
  border-radius: 50px;
  padding: 14px 24px;
  transition: var(--transition);
}
.faq-search:focus-within {
  border-color: var(--primary);
  background: hsla(196,100%,44%,0.07);
  box-shadow: 0 0 0 4px hsla(196,100%,44%,0.08);
}

.search-icon { font-size: 1.1rem; flex-shrink: 0; }

.faq-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.faq-search input::placeholder { color: var(--text-muted); }

/* ─── FAQ Layout ────────────────────────── */
.faq-body { background: var(--navy); padding-top: 64px; }

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

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

.sidebar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.faq-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.faq-cat:hover {
  background: hsla(196,100%,44%,0.08);
  color: var(--text-primary);
}
.faq-cat.active {
  background: hsla(196,100%,44%,0.14);
  color: var(--primary);
  font-weight: 600;
}

.cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: hsla(196,100%,44%,0.12);
  color: var(--primary);
  border-radius: 50px;
  padding: 2px 8px;
  min-width: 24px;
  text-align: center;
}
.faq-cat.active .cat-count {
  background: var(--primary);
  color: var(--navy);
}

.sidebar-callout {
  background: linear-gradient(135deg, hsla(196,100%,44%,0.12), hsla(196,100%,30%,0.06));
  border: 1px solid hsla(196,100%,44%,0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.callout-icon { font-size: 2rem; margin-bottom: 12px; }
.sidebar-callout h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sidebar-callout p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ─── FAQ Group ─────────────────────────── */
.faq-group {
  margin-bottom: 56px;
}
.faq-group[style*="display:none"] { display: none !important; }

.faq-group-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.group-icon { font-size: 1.3rem; }

/* ─── FAQ Accordion ─────────────────────── */
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--glass-bg);
}
.faq-item:hover { border-color: hsla(196,100%,44%,0.2); }
.faq-item.open {
  border-color: hsla(196,100%,44%,0.35);
  box-shadow: 0 4px 20px hsla(196,100%,30%,0.12);
  background: hsla(218,45%,100%,0.05);
}
.faq-item.hidden { display: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-chevron svg { width: 100%; height: 100%; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}
.faq-answer-inner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner strong { color: var(--text-primary); font-weight: 600; }

.faq-list-styled {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-left: 4px;
}
.faq-list-styled li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.faq-list-styled li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* ─── No Results ────────────────────────── */
.faq-no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.faq-no-results h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.faq-no-results p { font-size: 0.9rem; line-height: 1.65; }
.faq-no-results a { color: var(--primary); text-decoration: underline; }

/* ─── CTA Banner ────────────────────────── */
.faq-cta-banner {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 64px 0;
}

.faq-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.faq-cta-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.faq-cta-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.65;
}
.faq-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────── */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
  .faq-categories { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .faq-cat { flex: none; }
  .sidebar-callout { display: none; }
}

@media (max-width: 600px) {
  .faq-cta-inner { flex-direction: column; text-align: center; }
  .faq-cta-actions { justify-content: center; }
  .faq-cta-text p { max-width: none; }
}
