/* ============================================================
   BSD ONE SECURITY — Home Page FAQ Section
   ============================================================ */

.home-faq-section {
  background: var(--light-bg-2);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative background number */
.home-faq-section::before {
  content: 'FAQ';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 22rem);
  color: rgba(0, 0, 0, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Left Column ──────────────────────────────────────────── */
.faq-intro-col {}

.faq-intro-col .section-label { color: var(--red); }

.faq-intro-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: 0.92;
  color: var(--light-text);
  margin-top: 12px;
}

.faq-intro-title span { color: var(--red); }

.faq-intro-body {
  font-size: 0.95rem;
  color: var(--light-text-sub);
  line-height: 1.8;
  max-width: 380px;
  margin-top: 20px;
}

/* Contact nudge card */
.faq-contact-nudge {
  margin-top: 36px;
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-nudge-icon {
  width: 48px;
  height: 48px;
  background: rgba(192, 32, 42, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-nudge-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.faq-nudge-text a {
  font-size: 0.8rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.faq-nudge-text a:hover { text-decoration: underline; }

/* ── Accordion Items ──────────────────────────────────────── */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-acc-item {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-acc-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.faq-acc-item.open {
  border-color: rgba(192, 32, 42, 0.3);
  box-shadow: 0 4px 24px rgba(192, 32, 42, 0.08);
}

/* Question trigger */
.faq-acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-acc-trigger:hover {
  background: rgba(192, 32, 42, 0.03);
}

.faq-acc-q {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-text);
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-acc-item.open .faq-acc-q { color: var(--red); }

/* +/× icon */
.faq-acc-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--light-text-sub);
  font-size: 1rem;
}

.faq-acc-item.open .faq-acc-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: rotate(45deg);
}

/* Answer panel */
.faq-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-acc-item.open .faq-acc-body {
  max-height: 400px;
}

.faq-acc-answer {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  color: var(--light-text-sub);
  line-height: 1.8;
  border-top: 1px solid var(--light-border);
  padding-top: 16px;
}

.faq-acc-answer a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.faq-acc-answer a:hover { text-decoration: underline; }

/* Category pill on question */
.faq-cat-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(192, 32, 42, 0.08);
  color: var(--red);
  margin-bottom: 4px;
}

/* ── Category Filter Tabs ─────────────────────────────────── */
.faq-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.faq-filter-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--light-text-sub);
  cursor: pointer;
  transition: var(--transition);
}

.faq-filter-btn:hover,
.faq-filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .home-faq-section { padding: 70px 0; }
  .faq-intro-col    { margin-bottom: 40px; }
  .faq-intro-body   { max-width: 100%; }
  .faq-contact-nudge { margin-top: 28px; }
}

@media (max-width: 575px) {
  .faq-acc-trigger { padding: 16px 18px; }
  .faq-acc-answer  { padding: 0 18px 18px; padding-top: 14px; }
}