/* Custom styles for The Mill At Lewis Creek */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #ff6b4a;
}

/* Selection color */
::selection {
    background: #ff8a60;
    color: white;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Hero parallax-like effect */
#hero {
    scroll-behavior: smooth;
}

/* Room card hover lift */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Testimonial card hover */
.shadow-lg:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #ff8a60;
    outline-offset: 2px;
    border-radius: 0.75rem;
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.1);
}

/* Animation for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .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;
    }
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    button {
        display: none;
    }
    
    body {
        color: #1a1a2e;
        background: white;
    }
    
    a {
        color: #ff6b4a;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Ensure all images load gracefully */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 107, 74, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
