/* ========================================
   Components — buttons, pills, kickers,
   icons, animations, lightbox
   Pill buttons, soft colors
   ======================================== */

/* Buttons — pill-shaped, customizable via tokens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(51, 65, 85, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(51, 65, 85, 0.4);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 2px 12px rgba(193, 233, 78, 0.25);
}
.btn-accent:hover {
  box-shadow: 0 4px 20px rgba(193, 233, 78, 0.35);
}
.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-hover);
}
.btn-ghost {
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-small { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }

/* Pills */
.pill {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-button);
  line-height: 1;
}
.pill-accent { background: rgba(193, 233, 78, 0.12); color: var(--color-accent-text); }
.pill-green { background: rgba(76,175,80,0.12); color: #2e7d32; }
.pill-primary { background: rgba(51, 65, 85,0.08); color: var(--color-primary); }

/* Kicker — softer than before */
.kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Badge — inline rounded label */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(51, 65, 85, 0.08);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-button);
  border: 1px solid rgba(51, 65, 85, 0.12);
}

/* Layout */
.section-inner { max-width: var(--max-width); margin: 0 auto; }

/* Icons */
.icon { width: 48px; height: 48px; flex-shrink: 0; }
.icon-lg { width: 48px; height: 48px; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-inner);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255,255,255,0.22);
}
