/* ==========================================================================
   SKYOCEANENTERPRISES — DEDICATED FAQ SYSTEM STYLESHEET
   File: assets/css/faq.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FAQ Hero Section & Search Bar
   -------------------------------------------------------------------------- */
.faq-hero-section {
  position: relative;
  background-color: var(--color-navy, #0D1B2A);
  background-image: linear-gradient(135deg, rgba(13, 27, 42, 0.92) 0%, rgba(22, 138, 173, 0.78) 100%), url('../images/about-meeting.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 150px 0 85px;
  color: #FFFFFF;
  text-align: center;
}

.faq-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq-hero-badge {
  display: inline-block;
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-gold, #D4AF37);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.faq-hero-title {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.faq-hero-desc {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 38px;
  max-width: 680px;
}

/* Functional Live Search Bar */
.faq-search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.faq-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  box-shadow: 0 12px 36px rgba(13, 27, 42, 0.25);
  border: 2px solid transparent;
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-search-input-wrap:focus-within {
  border-color: var(--color-ocean, #168AAD);
  box-shadow: 0 16px 42px rgba(22, 138, 173, 0.35);
}

.faq-search-icon {
  width: 22px;
  height: 22px;
  margin-left: 24px;
  color: var(--color-ocean, #168AAD);
  flex-shrink: 0;
}

.faq-search-input {
  width: 100%;
  padding: 18px 18px 18px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.08rem;
  color: var(--color-navy, #0D1B2A);
  outline: none;
}

.faq-search-input::placeholder {
  color: #94A3B8;
  font-size: 1.02rem;
}

.faq-search-clear {
  display: none;
  background: none;
  border: none;
  margin-right: 18px;
  padding: 6px;
  color: #94A3B8;
  cursor: pointer;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.faq-search-clear:hover {
  color: var(--color-navy, #0D1B2A);
  background: rgba(13, 27, 42, 0.08);
}

.faq-search-clear svg {
  width: 18px;
  height: 18px;
}

.faq-search-clear.is-visible {
  display: flex;
}

/* --------------------------------------------------------------------------
   2. Horizontal Category Navigation Tabs
   -------------------------------------------------------------------------- */
.faq-categories-section {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  padding: 24px 0 18px;
  position: sticky;
  top: 76px;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(13, 27, 42, 0.03);
}

.faq-category-nav-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 4px 0 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.faq-category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  list-style: none !important;
  margin: 0 auto;
  padding: 2px 4px;
  max-width: 1200px;
}

.faq-cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--color-offwhite, #F8F7F2);
  border: 1px solid rgba(13, 27, 42, 0.1);
  color: var(--color-navy, #0D1B2A);
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 0.90rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
  white-space: nowrap;
}

.faq-cat-tab-btn:hover {
  background: rgba(22, 138, 173, 0.1);
  color: var(--color-ocean, #168AAD);
  border-color: rgba(22, 138, 173, 0.25);
}

.faq-cat-tab-btn.active {
  background: var(--color-ocean, #168AAD);
  color: #FFFFFF;
  border-color: var(--color-ocean, #168AAD);
  box-shadow: 0 4px 14px rgba(22, 138, 173, 0.35);
}

.faq-cat-count {
  font-size: 0.78rem;
  background: rgba(13, 27, 42, 0.08);
  color: currentColor;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 800;
}

.faq-cat-tab-btn.active .faq-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. FAQ Content Container & Search Meta
   -------------------------------------------------------------------------- */
.faq-content-section {
  padding: 60px 0 100px;
  background-color: var(--color-offwhite, #F8F7F2);
  min-height: 500px;
}

.faq-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.faq-results-title {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy, #0D1B2A);
  margin: 0;
}

.faq-results-counter {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 0.94rem;
  color: #64748B;
  font-weight: 600;
}

/* Accordion Layout */
.faq-dedicated-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card-item {
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 4px 14px rgba(13, 27, 42, 0.04);
  overflow: hidden;
  transition: all 0.22s ease;
}

.faq-card-item:hover {
  border-color: rgba(22, 138, 173, 0.3);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.07);
}

.faq-card-item.is-open {
  border-color: rgba(22, 138, 173, 0.45);
  box-shadow: 0 10px 28px rgba(22, 138, 173, 0.12);
}

.faq-card-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy, #0D1B2A);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-card-trigger:hover,
.faq-card-trigger:focus-visible {
  color: var(--color-ocean, #168AAD);
  outline: none;
}

.faq-card-item.is-open .faq-card-trigger {
  color: var(--color-ocean, #168AAD);
}

.faq-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
}

.faq-category-tag {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ocean, #168AAD);
  background: rgba(22, 138, 173, 0.09);
  padding: 3px 8px;
  border-radius: 4px;
}

.faq-question-text {
  margin: 0;
  line-height: 1.35;
}

.faq-toggle-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(22, 138, 173, 0.1);
  color: var(--color-ocean, #168AAD);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-card-item.is-open .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--color-ocean, #168AAD);
  color: #FFFFFF;
}

.faq-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card-item.is-open .faq-card-body {
  max-height: 500px;
}

.faq-card-body-inner {
  padding: 0 26px 24px;
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.02rem;
  line-height: 1.74;
  color: #3b4d5f;
  border-top: 1px solid rgba(13, 27, 42, 0.06);
  padding-top: 16px;
}

.faq-card-body-inner p {
  margin: 0 0 12px;
}

.faq-card-body-inner p:last-child {
  margin-bottom: 0;
}

.faq-card-body-inner ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}

.faq-card-body-inner li {
  margin-bottom: 6px;
}

/* Contact CTA inside answer */
.faq-answer-contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(13, 27, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.faq-answer-contact-note {
  font-size: 0.88rem;
  color: #64748B;
  font-weight: 600;
}

.faq-mini-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.faq-mini-contact-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.faq-mini-contact-btn.whatsapp:hover {
  background: #1EBE5D;
}

.faq-mini-contact-btn.contact-link {
  background: var(--color-navy, #0D1B2A);
  color: #FFFFFF;
}

.faq-mini-contact-btn.contact-link:hover {
  background: var(--color-ocean, #168AAD);
}

.faq-mini-contact-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. Empty State Component
   -------------------------------------------------------------------------- */
.faq-empty-state {
  display: none;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed rgba(13, 27, 42, 0.15);
  border-radius: 12px;
  padding: 60px 30px;
  max-width: 580px;
  margin: 30px auto;
}

.faq-empty-state.is-visible {
  display: block;
}

.faq-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22, 138, 173, 0.1);
  color: var(--color-ocean, #168AAD);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.faq-empty-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.faq-empty-title {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy, #0D1B2A);
  margin-bottom: 10px;
}

.faq-empty-desc {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #64748B;
  margin: 0 auto 24px;
  max-width: 440px;
}

/* --------------------------------------------------------------------------
   5. Still Have Questions CTA Section
   -------------------------------------------------------------------------- */
.faq-still-questions-section {
  padding: 85px 0;
  background-color: var(--color-navy, #0D1B2A);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-still-questions-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-ocean, #168AAD) 0%, var(--color-gold, #D4AF37) 100%);
}

.faq-still-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-still-badge {
  display: inline-block;
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-gold, #D4AF37);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.faq-still-title {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.2;
}

.faq-still-desc {
  font-family: var(--font-heading, 'League Spartan'), sans-serif;
  font-size: 1.1rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 34px;
}

.faq-still-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .faq-hero-section {
    padding: 120px 0 60px;
  }

  .faq-card-trigger {
    padding: 18px 20px;
    font-size: 1.05rem;
  }

  .faq-card-body-inner {
    padding: 0 20px 20px;
    font-size: 0.96rem;
  }

  .faq-categories-section {
    top: 70px;
    padding: 18px 0 14px;
  }

  .faq-cat-tab-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  .faq-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .faq-still-actions {
    flex-direction: column;
    width: 100%;
  }

  .faq-still-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .faq-hero-section h1 {
    font-size: 2rem;
  }
  .faq-cat-tab-btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 375px) {
  .faq-hero-section h1 {
    font-size: 1.75rem;
  }
  .faq-item-question {
    font-size: 0.90rem;
  }
}

