/* ===================================================
   WorkNest - FUN Animated 2-Column FAQs
   Theme: Deep Plum, Dusty Rose & Soft Blush (Zero Green)
   =================================================== */
 
.section-faqs-balanced {
  --plum: var(--color-plum-dark, #161a39);
  --rose: var(--color-rose-accent, #e27a34);
  --blush: var(--color-blush-border, #dfe2ea);
  --muted: var(--text-muted, #545d72);
 
  position: relative;
  background-color: #f7f8f9;
  padding: 100px 0 110px 0;
  overflow: hidden;
}
 
/* ---------- Background: glow + floating blobs ---------- */
.faq-ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(226, 122, 52, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  animation: faqGlowBreath 7s ease-in-out infinite;
}
 
.faq-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
}
.faq-blob-1 { width: 90px;  height: 90px;  top: 8%;  left: 6%;  background: rgba(226, 122, 52, 0.15); animation: faqFloat 9s ease-in-out infinite; }
.faq-blob-2 { width: 140px; height: 140px; bottom: 10%; right: 5%; background: rgba(22, 26, 57, 0.07);   animation: faqFloat 12s ease-in-out infinite reverse; }
.faq-blob-3 { width: 55px;  height: 55px;  top: 55%; left: 3%;  background: rgba(240, 182, 144, 0.35); animation: faqFloat 7s ease-in-out infinite 1s; }
 
@keyframes faqFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(18px, -26px) scale(1.12); }
  66%      { transform: translate(-14px, 14px) scale(0.92); }
}
@keyframes faqGlowBreath {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}
 
/* ---------- Scroll reveal (staggered pop-in) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}
[data-reveal].is-visible {
  animation: faqPopIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes faqPopIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
 
/* ---------- Header extras ---------- */
.faq-tag-pulse { animation: faqTagPulse 2.6s ease-in-out infinite; }
@keyframes faqTagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 122, 52, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(226, 122, 52, 0); }
}
 
.faq-wiggle-icon {
  display: inline-block;
  animation: faqWiggle 3s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes faqWiggle {
  0%, 70%, 100% { transform: rotate(0); }
  75% { transform: rotate(-18deg) scale(1.15); }
  82% { transform: rotate(14deg) scale(1.15); }
  89% { transform: rotate(-8deg); }
  95% { transform: rotate(4deg); }
}
 
.faq-shimmer-text {
  background-size: 220% auto;
  animation: faqShimmer 4s linear infinite;
}
@keyframes faqShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 220% center; }
}
 
/* ---------- FAQ Card ---------- */
.faq-card-balanced {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--blush);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 4px 15px rgba(22, 26, 57, 0.03);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease-out;
}
 
/* Cursor-following soft spotlight */
.faq-card-balanced::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) 0%, rgba(226, 122, 52, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
 
/* Diagonal shine sweep */
.faq-shine {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}
 
.faq-bar-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 0%;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(to bottom, var(--plum), var(--rose));
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.faq-header-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  outline: none;
}
.faq-header-bar:focus-visible {
  outline: 2px dashed var(--rose);
  outline-offset: 6px;
  border-radius: 12px;
}
 
/* Number pill */
.faq-num-pill {
  display: inline-block;
  font-family: var(--font-heading, inherit);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rose);
  line-height: 1;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
 
.faq-title-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--plum);
  margin: 0;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
/* Chevron button */
.faq-btn-circle {
  width: 36px;
  height: 36px;
  background: #f5f7fa;
  border: 1px solid var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
 
/* ---------- Smooth accordion body (grid 0fr -> 1fr) ---------- */
.faq-body-collapse {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.faq-content-inner {
  min-height: 0;
  overflow: hidden;
}
.faq-content-pad {
  padding-top: 15px;
  margin-top: 14px;
  border-top: 1.5px dashed var(--blush);
}
.faq-content-pad p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s, opacity 0.4s ease 0.08s;
}
.faq-content-pad strong { color: var(--plum); }
 
/* ---------- Hover ---------- */
@media (hover: hover) {
  .faq-card-balanced:hover {
    border-color: var(--rose);
    box-shadow: 0 14px 34px rgba(226, 122, 52, 0.16);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px);
  }
  .faq-card-balanced:hover::before { opacity: 1; }
  .faq-card-balanced:hover .faq-shine { animation: faqShineSweep 0.9s ease forwards; }
  .faq-card-balanced:hover .faq-title-text { color: var(--rose); transform: translateX(5px); }
  .faq-card-balanced:hover .faq-num-pill { transform: scale(1.3) rotate(-8deg); }
  .faq-card-balanced:hover .faq-btn-circle { transform: scale(1.12); border-color: var(--rose); }
  .faq-card-balanced:hover .faq-bar-accent { height: 100%; }
  .faq-card-balanced.active:hover .faq-btn-circle { transform: rotate(180deg) scale(1.12); }
}
@keyframes faqShineSweep {
  0%   { left: -75%; }
  100% { left: 135%; }
}
 
/* ---------- Active (open) ---------- */
.faq-card-balanced.active {
  border-color: var(--plum);
  box-shadow: 0 16px 38px rgba(22, 26, 57, 0.10);
}
.faq-card-balanced.active .faq-bar-accent { height: 100%; }
.faq-card-balanced.active .faq-btn-circle {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
  transform: rotate(180deg);
}
.faq-card-balanced.active .faq-num-pill { animation: faqNumBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.faq-card-balanced.active .faq-body-collapse { grid-template-rows: 1fr; opacity: 1; }
.faq-card-balanced.active .faq-content-pad p { transform: translateY(0); opacity: 1; }
 
@keyframes faqNumBounce {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.7) rotate(-14deg); }
  70%  { transform: scale(0.9) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
 
/* ---------- Sparkle burst on open ---------- */
.faq-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  animation: faqSpark 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes faqSpark {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); }
}
 
/* ---------- Help tile ---------- */
.faq-help-tile-balanced {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  border: 1.5px solid var(--blush);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 8px 25px rgba(22, 26, 57, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-help-tile-balanced:hover {
  border-color: var(--rose);
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 16px 38px rgba(226, 122, 52, 0.2);
}
 
.help-tile-icon {
  width: 42px;
  height: 42px;
  background: var(--plum);
  color: #ffffff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: faqBob 3s ease-in-out infinite;
}
.faq-help-tile-balanced:hover .help-tile-icon {
  animation: faqHeartBeat 0.9s ease-in-out infinite;
  background: var(--rose);
}
@keyframes faqBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-5px) rotate(-6deg); }
}
@keyframes faqHeartBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.18); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.12); }
}
 
.tag-response-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f7fa;
  color: var(--rose);
  border: 1px solid var(--blush);
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  display: inline-block;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rose);
  animation: faqPing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes faqPing {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}
 
/* WhatsApp button: shine + wiggle on hover */
.faq-wa-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.faq-wa-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
}
.faq-wa-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px rgba(226, 122, 52, 0.35);
}
.faq-wa-btn:hover::after { animation: faqShineSweep 0.7s ease forwards; }
.faq-wa-btn:hover .bi-whatsapp { animation: faqWiggle 0.6s ease; display: inline-block; }
 
/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .faq-title-text { font-size: 0.95rem; }
  .faq-blob-2 { display: none; }
}
 
/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .section-faqs-balanced *,
  .section-faqs-balanced *::before,
  .section-faqs-balanced *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
 