/* Custom styles for The Soundings Cafe */

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

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #111827;
}

/* Mobile menu */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
    margin-left: 0;
}

/* Room cards */
.room-card {
    transform: translateY(0);
}

/* Feature cards */
.feature-card {
    transform: translateY(0);
}

/* Contact form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e05522;
    border-radius: 4px;
}

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .room-card,
    .feature-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .room-card.revealed,
    .feature-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .room-card:nth-child(2).revealed,
    .feature-card:nth-child(2).revealed {
        transition-delay: 0.15s;
    }

    .room-card:nth-child(3).revealed,
    .feature-card:nth-child(3).revealed {
        transition-delay: 0.3s;
    }

    .feature-card:nth-child(4).revealed {
        transition-delay: 0.45s;
    }
}

/* Ensure all content is visible by default for reduced motion / no-JS */
@media (prefers-reduced-motion: reduce) {
    .room-card,
    .feature-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero image parallax-like subtle effect */
@media (prefers-reduced-motion: no-preference) {
    #hero img {
        transition: transform 0.3s ease;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
