/* Custom styles that complement Tailwind */

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

/* 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;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form, button {
        display: none !important;
    }
    
    body {
        color: #0f172a;
        background: white;
    }
}

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

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

/* 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;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .card-shadow, .card-shadow-lg {
        box-shadow: 0 0 0 1px CanvasText;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: auto;
        padding: 4rem 0;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
}

/* Ensure form inputs have proper sizing */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: inherit;
}

/* Better button touch targets on mobile */
@media (max-width: 640px) {
    button, a[role="button"] {
        min-height: 44px;
    }
}

/* Image loading placeholder */
img {
    background-color: #e2e8f0;
}

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