/* ========================================
   FAQ MODERN — Dribbble-inspired
   ======================================== */

/* ========== ANIMATIONS ========== */
@keyframes faqFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes faqBounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes faqGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes faqFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== SCROLL REVEAL ========== */
.faq-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.faq-reveal-delay-1 { transition-delay: 0.1s; }
.faq-reveal-delay-2 { transition-delay: 0.2s; }
.faq-reveal-delay-3 { transition-delay: 0.3s; }

/* ========== HERO ========== */
.faq-hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 40%, #e3edf7 100%);
  background-size: 200% 200%;
  animation: faqGradientShift 12s ease infinite;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 194, 255, 0.08) 0%, transparent 70%);
  animation: faqFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.faq-hero-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  animation: faqFadeInUp 0.8s ease-out;
}

.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(43, 194, 255, 0.12);
  border: 1px solid rgba(43, 194, 255, 0.25);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--puramane-navy);
  margin-bottom: 1.5rem;
  animation: faqBounceIn 0.6s ease-out 0.2s both;
}

.faq-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--puramane-navy);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.faq-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(69, 87, 99, 0.7);
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* ========== SEARCH ========== */
.faq-search-wrapper {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
}

.faq-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(69, 87, 99, 0.4);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border: 2px solid rgba(69, 87, 99, 0.1);
  border-radius: 100px;
  font-size: 1rem;
  color: var(--puramane-navy);
  background: white;
  outline: none;
  box-shadow: 0 4px 14px rgba(69, 87, 99, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}
.faq-search-input::placeholder {
  color: rgba(69, 87, 99, 0.4);
}
.faq-search-input:focus {
  border-color: var(--puramane-navy);
  box-shadow: 0 4px 20px rgba(69, 87, 99, 0.12);
}

/* ========== CATEGORY PILLS ========== */
.faq-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem 2rem 0;
  max-width: 56rem;
  margin: 0 auto;
}

.faq-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(69, 87, 99, 0.7);
  background: rgba(69, 87, 99, 0.06);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}
.faq-pill:hover {
  background: rgba(69, 87, 99, 0.1);
  transform: translateY(-2px);
}
.faq-pill.active {
  background: var(--puramane-navy);
  color: white;
  border-color: var(--puramane-navy);
  box-shadow: 0 4px 12px rgba(69, 87, 99, 0.2);
}
.faq-pill:active {
  transform: scale(0.97);
}

/* ========== FAQ CONTENT ========== */
.faq-content {
  padding: 3rem 0 5rem;
  background: white;
}

.faq-content-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Category block */
.faq-category {
  margin-bottom: 3rem;
}

.faq-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(69, 87, 99, 0.06);
}

/* Accordion items */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-accordion-item {
  border: 1px solid rgba(69, 87, 99, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s ease;
}
.faq-accordion-item:hover {
  box-shadow: 0 4px 12px rgba(69, 87, 99, 0.06);
}
.faq-accordion-item.open {
  border-color: rgba(43, 194, 255, 0.3);
  box-shadow: 0 8px 24px rgba(69, 87, 99, 0.08);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--puramane-navy);
  font-family: inherit;
  gap: 1rem;
  transition: background 0.2s ease;
}
.faq-accordion-header:hover {
  background: rgba(69, 87, 99, 0.02);
}

.faq-accordion-chevron {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: rgba(69, 87, 99, 0.4);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s;
}
.faq-accordion-item.open .faq-accordion-chevron {
  transform: rotate(180deg);
  color: var(--puramane-navy);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              padding 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-accordion-item.open .faq-accordion-body {
  max-height: 500px;
}

.faq-accordion-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: rgba(69, 87, 99, 0.7);
  line-height: 1.7;
}

/* ========== NO RESULTS ========== */
.faq-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(69, 87, 99, 0.5);
  font-size: 1rem;
}

.faq-no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ========== CTA ========== */
.faq-cta {
  padding: 3rem;
  background: linear-gradient(135deg, rgba(43, 194, 255, 0.06) 0%, rgba(69, 87, 99, 0.04) 100%);
  border-radius: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.faq-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.5rem;
}

.faq-cta p {
  color: rgba(69, 87, 99, 0.6);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.faq-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--puramane-navy);
  color: white;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(69, 87, 99, 0.2);
}
.faq-cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(69, 87, 99, 0.25); }
.faq-cta-btn-primary:active { transform: scale(0.97); }

.faq-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: white;
  color: var(--puramane-navy);
  border: 2px solid rgba(69, 87, 99, 0.15);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.faq-cta-btn-secondary:hover { transform: translateY(-2px); border-color: var(--puramane-navy); }

/* ========== RESPONSIVE — 1280px+ ========== */
@media (min-width: 1280px) {
  .faq-hero h1 { font-size: 3.5rem; }
}

/* ========== RESPONSIVE — 1024-1279px ========== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .faq-hero h1 { font-size: 2.75rem; }
}

/* ========== RESPONSIVE — 769-1023px (TABLET) ========== */
@media (min-width: 769px) and (max-width: 1023px) {
  .faq-hero { padding: 4rem 0 2.5rem; }
  .faq-hero h1 { font-size: 2.5rem; }
  .faq-hero-subtitle { font-size: 1rem; }
  .faq-pills { gap: 0.375rem; }
  .faq-pill { font-size: 0.8125rem; padding: 0.4375rem 1rem; }
  .faq-category-title { font-size: 1.375rem; }
}

/* ========== RESPONSIVE — MOBILE (max 768px) ========== */
@media (max-width: 768px) {
  .faq-hero { padding: 2.5rem 0 2rem; }
  .faq-hero::before { display: none; }
  .faq-hero-inner { padding: 0 1.25rem; }

  .faq-hero h1 { font-size: 2rem; }
  .faq-hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }

  .faq-search-input {
    font-size: 16px; /* prevent iOS zoom */
    padding: 0.875rem 1rem 0.875rem 3rem;
  }

  .faq-pills {
    padding: 1.5rem 1.25rem 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.375rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .faq-pills::-webkit-scrollbar { display: none; }
  .faq-pill { flex-shrink: 0; font-size: 0.8125rem; padding: 0.4375rem 1rem; }

  .faq-content { padding: 2rem 0 3rem; }
  .faq-content-inner { padding: 0 1.25rem; }

  .faq-category { margin-bottom: 2rem; }
  .faq-category-title { font-size: 1.25rem; margin-bottom: 1rem; }

  .faq-accordion-header { padding: 1rem 1.25rem; font-size: 0.9375rem; }
  .faq-accordion-answer { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; }

  .faq-cta { padding: 2rem 1.5rem; border-radius: 1rem; }
  .faq-cta h2 { font-size: 1.25rem; }
  .faq-cta p { font-size: 0.9375rem; }
  .faq-cta-btns { flex-direction: column; }
  .faq-cta-btn-primary, .faq-cta-btn-secondary { width: 100%; justify-content: center; }
}

/* ========== RESPONSIVE — SMALL MOBILE (max 480px) ========== */
@media (max-width: 480px) {
  .faq-hero h1 { font-size: 1.75rem; }
  .faq-pill { font-size: 0.75rem; padding: 0.375rem 0.875rem; }
  .faq-accordion-header { font-size: 0.875rem; padding: 0.875rem 1rem; }
  .faq-accordion-answer { font-size: 0.8125rem; padding: 0 1rem 1rem; }
  .faq-cta h2 { font-size: 1.125rem; }
}
