/* Custom styles that complement Tailwind — small overrides and polish */

:root {
    --coral-500: #ff6b4a;
    --coral-400: #ff8a6e;
    --charcoal-900: #1a1d20;
    --charcoal-800: #2c3035;
    --charcoal-700: #3d4248;
}

/* Ensure smooth rendering on all devices */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--coral-400);
    outline-offset: 2px;
}

/* Subtle pattern overlay for visual interest */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@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;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .card-shadow {
        box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    }
}

/* Print styles */
@media print {
    nav, .scroll-reveal, #contact-form button, .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
