/* Custom styles for Xquisite Catering */

/* Base overrides */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: #1a1a1a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b4a;
}

/* Reduced motion */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    .btn-primary,
    .btn-outline,
    .btn-white {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .testimonial-card {
        border: 2px solid #000;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .food-grid-item:hover img {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-outline:hover {
        background: transparent;
        color: #1a1a1a;
    }
}

/* Landscape phone optimization */
@media (max-width: 480px) and (orientation: landscape) {
    .hero-text-side {
        padding: 3rem 1.5rem;
    }
    
    .hero-text-side h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Tablet portrait */
@media (min-width: 640px) and (max-width: 1023px) {
    .hero-text-side h1 {
        font-size: 3rem;
    }
}
