/* ============================================
   NECK PAIN TREATMENT - UNIQUE CARD REDESIGN
   Creative, perspective-changing card designs
   ============================================ */

/* Scroll Reveal Base */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MYTH-REALITY COMPARISON CARDS
   ============================================ */

.myth-reality-card {
  position: relative;
  will-change: transform, box-shadow, background;
}

/* Alternating blue/green gradients for myth-reality cards */
.myth-reality-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(13, 76, 136, 0.3) !important;
}

.myth-reality-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(115, 201, 69, 0.3) !important;
}

.myth-reality-card:hover {
  transform: translateY(-12px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.15));
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.18), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(255, 68, 68, 0.35) !important;
}

.myth-reality-card:hover div[style*="width: 40px"][style*="flex: 0 0 40px"]:first-of-type {
  transform: scale(1.2) rotate(12deg);
}

/* ============================================
   TREATMENT FOCUS CARDS
   ============================================ */

.focus-card {
  position: relative;
  will-change: transform, filter, background;
}

/* Alternating blue/green gradients for focus cards */
.focus-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(13, 76, 136, 0.3) !important;
}

.focus-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(115, 201, 69, 0.3) !important;
}

.focus-card:hover {
  transform: translateY(-14px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
}

.focus-card:hover div[style*="width: 54px"] {
  transform: scale(1.25) rotate(-15deg);
  animation: bounce-icon-focus 0.7s ease-in-out infinite;
}

@keyframes bounce-icon-focus {
  0%, 100% { transform: scale(1.25) rotate(-15deg) translateY(0); }
  50% { transform: scale(1.25) rotate(-15deg) translateY(-10px); }
}

.focus-card:nth-child(1):hover,
.focus-card:nth-child(3):hover,
.focus-card:nth-child(5):hover {
  background: linear-gradient(135deg, rgba(22, 130, 202, 0.22), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(22, 130, 202, 0.4) !important;
}

.focus-card:nth-child(2):hover,
.focus-card:nth-child(4):hover,
.focus-card:nth-child(6):hover {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(115, 201, 69, 0.4) !important;
}

/* ============================================
   TREATMENT OPTION CARDS
   ============================================ */

.treatment-option-card {
  position: relative;
  will-change: transform, filter;
}

/* Alternating blue/green gradients for treatment option cards */
.treatment-option-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(13, 76, 136, 0.3) !important;
}

.treatment-option-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(115, 201, 69, 0.3) !important;
}

.treatment-option-card:hover {
  transform: translateY(-16px);
  filter: drop-shadow(0 28px 56px rgba(13, 76, 136, 0.2));
}

.treatment-option-card:hover div[style*="width: 72px"],
.treatment-option-card:hover div[style*="width: 64px"] {
  transform: scale(1.2) rotate(12deg);
  animation: float-icon-treatment 0.8s ease-in-out infinite;
}

@keyframes float-icon-treatment {
  0%, 100% { transform: scale(1.2) rotate(12deg) translateY(0); }
  50% { transform: scale(1.2) rotate(12deg) translateY(-12px); }
}

.treatment-option-card:nth-child(1):hover,
.treatment-option-card:nth-child(3):hover {
  background: linear-gradient(135deg, rgba(22, 130, 202, 0.2), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(22, 130, 202, 0.4) !important;
}

.treatment-option-card:nth-child(2):hover {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.18), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(115, 201, 69, 0.4) !important;
}

/* ============================================
   UNIQUE FAQ CARD DESIGNS
   ============================================ */

.faq-card {
  position: relative;
  will-change: transform, box-shadow, background;
}

/* Alternating blue/green gradients for FAQ cards */
.faq-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(13, 76, 136, 0.3) !important;
}

.faq-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(115, 201, 69, 0.3) !important;
}

.faq-card__trigger {
  position: relative;
  will-change: transform;
}

.faq-card__trigger:hover {
  transform: translateX(8px);
}

.faq-card__trigger:hover div[style*="width: 48px"] {
  transform: scale(1.2) rotate(12deg);
}

