/* ================================================================== */
/* FAQ panel (includes/faq-list.php) — loaded site-wide               */
/* Colors mirror tailwind.config.js (ink / cream / gold / sun / lagoon)*/
/* ================================================================== */

.faq-section {
  --faq-accent: #f47c0b;
  --faq-accent-dark: #d95f02;
  --faq-accent-soft: #fff3e0;
  --faq-accent-ring: rgba(244, 124, 11, 0.18);
  padding: 4.5rem 0;
}
.faq-accent-teal {
  --faq-accent: #0f766e;
  --faq-accent-dark: #0b5e58;
  --faq-accent-soft: #ecf8f6;
  --faq-accent-ring: rgba(15, 118, 110, 0.18);
}
.faq-section-soft { background: #f2f4f6; }
@media (min-width: 1024px) { .faq-section { padding: 5.5rem 0; } }

.faq-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .faq-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .faq-container { padding: 0 2rem; } }

/* ---------- Panel ---------- */
.faq-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 24px 48px -28px rgba(11, 31, 51, 0.25);
}
@media (min-width: 640px) { .faq-panel { padding: 2.5rem 2.25rem; } }
@media (min-width: 1024px) { .faq-panel { padding: 3rem 3rem 3.25rem; } }
.faq-panel::before {
  /* accent strip along the top */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--faq-accent), #ffb703 55%, #0f766e);
}
.faq-panel-glow {
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--faq-accent-ring), transparent 70%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.faq-head {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #e2e8f0;
}
@media (min-width: 900px) {
  .faq-head { grid-template-columns: 1fr auto; align-items: end; gap: 2.5rem; }
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faq-accent-dark);
  background: var(--faq-accent-soft);
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  border-radius: 999px;
}
.faq-eyebrow svg { width: 0.95rem; height: 0.95rem; }
.faq-title {
  margin: 0.9rem 0 0;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #0b1f33;
}
@media (min-width: 640px) { .faq-title { font-size: 2.35rem; } }
.faq-intro { margin: 0.6rem 0 0; max-width: 34rem; font-size: 0.95rem; line-height: 1.6; color: #64748b; }

/* "Still have questions?" card */
.faq-help {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 183, 3, 0.25), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.4), transparent 60%),
    linear-gradient(150deg, #16324f, #0b1f33);
  box-shadow: 0 18px 36px -20px rgba(11, 31, 51, 0.6);
}
@media (min-width: 900px) { .faq-help { min-width: 22rem; } }
.faq-help-top { display: flex; align-items: center; gap: 0.8rem; }
.faq-help-avatar {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: #ffb703;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.35);
}
.faq-help-avatar svg { width: 1.2rem; height: 1.2rem; }
.faq-help-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 2px #0b1f33;
  animation: faq-pulse 2s ease-out infinite;
}
@keyframes faq-pulse {
  0% { box-shadow: 0 0 0 2px #0b1f33, 0 0 0 2px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 0 0 2px #0b1f33, 0 0 0 10px rgba(37, 211, 102, 0); }
}
.faq-help-title { margin: 0; font-size: 0.95rem; font-weight: 700; }
.faq-help-sub { margin: 0.1rem 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.faq-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.faq-help-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: #25d366;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(37, 211, 102, 0.8);
  transition: background-color 0.2s;
}
.faq-help-wa:hover { background: #1ebe5a; }
.faq-help-wa svg { width: 1rem; height: 1rem; }
.faq-help-call {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.faq-help-call:hover { color: #ffb703; border-color: #ffb703; }

/* ---------- Questions grid ---------- */
.faq-grid {
  position: relative;
  display: grid;
  gap: 0.9rem;
  align-items: start;
}
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
  .faq-grid.is-single { grid-template-columns: 1fr; }
}

.faq-item {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  background: #fafaf7;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item::before {
  /* accent bar that grows in when open */
  content: "";
  position: absolute;
  left: -1px;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--faq-accent);
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover { border-color: #cbd5e1; background: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(11, 31, 51, 0.35); }
.faq-item.is-open {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--faq-accent-ring), 0 18px 36px -20px rgba(11, 31, 51, 0.35);
  transform: none;
}
.faq-item.is-open::before { transform: scaleY(1); }

.faq-q { margin: 0; }
.faq-trigger {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1.05rem 1.1rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: #0b1f33;
  font: inherit;
}
@media (min-width: 640px) { .faq-trigger { padding: 1.15rem 1.35rem; } }
.faq-trigger:focus-visible { outline: 2px solid var(--faq-accent); outline-offset: -2px; border-radius: 1.1rem; }

.faq-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--faq-accent-dark);
  background: var(--faq-accent-soft);
  transition: background-color 0.3s, color 0.3s;
}
.faq-item.is-open .faq-num { color: #fff; background: var(--faq-accent); }

.faq-q-text { flex: 1; font-size: 0.97rem; font-weight: 700; line-height: 1.4; }

.faq-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.faq-chevron svg { width: 1rem; height: 1rem; }
.faq-item:hover .faq-chevron { color: var(--faq-accent-dark); border-color: var(--faq-accent-ring); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: #fff; background: #f47c0b; border-color: #f47c0b; }

/* smooth open/close without measuring heights */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  margin: 0 1.1rem 1.15rem calc(1.1rem + 2.1rem + 0.9rem);
  padding-top: 0.85rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
}
@media (min-width: 640px) {
  .faq-a-inner p { margin: 0 1.35rem 1.25rem calc(1.35rem + 2.1rem + 0.9rem); }
}
@media (max-width: 479px) {
  .faq-a-inner p { margin-left: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-item, .faq-chevron, .faq-item::before { transition: none; }
  .faq-help-dot { animation: none; }
}
