/* ============================================
   EVOYKO — Base Styles
   Reset, typography, layout — Consulting Premium
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Skip to content (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-primary-hover);
}

strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

em {
  font-style: italic;
}

small {
  font-size: var(--text-small);
  color: var(--text-muted);
}

code {
  font-family: var(--font-mono);
  font-size: var(--text-small);
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Lists --- */
ul, ol {
  padding-left: 1.5em;
  color: var(--text-secondary);
}

li + li {
  margin-top: 0.5em;
}

/* --- Buttons --- */
button, .btn {
  font-family: var(--font-body);
  font-size: var(--text-body);
  cursor: pointer;
  border: none;
}

/* Remove outline only when NOT keyboard-navigating */
:focus:not(:focus-visible) {
  outline: none;
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

button:focus-visible,
.btn-cta:focus-visible,
.btn-outline:focus-visible,
.btn-text:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(68, 184, 172, 0.25);
}

a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Primary CTA — gradient pill */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cta-gradient);
  color: var(--text-on-gradient);
  border: none;
  border-radius: 999px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(68, 184, 172, 0.15);
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(68, 184, 172, 0.25);
  color: var(--text-on-gradient);
}

/* Secondary — outline */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 16px 35px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Text link with arrow */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--accent-primary-hover);
  gap: 10px;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border-default);
  border: none;
}

.divider--gradient {
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* --- Visually hidden (SR only) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Selection --- */
::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* --- Accessibility: Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
