/* FAQ Section - Premium Interactive Layout */
.faq-interactive-section {
  padding: 8rem 0;
  background-image: radial-gradient(circle 650px at 92% 0%, rgba(200, 16, 46, 0.035) 0%, transparent 70%);
  background-color: var(--c-bg);
  color: var(--c-text);
  overflow: hidden;
}

.faq-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* Desktop / tablet tabbed layout — hidden on mobile, accordion shown instead */
.faq-layout {
  display: none;
}

@media (min-width: 992px) {
  .faq-layout {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 5rem;
    /* align-items: stretch by default */
  }
}

/* Left: Nav */
.faq-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.faq-header {
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
  .faq-header {
    text-align: center;
  }
}

.faq-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.faq-tag::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

.faq-title {
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Nav Buttons */
.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.faq-nav::-webkit-scrollbar {
  width: 3px;
}
.faq-nav::-webkit-scrollbar-track {
  background: transparent;
}
.faq-nav::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}
.faq-nav:hover::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-h);
}

@media (min-width: 992px) {
  .faq-nav {
    max-height: 640px;
  }
}

.faq-nav-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  color: var(--c-text-2);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.faq-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.03);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.faq-nav-btn:hover::before {
  opacity: 1;
}

.faq-nav-btn:hover {
  color: var(--c-text);
  transform: translateX(4px);
}

.faq-nav-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 0.2rem;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

.faq-nav-text {
  z-index: 1;
  position: relative;
}

.faq-nav-btn[aria-selected="true"] {
  color: var(--c-text);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 3px 0 0 var(--c-primary);
}

.faq-nav-btn[aria-selected="true"] .faq-nav-icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

/* Right: Answer Display */
.faq-right {
  position: relative;
  height: 100%;
}

.faq-answer-card {
  position: relative;
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .faq-answer-card {
    padding: 4rem;
    min-height: 400px;
  }
}

.faq-watermark {
  position: absolute;
  bottom: -15%;
  right: -5%;
  font-size: clamp(10rem, 20vw, 18rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  font-family: serif;
}

.faq-answer-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
}

.faq-answer-content.active {
  opacity: 1;
  transform: translateY(0);
}

.faq-a-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .faq-a-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.faq-a-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-2);
}

@media (min-width: 768px) {
  .faq-a-text {
    font-size: 1.125rem;
    line-height: 1.7;
  }
}

/* Dark mode enhancements */
.faq-answer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
}

/* ==========================================================================
   MOBILE: Accordion
   Shown below 992px instead of the tabbed layout above.
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 992px) {
  .faq-accordion {
    display: none;
  }
}

.faq-acc-item {
  border: 1px solid var(--c-border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-acc-item.active {
  border-color: var(--c-primary);
  background: rgba(255, 255, 255, 0.03);
}

.faq-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--c-text);
  font-family: inherit;
}

.faq-acc-q {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.faq-acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--c-border-hover);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.faq-acc-icon::before,
.faq-acc-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--c-text-2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.faq-acc-icon::before {
  width: 9px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-acc-icon::after {
  width: 1.5px;
  height: 9px;
  transform: translate(-50%, -50%);
}

.faq-acc-item.active .faq-acc-icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.faq-acc-item.active .faq-acc-icon::before,
.faq-acc-item.active .faq-acc-icon::after {
  background: #fff;
}

.faq-acc-item.active .faq-acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out, ease);
}

.faq-acc-item.active .faq-acc-panel {
  grid-template-rows: 1fr;
}

.faq-acc-panel-inner {
  overflow: hidden;
}

.faq-acc-panel-inner p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--c-text-2);
}
