/* Custom styles for Clear Creek Bed and Breakfast */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #a32626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #842020;
}

/* Selection color */
::selection {
    background: #a32626;
    color: #fdfbf7;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(110, 28, 28, 0.08);
}

nav.scrolled #nav-brand {
    color: #6e1c1c !important;
}

nav.scrolled .mobile-link {
    color: #6e1c1c !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

/* Apply float animations only when preferred motion is allowed */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0.w-72 {
        animation: float 6s ease-in-out infinite;
    }
    .absolute.top-44.right-20.w-64 {
        animation: float2 5s ease-in-out infinite;
    }
    .absolute.bottom-0.right-8.w-68 {
        animation: float3 7s ease-in-out infinite;
    }
}

/* Scroll reveal base state - always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal animation - progressive enhancement */
@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);
    }
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a32626 !important;
    box-shadow: 0 0 0 3px rgba(163, 38, 38, 0.1);
}

/* Gold accent hover */
a:hover .group-hover\:text-gold-400 {
    color: #c9a84c;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .font-serif.text-4xl.md\:text-5xl {
        font-size: 2.25rem;
    }
    
    .font-serif.text-3xl.md\:text-4xl {
        font-size: 1.875rem;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