.faq-card__icon {
  will-change: transform;
}

/* Opened FAQ Cards */
.faq-card.is-open {
  background: linear-gradient(135deg, rgba(22, 130, 202, 0.22), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(22, 130, 202, 0.4) !important;
  box-shadow: 0 20px 48px rgba(22, 130, 202, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.faq-card:nth-child(2).is-open,
.faq-card:nth-child(4).is-open,
.faq-card:nth-child(6).is-open {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.7)) !important;
  border-color: rgba(115, 201, 69, 0.4) !important;
  box-shadow: 0 20px 48px rgba(115, 201, 69, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.faq-card.is-open .faq-card__icon {
  transform: rotate(45deg);
  background: rgba(13, 76, 136, 0.2) !important;
}

.faq-card:nth-child(2).is-open .faq-card__icon,
.faq-card:nth-child(4).is-open .faq-card__icon,
.faq-card:nth-child(6).is-open .faq-card__icon {
  background: rgba(115, 201, 69, 0.2) !important;
}

.faq-card__answer {
  will-change: max-height;
  overflow: hidden;
}

.faq-card.is-open .faq-card__answer {
  max-height: 500px;
  opacity: 1;
}

/* ============================================
   STAGGERED ANIMATION DELAYS
   ============================================ */

.myth-reality-card:nth-child(1) { animation-delay: 0ms; }
.myth-reality-card:nth-child(2) { animation-delay: 80ms; }
.myth-reality-card:nth-child(3) { animation-delay: 160ms; }
.myth-reality-card:nth-child(4) { animation-delay: 240ms; }

.focus-card:nth-child(1) { animation-delay: 0ms; }
.focus-card:nth-child(2) { animation-delay: 80ms; }
.focus-card:nth-child(3) { animation-delay: 160ms; }
.focus-card:nth-child(4) { animation-delay: 240ms; }
.focus-card:nth-child(5) { animation-delay: 320ms; }
.focus-card:nth-child(6) { animation-delay: 400ms; }

.treatment-option-card:nth-child(1) { animation-delay: 0ms; }
.treatment-option-card:nth-child(2) { animation-delay: 80ms; }
.treatment-option-card:nth-child(3) { animation-delay: 160ms; }

.faq-card:nth-child(1) { animation-delay: 0ms; }
.faq-card:nth-child(2) { animation-delay: 80ms; }
.faq-card:nth-child(3) { animation-delay: 160ms; }
.faq-card:nth-child(4) { animation-delay: 240ms; }
.faq-card:nth-child(5) { animation-delay: 320ms; }
.faq-card:nth-child(6) { animation-delay: 400ms; }
.faq-card:nth-child(7) { animation-delay: 480ms; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1200px) {
  .treatment-option-card:nth-child(1) { grid-row: auto; }
  .treatment-option-card:nth-child(3) { grid-column: auto; grid-row: auto; }

  .myth-reality-card {
    padding: 36px 28px;
  }

  .focus-card {
    padding: 32px 24px;
  }

  .treatment-option-card {
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  .reveal-up {
    animation-delay: 0ms !important;
  }

  .myth-reality-card {
    grid-column: span 1 !important;
    padding: 32px 24px;
  }

  div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .myth-reality-card:hover,
  .focus-card:hover,
  .treatment-option-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 480px) {
  .myth-reality-card {
    padding: 28px 20px;
  }

  .focus-card {
    padding: 28px 20px;
  }

  .treatment-option-card {
    padding: 28px 20px;
  }

  .focus-card div[style*="width: 54px"] {
    width: 44px !important;
    height: 44px !important;
    font-size: 24px !important;
  }

  .myth-reality-card h3,
  .focus-card h3,
  .treatment-option-card h3 {
    font-size: 18px !important;
  }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

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

  .myth-reality-card:hover,
  .focus-card:hover,
  .treatment-option-card:hover,
  .faq-card__trigger:hover {
    transform: none;
  }
}
