/* Additional custom styles for elegant touches */

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

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

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

::-webkit-scrollbar-thumb {
    background: #C05838;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9A462B;
}

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

/* Print styles */
@media print {
    .hero-split,
    .service-card,
    .fade-in {
        break-inside: avoid;
    }
}

/* 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;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    button:hover,
    a:hover {
        opacity: 0.9;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-split {
        min-height: auto;
    }
    
    .hero-image {
        min-height: 30vh;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    h1 {
        font-size: 4rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-split {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Dark mode support (optional enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #f5f5f5;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}
