    /* Custom styles for Coral Gables Masonic & AM */

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

    /* Selection color */
    ::selection {
        background-color: rgba(123, 25, 53, 0.2);
        color: #7B1935;
    }

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

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

    /* Fallback: always show content if JS doesn't run */
    .reveal {
        opacity: 1;
        transform: none;
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        box-shadow: 0 1px 20px rgba(123, 25, 53, 0.08);
    }

    /* Mobile menu animation */
    #mobileMenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    #mobileMenu.open {
        max-height: 400px;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Menu button active state */
    #menuBtn.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    #menuBtn.active .menu-line:nth-child(2) {
        opacity: 0;
    }

    #menuBtn.active .menu-line:nth-child(3) {
        width: 20px;
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* Subtle image hover zoom */
    .group img {
        transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Button focus styles */
    a:focus-visible, button:focus-visible {
        outline: 2px solid #7B1935;
        outline-offset: 2px;
    }

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

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #7B1935;
    }

    /* Print styles */
    @media print {
        nav, footer, .reveal {
            display: block !important;
        }
        #navbar, footer {
            background: white !important;
            color: black !important;
        }
    }
