/* Additional custom styles and overrides */

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

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

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

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

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

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

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

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

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .serif-display {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-bg {
        background: #1a1a1a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

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

/* 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;
        scroll-behavior: auto !important;
    }
}

/* Prefers color scheme */
@media (prefers-color-scheme: dark) {
    /* Dark mode can be enhanced here if needed */
}
