/* Base styles and custom properties */
:root {
    --terracotta: #C07A5A;
    --sand: #F5F0EB;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0EB;
}
::-webkit-scrollbar-thumb {
    background: #D4B8A0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C07A5A;
}

/* Selection color */
::selection {
    background: #F9D4C8;
    color: #3A302A;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Button hover effects */
a, button {
    transition: all 0.3s ease;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(90deg, #F5F0EB 25%, #E8E0D8 50%, #F5F0EB 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

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

/* Print styles */
@media print {
    header, footer, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
