/* Brighton Crossing Commons — Custom Styles */

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

/* Scroll reveal base — progressive enhancement: content is visible by default */
.scroll-reveal {
    /* Default: visible, no animation */
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.3);
}

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

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

/* Custom selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #0a1628;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #e5e7eb;
}

/* Subtle pattern for visual interest */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(201, 162, 39, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}
