/* Custom styles to complement Tailwind */

/* Ensure smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Custom focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e07a5f;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Custom selection color */
::selection {
    background-color: #e07a5f;
    color: white;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced motion preferences */
@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;
    }
}

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

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

/* Small screen optimizations */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    nav {
        height: 60px;
    }
    
    .hero-pattern {
        min-height: auto;
        padding: 40px 0;
    }
}
