/* ============================================================
   FAQ System Styles
   Renovio — faq.css
   ============================================================ */

/* ── Variables (inherit from shared.css) ── */
:root {
  --faq-max-width: 800px;
  --faq-wide-width: 1200px;
  --faq-orange: #FF7043;
  --faq-navy: #0F2942;
  --faq-blue-light: #E3F2FD;
  --faq-border: #E5E7EB;
  --faq-text: #374151;
  --faq-text-muted: #6B7280;
}

/* ── Container ── */
.faq-container {
  max-width: var(--faq-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumb ── */
.faq-breadcrumb {
  background: #F9FAFB;
  border-bottom: 1px solid var(--faq-border);
  padding: 12px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--faq-text-muted);
}

.breadcrumb-list li + li::before {
  content: '›';
  margin-right: 6px;
  color: #D1D5DB;
}

.breadcrumb-list a {
  color: var(--faq-navy);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--faq-orange);
  text-decoration: underline;
}

.breadcrumb-list li:last-child {
  color: var(--faq-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ── Category Badge ── */
.faq-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Article Hero ── */
.faq-article-hero {
  background: #fff;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--faq-border);
}

.faq-article-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--faq-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.faq-article-meta {
  font-size: 14px;
  color: var(--faq-text-muted);
  margin: 0;
}

/* ── Quick Answer Box ── */
.faq-quick-answer-section {
  background: #fff;
  padding: 32px 0;
}

.faq-quick-answer-box {
  background: var(--faq-blue-light);
  border-left: 4px solid var(--faq-orange);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
}

.faq-quick-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faq-orange);
  margin: 0 0 8px;
}

.faq-quick-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--faq-navy);
  margin: 0;
  font-weight: 500;
}

/* ── Article Body ── */
.faq-article-body {
  background: #fff;
  padding: 40px 0 48px;
}

.faq-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--faq-navy);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.faq-prose h2:first-child {
  margin-top: 0;
}

.faq-prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--faq-text);
  margin: 0 0 16px;
}

.faq-prose ul {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.faq-prose ul li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--faq-text);
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid #F3F4F6;
}

.faq-prose ul li:last-child {
  border-bottom: none;
}

.faq-prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--faq-orange);
  font-size: 14px;
  top: 8px;
}

.faq-prose strong {
  color: var(--faq-navy);
  font-weight: 600;
}

/* ── Related Questions ── */
.faq-related {
  background: #F9FAFB;
  padding: 40px 0;
  border-top: 1px solid var(--faq-border);
}

.faq-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--faq-navy);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.faq-related-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.faq-related-list li {
  border-bottom: 1px solid var(--faq-border);
}

.faq-related-list li:last-child {
  border-bottom: none;
}

.faq-related-list a {
  display: block;
  padding: 12px 0;
  color: var(--faq-navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.faq-related-list a:hover {
  color: var(--faq-orange);
  padding-left: 6px;
}

.faq-related-back a {
  font-size: 14px;
  color: var(--faq-text-muted);
  text-decoration: none;
}

.faq-related-back a:hover {
  color: var(--faq-orange);
}

/* ── FAQ Index Hero ── */
.faq-index-hero {
  background: #fff;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--faq-border);
  text-align: center;
}

.faq-index-hero .faq-container {
  max-width: var(--faq-wide-width);
}

.faq-index-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--faq-navy);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.faq-index-subtitle {
  font-size: 1.1rem;
  color: var(--faq-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Filter Bar ── */
.faq-filter-bar {
  display: none; /* Hidden per user request to remove odd drop shadow/menu */
  background: #fff;
  border-bottom: 2px solid var(--faq-border);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.faq-filter-bar .faq-container {
  max-width: var(--faq-wide-width);
}

.faq-filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.faq-filter-tabs::-webkit-scrollbar {
  display: none;
}

.faq-filter-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--faq-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
  margin-bottom: -2px;
}

.faq-filter-tab:hover {
  color: var(--faq-navy);
}

.faq-filter-tab.active {
  color: var(--faq-orange);
  border-bottom-color: var(--faq-orange);
}

/* ── Category Section ── */
.faq-category-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--faq-border);
}

.faq-category-section .faq-container {
  max-width: var(--faq-wide-width);
}

.faq-category-section.hidden {
  display: none;
}

.faq-category-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--faq-navy);
  letter-spacing: -0.01em;
  padding-left: 16px;
  margin: 0 0 32px;
}

/* ── FAQ Card Grid ── */
.faq-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .faq-card-grid {
    grid-template-columns: 1fr;
  }
}

.faq-card {
  background: #fff;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.faq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15, 41, 66, 0.10);
}

.faq-card.hidden {
  display: none;
}

.faq-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faq-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.faq-card-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--faq-navy);
  margin: 0 0 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}

.faq-card-question a {
  color: inherit;
  text-decoration: none;
}

.faq-card-question a:hover {
  color: var(--faq-orange);
}

.faq-card-teaser {
  font-size: 14px;
  color: var(--faq-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.faq-card-link {
  font-size: 14px;
  font-weight: 600;
  color: #B03818;
  text-decoration: none;
  align-self: flex-start;
  transition: gap 0.18s ease;
}

.faq-card-link:hover {
  text-decoration: underline;
}

/* ── FAQ Accordion (shared, used on service pages and homepage) ── */
.faq-accordion {
  border-top: 1px solid var(--faq-border);
}

.faq-accordion-item {
  border-bottom: 1px solid var(--faq-border);
}

.faq-accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.18s ease;
}

.faq-accordion-trigger:hover {
  background: #FAFAFA;
}

.faq-accordion-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--faq-navy);
  line-height: 1.4;
}

.faq-accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--faq-navy);
  transition: transform 0.3s ease, background 0.18s ease;
  line-height: 1;
}

.faq-accordion-item.open .faq-accordion-icon {
  transform: rotate(45deg);
  background: var(--faq-orange);
  color: #fff;
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-accordion-body.open {
  max-height: 600px;
}

.faq-accordion-answer {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--faq-text);
}

.faq-accordion-answer p {
  margin: 0 0 12px;
}

.faq-accordion-answer p:last-child {
  margin-bottom: 0;
}

.faq-accordion-answer a {
  color: var(--faq-orange);
  text-decoration: none;
  font-weight: 500;
}

.faq-accordion-answer a:hover {
  text-decoration: underline;
}

/* ── In-page FAQ Widget Section ── */
.faq-widget-section {
  padding: 64px 0;
  background: #F9FAFB;
  border-top: 1px solid var(--faq-border);
}

.faq-widget-section .section-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-widget-header {
  margin-bottom: 32px;
}

.faq-widget-cta {
  margin-top: 28px;
  text-align: center;
}

.faq-widget-cta a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--faq-navy);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.faq-widget-cta a:hover {
  background: var(--faq-orange);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .faq-article-hero {
    padding: 32px 0 24px;
  }

  .faq-article-h1 {
    font-size: 1.5rem;
  }

  .faq-filter-tab {
    padding: 14px 16px;
    font-size: 13px;
  }

  .faq-category-heading {
    font-size: 1.2rem;
  }

  .faq-index-hero {
    padding: 40px 0 28px;
    text-align: left;
  }

  .faq-index-subtitle {
    margin: 0;
  }

  .faq-filter-bar {
    top: 60px;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 0 16px;
  }

  .faq-quick-answer-box {
    padding: 16px 18px;
  }

  .faq-accordion-question {
    font-size: 15px;
  }
}
