/* Custom styles that complement Tailwind */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-card, .service-card, .testimonial-card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card:hover {
        border-width: 3px;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* 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;
    }
    
    .float-slow, .float-medium, .float-fast {
        animation: none;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .hero-card:hover {
        transform: none;
    }
    
    .btn-primary:hover, .btn-secondary:hover {
        transform: none;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    /* These would be applied if we had dark mode classes, 
       but for now we're keeping the light theme consistent */
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better form input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
}

/* Custom checkbox/radio styles if needed in future */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #0d9488;
}

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

/* Scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}
