:root {
  --color-primary: #000000;
  --color-secondary: #16a34a;
  --color-accent: #2563eb;
}

* {
  font-family: 'Poppins', sans-serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

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

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

/* Ensure minimum touch target size for mobile */
@media (max-width: 768px) {
  button,
  a[href] {
    min-height: 44px;
    min-width: 44px;
  }
}

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

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

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

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

/* Animation for mobile menu */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Form validation styles */
.form-error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

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

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

#cookie-banner.show {
  transform: translateY(0);
}

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

/* Ensure consistent button heights */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Responsive text scaling */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .text-6xl {
    font-size: 3rem;
    line-height: 1;
  }
}

/* Print styles */
@media print {
  .no-print,
  header,
  footer,
  #cookie-banner,
  #cookie-modal {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #006600;
    --color-accent: #0000cc;
  }
}

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