/* ═══════════════════════════════════════════════════════
   FAQ PAGE
═══════════════════════════════════════════════════════ */

.faq-page {
  padding: 120px 0 80px;
  background: var(--bg);
}

.faq-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 60px;
}

.faq-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.faq-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 72px;
}

/* ── Scroll reveal for section titles ── */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-animate].visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Section groups ── */
.faq-section {
  margin-bottom: 56px;
}

.faq-section-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0;
  padding: 20px 0 20px 16px;
  border-left: 2px solid var(--accent);
  border-bottom: none;
  color: var(--text);
}

/* ── FAQ items — accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.faq-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding: 24px 40px 24px 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
  letter-spacing: -0.01em;
}

.faq-q::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.faq-item.open .faq-q::after {
  transform: translateY(-35%) rotate(-135deg);
  border-color: var(--accent);
}

.faq-item.open .faq-q {
  color: var(--accent);
}

.faq-q:hover {
  color: var(--accent);
}

/* Answer — max-height is controlled by JS inline style */
.faq-a {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a {
  padding-bottom: 24px;
}

/* ── CTA block ── */
.faq-cta {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 64px;
  border-radius: var(--r);
  text-align: center;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.faq-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(0,70,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.faq-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
}

.faq-cta p {
  font-size: 0.88rem;
  color: rgba(249, 249, 251, 0.55);
  margin-bottom: 32px;
  position: relative;
}

.faq-cta .btn-accent {
  position: relative;
}

.faq-cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(249, 249, 251, 0.15);
  border-radius: var(--r);
  color: rgba(249, 249, 251, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.faq-cta-tel:hover {
  border-color: rgba(249, 249, 251, 0.4);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .faq-page { padding: 80px 0 60px; }
  .faq-inner { padding: 0 24px; }
  .faq-cta { padding: 40px 24px; }
  .faq-section-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .faq-q { font-size: 0.88rem; padding: 20px 36px 20px 0; }
}
