/**
 * AK Compliance — main site styles
 * Custom CSS for layout, typography, and components (Tailwind + Flowbite handle the rest).
 */

:root {
  --gradient-from: #1E40AF;
  --gradient-to: #1D4ED8;
  --dark-1: #0B1220;
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --color-text: #0F172A;
  --color-bg: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-accent: #22C55E;
  --focus-ring: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slider-track {
    animation-duration: 60s;
  }
}

body {
  font-family: 'Inter', system-ui, Segoe UI, sans-serif;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.heading-xl {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.heading-lg {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.heading-md {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.body-text {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.ds-h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.ds-h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.ds-h3 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.ds-body {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.ds-caption {
  font-size: 0.875rem;
  color: #475569;
}

/* Layout */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.container-content {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Buttons & links */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  background: var(--color-accent);
  color: #fff;
  padding: 0.875rem 1.25rem;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
  filter: brightness(1.08);
}

.cta-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.link-minimal {
  color: var(--color-accent);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.link-minimal:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.link-minimal:focus-visible {
  outline: none;
  text-decoration: underline;
}

a,
button,
[role="button"],
.cta-primary {
  cursor: pointer;
}

/* Backgrounds & utilities */
.bg-gradient-primary {
  background: linear-gradient(90deg, var(--gradient-from) 0%, var(--gradient-to) 100%);
  color: var(--text-primary);
}

.bg-dark {
  background: var(--dark-1);
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

/* Testimonials slider */
.slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.slider-track {
  display: inline-flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: slide-left 35s linear infinite;
  will-change: transform;
}

.slider-track > * {
  white-space: normal;
}

@keyframes slide-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.slider:hover .slider-track {
  animation-play-state: paused;
}

/* Prose (article content) */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--color-accent);
  font-weight: 500;
}

.prose a:hover {
  text-decoration: underline;
}
