/* Custom CSS for Seedium OÜ Website */
/* Additional styles to complement Tailwind CSS */

:root {
  --brand-blue: hsl(214, 84%, 41%);
  --brand-light-blue: hsl(217, 91%, 60%);
  --brand-green: hsl(158, 64%, 52%);
  --slate-50: hsl(210, 40%, 98%);
  --slate-600: hsl(218, 11%, 65%);
  --slate-700: hsl(217, 19%, 27%);
  --slate-900: hsl(222, 84%, 5%);
}

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

/* Custom focus styles */
.focus-visible:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Ensure images load with proper aspect ratios */
img {
  height: auto;
  max-width: 100%;
}

/* Custom button hover effects */
.btn-primary {
  background-color: var(--brand-blue);
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--brand-light-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Loading animation for form submission */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide cookie banner when not needed */
.cookie-banner-hidden {
  display: none !important;
}

/* Smooth transitions for mobile menu */
#mobileMenu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  max-height: 500px;
}

/* Custom prose styles for legal pages */
.prose h2 {
  color: var(--slate-900);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: var(--slate-700);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

/* Ensure proper text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --brand-blue: hsl(214, 100%, 30%);
    --brand-light-blue: hsl(217, 100%, 40%);
  }
}

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

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

::-webkit-scrollbar-track {
  background: var(--slate-50);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-700);
}
