:root {
  --color-primary: #64748b;
  --color-secondary: #16a34a;
  --color-accent: #dc2626;
}

/* Custom font family */
.font-open-sans {
  font-family: 'Open Sans', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Custom button hover effects */
.btn-primary {
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #475569;
  transform: translateY(-1px);
}

/* Animation for accordion */
.accordion-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.accordion-trigger[aria-expanded="true"] .lucide {
  transform: rotate(180deg);
}

/* Custom styles for form validation */
.form-error {
  border-color: var(--color-accent);
  background-color: #fef2f2;
}

.form-success {
  border-color: var(--color-secondary);
  background-color: #f0fdf4;
}

/* Loading animation */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Cookie banner animations */
#cookie-banner {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
}

#cookie-modal {
  transition: opacity 0.3s ease-in-out;
}

#cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive text sizes */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
}

/* Print styles */
@media print {
  .no-print,
  header,
  footer,
  #cookie-banner,
  #cookie-modal {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #006600;
    --color-accent: #cc0000;
  }
  
  .bg-gray-50 {
    background-color: #ffffff;
  }
  
  .text-gray-600 {
    color: #000000;
  }
}

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