/* Custom styles for Always Home Farmhouse */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #527d6f;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpDelay {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slideUpDelay 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Floating stat cards */
.stat-card {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.stat-card:nth-child(1) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.7s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.9s;
}

/* Intersection Observer animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transitions */
.mobile-link {
    transition: opacity 0.3s ease-out;
}

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

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .stat-card,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #1a2b28;
        background: white;
    }
    
    .bg-forest-900 {
        background: #1a2b28 !important;
        color: white !important;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .text-forest-600 {
        color: #2d4a42;
    }
    
    .text-forest-500 {
        color: #1a3c34;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .stat-card {
        max-width: 100%;
    }
}
