/* Custom styles for Curious Needs */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
    background: #4a7c4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #365e38;
}

/* Selection color */
::selection {
    background: #c5dfc8;
    color: #1a3a20;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Hero content animation */
.hero-content {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #4a7c4e;
    outline-offset: 2px;
}

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

/* Subtle pattern overlay for sections */
.bg-forest-50::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(74, 124, 78, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Smooth image transitions */
img {
    transition: filter 0.3s ease;
}

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