    /* Custom styles for SmithBussey Farm */

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

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

    /* Scroll reveal animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }

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

        /* Staggered delays for grid items */
        .grid > .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
        .grid > .scroll-reveal:nth-child(2) { transition-delay: 80ms; }
        .grid > .scroll-reveal:nth-child(3) { transition-delay: 160ms; }
        .grid > .scroll-reveal:nth-child(4) { transition-delay: 240ms; }
        .grid > .scroll-reveal:nth-child(5) { transition-delay: 320ms; }
        .grid > .scroll-reveal:nth-child(6) { transition-delay: 400ms; }
    }

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

    #navbar.scrolled .font-display {
        color: #1c1917;
    }

    /* Active nav link */
    nav a.active {
        color: #a11b38 !important;
    }

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

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

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

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

    /* Form focus styles */
    input:focus, select:focus, textarea:focus {
        outline: none;
    }

    /* Mobile menu animation */
    #mobileMenu {
        animation: slideDown 0.3s ease-out;
    }

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

    /* Button hover lift */
    .group:hover .bg-burgundy-700 {
        transform: scale(1.05);
    }

    /* Service card hover */
    .group:hover {
        transform: translateY(-4px);
    }

    /* Hero text animation */
    @media (prefers-reduced-motion: no-preference) {
        #top h1 {
            animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        #top p {
            animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
            opacity: 0;
        }

        #top .flex-col {
            animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
            opacity: 0;
        }

        #top .inline-flex {
            animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
            opacity: 0;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        .scroll-reveal {
            opacity: 1;
            transform: none;
        }

        #top h1,
        #top p,
        #top .flex-col,
        #top .inline-flex {
            animation: none;
            opacity: 1;
        }
    }
