/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #064E3B;
}

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

/* Reduced motion preference */
@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;
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu button animation */
#menu-btn.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active span:last-child {
    transform: rotate(-45deg);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Image loading placeholder */
img {
    background-color: #F5F4EF;
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    #contact-form {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        color: #000;
    }
}
