/* Custom styles that complement Tailwind */

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #e0522b;
    outline-offset: 2px;
}

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

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Reduced motion preference */
@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;
    }
    
    .hero-gradient {
        animation: none;
        background: linear-gradient(135deg, #0e2142 0%, #143ea7 25%, #e0522b 75%, #d4a865 100%);
    }
    
    .float-animation {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #backToTop, .hero-gradient {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
}

/* Ensure touch targets are large enough */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Loading state for form */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom focus ring for buttons */
.btn-shine:focus-visible {
    outline: 3px solid #e0522b;
    outline-offset: 2px;
}
