/* ═══ FAQ PAGE STYLES ═══ */
/* Matches Hyzign brand colors and typography exactly */

:root {
  --faq-primary: var(--green-light);
  --faq-dark: var(--green-dark);
  --faq-mid: var(--green-mid);
  --faq-accent: var(--green-accent);
  --faq-pale: var(--green-ultra-pale);
  --faq-text: var(--text-dark);
  --faq-muted: var(--text-muted);
  --faq-border: var(--border);
}

/* ═══ HERO SECTION ═══ */
.faq-hero {
  margin-top: 100px;
  min-height: 70vh;
  background: linear-gradient(135deg, var(--faq-pale) 0%, #ffffff 50%, var(--faq-pale) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5% 60px;
}

.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 20%, rgba(46,184,114,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(10,31,20,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.faq-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.faq-orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 3%;
  background: radial-gradient(circle, rgba(46,184,114,0.15), transparent 70%);
  animation: faqFloat1 8s ease-in-out infinite;
}

.faq-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  left: 8%;
  background: radial-gradient(circle, rgba(10,31,20,0.1), transparent 70%);
  animation: faqFloat2 10s ease-in-out infinite;
}

.faq-orb-3 {
  width: 200px;
  height: 200px;
  top: 35%;
  left: 42%;
  background: radial-gradient(circle, rgba(46,184,114,0.08), transparent 70%);
  animation: faqFloat3 6s ease-in-out infinite;
}

@keyframes faqFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes faqFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.15); }
}

@keyframes faqFloat3 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.6; }
  50% { transform: translate(-20px, 30px) scale(1.2); opacity: 1; }
}

.faq-hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeUpFaq 0.8s ease both;
}

@keyframes fadeUpFaq {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  color: var(--faq-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.faq-hero-label::before {
  content: '?';
  font-size: 0.8rem;
  color: var(--faq-primary);
  font-weight: 900;
}

.faq-hero-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--faq-dark);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.faq-hero-title span {
  background: linear-gradient(135deg, var(--faq-primary), var(--faq-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-hero-desc {
  font-size: 1.05rem;
  color: var(--faq-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* SEARCH BAR */
.faq-hero-search {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.faq-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  font-size: 1rem;
  border: 2px solid var(--faq-border);
  border-radius: 50px;
  background: var(--white);
  color: var(--faq-text);
  transition: all 0.3s ease;
  font-family: 'Geist', sans-serif;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--faq-primary);
  box-shadow: 0 0 0 3px rgba(46, 184, 114, 0.1);
}

.faq-search-input::placeholder {
  color: var(--faq-muted);
}

.faq-hero-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faq-muted);
  pointer-events: none;
}

/* ═══ CATEGORIES SECTION ═══ */
.faq-categories {
  background: var(--white);
  padding: 60px 5%;
  border-bottom: 1px solid var(--faq-border);
  position: sticky;
  top: 76px;
  z-index: 50;
}

.faq-cat-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.faq-cat-btn {
  background: var(--faq-pale);
  border: 1px solid var(--faq-border);
  color: var(--faq-text);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Work Sans', sans-serif;
}

.faq-cat-btn:hover {
  border-color: var(--faq-primary);
  color: var(--faq-primary);
}

.faq-cat-btn.active {
  background: var(--faq-primary);
  color: var(--white);
  border-color: var(--faq-primary);
}

.faq-cat-btn i {
  font-size: 0.95rem;
}

/* ═══ FAQ CONTAINER ═══ */
.faq-container {
  background: linear-gradient(135deg, var(--faq-pale), #ffffff);
  padding: 80px 5%;
  border-bottom: 1px solid var(--faq-border);
}

.faq-category-section {
  max-width: 800px;
  margin: 0 auto 100px;
  display: none;
}

.faq-category-section.active {
  display: block;
}

.faq-category-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--faq-dark);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-category-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--faq-primary), var(--faq-accent));
  border-radius: 2px;
}

/* ═══ FAQ ITEMS ═══ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--faq-primary);
  box-shadow: 0 8px 24px rgba(10, 31, 20, 0.08);
}

.faq-item.active {
  border-color: var(--faq-primary);
  box-shadow: 0 12px 32px rgba(46, 184, 114, 0.15);
}

.faq-item.active .faq-question i {
  color: var(--faq-primary);
  transform: rotate(180deg);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--faq-pale);
}

.faq-question span {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--faq-text);
  text-align: left;
  flex: 1;
}

.faq-question i {
  font-size: 1.2rem;
  color: var(--faq-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  color: var(--faq-muted);
  line-height: 1.8;
}

.faq-answer ul {
  list-style: none;
  padding: 0 24px 24px;
  margin: 0;
}

.faq-answer li {
  font-size: 0.95rem;
  color: var(--faq-muted);
  line-height: 1.8;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.faq-answer li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--faq-primary);
  font-weight: 700;
}

/* ═══ CTA SECTION ═══ */
.faq-cta {
  background: var(--faq-dark);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.faq-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(46, 184, 114, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.faq-cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.faq-cta h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.faq-cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

.faq-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-cta-buttons .btn-primary,
.faq-cta-buttons .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
}

/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.appeared {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ HIDDEN STATE ═══ */
.faq-item.hidden {
  display: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .faq-hero {
    margin-top: 76px;
    min-height: auto;
    padding: 60px 5%;
  }

  .faq-hero-title {
    font-size: 2rem;
  }

  .faq-cat-grid {
    gap: 8px;
  }

  .faq-cat-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .faq-hero {
    padding: 50px 5%;
  }

  .faq-hero-title {
    font-size: 1.6rem;
  }

  .faq-hero-desc {
    font-size: 0.95rem;
  }

  .faq-categories {
    padding: 40px 5%;
    top: 0;
  }

  .faq-cat-grid {
    gap: 6px;
  }

  .faq-cat-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    flex: 1;
    min-width: 90px;
  }

  .faq-cat-btn i {
    display: none;
  }

  .faq-question {
    padding: 16px;
  }

  .faq-question span {
    font-size: 0.95rem;
  }

  .faq-answer p,
  .faq-answer ul {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-cta {
    padding: 60px 5%;
  }

  .faq-cta h2 {
    font-size: 1.4rem;
  }

  .faq-cta-buttons {
    flex-direction: column;
  }

  .faq-cta-buttons .btn-primary,
  .faq-cta-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ ANIMATIONS ═══ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.faq-cat-btn.active {
  animation: pulse 0.5s ease;
}
