/**
 * Case study theme – shared tokens for _case_studies/*.html
 * Keep these in sync across trackiq, microhelp, pit-strategy (and any new case studies).
 *
 * Light theme:
 *   Body:       #fafafa background, #1a1a1a text
 *   Sections:   even #ffffff, odd #fafafa
 *   Borders:    #1a1a1a, card borders use project accent
 *   Muted:      #555, #666
 *
 * Typography:
 *   Section h2: 56px / 900 / -2px letter-spacing, underline via ::after (project gradient)
 *   Section subtitle: 24px, #666
 *   Problem card h3: 26px, 800
 *   Problem card p: 16px, #555, line-height 1.8
 *
 * Structure:
 *   .container: max-width 1200px, padding 0 24px
 *   section: padding 100px 0
 *   .problem-card / .insight-box: 24px radius, 4px solid border, 8px/12px shadow
 *   .btn: 18px 42px padding, 50px radius, 18px/700
 *
 * Shared palette (TrackIQ theme): #76B947 (green), #4A90E2 (blue), #9013FE (purple).
 * All case studies use this palette for hero, buttons, section underline, cards, and footer CTA.
 */

/* Shared focus style for case study content links (backup if inline styles omit it) */
.case-study-content a:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
  border-radius: 4px;
}

.dark .case-study-content a:focus-visible {
  outline-color: rgba(255, 255, 255, 0.4);
}

/* ——— Buttons: single source of truth (TrackIQ style) ——— */
.case-study-content .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  animation: case-study-fadeInUp 0.8s ease-out 0.7s backwards;
}

@keyframes case-study-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-study-content .btn {
  padding: 18px 42px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-study-content .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.case-study-content .btn:hover::after {
  width: 300px;
  height: 300px;
}

.case-study-content .btn-primary {
  background: #1a1a1a;
  color: #76B947;
  border: 3px solid #1a1a1a;
}

.case-study-content .btn-primary:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.case-study-content .btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border: 3px solid #1a1a1a;
}

.case-study-content .btn-secondary:hover {
  background: #1a1a1a;
  color: #76B947;
  transform: translateY(-5px) rotate(2deg);
}

@media (max-width: 768px) {
  .case-study-content .cta-buttons {
    flex-direction: column;
  }
}
