/* ============================================================
   FAQ — page.css
   Extends ../style.css
   ============================================================ */

/* ── Service hero ─────────────────────────────────────────── */
.svc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding-top: 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.svc-hero-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-example-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}

.hero-example-img img {
  width: 100%;
  height: auto;
  display: block;
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.svc-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(2rem, min(4.5vw, 8svh), 3.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0.375rem 0 0.5rem;
}

.svc-hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.svc-bc-home {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.svc-bc-home:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.svc-bc-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  white-space: nowrap;
}

.svc-bc-arrow {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}

.hero-price-block {
  margin: 0.25rem 0 0.875rem;
}

.hero-price-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.nav-dropdown a.nav-active {
  color: var(--accent);
}


/* ── Top Q&A ───────────────────────────────────────────────── */
.top-qa-section {
  background: var(--surface);
}

.top-qa-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.top-qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.top-qa-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.75rem 1.875rem;
  transition: border-color 0.2s;
}

.top-qa-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.top-qa-q {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.875rem;
}

.top-qa-a {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
}


/* ── FAQ categories ────────────────────────────────────────── */
.faq-page-section {
  background: var(--bg);
}

.faq-page-head {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.faq-cat-group {
  margin-bottom: 3.5rem;
}

.faq-cat-group:last-child {
  margin-bottom: 0;
}

.faq-cat-label {
  display: block;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* Prevent double border between category label border and faq-list border-top */
.faq-page-section .faq-list {
  border-top: none;
}


/* ── Routing section ───────────────────────────────────────── */
.routing-section {
  background: var(--surface2);
}

.routing-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.routing-intro {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.routing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.routing-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.625rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.routing-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg);
}

.routing-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.routing-card-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  -webkit-text-fill-color: var(--accent);
}

.routing-card:hover .routing-card-arrow {
  transform: translateX(4px);
}


/* ── Final CTA ─────────────────────────────────────────────── */
.faq-cta-section {
  background: var(--surface);
}

.faq-cta-inner {
  max-width: 720px;
}

.faq-cta-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}

.faq-cta-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 580px;
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .svc-hero-inner {
    display: block;
  }

  .hero-example-img {
    display: none;
  }
}

@media (max-width: 1100px) {
  .top-qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .routing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top-qa-grid {
    grid-template-columns: 1fr;
  }

  .routing-grid {
    grid-template-columns: 1fr;
  }
}
