/* Base styles & custom utilities */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: #0d9488;
  color: white;
}

/* Smooth focus outlines */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form input transitions */
input, select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-teal-600 {
  background-color: #0d9488;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .group:hover .group-hover\:scale-105 {
    transform: none;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 3rem;
  }
}
