/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 27, 35, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-dark);
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-dark);
}

.card-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-gray);
}

/* Card with top accent */
.card-accent {
  position: relative;
}

.card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.card-accent:hover::before {
  transform: scaleX(1);
}

/* =============================================================================
   BADGES & TAGS
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.badge-gray {
  background: var(--bg-gray);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* =============================================================================
   STATS
   ============================================================================= */

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* =============================================================================
   SOCIAL ICONS
   ============================================================================= */

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Dark background variant */
.social-links.dark .social-link {
  background: var(--bg-gray);
  border-color: var(--line);
  color: var(--ink);
}

.social-links.dark .social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

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

@media (max-width: 620px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .card-body,
  .card-header,
  .card-footer {
    padding: 20px;
  }
  
  .testimonial-card {
    padding: 24px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}
