/* Custom styles for Olympus NDT */

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

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

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

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

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

/* Selection color */
::selection {
    background: #C95C4E;
    color: #FDFCF8;
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu.show {
    animation: slideDown 0.3s ease-out;
}

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

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-sand-50 {
        background-color: #ffffff;
    }
    
    .text-sand-600 {
        color: #000000;
    }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Touch-friendly tap targets on mobile */
@media (hover: none) and (pointer: coarse) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}
