/* ============================================================
   FAQ Page — CSS
   ============================================================ */

/* ── Hero (reuses .practices-hero) ──────────────────────── */
.practices-hero {
  background: linear-gradient(135deg, #001122 0%, #001933 50%, #003366 100%);
  color: #fff;
  text-align: center;
  padding: calc(6rem + var(--navbar-height)) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.practices-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0, 102, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.practices-hero > .container {
  position: relative;
  z-index: 1;
}

.practices-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.practices-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ── FAQ Section ─────────────────────────────────────────── */
.faq-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
  padding: 5rem 2rem 6rem;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-heading {
  text-align: center;
  color: #003366;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  position: relative;
}

.faq-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #004080, #0066cc);
  border-radius: 2px;
  margin: 0.75rem auto 3rem;
}

/* FAQ Card */
.faq-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 32, 80, 0.06),
              0 1px 4px rgba(0, 32, 80, 0.04);
  border: 1px solid rgba(0, 64, 128, 0.06);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 32, 80, 0.12),
              0 4px 10px rgba(0, 32, 80, 0.06);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  color: #003366;
}

.faq-card.active .faq-question {
  border-bottom: 1px solid rgba(0, 64, 128, 0.08);
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  padding-right: 1.5rem;
}

.faq-icon {
  font-size: 1.3rem;
  color: #004080;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 64, 128, 0.07);
  border-radius: 50%;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  color: #3a3a3a;
  line-height: 1.8;
  font-size: 0.97rem;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s ease;
}

.faq-card.active .faq-answer {
  max-height: 3200px;
  padding: 1.5rem 2rem 2rem;
}

.faq-answer p {
  margin-bottom: 0.85rem;
}

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

.faq-answer ul {
  margin: 0.5rem 0 1rem 1.35rem;
  padding: 0;
  list-style: disc;
}

.faq-answer li {
  margin-bottom: 0.45rem;
}

.faq-note {
  margin-top: 1rem;
  margin-bottom: 0 !important;
  padding: 0.85rem 1rem;
  background: rgba(0, 64, 128, 0.07);
  border-left: 3px solid #0066cc;
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.faq-card.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(0, 64, 128, 0.12);
}


/* ── CTA Section (match practices / about / services) ───── */
.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.88;
  font-size: 1.05rem;
  max-width: 100%;
  margin: 0 auto 2rem;
  line-height: 1.7;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .cta-section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .practices-hero {
    padding: calc(4rem + var(--navbar-height)) 1.5rem 3rem;
  }

  .faq-section {
    padding: 4rem 1.5rem 5rem;
  }

  .faq-question {
    padding: 1.5rem;
  }

  .faq-answer {
    padding: 0 1.5rem;
  }

  .faq-card.active .faq-answer {
    padding: 1.25rem 1.5rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 3rem 0.5rem 4rem;
  }

  .faq-question {
    padding: 1.25rem 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-card.active .faq-answer {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

/* max-height animation is layout-heavy on phones — instant open/close */
@media (max-width: 900px) {
  .faq-answer {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-icon {
    transition: none;
  }
}
