/* ================================================================
   PHAROS 8K — FAQ Page Stylesheet
   Categorized Accordion  |  Search & Filter
   ================================================================ */


/* ----------------------------------------------------------------
   1. FAQ CATEGORY FILTERS
   ---------------------------------------------------------------- */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.faq-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease),
              background 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.faq-cat-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.faq-cat-btn.active {
  color: var(--bg-dark);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(245, 200, 66, 0.2);
}

.faq-cat-btn .cat-icon {
  font-size: 1rem;
  line-height: 1;
}


/* ----------------------------------------------------------------
   2. FAQ SEARCH INPUT
   ---------------------------------------------------------------- */
.faq-search {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto 2.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.faq-search::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.faq-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}


/* ----------------------------------------------------------------
   3. FAQ LIST & CATEGORY TITLES
   ---------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.faq-category-title .cat-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.faq-category-title:first-child {
  margin-top: 0;
}


/* ----------------------------------------------------------------
   4. ACCORDION ITEMS
   ---------------------------------------------------------------- */
.faq-item {
  margin-bottom: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.open {
  border-color: rgba(245, 200, 66, 0.3);
  box-shadow: 0 2px 12px rgba(245, 200, 66, 0.06);
}

/* Question button */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  cursor: pointer;
  background: none;
  border: none;
  border-right: 3px solid transparent;
  transition: color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              background 0.3s var(--ease);
}

.faq-question:hover {
  border-right-color: var(--gold);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.open .faq-question {
  color: var(--gold);
  border-right-color: var(--gold);
}

/* Plus / Close icon */
.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease),
              color 0.3s var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--gold);
}

/* Answer — hidden by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  transition: max-height 0.4s var(--ease),
              padding 0.4s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.2rem 1.2rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

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

/* Styled list inside answer */
.faq-answer ul {
  margin: 0.5rem 0;
  padding-right: 0;
}

.faq-answer ul li {
  position: relative;
  padding-right: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Links inside answers */
.faq-answer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.faq-answer a:hover {
  color: var(--gold-dark);
}


/* ----------------------------------------------------------------
   5. SPEED REQUIREMENTS GRID
   ---------------------------------------------------------------- */
.speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.speed-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.15rem 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color 0.3s var(--ease);
}

.speed-item:hover {
  border-color: var(--border-hover);
}

.speed-label {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.speed-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Colour accents per quality tier */
.speed-item:nth-child(1) .speed-label { color: var(--green); }
.speed-item:nth-child(2) .speed-label { color: var(--blue); }
.speed-item:nth-child(3) .speed-label { color: var(--gold); }


/* ----------------------------------------------------------------
   6. FAQ COUNTER
   ---------------------------------------------------------------- */
.faq-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-counter .count-num {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}


/* ----------------------------------------------------------------
   7. FAQ CTA — WhatsApp Contact
   ---------------------------------------------------------------- */
.faq-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-cta h3 {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.faq-cta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

.faq-cta .wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  transition: background 0.3s var(--ease),
              transform 0.25s var(--ease-bounce),
              box-shadow 0.3s var(--ease);
}

.faq-cta .wa-btn:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.faq-cta .wa-btn svg {
  width: 20px;
  height: 20px;
}


/* ----------------------------------------------------------------
   8. RESPONSIVE — Mobile & Tablet
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .faq-categories {
    gap: 0.45rem;
  }

  .faq-cat-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
  }

  .faq-search {
    max-width: none;
    margin: 0 0 2rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 0.92rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1rem 1rem;
  }

  .speed-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .speed-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.25rem;
  }

  .faq-cta {
    padding: 2rem 1.25rem;
    margin-top: 2rem;
  }

  .faq-cta h3 {
    font-size: 1.2rem;
  }

  .faq-category-title {
    font-size: 1.05rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .faq-cat-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 0.9rem;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
  }
}

/* ============================================
   Premium 2026 Enhancements
   ============================================ */

/* Smooth accordion with GPU acceleration */
.faq-answer {
  will-change: max-height;
}

/* Question hover glow */
.faq-question {
  position: relative;
}
.faq-question::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 3px;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question::before,
.faq-question:hover::before {
  transform: scaleY(1);
}

/* Speed grid cards glow */
.speed-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.speed-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Category button ripple */
.faq-cat-btn {
  position: relative;
  overflow: hidden;
}
.faq-cat-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245,200,66,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.faq-cat-btn:hover::after { opacity: 1; }
.faq-cat-btn.active::after { opacity: 0; }

/* FAQ counter glow */
.faq-counter {
  text-shadow: 0 0 20px rgba(245,200,66,0.3);
}
