/* Custom styles and overrides */

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

/* Prevent scroll-reveal from hiding content when JS is disabled */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Only apply reveal animations when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-active .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .js-active .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

/* Fix for navbar overlap with sections */
section[id] {
    scroll-margin-top: 80px;
}

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

#mobileMenu.open {
    max-height: 500px;
}

/* Subtle pattern for hero */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Ensure form inputs look good */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    nav, #contactForm, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
