/* Custom styles for Small Graces B&B */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating animation for stat cards */
.stat-card {
    animation: float 3s ease-in-out infinite;
}

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

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

.stat-card:nth-child(4) {
    animation-delay: 1.5s;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6b2a46;
}

/* Hero background */
.hero-bg {
    background-image: url('https://images.pexels.com/photos/14021931/pexels-photo-14021931.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Room backgrounds */
.room-bg-1 {
    background-image: url('https://images.pexels.com/photos/10047588/pexels-photo-10047588.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=800&h=600');
}

.room-bg-2 {
    background-image: url('https://images.pexels.com/photos/4712152/pexels-photo-4712152.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=800&h=600');
}

.room-bg-3 {
    background-image: url('https://images.pexels.com/photos/37526148/pexels-photo-37526148.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=800&h=600');
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

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

/* Media query for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(26, 13, 18, 0.98) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

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

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

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Print styles */
@media print {
    .hero-bg {
        background-color: #2d1520 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
