/* ─── Custom properties ──────────────────────────────── */
:root {
  --accent: #0066FF;
  --accent-dark: #0052CC;
  --gray-900: #111827;
  --gray-500: #6B7280;
  --gray-100: #F3F4F6;
  --radius: 0.75rem;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Scroll animation ───────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of a container */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ─── Nav scroll shadow ──────────────────────────────── */
.nav--scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 102, 255, 0.04) 0%, transparent 70%);
}

/* ─── Service cards ──────────────────────────────────── */
.service-card {
  cursor: default;
}

/* ─── Credential cards ───────────────────────────────── */
.credential-card {
  transition: box-shadow var(--transition), transform var(--transition);
}

.credential-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* ─── Process step ───────────────────────────────────── */
@media (min-width: 768px) {
  .process-step + .process-step {
    margin-top: 0;
  }
}

/* ─── Form focus ring ────────────────────────────────── */
input:focus, textarea:focus {
  outline: none;
}

/* ─── Spinner animation ──────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ─── Reduce motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .animate-spin { animation: none; }
}
