/* Custom styles for Mountain Creek Furniture */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a111e;
}
::-webkit-scrollbar-thumb {
    background: #2d4a76;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a5f96;
}

/* Selection color */
::selection {
    background: rgba(45, 180, 110, 0.3);
    color: #f0faf5;
}

/* Navbar glass effect on scroll */
header.scrolled {
    background: rgba(5, 9, 16, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 74, 118, 0.3);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #4ec487;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(78, 196, 135, 0.3);
}

/* Ensure hero is always visible */
#hero {
    min-height: 100vh;
}

/* Asymmetric grid adjustments */
@media (max-width: 1023px) {
    #hero .lg\\:col-span-5 {
        order: -1;
    }
}

/* Card hover lift */
#showroom .group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#showroom .group:hover {
    transform: translateY(-2px);
}

/* Map container */
iframe {
    border-radius: 0 0 1.5rem 0;
}
@media (min-width: 1024px) {
    iframe {
        border-radius: 0;
    }
}

/* Floating badge animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.floating-badge {
    animation: float 3s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}
