/* ACCESSIBILITY IMPROVEMENTS */

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #123e73;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: bold;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus indicators for keyboard navigation */
:focus-visible {
  outline: 3px solid #3fa66b;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #3fa66b;
  outline-offset: 2px;
}

/* Improve button focus states */
.btn-header-primary:focus-visible,
.btn-header-secondary:focus-visible,
button:focus-visible {
  outline: 3px solid #3fa66b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(63, 166, 107, 0.1);
}

/* Improve card hover/focus */
.value-card:focus-within,
.use-case-card:focus-within,
.integration-card:focus-within {
  box-shadow: 0 12px 24px rgba(18, 62, 115, 0.25);
  border-color: #3fa66b;
}

/* Ensure sufficient color contrast */
body {
  color: #0f172a;
  background-color: #ffffff;
}

/* Improve link contrast */
a {
  color: #123e73;
}

a:hover {
  color: #3fa66b;
}

a:visited {
  color: #0a2647;
}

/* Ensure text is readable in all states */
button,
.btn-header-primary {
  color: white;
  font-weight: 600;
}

.btn-header-secondary {
  color: var(--accent-start) !important;
  font-weight: 600;
}

/* Improve form accessibility */
input,
textarea,
select {
  border: 2px solid #123e73;
  padding: 10px;
  border-radius: 4px;
  font-size: 16px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #3fa66b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 166, 107, 0.1);
}

/* Improve heading contrast */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a;
}

/* Ensure sufficient spacing for touch targets */
button,
a[role='button'],
input[type='button'],
input[type='submit'] {
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    color: #f1f5f9;
    background-color: #0f172a;
  }

  a {
    color: #60a5fa;
  }

  a:visited {
    color: #a78bfa;
  }
}

/* Print styles for accessibility */
@media print {
  .skip-to-content,
  nav,
  footer {
    display: none;
  }

  body {
    color: black;
    background-color: white;
  }

  a:not(.header-link):not(.btn-header-primary):not(.btn-header-secondary) {
    text-decoration: underline;
  }
}
