/* Custom styles and overrides */

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

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

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

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

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

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

/* Reduce motion for accessibility */
@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;
    }
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #cf6d4b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure text contrast meets WCAG AA */
.text-ink {
    color: #1C1917;
}

.text-ink\\/70 {
    color: rgba(28, 25, 23, 0.7);
}

/* Print styles */
@media print {
    #navbar,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-terracotta-900 {
        background: #6b2f24 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
