/* Custom styles for Whitewater Manor */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #74211f;
}

/* Selection color */
::selection {
    background: #fce7e7;
    color: #400e0d;
}

/* Fade-in animation for scroll-reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.98) !important;
    box-shadow: 0 2px 20px rgba(64, 14, 13, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #8c2725;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Decorative hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Subtle shadow on cards */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(64, 14, 13, 0.08);
}

/* Gold accent for special elements */
.gold-accent {
    color: #c49a3f;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Prevent layout shift for images */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #back-to-top, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
